aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 9e0ee6b08..28ec9a53a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,10 +26,11 @@ AC_PROG_MAKE_SET
AM_CONFIG_HEADER(config.h)
MPD_CFLAGS=""
-if echo "$CC" | grep gcc >/dev/null
-then
+case "$CC" in
+*gcc*)
MPD_CFLAGS="-Wall"
-fi
+ ;;
+esac
MPD_LIBS=""
AC_ARG_ENABLE(ao,[ --enable-ao enable support for libao (default: disable)],[enable_ao=$enableval],[enable_ao=no])