[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnustep-cvs] Commit Update
From: |
Alexander Malmberg |
Subject: |
Re: [Gnustep-cvs] Commit Update |
Date: |
Sat, 10 Jul 2004 15:13:56 +0200 |
Adam Fedor wrote:
> Index: core/make/configure.ac
[snip]
> @@ -64,13 +64,15 @@
> # Check if we are using Apple cc
> # FIXME: It would be nicer if there was a better way to test this.
> #--------------------------------------------------------------------
> -save_CFLAGS="$CFLAGS"
> -CFLAGS="$CFLAGS -faltivec"
> AC_MSG_CHECKING([if we are using the apple compiler])
> -AC_COMPILE_IFELSE([[int main() {return 0;}]], cc_type=apple, cc_type=gnu)
> +gcc_cc_type=`${CC} --print-libgcc-file-name | grep -c "gcc-lib"`
> +if test "$gcc_cc_type" = 1; then
> + cc_type=gnu
> +else
> + cc_type=apple
> +fi
> AC_MSG_RESULT($cc_type)
> AC_SUBST(cc_type)
> -CFLAGS="$save_CFLAGS"
>
> #--------------------------------------------------------------------
> # specific target_os options
This looks wrong. On a completely non-apple system, I get:
$ gcc --version
gcc (GCC) 3.2
[...]
$ gcc --print-libgcc-file-name
/usr/local/gcc-cvs/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc.a
$ gcc.objc --version
gcc.objc (GCC) 3.5.0 20040622 (experimental)
[...]
$ gcc.objc --print-libgcc-file-name
/usr/local/gcc-cvs/lib/gcc/i686-pc-linux-gnu/3.5.0/libgcc.a
so this check will mis-identify gcc 3.5 as an apple compiler.
- Alexander Malmberg
- Re: [Gnustep-cvs] Commit Update,
Alexander Malmberg <=