Hans Leidekker (@hans) commented about configure.ac:
dnl **** Check for libpcsclite **** if test "x$with_pcsclite" != "xno" then
- AC_CHECK_LIB(pcsclite,SCardEstablishContext,[AC_SUBST(PCSCLITE_LIBS,["-lpcsclite"])])
- if test "$ac_cv_header_PCSC_pcsclite_h" = "yes"
- then
AC_SUBST(PCSCLITE_LIBS,"-framework PCSC")
ac_cv_lib_pcsclite_SCardEstablishContext=yes
- else
AC_CHECK_LIB(pcsclite,SCardEstablishContext,[AC_SUBST(PCSCLITE_LIBS,["-lpcsclite"])])
- fi
pcsclite has more features than the native framework so it would be better to change the order.