X-Spam-Check-By: sourceware.org To: autoconf-patches AT gnu DOT org Cc: cygwin AT cygwin DOT com Subject: Re: cygwin -mno-cygwin AC_CHECK_SIZEOF References: <20061201023212 DOT GH19404 AT cox DOT net> <456FA8DD DOT 3030409 AT byu DOT net> <20061201122805 DOT GK19404 AT cox DOT net> <4570316E DOT 5000109 AT byu DOT net> From: Paul Eggert Date: Fri, 01 Dec 2006 11:22:19 -0800 In-Reply-To: <4570316E.5000109@byu.net> (Eric Blake's message of "Fri, 01 Dec 2006 06:43:10 -0700") Message-ID: <87wt5bpgk4.fsf@penguin.cs.ucla.edu> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Eric Blake writes: > Patch below. Keep replies on the autoconf-patches list. Thanks. In retrospect it was a mistake to append the trailing newline, I guess. I installed the following: it differs from your patch only in adding more commentary. 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. --- lib/autoconf/c.m4 28 Nov 2006 00:26:45 -0000 1.240 +++ lib/autoconf/c.m4 1 Dec 2006 19:20:43 -0000 @@ -284,15 +284,17 @@ static unsigned long int ulongval () { r 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; ])]) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/