aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2011-12-13 00:37:08 +0100
committerLinus Walleij <triad@df.lth.se>2011-12-13 00:37:08 +0100
commit5fba333342a336455b4c15c3dddbe226fa536025 (patch)
tree8794efb71170a35e439bce13a3f5be65058a4552
parentb708792be4865345a7658d4639ed78f613de724e (diff)
downloadlibmtp-5fba333342a336455b4c15c3dddbe226fa536025.tar.gz
special GCC flags only for GCC
Signed-off-by: Linus Walleij <triad@df.lth.se>
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2803614..d53df3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,7 +160,11 @@ AC_CHECK_FUNCS(basename memset select strdup strerror strndup strrchr strtoul us
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