From: Paul Eggert Date: Fri, 1 Dec 2006 19:21:03 +0000 (+0000) Subject: * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in X-Git-Tag: AUTOCONF-2.61a~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78dc34d5ebd40d3daea528e43dc356169910f355;p=thirdparty%2Fautoconf.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 8a8c9cd5..7d2f9768 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-01 Eric Blake + + * 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 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index d72a1bd7..38586f96 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -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; ])])