X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fopenbox.m4;h=645301fd85e98d926fd628cb07802ec38d84a329;hb=7c8c9e998ffc3a9b22e15feeffe77823142ce531;hp=b1169907b1a05df0616c57aa7a8e344119807d4e;hpb=7c9ba37f010e08a7e24fa57d37d176fb08807bd9;p=chaz%2Fopenbox diff --git a/m4/openbox.m4 b/m4/openbox.m4 index b1169907..645301fd 100644 --- a/m4/openbox.m4 +++ b/m4/openbox.m4 @@ -12,10 +12,16 @@ AC_DEFUN([OB_DEBUG], [DEBUG=$enableval],[]) # cvs builds are always debug - test "${VERSION%*cvs}" != "$VERSION" && DEBUG="yes" - + CVS="" + test "${VERSION%*cvs}" != "$VERSION" && CVS="yes" + test "$CVS" = "yes" && DEBUG="yes" + if test "$DEBUG" = "yes"; then - AC_MSG_RESULT([DEBUG]) + if test "$CVS" = "yes"; then + AC_MSG_RESULT([DEBUG (CVS build)]) + else + AC_MSG_RESULT([DEBUG]) + fi AC_DEFINE([DEBUG], [1], [Creating a debug build]) else AC_MSG_RESULT([RELEASE]) @@ -41,7 +47,7 @@ AC_DEFUN([OB_COMPILER_FLAGS], AC_MSG_CHECKING([for GNU C++]) if test "$GXX" = "yes"; then AC_MSG_RESULT([yes]) - FLAGS="-Wall -W" + FLAGS="-Wall -W -fno-check-new -fno-exceptions" # -pedantic test "$DEBUG" = "yes" && FLAGS="$FLAGS -g -fno-inline" else