From 8e8c137b2187c2e738a23c3d42237860d90d6fa4 Mon Sep 17 00:00:00 2001 From: Diego 'Flameeyes' Pettenò Date: Thu, 7 Aug 2008 13:50:13 +0200 Subject: Check for assert.h header and allow to disable assertions. In recent versions of autoconf, the AC_HEADER_ASSERT check not only makes sure that the assert.h header is found but it also allows the user to decide whether to enable or disable assertions at ./configure (rather than having to pass -DNDEBUG manually). --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index e20b10a..8475a23 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ if test "x$GCC" = "xyes" ; then fi # Checks for header files. +AC_HEADER_ASSERT AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h]) AC_HEADER_SYS_WAIT -- cgit