aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-21 05:52:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-21 05:52:05 +0000
commitc4e9ef199e90604458757f572850c8fb9bfdea2b (patch)
tree9e24244691e3d213b86948bf0bd8db6cd9baad2a
parent9e612b5550a0b17ffd3f595cf9e2f5a62d3a82e1 (diff)
--enable-debug now checks if gcc is used before it sets all those gcc-
specific options. This should make this option work on more platforms with other compilers.
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 7ee35da66..e40b0e055 100644
--- a/configure.in
+++ b/configure.in
@@ -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)