AC_PROG_YACC: don't force Bison to warn against its own features
commit42761668c0300afa7f8bf5ba736458a818cd5d15
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 19 Mar 2013 18:19:17 +0000 (19 11:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Mar 2013 18:19:40 +0000 (19 11:19 -0700)
treeb08ef5577c16b7eab34b8959addc5fa8609953a3
parent845e703afd505f1f5ca7649fc1730258573e0f3a
AC_PROG_YACC: don't force Bison to warn against its own features

When invoked with -y/--yacc, Bison warns when its extensions over
POSIX Yacc are used.  Yet many packages requiring GNU Bison use
Autoconf/Automake's Yacc support, which passes -y to Bison.  It
turns out that passing '-o y.tab.c' has exactly the desired
effect: generating not only y.tab.c but also y.tab.h with -d and
y.output with -v.  See:
http://lists.gnu.org/archive/html/bison-patches/2013-02/msg00100.html
* lib/autoconf/programs.m4 (AC_PROG_YACC): Use bison -o y.tab.c.
* NEWS, doc/autoconf.texi: Document this change.
NEWS
doc/autoconf.texi
lib/autoconf/programs.m4