3 # Test for bug in conditionals. From Richard Boulton.
4 # This checks that, if LDADD is set from a conditional variable
5 # and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
7 .
$srcdir/defs ||
exit 1
9 cat > configure.
in << 'END'
11 AM_INIT_AUTOMAKE
(foo
,0.0)
13 AM_CONDITIONAL
(USE_A
,[test x
= x
])
18 cat > Makefile.am
<< 'END'
28 LDADD
= $
(SUBSTVAR
) $
(foolibs
)
38 #Should be two dependency setting lines
39 count
=`grep 'foo_DEPENDENCIES =' Makefile.in | wc -l|sed 's/ //g'`
40 test "x$count" = "x2" &&
41 grep '^.USE_A_TRUE.foo_DEPENDENCIES =' Makefile.
in