conditionalize gcc-specific flags
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 5 Jun 2001 22:36:45 +0000 (22:36 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 5 Jun 2001 22:36:45 +0000 (22:36 +0000)
configure.in

index 190686097daf4f2bc1b77aec15e6318aec9da3cf..bef1b8e2e17f1dff5273011d82a6f62eb1566a96 100644 (file)
@@ -53,9 +53,12 @@ fi
 
 CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
 if test x$debug = xtrue; then
-  CFLAGS="$CFLAGS  -g -O0 -DDEBUG"
+       CFLAGS="$CFLAGS -g -O0 -DDEBUG"
 else
-  CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -DNDEBUG"
+       CFLAGS="$CFLAGS -O3 -DNDEBUG"
+               if test x$GCC = xyes; then
+                       CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions"
+               fi
 fi
 
 AC_OUTPUT(     Makefile        \