]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Dec 2006 19:21:03 +0000 (19:21 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Dec 2006 19:21:03 +0000 (19:21 +0000)
cross-compiling from cygwin to mingw.
Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
aclang.m4, which was mistakenly removed in the 2001-09-17 patch
to lib/autoconf/c.m4.

ChangeLog
lib/autoconf/c.m4

index 8a8c9cd5b7170f6acfc6310f3e66eebbf186007e..7d2f9768941d96961f1c5cfb341a5a6d4ee5e91d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-12-01  Eric Blake  <ebb9@byu.net>
+
+       * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
+       cross-compiling from cygwin to mingw.
+       Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
+       aclang.m4, which was mistakenly removed in the 2001-09-17 patch
+       to lib/autoconf/c.m4.
+
 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
index d72a1bd7c26bb2ae3bd3a89fe4e95f941df87129..38586f96d2f5b307e19e2d35e0ad147bd18a2a99 100644 (file)
@@ -284,15 +284,17 @@ static unsigned long int ulongval () { return $2; }
       long int i = longval ();
       if (i != ($2))
        return 1;
-      fprintf (f, "%ld\n", i);
+      fprintf (f, "%ld", i);
     }
   else
     {
       unsigned long int i = ulongval ();
       if (i != ($2))
        return 1;
-      fprintf (f, "%lu\n", i);
+      fprintf (f, "%lu", i);
     }
+  /* Do not output a trailing newline, as this causes \r\n confusion
+     on some platforms.  */
   return ferror (f) || fclose (f) != 0;
 ])])