aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-06-05 23:24:54 +0000
committerEric Wong <normalperson@yhbt.net>2006-06-05 23:24:54 +0000
commit96a3939ed094684770a42f26482a7f6191036b2a (patch)
tree5f5eb826f234b613f5bf43d6af47f7f14d0ff58f /configure.ac
parent10cf5add40533f33930fba45d0fc8ccb5bc28dd1 (diff)
downloadmpd-96a3939ed094684770a42f26482a7f6191036b2a.tar.gz
mpd-96a3939ed094684770a42f26482a7f6191036b2a.tar.xz
mpd-96a3939ed094684770a42f26482a7f6191036b2a.zip
configure.ac: set -Wall if we detect gcc-$VERSION or gcc$VERSION
git-svn-id: https://svn.musicpd.org/mpd/trunk@4252 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6222f3abb..8f0ead775 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,8 @@ AC_PROG_MAKE_SET
AM_CONFIG_HEADER(config.h)
MPD_CFLAGS=""
-if test x$CC = xgcc; then
+if echo "$CC" | grep gcc >/dev/null
+then
MPD_CFLAGS="-Wall"
fi
MPD_LIBS=""