This patch is still lacking in the current Automake.
Akim
This patch seems to work for me to solve the problem of splitting the
original AC_OUTPUT(...) into AC_CONFIG_FILES(...) and AC_OUTPUT.
It applies just as easily to automake.in .
--- /usr/local/gnu/bin/automake Mon Dec 20 00:09:39 1999
+++ automake Sun Jan 23 17:19:31 2000
@@ -4397,6 +4397,12 @@
$in_ac_output = 1;
$ac_output_line = $.;
}
+ # Process the AC_CONFIG_FILES macro.
+ if (! $in_ac_output && s/AC_CONFIG_FILES\s*\(\[?//)
+ {
+ $in_ac_output = 1;
+ $ac_output_line = $.;
+ }
if ($in_ac_output)
{
local ($closing) = 0;