[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of bison
From: |
Mark D. Baushke |
Subject: |
Re: Use of bison |
Date: |
Fri, 30 Dec 2005 10:42:02 -0800 |
Hi Eric,
Francesco Montorsi on 12/27/2005 11:42 AM wrote:
> PS: I've recently installed SuSE and I've found
> that the configure script of coreutils doesn't
> check for 'bison' presence: on that distro, it
> was missing and it gave me problems later with
> "make". I think adding a check for 'bison' would
> be nice...
For what it may be worth, the CVS project has a
forked copy of the GNULIB bison.m4 which uses
bison-missing until such time as automake-1.10 is
released when it will no longer be an issue.
-- Mark
--- bison.m4~ Mon Jun 20 08:03:36 2005
+++ bison.m4 Wed Dec 14 01:04:06 2005
@@ -1,14 +1,21 @@
#serial 4
# Copyright (C) 2002, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_BISON],
-[
+[dnl
+dnl All this cruft, which tries to fail harmlessly when bison is not present,
+dnl will no longer be necessary after we require an Automake release 1.10 or
+dnl later, as those avoid generating .c files from .y when not in maintainer
+dnl mode. This is currently a fork from the GNULIB version of this file.
+ # expand $ac_aux_dir to an absolute path
+ am_aux_dir=`cd $ac_aux_dir && pwd`
+
# getdate.y works with bison only.
- : ${YACC='bison -y'}
+ : ${YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y"}
dnl
dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
dnl requires an Autoconf greater than 2.59c, but it will probably still be