--enable-debug now checks if gcc is used before it sets all those gcc-
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Oct 2002 05:52:05 +0000 (05:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Oct 2002 05:52:05 +0000 (05:52 +0000)
specific options. This should make this option work on more platforms with
other compilers.

configure.in

index 7ee35da660838f34fbb4912cb8788e4c3e93726c..e40b0e055a7397b34988a11346e199672a429d6d 100644 (file)
@@ -743,7 +743,10 @@ AC_ARG_ENABLE(debug,
   *)   AC_MSG_RESULT(yes)
 
     CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
-    CFLAGS="-W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs -g" 
+    CFLAGS="$CFLAGS -g" 
+    if test "$GCC" = "yes"; then
+       CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs"
+    fi
        ;;
   esac ],
        AC_MSG_RESULT(no)