changeset 925:373c370887bb

separated debugging log and debug CFLAGS enable debugging log support by default
author nadvornik
date Thu, 24 Jul 2008 20:03:57 +0000
parents 96a1f535ce89
children 978f52f8a79d
files configure.in
diffstat 1 files changed, 22 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Jul 23 22:19:16 2008 +0000
+++ b/configure.in	Thu Jul 24 20:03:57 2008 +0000
@@ -50,19 +50,23 @@
 dnl FIXME: official release convert default to 'no'
 dnl
 
-AC_ARG_ENABLE([debug], [
+AC_ARG_ENABLE([debug-flags], [
 Development options:
-AC_HELP_STRING([--enable-debug], [turn on debugging [default=no]])], [],
+AC_HELP_STRING([--enable-debug-flags], [use compiler flags for debugging [default=no]])], [],
 [
 if test "x${enable_developer}" != "xyes"
 then
-  enable_debug="no"
+  enable_debug_flags="no"
 else
-  enable_debug="yes"
+  enable_debug_flags="yes"
 fi
 ])
 
-if test "x${enable_debug}" != "xno"
+AC_ARG_ENABLE([debug-log], [
+Development options:
+AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])], [], [enable_debug_log="yes"])
+
+if test "x${enable_debug_flags}" != "xno"
 then
   CXXFLAGS="${CXXFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
   CFLAGS="${CFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
@@ -71,13 +75,20 @@
   CXXFLAGS="${CXXFLAGS} -Wall"
   CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
   fi
-  AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging support])
-  __IS_DEBUG=yes
+  __IS_DEBUG_FLAGS=yes
 else
-  __IS_DEBUG=no
+  __IS_DEBUG_FLAGS=no
 fi
 
-AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
+if test "x${enable_debug_log}" != "xno"
+then
+  AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging messages support])
+  __IS_DEBUG_LOG=yes
+else
+  __IS_DEBUG_LOG=no
+fi
+
+AM_CONDITIONAL(DEBUG, test x$enable_debug_flags = xyes)
 
 AC_ARG_ENABLE(deprecated, [
 AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [], 
@@ -373,7 +384,8 @@
 
 Settings:
   Developer:     $__IS_DEVELOPER
-  Debug:         $__IS_DEBUG
+  Debug flags:   $__IS_DEBUG_FLAGS
+  Debug log:     $__IS_DEBUG_LOG
   Deprecated:    $__IS_DEPRECATED
 
 Support: