summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 01:14:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 01:14:44 +0300
commit3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2 (patch)
treeb8a78bf3679688652258929d8534545b7b7712fd /configure.ac
parent4029b40e800eb8654e6896576c521137835c55e2 (diff)
downloadmanaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.gz
manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.bz2
manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.xz
manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.zip
Add configure option --enable-asserts
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8f009883e..d14df03be 100755
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,19 @@ esac],[werror_enabled=false])
AM_CONDITIONAL(ENABLE_WERROR, test x$werror_enabled = xtrue)
+# Enable asserts
+AC_ARG_ENABLE(asserts,
+[ --enable-asserts Enable asserts in log],
+[case "${enableval}" in
+ yes) asserts_enabled=true
+ ;;
+ no) asserts_enabled=false
+ ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-asserts) ;;
+esac],[asserts_enabled=true])
+
+AM_CONDITIONAL(ENABLE_ASSERTS, test x$asserts_enabled = xtrue)
+
# Checks for android.
AC_ARG_ENABLE(androidbuild,
[ --enable-androidbuild Turn on android building],