Tag
Hash :
2b74c0b6
Author :
Date :
2001-08-08T16:44:05
* automake.in (file_contents_internal): if a rule is conditionally defined, define the standard automake definition for it for those conditions which are not conditionally defined. (invert_conditions): New function: invert a list of conditionals. * tests/cond14.test: New file. * tests/cond15.test: New file. * tests/Makefile.am (TESTS): Added cond14.test and cond15.test.
#! /bin/sh
# Test for bug in conditionals.
# Report from Robert Boehne
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AM_CONDITIONAL(COND1, true)
END
cat > Makefile.am << 'END'
if COND1
BUILD_helldl = helldl
helldl_SOURCES = dlmain.c
helldl_DEPENDENCIES = libhello.la
else
BUILD_helldl =
bin_SCRIPTS = helldl
helldl$(EXEEXT):
rm -f $@
echo '#! /bin/sh' > $@
echo '-dlopen is unsupported' >> $@
chmod +x $@
endif
bin_PROGRAMS = $(BUILD_helldl)
END
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
num=`grep 'helldl$(EXEEXT):' Makefile.in | wc -l`
test $num -eq 2