From 68935c62f652e45220cc2e847e08bc39f9ceea05 Mon Sep 17 00:00:00 2001 From: aland Date: Wed, 10 Jul 2002 15:47:58 +0000 Subject: [PATCH] Minor updates to check headers (includes) --- aclocal.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index d945125..b02746b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -4030,6 +4030,8 @@ dnl ####################################################################### dnl # dnl # Look for a header file in a number of places. dnl # +dnl # AC_SMART_CHECK_INCLUDE(foo.h, [ #include ]) +dnl # AC_DEFUN(AC_SMART_CHECK_INCLUDE, [ ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` @@ -4042,7 +4044,8 @@ dnl # dnl # Try to link it first, using the default includes dnl # old_CFLAGS="$CFLAGS" - AC_TRY_COMPILE([#include <$1>], + AC_TRY_COMPILE([$2 + #include <$1>], [ int a = 1;], smart_include=" ", smart_include=) -- 2.1.4