Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 734 Bytes
dnl Copyright (C) 2009 Sun Microsystems
dnl This file is free software; Sun Microsystems
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl PANDORA_HEADER_ASSERT
dnl ----------------
dnl Check whether to enable assertions.
AC_DEFUN([PANDORA_HEADER_ASSERT],
[
AC_MSG_CHECKING([whether to enable assertions])
AC_ARG_ENABLE([assert],
[AS_HELP_STRING([--disable-assert],
[Turn off assertions])],
[ac_cv_assert="no"],
[ac_cv_assert="yes"])
AC_MSG_RESULT([$ac_cv_assert])
AS_IF([test "$ac_cv_assert" = "yes"],
[AC_CHECK_HEADERS(assert.h)],
[AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
])