aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-31 17:19:55 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-31 17:19:55 -0300
commitca2f9e3d6d9a969e83f826f88e68f353134d5916 (patch)
treea72db90d4b510aff6a2f5ef4ba74e2dc92b7dd5b /configure.in
parent14b6350f275bd7f8094b4e9b7bf3ffc2bb44fff4 (diff)
Added the -W flag to the CFLAGS variable (compilation)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8e383ba5..19979626 100644
--- a/configure.in
+++ b/configure.in
@@ -455,6 +455,9 @@ if eval "test x$GCC = xyes"; then
if test "`echo $CFLAGS | grep '\-Wall' 2> /dev/null`" = ""; then
CFLAGS="$CFLAGS -Wall"
fi
+ if test "`echo $CFLAGS | grep -e '-W ' -e '-W$' ' 2> /dev/null`" = ""; then
+ CFLAGS="$CFLAGS -W"
+ fi
if test "`echo $CFLAGS | grep '\-W[^a]' 2> /dev/null`" = ""; then
if test "`$CC -v 2>&1 | grep 'version 3'`" != ""; then
CFLAGS="$CFLAGS -W -Wno-unused-parameter"