Use $GCC instead of undocumented autoconf internal $ac_cv_c_compiler_gnu

This commit is contained in:
Ralf Corsépius 2007-08-27 16:16:12 +02:00
parent 903caf14d0
commit d702278169
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ AC_PROG_YACC
AS=${AS-as}
AC_SUBST(AS)
if test "$ac_cv_c_compiler_gnu" = yes; then
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
cflags_to_try="-fno-strict-aliasing"
AC_MSG_CHECKING([supported compiler flags])