25 Jul
2023
25 Jul
'23
2:43 p.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3389#note_40179