From: Tom Tromey Date: Tue, 27 Apr 1999 15:52:42 +0000 (+0000) Subject: * cond9.test: New file. From Raja R Harinath. X-Git-Tag: merging-into-user-dep-gen~26 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1290f68f7f94e82c7f93c4a46b057ae39fb2321c;p=automake.git * cond9.test: New file. From Raja R Harinath. * Makefile.am (TESTS): Added cond9.test. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 4ebccefb..3963f288 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 1999-04-27 Tom Tromey + * cond9.test: New file. From Raja R Harinath. + * Makefile.am (TESTS): Added cond9.test. + * pluseq8.test: New file. * Makefile.am (TESTS): Added pluseq8.test. diff --git a/tests/Makefile.am b/tests/Makefile.am index 5c19aacf..6d96842a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -52,6 +52,7 @@ cond5.test \ cond6.test \ cond7.test \ cond8.test \ +cond9.test \ condman.test \ condman2.test \ conf2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 41ea38f3..472a77ad 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -117,6 +117,7 @@ cond5.test \ cond6.test \ cond7.test \ cond8.test \ +cond9.test \ condman.test \ condman2.test \ conf2.test \ diff --git a/tests/cond9.test b/tests/cond9.test new file mode 100755 index 00000000..504323cb --- /dev/null +++ b/tests/cond9.test @@ -0,0 +1,31 @@ +#! /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) +AM_CONDITIONAL(FALSE, [test x = y]) +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +if FALSE +this= +else +this=is_something_interesting +endif + +echo-something: + echo '$(this)' +END + +(autoconf --version) > /dev/null 2>&1 || exit 77 + +$ACLOCAL \ + && autoconf \ + && $AUTOMAKE -a \ + && ./configure \ + && $MAKE echo-something | grep interesting > /dev/null