[epiphany/wip/autocrap: 14/37] Use AX_CHECK_ENABLE_DEBUG instead of GNOME_DEBUG_CHECK



commit c10488db3416e9afed2564b1a61f240b0414b6f5
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jun 29 16:42:38 2015 -0500

    Use AX_CHECK_ENABLE_DEBUG instead of GNOME_DEBUG_CHECK
    
    Behavior change: debug mode is now enabled by default for builds from
    git (but not for tarball builds). Now I don't need to pass --enable-debug
    in my module_autogenargs in jhbuildrc anymore, yay!
    
    https://wiki.gnome.org/Projects/GnomeCommon/Migration

 configure.ac            |    2 +-
 lib/ephy-debug.c        |    2 +-
 lib/ephy-debug.h        |    2 +-
 lib/ephy-file-helpers.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fc90c65..9423793 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
 
 GLIB_GSETTINGS
 
-GNOME_DEBUG_CHECK
+AX_CHECK_ENABLE_DEBUG([yes])
 GNOME_COMPILE_WARNINGS([maximum])
 
 AX_CODE_COVERAGE
diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c
index 0eba70f..0677192 100644
--- a/lib/ephy-debug.c
+++ b/lib/ephy-debug.c
@@ -46,7 +46,7 @@ static char **ephy_profile_modules;
 static gboolean ephy_profile_all_modules;
 #endif /* !DISABLE_PROFILING */
 
-#ifdef GNOME_ENABLE_DEBUG
+#ifndef NDEBUG
 
 static char **
 build_modules (const char *name,
diff --git a/lib/ephy-debug.h b/lib/ephy-debug.h
index 97273cb..a9b2529 100644
--- a/lib/ephy-debug.h
+++ b/lib/ephy-debug.h
@@ -28,7 +28,7 @@
 
 G_BEGIN_DECLS
 
-#ifndef GNOME_ENABLE_DEBUG
+#ifdef NDEBUG
 #define DISABLE_LOGGING
 #define DISABLE_PROFILING
 #endif
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 659ed8a..9e7ab29 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -230,7 +230,7 @@ ephy_file (const char *filename)
 
        static const char * const paths[] =
        {
-#ifdef GNOME_ENABLE_DEBUG
+#ifndef NDEBUG
                TOP_SRC_DATADIR "/",
                TOP_SRC_DATADIR "/icons/",
                TOP_SRC_DATADIR "/pages/",


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