[nautilus] configure: enable debug always



commit 7dfbb8b73a584114dfee7d62fbcc6c8e0f208ed8
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Feb 26 17:22:01 2015 +0100

    configure: enable debug always
    
    We can control the debug output with G_MESSAGES_DEBUG anyway,
    and is off by default.
    Probably we were doing this to avoid the compilation and performance
    impact of the debug stuff, but that shouldn't be a real problem these
    days.
    This also allows to the final user run the application with debug
    without the need of building the application.

 configure.ac                         |   19 -------------------
 libnautilus-private/nautilus-debug.c |    3 ---
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1a14815..4eb5f8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,24 +69,6 @@ dnl ==========================================================================
 GTK_DOC_CHECK([1.4])
 
 dnl ==========================================================================
-
-AC_ARG_ENABLE(debug,
-  AS_HELP_STRING([--disable-debug],[Disable debugging code]),
-  [
-    case "${enableval}" in
-      yes|no) enable_debug="${enableval}" ;;
-      *)   AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
-    esac
-  ],
-  [enable_debug=yes])
-
-if test "$enable_debug" = yes; then
-  AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
-else
-  enable_debug=no
-fi
-
-dnl ==========================================================================
 dnl Enable Profiling
 
 AC_ARG_ENABLE(profiling,
@@ -352,7 +334,6 @@ nautilus-$VERSION:
        nautilus-sendto ext:    $enable_nst_extension
        Tracker support:        $enable_tracker
 
-        debugging support:      ${enable_debug}
         profiling support:      ${enable_profiling}
        nautilus-extension documentation: ${enable_gtk_doc}
        nautilus-extension introspection: ${found_introspection}
diff --git a/libnautilus-private/nautilus-debug.c b/libnautilus-private/nautilus-debug.c
index c33168e..55f5991 100644
--- a/libnautilus-private/nautilus-debug.c
+++ b/libnautilus-private/nautilus-debug.c
@@ -30,8 +30,6 @@
 
 #include "nautilus-file.h"
 
-#ifdef ENABLE_DEBUG
-
 static DebugFlags flags = 0;
 static gboolean initialized = FALSE;
 
@@ -163,4 +161,3 @@ nautilus_debug_files (DebugFlags flag,
   va_end (args);
 }
 
-#endif /* ENABLE_DEBUG */


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