Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Bob Rossi
On Fri, Dec 01, 2006 at 11:22:19AM -0800, Paul Eggert wrote: > Eric Blake <[EMAIL PROTECTED]> 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 y

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> 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 <[EMAI

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Christopher Faylor on 12/1/2006 7:59 AM: > > I usually just set the appropriate "cache" variable ahead of time: > > ac_cv_dev_zero=yes ./configure Except that mingw doesn't really have /dev/zero, and you should set environment variables

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Christopher Faylor
On Fri, Dec 01, 2006 at 09:22:46AM -0500, Bob Rossi wrote: >On Fri, Dec 01, 2006 at 07:06:06AM -0700, Eric Blake wrote: >> According to Bob Rossi on 12/1/2006 6:57 AM: >> > CPPFLAGS="-mno-cygwin" CFLAGS="-mno-cygwin -O0" >> > ./configure --build=mingw32 --enable-experimental-libtool >> >> EVIL.

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Bob Rossi
On Fri, Dec 01, 2006 at 07:06:06AM -0700, Eric Blake wrote: > According to Bob Rossi on 12/1/2006 6:57 AM: > > CPPFLAGS="-mno-cygwin" CFLAGS="-mno-cygwin -O0" > > ./configure --build=mingw32 --enable-experimental-libtool > > EVIL. --build is for the platform you are BUILDING on (ie. cygwin), NO

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Bob Rossi
> > Well, I downloaded the autoconf sources, but couldn't find the > > AC_CHECK_SIZEOF code. I did find it in /usr/share/autoconf, but when I > > modify it, the system autoconf behavior doesn't change. Any ideas? > > Patch below. Keep replies on the autoconf-patches list. OK, this patch works pe

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Rossi on 12/1/2006 6:57 AM: > CPPFLAGS="-mno-cygwin" CFLAGS="-mno-cygwin -O0" > ./configure --build=mingw32 --enable-experimental-libtool EVIL. --build is for the platform you are BUILDING on (ie. cygwin), NOT the platform you are

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Ralf Wildenhues
* Eric Blake wrote on Fri, Dec 01, 2006 at 02:43:10PM CET: > According to Bob Rossi on 12/1/2006 5:28 AM: > > > > I really think this is the current best solution, that is, to modify > > autoconf to not use cat. Either that, or simply don't put the \n in the > > AC_CHECK_SIZEOF macro. I'm not sure

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Bob Rossi
On Thu, Nov 30, 2006 at 11:57:41PM -0500, Igor Peshansky wrote: > On Thu, 30 Nov 2006, Eric Blake wrote: > > Or experiment with the recent add-on to cygwin's bash, where exporting > > SHELLOPTS with the cygwin-specific shell option igncr set will tell > > subsequent /bin/sh invocations to strip \r

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Rossi on 12/1/2006 5:28 AM: >>> And the fact that you are now telling configure the truth that you are >>> cross-compiling, even though the cross binaries are executable, may be >>> enough for autoconf to try harder for discovering how

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Rossi on 12/1/2006 5:28 AM: > >>> Or experiment with the recent add-on to cygwin's bash, where exporting >>> SHELLOPTS with the cygwin-specific shell option igncr set will tell >>> subsequent /bin/sh invocations to strip \r from comma

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Igor Peshansky
On Fri, 1 Dec 2006, Bob Rossi wrote: > On Thu, Nov 30, 2006 at 11:57:41PM -0500, Igor Peshansky wrote: > > On Thu, 30 Nov 2006, Eric Blake wrote: > > > > > According to Bob Rossi on 11/30/2006 7:32 PM: > > > > > > > AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60. > > > > fpri

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-12-01 Thread Bob Rossi
On Thu, Nov 30, 2006 at 11:57:41PM -0500, Igor Peshansky wrote: > On Thu, 30 Nov 2006, Eric Blake wrote: > > > According to Bob Rossi on 11/30/2006 7:32 PM: > > > > > AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60. > > > fprintf(f, "%d\n", sizeof($1)); > > > which prints "4\r

RE: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Danny Smith
> > Or have autoconf use some other tool that does not do binary > processing > (e.g., awk or tr) instead of cat, which would enable the text mount > solution. > Igor Or make cygwin-pc-i686-gcc -mno-cygwin foo.c mean something subtly but significantly different from mingw32-pc-i686-gcc f

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Eric Blake wrote: > According to Bob Rossi on 11/30/2006 7:32 PM: > > > AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60. > > fprintf(f, "%d\n", sizeof($1)); > > which prints "4\r\n" if the size is 4 and then > > AC_CV_NAME=`cat conftestval`, ... > > now

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Howard Chu
Eric Blake wrote: What is the best way to resolve something like this? Perhaps experiment with a cygwin text mount, so that cygwin cat will ignore the \r. Or experiment with the recent add-on to cygwin's bash, where exporting SHELLOPTS with the cygwin-specific shell option igncr set will

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Rossi on 11/30/2006 7:32 PM: > Hi, > > If I'm using cygwin, with the -mno-cygwin gcc/g++ compiler option, then > mingw is used. Or more precisely, the -mno-cygwin switch in cygwin's gcc is a shorthand for invoking a cross-compiler th