Tag
Hash :
e375e1f2
Author :
Date :
2002-01-12T17:38:56
* test/nodefine.test, test/nodefine2.test: Check that no-define works, not the contrary... * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset. * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define, not the contrary.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#! /bin/sh
# Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
. $srcdir/defs || exit 1
set -e
# First, check that PACKAGE and VERSION are output by default.
cat > configure.in << 'END'
AC_INIT([UnIqUe_PaCkAgE], [UnIqUe_VeRsIoN])
AM_INIT_AUTOMAKE
AC_OUTPUT(output)
END
echo 'DEFS = @DEFS@' > output.in
$ACLOCAL
$AUTOCONF
./configure
grep 'DEFS.*-DVERSION=\\"UnIqUe' output
# Then, check that PACKAGE and VERSION are not output if requested.
cat > configure.in << 'END'
AC_INIT([UnIqUe_PaCkAgE], [UnIqUe_VeRsIoN])
AM_INIT_AUTOMAKE([no-define])
AC_OUTPUT(output Makefile)
END
: > Makefile.am
$ACLOCAL
$AUTOCONF
$AUTOMAKE # Dummy call to make sure Automake grok `no-define' silently.
./configure
grep 'DEFS.*-DVERSION=\\"UnIqUe' output && exit 1
: