From 53dab4f213ae954ba49dfce9c009463cb92a19bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 19 Jun 2015 07:18:08 +0000 Subject: [PATCH] don't scan subpathes of /usr/include for include files --- ChangeLog | 5 +++++ ax_init_standard_project.m4 | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 946797e..59597fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-06-18 14:34 marc + + * ChangeLog, configure.ac: build fails with GNU TLS, because pcsc.h + there is something completely different + 2015-05-22 08:45 marc * configure.ac: fixed package name for mac ports diff --git a/ax_init_standard_project.m4 b/ax_init_standard_project.m4 index 77c1e73..7be94eb 100644 --- a/ax_init_standard_project.m4 +++ b/ax_init_standard_project.m4 @@ -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}])