~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_header_assert.m4

pandora-buildĀ v0.79

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
dnl Check whether to enable assertions.
9
9
AC_DEFUN([PANDORA_HEADER_ASSERT],
10
10
[
 
11
  AC_CHECK_HEADERS(assert.h)
11
12
  AC_MSG_CHECKING([whether to enable assertions])
12
13
  AC_ARG_ENABLE([assert],
13
14
    [AS_HELP_STRING([--disable-assert],
16
17
    [ac_cv_assert="yes"])
17
18
  AC_MSG_RESULT([$ac_cv_assert])
18
19
 
19
 
  AS_IF([test "$ac_cv_assert" = "yes"], 
20
 
    [AC_CHECK_HEADERS(assert.h)],
 
20
  AS_IF([test "$ac_cv_assert" = "no"], 
21
21
    [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
22
22
])
23
23