[gnome-menus] configure: Have better debugging on by default



commit 1e12d0f9f309c977702dad1363e56cd9989b7375
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Feb 15 20:29:18 2013 -0500

    configure: Have better debugging on by default

 configure.ac |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ddcb9ab..991f7a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,20 +54,17 @@ if test "x$enable_deprecation_flags" = "xyes"; then
    AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi
 
-dnl --enable-debug=(yes|minimum|no)
 AC_ARG_ENABLE(debug,
-              [AC_HELP_STRING([--enable-debug],
-                              [turn on debugging @<:@default=minimum@:>@])],,
-              [enable_debug=minimum])
-if test "$enable_debug" = "yes"; then
+              [AS_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
+                              [turn on debugging @<:@default=debug_default@:>@])],,
+              [enable_debug=debug_default])
+if test "x$enable_debug" = "xyes"; then
   DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
 else
   if test "x$enable_debug" = "xno"; then
-    DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
+    DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
   else
-    DEBUG_CFLAGS=""
-    # make sure we have the right string for the configure summary
-    enable_debug="minimum"
+    DEBUG_CFLAGS="-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
   fi
 fi
 AC_SUBST(DEBUG_CFLAGS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]