~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_header_assert.m4

  • Committer: Brian Aker
  • Date: 2009-11-12 16:13:04 UTC
  • mfrom: (1211.1.7 staging)
  • Revision ID: brian@gaz-20091112161304-opamiauv36fg0n6u
Rollup of Brian, Padraig, and Stewart patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
8
8
dnl Check whether to enable assertions.
9
9
AC_DEFUN([PANDORA_HEADER_ASSERT],
10
10
[
11
 
  AC_CHECK_HEADERS(assert.h)
12
11
  AC_MSG_CHECKING([whether to enable assertions])
13
12
  AC_ARG_ENABLE([assert],
14
13
    [AS_HELP_STRING([--disable-assert],
17
16
    [ac_cv_assert="yes"])
18
17
  AC_MSG_RESULT([$ac_cv_assert])
19
18
 
20
 
  AS_IF([test "$ac_cv_assert" = "no"], 
 
19
  AS_IF([test "$ac_cv_assert" = "yes"], 
 
20
    [AC_CHECK_HEADERS(assert.h)],
21
21
    [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
22
22
])
23
23