Fix a bug in the previous patch: it assumed that echo '...\...' had

the BSD interpretation rather than the SysV interpretation.  Use
a short here-document instead.
This commit is contained in:
Paul Eggert 2006-05-23 23:30:57 +00:00
parent 25387a6c8b
commit 68ad5f2fcb

View File

@ -680,12 +680,14 @@ while :
do
# Write a here document:
dnl Quote, for the `[ ]' and `define'.
echo [' # First, check the format of the line:
cat >"$tmp/defines.sed" <<\CEOF
/^[ ]*#[ ]*undef[ ][ ]*'"$ac_word_re"'[ ]*$/b def
/^[ ]*#[ ]*define[ ][ ]*'"$ac_word_re"'[( ]/b def
[ cat >>$CONFIG_STATUS <<_ACEOF
# First, check the format of the line:
cat >"\$tmp/defines.sed" <<\\CEOF
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
b
:def'] >>$CONFIG_STATUS
:def
_ACEOF]
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
echo 'CEOF
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS