m4: ax_assert
authorMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 08:09:21 +0000 (09:09 +0100)
committerMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 08:09:21 +0000 (09:09 +0100)
let it be overridden in vcs checkout

m4/ax_assert.m4

index 88741293e176246e41f424f0dd92b1eabd72c01e..0fa2b1c9b510041ac56a5721e4ee8a712e5fce54 100644 (file)
@@ -52,10 +52,10 @@ AC_DEFUN([AX_ASSERT],
     AC_ARG_ENABLE([assert],
       [AS_HELP_STRING([--enable-assert],
         [Enable assert, this will be overridden by --enable-debug (yes|no) @<:@default=no@:>@])],
-      [ax_enable_assert=yes],
-      [ax_enable_assert=no])
+      [ax_enable_assert=$enableval],
+      [ax_enable_assert=$ac_cv_vcs_checkout])
 
-    AS_IF([ test "$ax_enable_assert" = "yes" -o "$ax_enable_debug" = "yes" -o "$ac_cv_vcs_checkout" = "yes" ],
+    AS_IF([ test "$ax_enable_assert" = "yes" -o "$ax_enable_debug" = "yes" ],
       [ax_enable_assert="yes"],
       [ax_enable_assert="no"
       AC_DEFINE(NDEBUG,[1],[Define to 1 to disable assert'ing code.])])