Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <00a801c0a817$136e6510$0200a8c0@lifelesswks> From: "Robert Collins" To: Cc: References: <20010307161214 DOT A20717 AT redhat DOT com><3AA74730 DOT D4C575FC AT ece DOT gatech DOT edu> <006d01c0a7c5$dd3b97c0$0200a8c0 AT lifelesswks> <20010308115356 DOT A3813 AT redhat DOT com> Subject: Re: Detecting the need for -mwin32 in newer cygwin gcc's Date: Fri, 9 Mar 2001 08:31:01 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 08 Mar 2001 21:21:14.0703 (UTC) FILETIME=[B4C605F0:01C0A815] ----- Original Message ----- From: "Christopher Faylor" > On Thu, Mar 08, 2001 at 10:49:33PM +1100, Robert Collins wrote: > >cygwin, win32 > >cygwin, nowin32 > >no cygwin (aka mingw32), win32 > >no cygwin, nowin32 > > -mno-cygwin and -mnowin32 is not an allowed combination. Good - that makes my job, as a package maintainer simpler. I don't know anyone whos tried to build squid on mingw32, but I don't want to make their life harder by mistake!. > Please, let's not complicate this. The only thing required is a check > for -mwin32. > > I'm not sure what all of the fuss is about. autoconf is a method for > determining system configurations and oddities. If a package maintainer > wants to write a configure.in which automatically detects when it is > running on Windows, using a cygwin version of gcc to build things, I > don't see why he shouldn't have a macro to accomodate the oddities of > cygwin gcc. I agree. The point I'm making is that rather than declaring "This program uses MWIN32 on cygwin" which is very platform specific A macro that returns "use this for your CC" to get system Win32 headers if they are available and a converse one that returns "use this for your CC" to avoid any system win32 headers if they are included by default would be more flexible. For one thing it would allow the gcc default to change in the future and not confuse programs that are ported with the appropriate macro already in place. I think we're getting offtopic from an autoconf point of view now - Alexandre was quite clear on the recommended option - make the macro, put it in the archive (and announce it's presence). Once it's been used a few times and is stable, they'll consider putting it in the main distro. Rob -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple