From c4e9ef199e90604458757f572850c8fb9bfdea2b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 21 Oct 2002 05:52:05 +0000 Subject: --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. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3