Tag
Hash :
c246b4a9
Author :
Date :
2001-12-29T23:58:07
For PR automake/279: * automake.in (conditional_ambiguous_p): New sub. (handle_lib_objects_cond): Use it. (check_ambiguous_conditional): Use it. * tests/Makefile.am (TESTS): Added pr279.test, pr279-2.test. * tests/pr279.test: New file. * tests/pr279-2.test: New file.
#! /bin/sh
# Test for PR 279.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AC_PROG_CC
AM_CONDITIONAL(FOOTEST, false)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
END
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = foreign
if FOOTEST
xtralib =
else
xtralib =
endif
bin_PROGRAMS = foo
foo_LDADD = ${xtralib}
foo_DEPENDENCIES =
END
$ACLOCAL || exit 1
$AUTOMAKE