-options --enable-debug
authorshort <>
Sun, 23 Feb 2003 12:32:43 +0000 (12:32 +0000)
committershort <>
Sun, 23 Feb 2003 12:32:43 +0000 (12:32 +0000)
 - We want to compile in all the debug messages always anyway
 - "-ggdb3" is now moved to --enable-maintainer-mode

configure.in

index 7b53255..f89188d 100644 (file)
@@ -40,7 +40,7 @@ dnl Do not discard 'CFLAGS' settings as they may have been passed us by rpmbuild
 dnl Define MAINTAINER_MODE in config.h.
 if test "$USE_MAINTAINER_MODE" = "yes";then
        AC_DEFINE(MAINTAINER_MODE,,[Turn even some software behaviour according to MAINTAINER_MODE.])
-       CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wsign-compare"  ## FIXME: fix all sources: -Wsign-compare
+       CFLAGS="$CFLAGS -ggdb3 -Wall -Wstrict-prototypes -Wsign-compare"  ## FIXME: fix all sources: -Wsign-compare
        fi
 dnl Some Makefiles use additional tests etc.
 AM_CONDITIONAL(MAINTAINER_MODE,[test "$USE_MAINTAINER_MODE" = "yes"])
@@ -48,12 +48,6 @@ AM_CONDITIONAL(MAINTAINER_MODE,[test "$USE_MAINTAINER_MODE" = "yes"])
 dnl Permit 'if IS_FALSE' for Makefile.am-s; symbol 'FALSE' forbidden by automake
 AM_CONDITIONAL(IS_FALSE,false)
 
-AC_ARG_ENABLE(debug,[  --enable-debug=[no/yes] turn on debugging messages [default=yes]],,enable_debug=yes)
-
-if test "$enable_debug" != "no";then
-       CFLAGS="$CFLAGS -ggdb3"
-       fi
-
 dnl Separate 'acconfig.h' is no longer recommended by autoconf
 AH_TOP([
 #ifndef _CAPTIVE_CONFIG_H