diff --git a/configure.ac b/configure.ac index 422e22c..dc08e6d 100644 --- a/configure.ac +++ b/configure.ac @@ -60,10 +60,18 @@ AC_SUBST(LIBUSB_CFLAGS) ## libpcsclite if test "x$enable_pcsc_lite" = "xyes" then +case "$host" in + *darwin*) + AC_MSG_WARN(Using darwin PCSC Framework) + LIBPCSCLITE_LIBS=-Wl,-framework,PCSC + ;; + *) PKG_CHECK_MODULES(LIBPCSCLITE, libpcsclite, [WITH_PCSC=1], [WITH_PCSC=0]) if test "$WITH_PCSC" = "0" ; then AC_MSG_ERROR([libpcsclite is mandatory.]) fi + ;; +esac AC_SUBST(LIBPCSCLITE_LIBS) AC_SUBST(LIBPCSCLITE_CFLAGS) fi diff --git a/src/dev_acr122.c b/src/dev_acr122.c index bfab8ff..91c5e0d 100644 --- a/src/dev_acr122.c +++ b/src/dev_acr122.c @@ -25,7 +25,11 @@ along with this program. If not, see #include #include +#ifndef __APPLE__ #include +#else +#include +#endif #include "defines.h" #include "bitutils.h"