diff options
author | Linus Walleij <triad@df.lth.se> | 2011-12-13 00:37:08 +0100 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2011-12-13 00:37:08 +0100 |
commit | 5fba333342a336455b4c15c3dddbe226fa536025 (patch) | |
tree | 8794efb71170a35e439bce13a3f5be65058a4552 | |
parent | b708792be4865345a7658d4639ed78f613de724e (diff) | |
download | libmtp-5fba333342a336455b4c15c3dddbe226fa536025.tar.gz |
special GCC flags only for GCC
Signed-off-by: Linus Walleij <triad@df.lth.se>
-rw-r--r-- | configure.ac | 6 |
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 |