summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-11 04:36:25 +0000
committerDana Jansens <danakj@orodu.net>2003-01-11 04:36:25 +0000
commit0f16855abc40d8fa7b55032cdce75b2cc472bc17 (patch)
tree85b7c41f19435e3fd5feaa33fdb5cdec0ffb0c3f
parent346151534bc630b6458a6d5059255759c028fcb2 (diff)
cvs builds are always debug
-rw-r--r--m4/openbox.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/openbox.m4 b/m4/openbox.m4
index 3c6cd1f0..e5b91ff8 100644
--- a/m4/openbox.m4
+++ b/m4/openbox.m4
@@ -10,6 +10,10 @@ 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_DEFINE([DEBUG], [1], [Creating a debug build])