From: short <> Date: Sun, 25 Nov 2001 22:32:38 +0000 (+0000) Subject: Fixed "-g -Wall" as it doesn't need to be supported on all compilers. X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=54fb956d6a69946f7b75b6980a67384305062879 Fixed "-g -Wall" as it doesn't need to be supported on all compilers. Provided "-ggdb3" for better debugging info when GCC is found. --- diff --git a/configure.in b/configure.in index c3ab23c..ded8f4b 100644 --- a/configure.in +++ b/configure.in @@ -32,7 +32,9 @@ test x"$prefix" = xNONE && prefix="$ac_default_prefix" AC_ARG_ENABLE(debug, [ --enable-debug compile with debug code], - [ CFLAGS="-g -Wall" + [ if test "x$GCC" = "xyes"; then + CFLAGS="-ggdb3 -Wall" + fi AC_DEFINE(DEBUG) debug="yes" ], [ debug="no" ]