+ FLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
+ fi
+
+ # Check what compiler we are using
+ AC_MSG_CHECKING([for GNU CC])
+ if test "$GCC" = "yes"; then
+ AC_MSG_RESULT([yes])
+ if test "$DEBUG" = "yes"; then
+ FLAGS="$FLAGS -O0 -ggdb -fno-inline -Wwrite-strings"
+ FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
+ FLAGS="$FLAGS -Wbad-function-cast -Wpointer-arith"
+ FLAGS="$FLAGS -Wno-write-strings"
+ # for Python.h
+ #FLAGS="$FLAGS -Wno-long-long"
+ fi
+ if test "$SUPERWARN" = "yes"; then
+ # glib can't handle -Wcast-qual
+ FLAGS="$FLAGS -Wcast-qual -Wextra"
+ fi
+ if test "$STRICT" = "yes"; then
+ FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE"
+ fi
+ if test "$PROF" = "yes"; then
+ FLAGS="$FLAGS -pg -fno-inline"
+ fi
+ if test "$PROFLC" = "yes"; then
+ L="$L -lc_p -lm_p"
+ fi
+ FLAGS="$FLAGS -fno-strict-aliasing"