mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
configure: Use PCSC.framework when pcsclite is not available on macOS.
This commit is contained in:
parent
37885b04f9
commit
f74c4af257
12
configure
vendored
12
configure
vendored
|
@ -7854,6 +7854,12 @@ if test "x$ac_cv_header_OpenCL_opencl_h" = xyes
|
|||
then :
|
||||
printf "%s\n" "#define HAVE_OPENCL_OPENCL_H 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_header_compile "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes
|
||||
then :
|
||||
printf "%s\n" "#define HAVE_PCSC_PCSCLITE_H 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_arpa_inet_h" = xyes
|
||||
|
@ -15843,6 +15849,12 @@ then :
|
|||
|
||||
fi
|
||||
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes && test "$ac_cv_header_PCSC_pcsclite_h" = "yes"
|
||||
then
|
||||
PCSCLITE_LIBS="-framework PCSC"
|
||||
|
||||
ac_cv_lib_pcsclite_SCardEstablishContext=yes
|
||||
fi
|
||||
fi
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes
|
||||
then :
|
||||
|
|
|
@ -403,6 +403,7 @@ AC_CHECK_HEADERS(\
|
|||
CL/cl.h \
|
||||
EGL/egl.h \
|
||||
OpenCL/opencl.h \
|
||||
PCSC/pcsclite.h \
|
||||
arpa/inet.h \
|
||||
arpa/nameser.h \
|
||||
asm/types.h \
|
||||
|
@ -1393,6 +1394,11 @@ dnl **** Check for libpcsclite ****
|
|||
if test "x$with_pcsclite" != "xno"
|
||||
then
|
||||
AC_CHECK_LIB(pcsclite,SCardEstablishContext,[AC_SUBST(PCSCLITE_LIBS,["-lpcsclite"])])
|
||||
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes && test "$ac_cv_header_PCSC_pcsclite_h" = "yes"
|
||||
then
|
||||
AC_SUBST(PCSCLITE_LIBS,"-framework PCSC")
|
||||
ac_cv_lib_pcsclite_SCardEstablishContext=yes
|
||||
fi
|
||||
fi
|
||||
WINE_NOTICE_WITH(pcsclite,[test "x$ac_cv_lib_pcsclite_SCardEstablishContext" != xyes],
|
||||
[libpcsclite not found, smart cards won't be supported.],
|
||||
|
|
|
@ -297,6 +297,9 @@
|
|||
/* Define to 1 if you have the <pcap/pcap.h> header file. */
|
||||
#undef HAVE_PCAP_PCAP_H
|
||||
|
||||
/* Define to 1 if you have the <PCSC/pcsclite.h> header file. */
|
||||
#undef HAVE_PCSC_PCSCLITE_H
|
||||
|
||||
/* Define to 1 if you have the `pipe2' function. */
|
||||
#undef HAVE_PIPE2
|
||||
|
||||
|
|
Loading…
Reference in a new issue