--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.
This commit is contained in:
Daniel Stenberg 2002-10-21 05:52:05 +00:00
Родитель 9e612b5550
Коммит c4e9ef199e
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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)