error finding pkcs11 on Mac

This commit is contained in:
Marc Wäckerlin
2015-05-07 14:06:21 +00:00
parent f505445ad1
commit b4a16946fd

View File

@@ -366,8 +366,8 @@ AC_DEFUN([AX_PKG_REQUIRE], [
for p in /usr/include ${$1_CFLAGS}; do
$1_file=$(find ${p#-I} -name $3)
if test -e ${$1_file}; then
AC_MSG_WARN([Header file $3 found as ${$1_file} in ${$1_file%/$3}])
$1_CFLAGS="${$1_CFLAGS} -I${$1_file%/$3}"
AC_MSG_WARN([Header file $3 found in ${p#-I}/${$1_file%/$3}])
$1_CFLAGS="${$1_CFLAGS} -I${p#-I}/${$1_file%/$3}"
$1_found=1
break
fi