diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index f3c0cde3..e6cc7214 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2352,20 +2352,8 @@ AS_VAR_IF([[enable_asserts]], [["yes"]], | |||
2352 | [[mhd_cv_sys_assert_avail='no']]) | 2352 | [[mhd_cv_sys_assert_avail='no']]) |
2353 | ] | 2353 | ] |
2354 | ) | 2354 | ) |
2355 | AS_VAR_IF([[mhd_cv_sys_assert_avail]], [["yes"]], | 2355 | AS_VAR_IF([[mhd_cv_sys_assert_avail]], [["no"]], [], |
2356 | [ | 2356 | [AC_DEFINE([[HAVE_ASSERT]], [[1]], [Define if you have usable assert() and assert.h])]) |
2357 | AC_CACHE_CHECK([[whether system assert() is usable]], [mhd_cv_sys_assert_use], | ||
2358 | [ | ||
2359 | AC_RUN_IFELSE([AC_LANG_SOURCE([[$mhd_assert_test_prg]])], | ||
2360 | [[mhd_cv_sys_assert_use='no']], | ||
2361 | [[mhd_cv_sys_assert_use='yes']], | ||
2362 | [[mhd_cv_sys_assert_use='assuming yes']]) | ||
2363 | ] | ||
2364 | ) | ||
2365 | AS_VAR_IF([[mhd_cv_sys_assert_use]], [["no"]], [], | ||
2366 | [AC_DEFINE([[HAVE_ASSERT]], [[1]], [Define if you have usable assert() and assert.h])]) | ||
2367 | ] | ||
2368 | ) | ||
2369 | AS_UNSET([mhd_assert_test_prg]) | 2357 | AS_UNSET([mhd_assert_test_prg]) |
2370 | ], | 2358 | ], |
2371 | [AC_DEFINE([[NDEBUG]], [[1]], [Define to disable usage of debug asserts.])] | 2359 | [AC_DEFINE([[NDEBUG]], [[1]], [Define to disable usage of debug asserts.])] |