X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_header_assert.m4;h=1bd95eb58b4d316bbdb6c7f0d13484f73bbea319;hb=d9dab0a24eebad142b33d00ccb0f87b083f02195;hp=eb5d15b90542a70e2f6c2f26395d7c01fc16e83b;hpb=36c6f6f7178cd69c4c0746dfee06e67f8e83cb0a;p=awesomized%2Flibmemcached diff --git a/m4/pandora_header_assert.m4 b/m4/pandora_header_assert.m4 index eb5d15b9..1bd95eb5 100644 --- a/m4/pandora_header_assert.m4 +++ b/m4/pandora_header_assert.m4 @@ -8,6 +8,7 @@ dnl ---------------- dnl Check whether to enable assertions. AC_DEFUN([PANDORA_HEADER_ASSERT], [ + AC_CHECK_HEADERS(assert.h) AC_MSG_CHECKING([whether to enable assertions]) AC_ARG_ENABLE([assert], [AS_HELP_STRING([--disable-assert], @@ -16,8 +17,7 @@ AC_DEFUN([PANDORA_HEADER_ASSERT], [ac_cv_assert="yes"]) AC_MSG_RESULT([$ac_cv_assert]) - AS_IF([test "$ac_cv_assert" = "yes"], - [AC_CHECK_HEADERS(assert.h)], + AS_IF([test "$ac_cv_assert" = "no"], [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])]) ])