Index: configure.in =================================================================== RCS file: /sfhome/cvs/dillo/dillo/configure.in,v retrieving revision 1.56 diff -u -r1.56 configure.in --- configure.in 21 Nov 2003 21:08:50 -0000 1.56 +++ configure.in 25 Nov 2003 16:06:09 -0000 @@ -35,7 +35,7 @@ dnl (this is somewhat a religious problem) dnl -------------------------------------- dnl -if test ! "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include'`" ; then +if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then CPPFLAGS="$CPPFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" fi @@ -200,7 +200,9 @@ CFLAGS="$CFLAGS -Wall" fi if test "`echo $CFLAGS | grep '\-W[^a]' 2> /dev/null`" = ""; then - CFLAGS="$CFLAGS -W -Wno-unused-parameter" + if test "`$CC -v 2>&1 | grep 'version 2'`" = ""; then + CFLAGS="$CFLAGS -W -Wno-unused-parameter" + fi fi if test "`echo $CFLAGS | grep '\-Waggregate-return' 2> /dev/null`" = ""; then CFLAGS="$CFLAGS -Waggregate-return"