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.
parent 46aa9646
......@@ -68,24 +68,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
......@@ -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}
......
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment