Tag
Hash :
09bd5f35
Author :
Date :
2002-06-19T19:57:40
* lib/am/lang-compile.am (%FPFX%DEPMODE): Delete. This is now traced from configure.ac. * automake.in (macro_define): Don't accept to override an AC_SUBST or Automake variable in a new condition. * tests/cond23.test, tests/cond24.test: New file. * tests/Makefile.am (TESTS): Add cond23.test and cond24.test. Reported by Patrik Weiskirchre.
#!/bin/sh
# Check that conditional redefinitions of AC_SUBST'ed variables are detected.
# Report from Patrik Weiskircher
. $srcdir/defs
set -e
cat >>configure.in <<EOF
AC_SUBST([foo], [bar])
AM_CONDITIONAL([COND], [true])
AC_OUTPUT
EOF
cat >Makefile.am <<EOF
if COND
foo = baz
endif
EOF
$ACLOCAL
$AUTOMAKE 2>stderr && exit 1
grep 'foo was already defined' stderr