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, [EMAIL PROTECTED] 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."
