X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fopenbox.m4;h=12c5c8ec387a5b4839c1e975aa906ccbef11bfea;hb=de0706821d4aaab722445b1841cadcb7776a10b5;hp=3c6cd1f041880c3128b54e252ad2a455a6097282;hpb=02601c2856c604786acca84e3aef176baadc5c61;p=chaz%2Fopenbox diff --git a/m4/openbox.m4 b/m4/openbox.m4 index 3c6cd1f0..12c5c8ec 100644 --- a/m4/openbox.m4 +++ b/m4/openbox.m4 @@ -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 ])