summaryrefslogtreecommitdiff
path: root/mail/fdm/patches/patch-configure.ac
blob: 740b12e490cae35d592699acc59925e1f02b4386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-configure.ac,v 1.1 2018/05/04 15:33:22 leot Exp $

Also check for OPENSSL_init_ssl (fixes build with OpenSSL 1.1.0).

From upstream commit 070cee8d1efba1ca260777a204fba7cdfe676ca5.

--- configure.ac.orig	2015-09-14 14:40:44.000000000 +0000
+++ configure.ac
@@ -83,11 +83,16 @@ if test "x$found_libcrypto" = xno; then
 	AC_MSG_ERROR("libcrypto not found")
 fi
 AC_SEARCH_LIBS(
-	SSL_library_init,
+	OPENSSL_init_ssl,
 	[ssl],
 	found_libssl=yes,
 	found_libssl=no
 )
+AC_SEARCH_LIBS(
+	SSL_library_init,
+	[ssl],
+	found_libssl=yes,
+)
 if test "x$found_libssl" = xno; then
 	AC_MSG_ERROR("libssl not found")
 fi