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