+2001-05-05 Raja R Harinath <harinath@cs.umn.edu>
+
+ For PR automake/164:
+ * tests/Makefile.am (TESTS): Added new file.
+ (XFAIL_TESTS): Likewise.
+ * tests/cond10.test: New file.
+
2001-05-05 Tom Tromey <tromey@redhat.com>
* texinfos.am (uninstall-info-am): Debian install-info v1.8.3
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test cond10.test
TESTS = \
acinclude.test \
cond7.test \
cond8.test \
cond9.test \
+cond10.test \
condincl.test \
condincl2.test \
condlib.test \
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test cond10.test
TESTS = \
acinclude.test \
cond7.test \
cond8.test \
cond9.test \
+cond10.test \
condincl.test \
condincl2.test \
condlib.test \
mostlyclean-am: mostlyclean-generic
+uninstall-am:
+
.PHONY: all all-am check check-TESTS check-am clean clean-generic \
distclean distclean-generic distclean-local distdir dvi dvi-am \
info info-am install install-am install-data install-data-am \
--- /dev/null
+#! /bin/sh
+
+# Test for bug in conditionals. From Raja R Harinath.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(Makefile.am)
+AM_INIT_AUTOMAKE(foo,0.0)
+AC_PROG_CC
+AM_CONDITIONAL(USE_A,[test x = y])
+AM_CONDITIONAL(USE_B,[test x = z])
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+if USE_A
+out=output_a.c
+else
+if USE_B
+out=output_b.c
+else
+out=output_c.c
+endif
+endif
+
+noinst_PROGRAMS=foo
+foo_SOURCES=foo.c $(out)
+END
+
+$ACLOCAL \
+ && $AUTOMAKE -a \
+ && grep 'USE_A_FALSE.*USE_B_FALSE.*output_c\...OBJEXT.' Makefile.in