aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5d252bc..ebdbcad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,15 @@ PKG_CHECK_MODULES([CRITERION], [criterion >= 2.4.1], [
], [enable_tests=no])
AM_CONDITIONAL([ENABLE_TESTS], [test x$enable_tests = xyes])
+AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable debugging, default: no]),
+ [case "${enableval}" in
+ yes) debug=true ;;
+ no) debug=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
+ esac],
+ [debug=false])
+AM_CONDITIONAL([DEBUG], test x"$debug" = x"true")
+
AC_SUBST(TESTS_DEPS_CPPFLAGS)
AC_SUBST(TESTS_DEPS_LIBS)