source: trunk/essentials/sys-devel/automake-1.4/tests/cond4.test

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 474 bytes
Line 
1#! /bin/sh
2
3# Another sources-in-conditional test. Report from Tim Goodwin.
4
5. $srcdir/defs || exit 1
6
7cat > configure.in << 'END'
8AM_INIT_AUTOMAKE(nonesuch, nonesuch)
9AC_PROG_CC
10AM_CONDITIONAL(ONE, true)
11AM_CONDITIONAL(TWO, false)
12AC_OUTPUT(Makefile)
13END
14
15cat > Makefile.am << 'END'
16bin_PROGRAMS = targ
17
18if ONE
19OPT1 = one.c
20endif
21
22if TWO
23OPT2 = two.c
24endif
25
26targ_SOURCES = main.c $(OPT1) $(OPT2)
27END
28
29$AUTOMAKE || exit 1
30
31test "`grep TWO_FALSE Makefile.in | wc -l`" -eq 2
Note: See TracBrowser for help on using the repository browser.