autoconf
[Top][All Lists]
Advanced

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

Re: updated win32 macro


From: Robert Collins
Subject: Re: updated win32 macro
Date: Fri, 16 Mar 2001 09:19:42 +1100

----- Original Message -----
From: "Christopher Faylor" <address@hidden>
To: <address@hidden>; "Earnie Boyd" <address@hidden>
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




reply via email to

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