autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where did the Cygwin and Mingw checks go?


From: Paul Berrevoets
Subject: Re: Where did the Cygwin and Mingw checks go?
Date: Wed, 22 Nov 2000 15:50:58 -0500

Mo DeJong wrote:

> On Mon, 20 Nov 2000, Earnie Boyd wrote:
>
> > --- Mo DeJong <address@hidden> wrote:
> > >
> > > No, it depends in what your compiler outputs.
> > >
> > > % cat tmp.c
> > > int i;
> > >
> > > % i386-mingw32msvc-gcc -c tmp.c
> > >
> > > % ls tmp.*
> > > tmp.c  tmp.o
> > >
> > > % ./i586-cygwin32-gcc -c tmp.c
> > >
> > > % ls tmp.*
> > > tmp.c  tmp.o
> > >
> > > You would only get a .obj file if you were using VC++.
> > >
> >
> > Correct!.  And for VC++ since you don't have uname you would have to specify
> > the values for the variables.
>
> Why would this depend on uname? I was under the impression that
> autoconf would just try to compile conftest.c and then find
> the obj extension by looking for files named conftest.*,
> filtering out conftest.c and then using whatever was left
> (either conftest.o or conftest.obj). That might have changed,
> but it seems to be the way I remember it.

This is ok for AC_OBJEXT, but for AC_EXEEXT please take into consideration that 
on
UWIN (which uses a cc wrapper for MSVC), the compiler also generates a .pdb 
file,
which if you don't filter it out along with .obj, would be used as the extension
for executables.
--
Paul Berrevoets




reply via email to

[Prev in Thread] Current Thread [Next in Thread]