aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7ccfeb2f1..adf35559a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,7 +25,10 @@ AC_PROG_MAKE_SET
AM_CONFIG_HEADER(config.h)
-MPD_CFLAGS="-Wall"
+MPD_CFLAGS=""
+if test x$CC = xgcc; then
+ MPD_CFLAGS="-Wall"
+fi
MPD_LIBS=""
AC_ARG_ENABLE(audio,[ --disable-audio disable support for playing],,enable_ao=yes)