the first argument of AC_CONFIG_HEADERS.
Reported by Lars J. Aas.
+2001-03-27 Akim Demaille <akim@epita.fr>
+
+ * autoheader.sh (config_h): Be robust to new lines when extracting
+ the first argument of AC_CONFIG_HEADERS.
+ Reported by Lars J. Aas.
+
2001-03-27 Tim Van Holder <tim.van.holder@pandora.be>
* doc/autoconf.texi: Minor tweaks.
# We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
# Support "outfile[:infile]", defaulting infile="outfile.in".
case "$config_h" in
"") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2
# We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
# Support "outfile[:infile]", defaulting infile="outfile.in".
case "$config_h" in
"") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2
# We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
# Support "outfile[:infile]", defaulting infile="outfile.in".
case "$config_h" in
"") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2