~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_header_assert.m4

Split out warnings - start using the pandora build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl PANDORA_HEADER_ASSERT
 
2
dnl ----------------
 
3
dnl Check whether to enable assertions.
 
4
AC_DEFUN([PANDORA_HEADER_ASSERT],
 
5
[
 
6
  AC_MSG_CHECKING([whether to enable assertions])
 
7
  AC_ARG_ENABLE([assert],
 
8
    [AS_HELP_STRING([--disable-assert],
 
9
       [Turn off assertions])],
 
10
    [ac_cv_assert="no"],
 
11
    [ac_cv_assert="yes"])
 
12
  AC_MSG_RESULT([$ac_cv_assert])
 
13
 
 
14
  AS_IF([test "$ac_cv_assert" = "yes"], 
 
15
    [AC_CHECK_HEADERS(assert.h)],
 
16
    [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
 
17
])
 
18