]> Dogcows Code - chaz/openbox/blobdiff - m4/openbox.m4
blef
[chaz/openbox] / m4 / openbox.m4
index 3c6cd1f041880c3128b54e252ad2a455a6097282..b1169907b1a05df0616c57aa7a8e344119807d4e 100644 (file)
@@ -10,12 +10,17 @@ AC_DEFUN([OB_DEBUG],
   AC_ARG_ENABLE([debug],
   [  --enable-debug          build a debug version default=no],
   [DEBUG=$enableval],[])
+
+  # cvs builds are always debug
+  test "${VERSION%*cvs}" != "$VERSION" && DEBUG="yes"
+  
   if test "$DEBUG" = "yes"; then
-    AC_MSG_RESULT([debug])
+    AC_MSG_RESULT([DEBUG])
     AC_DEFINE([DEBUG], [1], [Creating a debug build])
   else
-    AC_MSG_RESULT([release])
-    AC_DEFINE([NDEBUG], [1], [Creating a release build])
+    AC_MSG_RESULT([RELEASE])
+# keep the asserts in
+#    AC_DEFINE([NDEBUG], [1], [Creating a release build])
   fi
 ])
 
This page took 0.021444 seconds and 4 git commands to generate.