Fix for PR automake/14:
[automake.git] / tests / cond9.test
blob504323cbd5ec25f7e15ff5a75589a9704661573b
1 #! /bin/sh
3 # Test for bug in conditionals. From Raja R Harinath.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AC_INIT(Makefile.am)
9 AM_INIT_AUTOMAKE(foo,0.0)
10 AM_CONDITIONAL(FALSE, [test x = y])
11 AC_OUTPUT(Makefile)
12 END
14 cat > Makefile.am << 'END'
15 if FALSE
16 this=
17 else
18 this=is_something_interesting
19 endif
21 echo-something:
22 echo '$(this)'
23 END
25 (autoconf --version) > /dev/null 2>&1 || exit 77
27 $ACLOCAL \
28 && autoconf \
29 && $AUTOMAKE -a \
30 && ./configure \
31 && $MAKE echo-something | grep interesting > /dev/null