apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Bowsher" <m...@ukf.net>
Subject Re: Fwd: clean OSX build -- compile error.
Date Fri, 17 Sep 2004 19:55:12 GMT
Joe Orton wrote:
> Portable software will not use -std=c89 by default, because it's asking
> the compiler to be less lenient than normal.  The fact that this
> eventually found a bug in a system header on some platform is not really
> very surprising.  Don't use -std=c89 if you don't want to risk breaking
> stuff.

Agree.

> SVN only seems to enable this for --enable-maintainer-mode with:
>
>        case "$host" in
>        *freebsd*|*linux*)
>          CFLAGS="$CFLAGS -std=c89"
>          ;;
>        esac
>
> so I'm not sure why Ben is getting it on Mac OS anyway.

The above code snippet is old.

Now we do an AC_TRY_COMPILE to find out if -std=c89 works.

We will be fixing this by #including <apr_portable.h> in our AC_TRY_COMPILE 
call.

Max.


Mime
View raw message