* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / cond10.test
blob84b4950d337c99334bda09d2bb1277ab3c1f2773
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 AC_PROG_CC
11 AM_CONDITIONAL(USE_A,[test x = y])
12 AM_CONDITIONAL(USE_B,[test x = z])
13 AC_OUTPUT(Makefile)
14 END
16 cat > Makefile.am << 'END'
17 if USE_A
18 out=output_a.c
19 else
20 if USE_B
21 out=output_b.c
22 else
23 out=output_c.c
24 endif
25 endif
27 noinst_PROGRAMS=foo
28 foo_SOURCES=foo.c $(out)
29 END
31 $ACLOCAL \
32 && $AUTOMAKE -a \
33 && grep 'USE_A_FALSE.*USE_B_FALSE.*output_c\...OBJEXT.' Makefile.in