top_srcdir. From Tim Van Holder.
* tests/Makefile.am (TESTS): Added yacc6.test.
* tests/yacc6.test: New file.
+2001-06-14 Tom Tromey <tromey@redhat.com>
+
+ * automake.in (yacc_lex_finish_helper): Find ylwrap in
+ top_srcdir. From Tim Van Holder.
+ * tests/Makefile.am (TESTS): Added yacc6.test.
+ * tests/yacc6.test: New file.
+
2001-06-14 Tim Van Holder <tim.van.holder@pandora.be>
* tests/defs, tests/installsh.test: Properly support
Thomas Morgan tmorgan@pobox.com
Thomas Tanner tanner@ffii.org
Tim Goodwin tjg@star.le.ac.uk
+Tim Van Holder tim.van.holder@pandora.be
Ulrich Drepper drepper@gnu.ai.mit.edu
Vadim Zeitlin Vadim.zeitlin@dptmaths.ens-cachan.fr
Werner Koch wk@isil.d.shuttle.de
}
else
{
- &define_variable ('YLWRAP', '$(srcdir)/ylwrap');
+ &define_variable ('YLWRAP', '$(top_srcdir)/ylwrap');
}
}
yacc2.test \
yacc3.test \
yacc4.test \
+yacc6.test \
yaccpp.test \
yaccvpath.test
yacc2.test \
yacc3.test \
yacc4.test \
+yacc6.test \
yaccpp.test \
yaccvpath.test
--- /dev/null
+#! /bin/sh
+
+# Test to make sure ylwrap put in right location.
+# Report from Tim Van Holder.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT
+AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+AC_ARG_PROGRAM
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+AC_PROG_CC
+AC_PROG_YACC
+AC_OUTPUT(Makefile sub/Makefile)
+END
+
+cat > Makefile.am << 'END'
+SUBDIRS = sub
+END
+
+mkdir sub
+
+cat > sub/Makefile.am << 'END'
+bin_PROGRAMS = foo
+foo_SOURCES = foo.y bar.y
+END
+
+: > sub/foo.y
+: > sub/bar.y
+
+$ACLOCAL || exit 1
+$AUTOMAKE -a || exit 1
+test -f ylwrap || exit 1
+fgrep '(srcdir)/ylwrap' sub/Makefile.in && exit 1
+exit 0