bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_SUBST() confuses config.status creation


From: Andreas Schwab
Subject: AC_SUBST() confuses config.status creation
Date: Sun, 20 May 2007 10:07:25 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

Try this with autoconf >= 2.61a:

$ cat > configure.ac <<EOF
AC_INIT
AC_SUBST()
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
EOF
$ touch Makefile.in
$ autoconf
$ ./configure
configure: creating ./config.status
configure: error: could not make ./config.status

The problem is that $ac_subst_vars contains an empty line and how it is
processed for appending $ac_delim:

  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'

An empty line is transformed into $$ac_delim (literally).

While AC_SUBST() is clearly bogus this should probably be handled more
gracefully, perhaps by rejecting it outright.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]