autoconfigure PC/SC on macOS

closes https://github.com/frankmorgner/vsmartcard/issues/144
This commit is contained in:
Frank Morgner
2019-08-20 10:12:59 +02:00
parent ccc68fdf38
commit 7ccdadc8ac
2 changed files with 12 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ if test "${libpcsclite}" = no ; then
[AC_MSG_WARN([libpcsclite not found by pkg-config])
case "$host" in
*-*-darwin*)
SDKS_PATH="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
SDKS_PATH="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
SDK_PATH="${SDK_PATH:-$SDKS_PATH/$(ls -1 ${SDKS_PATH} | sort -n -t. -k2 -r | head -1)}"
# and set the PC/SC include path
PCSC_CFLAGS="-I$SDK_PATH/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers -DRESPONSECODE_DEFINED_IN_WINTYPES_H -I`pwd`/${top_srcdir}/MacOSX"