summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2016-11-13 10:13:21 -0800
committerRuss Allbery <rra@debian.org>2017-08-07 07:54:47 -0700
commiteb34b27cc8eff0fae6742c7d3063ef1392461f5c (patch)
tree8832ddb3146aecc6d7d255e08c7febdf8793245a
parent8d4d09b42f21966533cd374563c1ca05c651dc56 (diff)
Fix OpenSSL library probe
OpenSSL 1.1 doesn't have SSL_library_init as a regular function. Use a different function to probe for the OpenSSL library. Gbp-Pq: Name 0001-Fix-OpenSSL-library-probe.patch
-rw-r--r--m4/openssl.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/openssl.m4 b/m4/openssl.m4
index e5cd3712..83f27be7 100644
--- a/m4/openssl.m4
+++ b/m4/openssl.m4
@@ -70,10 +70,10 @@ AC_DEFUN([_RRA_LIB_OPENSSL_INTERNAL],
[AC_MSG_ERROR([cannot find usable OpenSSL crypto library])])],
[$rra_openssl_extra])
AS_IF([test x"$rra_reduced_depends" = xtrue],
- [AC_CHECK_LIB([ssl], [SSL_library_init], [OPENSSL_LIBS=-lssl],
+ [AC_CHECK_LIB([ssl], [SSL_accept], [OPENSSL_LIBS=-lssl],
[AS_IF([test x"$1" = xtrue],
[AC_MSG_ERROR([cannot find usable OpenSSL library])])])],
- [AC_CHECK_LIB([ssl], [SSL_library_init],
+ [AC_CHECK_LIB([ssl], [SSL_accept],
[OPENSSL_LIBS="-lssl $CRYPTO_LIBS"],
[AS_IF([test x"$1" = xtrue],
[AC_MSG_ERROR([cannot find usable OpenSSL library])])],