]> Pileus Git - ~andy/gtk/commitdiff
build: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum
authorBenjamin Otte <otte@redhat.com>
Tue, 1 May 2012 23:46:02 +0000 (01:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 2 May 2012 00:00:11 +0000 (02:00 +0200)
With that flag set, we get GDK_DEBUG and GTK_DEBUG support. And those
provide useful features we want when debugging.

configure.ac
docs/reference/gtk/running.sgml

index ca7a323e914915397b790b739b068c89d88814d9..a87fb3f2b59765cac37acf763cbe9ac6797bfec6 100644 (file)
@@ -422,7 +422,7 @@ else
   if test "x$enable_debug" = "xno"; then
     GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
   else
-    GTK_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
+    GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
   fi
 fi
 
index 147637e42ddff65f5a9be65205bb4edad7d4294a..fe91aead749ac747cd00f48ae8932ff0c0a137af 100644 (file)
@@ -58,8 +58,8 @@ warning that occurs.
 <para>
 A list of <link linkend="GTK-Debug-Options">debug options</link>
 to turn on in addition to those specified in the <envar>GTK_DEBUG</envar>
-environment variable. This option is only available if GTK+ has been
-configured with <option>--enable-debug=yes</option>.
+environment variable. This option is not available if GTK+ has been
+configured with <option>--enable-debug=no</option>.
 </para>
 </formalpara>
 
@@ -134,7 +134,7 @@ additional environment variables.
   <title><envar>GTK_DEBUG</envar></title>
 
   <para>
-  If GTK+ has been configured with <option>--enable-debug=yes</option>,
+  Unless GTK+ has been configured with <option>--enable-debug=no</option>,
   this variable can be set to a list of debug options, which cause GTK+
   to print out different types of debugging information.
   <variablelist>