Commit c4e9ef19 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

--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.
parent 9e612b55
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)