if --with-foo=<path> is specific for a configure option, ensure that it is used for header file checking as well

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2007-01-05 23:40:29 +00:00
parent d2d50d7a8e
commit c63f9a3fe8
2 changed files with 159 additions and 2291 deletions

View File

@@ -59,11 +59,11 @@ if test "${USE_$1}" != "no"; then
$1_LIB="${pbxlibdir} ${$1_LIB}"
$1_INCLUDE="-I${$1_DIR}/include"
if test "x$4" != "x" ; then
AC_CHECK_HEADER([${$1_DIR}/include/$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0] )
AC_CHECK_HEADER([${$1_DIR}/include/$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0], -I${$1_DIR}/include)
fi
else
if test "x$4" != "x" ; then
AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0] )
AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0])
fi
fi
if test "x${$1_HEADER_FOUND}" = "x0" ; then

2446
configure vendored

File diff suppressed because it is too large Load Diff