This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: updated win32 macro



----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin-apps@cygwin.com>; "Earnie Boyd" <autoconf@gnu.org>
Sent: Friday, March 16, 2001 2:51 AM
Subject: Re: updated win32 macro


> On Fri, Mar 16, 2001 at 12:54:01AM +1100, Robert Collins wrote:
> >
> >Not true if you want to support users with cygwin gcc 2.95.2-6.
That's
> >what I didn't like about the code Chris was putting in his
configure.in
> >and prompted me to put into practice what I'd been thinking about.
>
> I'm not sure what you're referring to but anything I posted would
> accomodate older or newer compilers.
>
> I am very happy to see an autoconf option for this, though.  That's
> what I was hoping for.
>
> cgf
>

this is what I was referring to:
==
case "${host}" in
*-*-cygwin*)
        touch ac$$.c
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
            case "$EXTRA_CFLAGS" in
                *-mwin32*) ;;
                *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
            esac
        fi
        rm -f ac$$.o ac$$.c
        ;;
esac
AC_SUBST(EXTRA_CFLAGS)
==

and I suspect your goal here is to just force it on IFF the compiler
doesn't produce an error when you try the command?

In which case yes, it would have worked.. Gotta start being awake when I
read mail in the morning :]

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]