Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: build error under mac os x (PR#894)
Home

[Freeciv-Dev] Re: build error under mac os x (PR#894)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Brian Olson <locke@xxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: build error under mac os x (PR#894)
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Sat, 18 Aug 2001 05:08:43 +0200

On Fri, 17 Aug 2001, locke@xxxxxxx wrote:
>  
> I hear Apple's working on it, but they've got about 4 years of
> GNU-CC patches to merge in from where their CPP branched. I don't
> envy the task. Anyhow, this patch makes my nice fresh 1.12.0 build
> run cleanly.
> 
> --- configure.in.orig   Fri Aug 17 01:54:12 2001
> +++ configure.in        Fri Aug 17 01:58:17 2001
> @@ -186,6 +186,11 @@
>     AC_SUBST(ARFLAGS)
>   fi
> 
> +dnl MacOS X or Darwin specifics
> +if test x`$UNAME -s` = xDarwin ; then
> +  CFLAGS="$CFLAGS -traditional-cpp"
> +fi
> +
>   dnl Windows-specific settings
>   AC_MINGW32
>   if test x"$MINGW32" = "xyes"; then

I'm not sure this is the best way.  After all, it is possible to build
a stock gcc on Darwin or OS X these days, so the check should examine
the compiler, not the platform.  The question is, how do we do this?
Does Apple's gcc define a preprocessor symbol of some sort that we
could test, or do we have to grep the output of gcc -v or something?

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Let's send the Russians defective lifestyle accessories!


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