]> Dogcows Code - chaz/openbox/blobdiff - m4/openbox.m4
caps
[chaz/openbox] / m4 / openbox.m4
index cd76bb634ab51ad4c74b73af80f823c57e69ffa6..12c5c8ec387a5b4839c1e975aa906ccbef11bfea 100644 (file)
@@ -10,11 +10,15 @@ 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_MSG_RESULT([RELEASE])
     AC_DEFINE([NDEBUG], [1], [Creating a release build])
   fi
 ])
@@ -61,5 +65,3 @@ AC_DEFUN([OB_COMPILER_FLAGS],
   AC_MSG_RESULT([$FLAGS])
   CXXFLAGS="$CXXFLAGS $FLAGS"
 ])
-
-
This page took 0.024733 seconds and 4 git commands to generate.