changeset 882:9144ba0845e7

Added the -W flag to the CFLAGS variable (compilation)
author Jorge Arellano Cid <jcid@dillo.org>
date Sat, 31 Jan 2009 17:19:55 -0300
parents 8568a970ae65
children ed206c1598ba
files configure.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Jan 31 17:01:54 2009 -0300
+++ b/configure.in	Sat Jan 31 17:19:55 2009 -0300
@@ -455,6 +455,9 @@
   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"