Default PCSC CFLAGS from pkg-config

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3650 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
alonbl 2009-02-03 20:11:30 +00:00
parent abe9112f2b
commit dc3f8f6509
1 changed files with 14 additions and 9 deletions

View File

@ -547,16 +547,21 @@ if test "${enable_openct}" = "yes"; then
fi
if test "${enable_pcsc}" = "yes"; then
AC_ARG_VAR([PCSC_CFLAGS], [C compiler flags for pcsc])
case "${host}" in
*-*-darwin*)
test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
;;
esac
if test "${WIN32}" != "yes"; then
test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/usr/include/PCSC"
PKG_CHECK_EXISTS(
[libpcsclite],
[PKG_CHECK_MODULES([PCSC], [libpcsclite])]
)
if test -z "${PCSC_CFLAGS}"; then
case "${host}" in
*-*-darwin*)
PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
;;
*)
PCSC_CFLAGS="-I/usr/include/PCSC"
;;
esac
fi
fi
saved_CFLAGS="${CFLAGS}"