summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 763ec56..4a9fb7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,7 +63,13 @@ else
;;
esac
fi
-CFLAGS="-DNDEBUG $CFLAGS"
+
+AC_ARG_ENABLE(assertions,
+ [AC_HELP_STRING([--enable-assertions], [Assertion checking])])
+if test "$enable_assertions" != yes; then
+ AC_DEFINE([NDEBUG], 1, [Define to disable assertion checking.])
+fi
+
AC_SUBST(PICFLAG)
AC_SUBST(DEFS)