diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 05:52:05 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 05:52:05 +0000 |
commit | c4e9ef199e90604458757f572850c8fb9bfdea2b (patch) | |
tree | 9e24244691e3d213b86948bf0bd8db6cd9baad2a | |
parent | 9e612b5550a0b17ffd3f595cf9e2f5a62d3a82e1 (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.in | 5 |
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) |