From f352adfde5c12949d1be3beaa178456dc87f2091 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 10 Feb 2013 20:03:46 +0100 Subject: build: Make configure fail if all required headers aren't found Signed-off-by: Sylvain Munaut --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 41e6c5d..6c7bf8d 100644 --- a/configure.ac +++ b/configure.ac @@ -19,8 +19,8 @@ AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false) AC_CONFIG_MACRO_DIR([m4]) dnl checks for header files -AC_HEADER_STDC -AC_CHECK_HEADERS(complex.h math.h fcntl.h unistd.h sys/mman.h sys/types.h sys/stat.h) +AC_CHECK_HEADERS([complex.h fcntl.h math.h stdio.h stdlib.h string.h unistd.h sys/mman.h sys/types.h sys/stat.h],, + AC_MSG_ERROR([Missing required header files.])) # The following test is taken from WebKit's webkit.m4 saved_CFLAGS="$CFLAGS" -- cgit v1.2.3