]> Dogcows Code - chaz/openbox/blobdiff - m4/openbox.m4
define DEBUG, NDEBUG, and G_DISABLE_ASSERTS
[chaz/openbox] / m4 / openbox.m4
index 7c19ab4b1bfb0333eb3101a4fbc4e64238092c00..db592e91e6b472eb701fb3f6f4d30992d8c2f862 100644 (file)
@@ -61,12 +61,18 @@ AC_DEFUN([OB_COMPILER_FLAGS],
 
     FLAGS=""
 
+    if test "$DEBUG" = "yes"; then
+        FLAGS="-DDEBUG"
+    else
+        FLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
+    fi
+
     # Check what compiler we are using
     AC_MSG_CHECKING([for GNU CC])
     if test "$GCC" = "yes"; then
        AC_MSG_RESULT([yes])
        if test "$DEBUG" = "yes"; then
-           FLAGS="-g -fno-inline"
+           FLAGS="$FLAGS -g -fno-inline"
            FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
            FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
             # for Python.h
This page took 0.019452 seconds and 4 git commands to generate.