]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
authorDerek Price <derek@ximbiot.com>
Mon, 20 Jun 2005 14:48:09 +0000 (14:48 +0000)
committerDerek Price <derek@ximbiot.com>
Mon, 20 Jun 2005 14:48:09 +0000 (14:48 +0000)
ChangeLog
lib/autoconf/programs.m4
lib/autoscan/autoscan.list

index 5c364b39b8ac2c09d12386e8c82ab02a3665ec2f..ba61008b108c3bc9dd25d1dfe308b44e702a94d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-20  Derek Price  <derek@ximbiot.com>
+
+       * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
+
 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
index 68e3e79b9b69bc207f61d2a71675b25f35e38efd..4948bbfe260e3c1136b1e355c3fd61b46133a741 100644 (file)
@@ -741,8 +741,16 @@ AC_DEFUN([AC_PROG_SED],
 # ------------
 AN_MAKEVAR([BISON],  [AC_PROG_YACC])
 AN_MAKEVAR([YACC],  [AC_PROG_YACC])
+AN_MAKEVAR([YFLAGS],  [AC_PROG_YACC])
 AN_PROGRAM([yacc],  [AC_PROG_YACC])
 AN_PROGRAM([byacc], [AC_PROG_YACC])
 AN_PROGRAM([bison], [AC_PROG_YACC])
 AC_DEFUN([AC_PROG_YACC],
-[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)])
+[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)dnl
+AC_ARG_VAR(YACC,
+[The `Yet Another C Compiler' implementation to use.  Defaults to the first
+program found out of: `bison -y', `byacc', `yacc'.])dnl
+AC_ARG_VAR(YFLAGS,
+[The list of arguments that will be passed by default to $YACC.  This script
+will default YFLAGS to the empty string to avoid a default value of `-d' given
+by some make applications.])])
index 1f92b4d0bff66474745aea0f968186779994be59..2839b8605f4c3e46630c845e2720a5d39a741986 100644 (file)
@@ -281,6 +281,7 @@ makevar: LN         AC_PROG_LN_S
 makevar: MAKE          AC_PROG_MAKE_SET
 makevar: RANLIB                AC_PROG_RANLIB
 makevar: YACC          AC_PROG_YACC
+makevar: YFLAGS                AC_PROG_YACC
 program: CC            AC_PROG_CXX
 program: awk           AC_PROG_AWK
 program: bison         AC_PROG_YACC