special GCC flags only for GCC
Signed-off-by: Linus Walleij <triad@df.lth.se>
diff --git a/configure.ac b/configure.ac
index 2803614..d53df3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,7 +160,11 @@
AC_SYS_LARGEFILE
# Stick in "-Werror" if you want to be more aggressive.
# (No need to use AC_SUBST on this default substituted environment variable.)
-CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
+# Only add these additional CFLAGS if we are using GCC. Other C compilers may
+# not support them.
+if test x"$GCC" == "xyes" ; then
+ CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
+fi
# Output files