]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): Don't assume LF is 012,
authoroliva <oliva>
Wed, 15 Sep 1999 02:49:24 +0000 (02:49 +0000)
committeroliva <oliva>
Wed, 15 Sep 1999 02:49:24 +0000 (02:49 +0000)
use `echo` followed by a non-blank, within quotes.
* autoheader.sh (syms): Likewise.
* configure: Rebuilt.
Reported by Christian Krone <krischan@sql.de>

ChangeLog
acgeneral.m4
autoheader.sh
configure
lib/autoconf/general.m4

index 9857aaf64a33b1d15838f226102be0b4ac861c49..0697e2140ee326827c194d3c835c546f2044e092 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
+       * acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): Don't assume LF is \012,
+       use `echo` followed by a non-blank, within quotes.
+       * autoheader.sh (syms): Likewise.
+       * configure: Rebuilt.
+       Reported by Christian Krone <krischan@sql.de>
+
        * acgeneral.m4 (AC_INCLUDE): New macro.
        * autoconf.texi: Document it.
 
index 3d3b1a43147efb88f1e2812361fb20d1479d76d0..1ba3047bee821eb245f7dc6e21044217a72581df 100644 (file)
@@ -2689,7 +2689,14 @@ s%\]%\\&%g
 s%\$%$$%g
 changequote([, ])dnl
 EOF
-DEFS=`sed -f $conftest.defs confdefs.h | tr '\012' ' '`
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT="`echo; echo .`"
+DEFS=`sed -f $conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f $conftest.defs
 ])
 
index a0810145358abfc228080e909deb67b3657d7955..8b0521b867b669b6d89ea7c2451f88c4906b4ab3 100644 (file)
@@ -213,10 +213,16 @@ $syms
 EOF
    fgrep -f $fgrep_tmp
    rm -f $fgrep_tmp) |
-  tr @ \\012
+  tr @. "`echo`."
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
 fi
 
-echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
+echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do
   test -z "$ctype" && continue
   sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`"
   echo "
index 5e9b367350c6a3e33174de789db25235b6e1c7bd..3125c4ab7ee8765ee804b6324ed8f5c53202233f 100755 (executable)
--- a/configure
+++ b/configure
@@ -858,7 +858,14 @@ s%\[%\\&%g
 s%\]%\\&%g
 s%\$%$$%g
 EOF
-DEFS=`sed -f $conftest.defs confdefs.h | tr '\012' ' '`
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT="`echo; echo .`"
+DEFS=`sed -f $conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f $conftest.defs
 
 
index 3d3b1a43147efb88f1e2812361fb20d1479d76d0..1ba3047bee821eb245f7dc6e21044217a72581df 100644 (file)
@@ -2689,7 +2689,14 @@ s%\]%\\&%g
 s%\$%$$%g
 changequote([, ])dnl
 EOF
-DEFS=`sed -f $conftest.defs confdefs.h | tr '\012' ' '`
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT="`echo; echo .`"
+DEFS=`sed -f $conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f $conftest.defs
 ])