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:
parent
abe9112f2b
commit
dc3f8f6509
17
configure.ac
17
configure.ac
|
@ -547,16 +547,21 @@ if test "${enable_openct}" = "yes"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${enable_pcsc}" = "yes"; then
|
if test "${enable_pcsc}" = "yes"; then
|
||||||
AC_ARG_VAR([PCSC_CFLAGS], [C compiler flags for pcsc])
|
if test "${WIN32}" != "yes"; then
|
||||||
|
PKG_CHECK_EXISTS(
|
||||||
|
[libpcsclite],
|
||||||
|
[PKG_CHECK_MODULES([PCSC], [libpcsclite])]
|
||||||
|
)
|
||||||
|
if test -z "${PCSC_CFLAGS}"; then
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
|
PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
PCSC_CFLAGS="-I/usr/include/PCSC"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
if test "${WIN32}" != "yes"; then
|
|
||||||
test -z "${PCSC_CFLAGS}" && PCSC_CFLAGS="-I/usr/include/PCSC"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
saved_CFLAGS="${CFLAGS}"
|
saved_CFLAGS="${CFLAGS}"
|
||||||
|
|
Loading…
Reference in New Issue