Line 0
Link Here
|
|
|
1 |
--- configure.ac.orig 2018-10-08 21:17:06 UTC |
2 |
+++ configure.ac |
3 |
@@ -137,14 +137,15 @@ AC_SEARCH_LIBS([shutdown], [socket]) |
4 |
|
5 |
# Conditional build with OpenSSL |
6 |
if test "$openssl" = 'yes'; then |
7 |
- AC_CHECK_HEADERS([openssl/md5.h],,[AC_MSG_ERROR([<openssl/md5.h> header missing])]) |
8 |
+# Conditional build with OpenSSL |
9 |
+if test "$openssl" = 'yes'; then |
10 |
AC_CHECK_HEADERS([openssl/bio.h],,[AC_MSG_ERROR([<openssl/bio.h> header missing])]) |
11 |
AC_CHECK_HEADERS([openssl/err.h],,[AC_MSG_ERROR([<openssl/err.h> header missing])]) |
12 |
AC_CHECK_HEADERS([openssl/rand.h],,[AC_MSG_ERROR([<openssl/rand.h> header missing])]) |
13 |
AC_CHECK_HEADERS([openssl/ssl.h],,[AC_MSG_ERROR([<openssl/ssl.h> header missing])]) |
14 |
AC_CHECK_HEADERS([openssl/x509v3.h],,[AC_MSG_ERROR([<openssl/x509v3.h> header missing])]) |
15 |
- AC_CHECK_LIB([ssl], [SSL_library_init],,[AC_MSG_ERROR([ssl library missing])]) |
16 |
- AC_CHECK_LIB([crypto], [CRYPTO_num_locks],,[AC_MSG_ERROR([crypto library missing])]) |
17 |
+ AC_CHECK_LIB([ssl], [SSL_CTX_new],,[AC_MSG_ERROR([ssl library missing])]) |
18 |
+ AC_CHECK_LIB([crypto], [CRYPTO_free],,[AC_MSG_ERROR([crypto library missing])]) |
19 |
fi |
20 |
# For Makefile.am |
21 |
AM_CONDITIONAL(HAVE_OPENSSL, test "$openssl" = "yes") |
22 |
@@ -156,6 +157,7 @@ if test "$sctp" = 'yes'; then |
23 |
AC_SEARCH_LIBS([sctp_freepaddrs],[sctp sctpsp],,[AC_MSG_ERROR([SCTP library missing])]) |
24 |
AC_SEARCH_LIBS([sctp_bindx],[sctp sctpsp],,[AC_MSG_ERROR([SCTP library missing])]) |
25 |
AC_SEARCH_LIBS([sctp_recvmsg],[sctp sctpsp],,[AC_MSG_ERROR([SCTP library missing])]) |
26 |
+fi |
27 |
fi |
28 |
# For Makefile.am |
29 |
AM_CONDITIONAL(HAVE_SCTP, test "$sctp" = "yes") |