Merge pull request #485 from carlhoerberg/osxsdkpath
Restore compability on os x
This commit is contained in:
commit
a51d4c8367
|
@ -540,10 +540,13 @@ if test "${enable_pcsc}" = "yes"; then
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
# Locate the latest SDK.
|
# Locate the latest SDK.
|
||||||
SDKS_PATH="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
|
SDKS_PATH="$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs"
|
||||||
|
if test -d $SDKS_PATH; then
|
||||||
SDK_PATH="${SDK_PATH:-$SDKS_PATH/$(ls -1 ${SDKS_PATH} | sort -n -t. -k2 -r | head -1)}"
|
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"
|
PCSC_CFLAGS="-I$SDK_PATH/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers"
|
||||||
|
else
|
||||||
|
PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
PCSC_CFLAGS="-I/usr/include/PCSC"
|
PCSC_CFLAGS="-I/usr/include/PCSC"
|
||||||
|
|
Loading…
Reference in New Issue