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
This commit is contained in:
Eric Wong 2006-06-05 23:24:54 +00:00
parent 10cf5add40
commit 96a3939ed0

View File

@ -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=""