From db09dab2dbdf5c2ac620aed8d671992e9d25d3bb Mon Sep 17 00:00:00 2001 From: Diego 'Flameeyes' Pettenò Date: Thu, 7 Aug 2008 12:06:52 +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 05a22e7..54c12ac 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_HEADER_SYS_WAIT AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h sys/prctl.h netinet/in.h]) -- cgit