* Makefile.am (TESTS): Added yacc2.test and yacc3.test.
+1999-04-10 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * yacc2.test, yacc3.test: New files.
+ * Makefile.am (TESTS): Added yacc2.test and yacc3.test.
+
1999-04-09 Tom Tromey <tromey@cygnus.com>
* nodist.test: New file.
texinfo.test texinfo2.test texinfo3.test texinfo4.test texinfo5.test \
texinfo6.test texinfo7.test texinfo8.test unused.test version.test \
version2.test version3.test vpath.test vtexi.test vtexi2.test \
-whoami.test xsource.test yacc.test yaccpp.test
+whoami.test xsource.test yacc.test yacc2.test yacc3.test yaccpp.test
EXTRA_DIST = defs $(TESTS)
texinfo.test texinfo2.test texinfo3.test texinfo4.test texinfo5.test \
texinfo6.test texinfo7.test texinfo8.test unused.test version.test \
version2.test version3.test vpath.test vtexi.test vtexi2.test \
-whoami.test xsource.test yacc.test yaccpp.test
+whoami.test xsource.test yacc.test yacc2.test yacc3.test yaccpp.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
+DIST_SOURCES =
DIST_COMMON = ChangeLog Makefile.am Makefile.in
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
GZIP_ENV = --best
all: all-redirect
--- /dev/null
+#! /bin/sh
+
+# Test to make sure intermediate .h file is not generated nor removed
+# if (AM_)?YFLAGS do not contain -d. Requested by Jim Meyering.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_PROG_YACC
+END
+
+cat > Makefile.am <<'END'
+bin_PROGRAMS = zardoz
+zardoz_SOURCES = zardoz.y
+END
+
+$AUTOMAKE || exit 1
+
+# If zardoz.h IS mentioned, fail
+grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+
+echo 'AM_YFLAGS = -d' >> Makefile.am
+
+$AUTOMAKE || exit 1
+
+# If zardoz.h is NOT mentioned, fail
+grep 'zardoz.h' Makefile.in > /dev/null || exit 1
+
+echo 'AM_YFLAGS = ' >> Makefile.am
+
+$AUTOMAKE || exit 1
+
+# If zardoz.h IS mentioned, fail
+grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+
+echo 'YFLAGS = -d' >> Makefile.am
+
+$AUTOMAKE || exit 1
+
+# If zardoz.h is NOT mentioned, fail
+grep 'zardoz.h' Makefile.in > /dev/null || exit 1
+
+echo 'YFLAGS = ' >> Makefile.am
+
+$AUTOMAKE || exit 1
+
+# If zardoz.h IS mentioned, fail
+grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+
+exit 0
--- /dev/null
+#! /bin/sh
+
+# Ensure that generated .h file is distributed iff we have -d in
+# (AM_)?YFLAGS.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_PROG_YACC
+END
+
+cat > Makefile.am <<'END'
+bin_PROGRAMS = zardoz
+zardoz_SOURCES = zardoz.y
+magic:
+ @echo $(DIST_COMMON)
+END
+
+$AUTOMAKE || exit 1
+
+# It should not be disted here
+$MAKE -f Makefile.in SHELL=/bin/sh magic |
+grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+
+echo 'YFLAGS = -d' >> Makefile.am
+
+$AUTOMAKE || exit 1
+
+# But it should here
+$MAKE -f Makefile.in SHELL=/bin/sh magic |
+grep 'zardoz.h' Makefile.in > /dev/null