|
|
|
@ -382,7 +382,7 @@ AC_DEFUN([AX_PKG_REQUIRE], [ |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
if test ${$1_found} -eq 0 -a -n "$3"; then |
|
|
|
|
for p in "/usr/include" ${$1_CFLAGS}; do |
|
|
|
|
for p in ${$1_CFLAGS}; do |
|
|
|
|
AC_MSG_NOTICE([checking: [${p}] with [${p#-I}]]) |
|
|
|
|
$1_file=$(find ${p#-I} -name $(echo "$3" | sed 's,.*/,,') | grep "$3" | head -1) |
|
|
|
|
AC_MSG_NOTICE([call: $1_file=[\$](find [$]{p[#]-I} -name "$3")]) |
|
|
|
@ -417,7 +417,7 @@ AC_DEFUN([AX_PKG_REQUIRE], [ |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
if test ${$1_found} -eq 0; then |
|
|
|
|
for p in /usr/include ${$1_CFLAGS}; do |
|
|
|
|
for p in ${$1_CFLAGS}; do |
|
|
|
|
$1_file=$(find ${p#-I} -name $(echo "$3" | sed 's,.*/,,') | grep "$3" | head -1) |
|
|
|
|
if test -e ${$1_file}; then |
|
|
|
|
AC_MSG_NOTICE([Header file $3 found in sub path of ${pkg} as ${$1_file}]) |
|
|
|
|