mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
83ef251331
* [openlap] Add new port Merge pull request #1 from dg0yt/openldap Signed-off-by: Gordon Smith <GordonJSmith@gmail.com> * [openlap] Add new port m4.patch is needed when libtool < 2.4.6 m4.patch will only work with autoconf < 2.70 Signed-off-by: Gordon Smith <GordonJSmith@gmail.com> * wip: Make cyrus-sasl optional Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
diff --git a/configure.ac b/configure.ac
|
|
index 626d024..e97f548 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -1223,6 +1223,9 @@ fi
|
|
|
|
ol_link_tls=no
|
|
if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
|
|
+ PKG_CHECK_MODULES(OPENSSL, openssl >= 1.1.1, [have_openssl=yes], [AC_MSG_FAILURE([OpenSSL is required])])
|
|
+ CFLAGS="${OPENSSL_CFLAGS} ${CFLAGS}"
|
|
+ ac_cv_lib_ssl_SSL_export_keying_material_early=yes
|
|
AC_CHECK_HEADERS(openssl/ssl.h)
|
|
|
|
if test $ac_cv_header_openssl_ssl_h = yes ; then
|
|
@@ -1245,7 +1248,8 @@ if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
|
|
AC_DEFINE(HAVE_OPENSSL, 1,
|
|
[define if you have OpenSSL])
|
|
|
|
- TLS_LIBS="-lssl -lcrypto"
|
|
+ TLS_LIBS="${OPENSSL_LIBS}"
|
|
+ AC_SUBST(TLS_MODULE, openssl, [TLS pkg-config module])
|
|
fi
|
|
fi
|
|
fi
|
|
diff --git a/libraries/libldap/ldap.pc.in b/libraries/libldap/ldap.pc.in
|
|
index 3f7dd46..43b2e52 100644
|
|
--- a/libraries/libldap/ldap.pc.in
|
|
+++ b/libraries/libldap/ldap.pc.in
|
|
@@ -10,4 +10,5 @@ Version: @VERSION@
|
|
Requires: lber
|
|
Cflags: -I${includedir}
|
|
Libs: -L${libdir} -lldap
|
|
-Libs.private: @LIBS@ @SASL_LIBS@ @TLS_LIBS@ @AUTH_LIBS@
|
|
+Libs.private: @LIBS@ @SASL_LIBS@ @AUTH_LIBS@
|
|
+Requires.private: @TLS_MODULE@
|