+ AC_ARG_ENABLE([debug],
+ [ --enable-debug build a debug version default=no],
+ [DEBUG=$enableval], [DEBUG="no"])
+
+ # these special builds are always debug
+ CVS=""
+ test "${PACKAGE_VERSION%*cvs*}" != "$PACKAGE_VERSION" && CVS="yes"
+ test "$CVS" = "yes" && DEBUG="yes"
+
+ TEST=""
+ test "${PACKAGE_VERSION%*alpha*}" != "$PACKAGE_VERSION" && TEST="yes"
+ test "${PACKAGE_VERSION%*beta*}" != "$PACKAGE_VERSION" && TEST="yes"
+ test "$TEST" = "yes" && DEBUG="yes"
+