Commit 547ace84 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Define NDEBUG when --enable-debug is not specified

parent 04a605b1
...@@ -1343,6 +1343,9 @@ dnl ...@@ -1343,6 +1343,9 @@ dnl
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
[ --enable-debug debug mode (default disabled)]) [ --enable-debug debug mode (default disabled)])
test "${enable_debug}" != "yes" && enable_debug="no" test "${enable_debug}" != "yes" && enable_debug="no"
AH_TEMPLATE(NDEBUG,
[Define to 1 if debug code should NOT be compiled])
AS_IF([test "x${enable_debug}" == "xno"], [AC_DEFINE(NDEBUG)])
dnl dnl
dnl Enable release-specific flags dnl Enable release-specific flags
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment