| @@ -1,20 +1,20 @@ | | | @@ -1,20 +1,20 @@ |
1 | $NetBSD: patch-configure.ac,v 1.1 2019/11/24 23:20:40 christos Exp $ | | 1 | $NetBSD: patch-configure.ac,v 1.2 2020/01/07 13:35:13 sborrill Exp $ |
2 | | | 2 | |
3 | - compat for OpenSSL 1.1 https://sourceforge.net/p/opendkim/patches/37/ | | 3 | - compat for OpenSSL 1.1 https://sourceforge.net/p/opendkim/patches/37/ |
4 | - fix == bashism | | 4 | - fix == bashism |
5 | | | 5 | |
6 | --- configure.ac.orig 2015-05-12 14:43:09.000000000 -0400 | | 6 | --- configure.ac.orig 2015-05-12 19:43:09.000000000 +0100 |
7 | +++ configure.ac 2019-11-24 18:03:48.650839906 -0500 | | 7 | +++ configure.ac 2020-01-07 13:30:01.000000000 +0000 |
8 | @@ -860,26 +860,28 @@ | | 8 | @@ -860,26 +860,28 @@ |
9 | AC_SEARCH_LIBS([ERR_peek_error], [crypto], , | | 9 | AC_SEARCH_LIBS([ERR_peek_error], [crypto], , |
10 | AC_MSG_ERROR([libcrypto not found])) | | 10 | AC_MSG_ERROR([libcrypto not found])) |
11 | | | 11 | |
12 | - AC_SEARCH_LIBS([SSL_library_init], [ssl], , | | 12 | - AC_SEARCH_LIBS([SSL_library_init], [ssl], , |
13 | - [ | | 13 | - [ |
14 | - if test x"$enable_shared" = x"yes" | | 14 | - if test x"$enable_shared" = x"yes" |
15 | - then | | 15 | - then |
16 | - AC_MSG_ERROR([Cannot build shared opendkim | | 16 | - AC_MSG_ERROR([Cannot build shared opendkim |
17 | - against static openssl libraries. | | 17 | - against static openssl libraries. |
18 | - Configure with --disable-shared | | 18 | - Configure with --disable-shared |
19 | - to get this working or obtain a | | 19 | - to get this working or obtain a |
20 | - shared libssl library for | | 20 | - shared libssl library for |
| @@ -43,13 +43,22 @@ $NetBSD: patch-configure.ac,v 1.1 2019/1 | | | @@ -43,13 +43,22 @@ $NetBSD: patch-configure.ac,v 1.1 2019/1 |
43 | + Configure with --disable-shared | | 43 | + Configure with --disable-shared |
44 | + to get this working or obtain a | | 44 | + to get this working or obtain a |
45 | + shared libssl library for | | 45 | + shared libssl library for |
46 | + opendkim to use.]) | | 46 | + opendkim to use.]) |
47 | + fi | | 47 | + fi |
48 | + | | 48 | + |
49 | + LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl" | | 49 | + LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl" |
50 | + AC_SEARCH_LIBS([SSL_library_init], [ssl], , | | 50 | + AC_SEARCH_LIBS([SSL_library_init], [ssl], , |
51 | + AC_MSG_ERROR([libssl not found]), [-ldl]) | | 51 | + AC_MSG_ERROR([libssl not found]), [-ldl]) |
52 | + fi | | 52 | + fi |
53 | | | 53 | |
54 | AC_CHECK_DECL([SHA256_DIGEST_LENGTH], | | 54 | AC_CHECK_DECL([SHA256_DIGEST_LENGTH], |
55 | AC_DEFINE([HAVE_SHA256], 1, | | 55 | AC_DEFINE([HAVE_SHA256], 1, |
| | | 56 | @@ -2184,7 +2186,7 @@ |
| | | 57 | AC_MSG_ERROR([reputation requires libjansson]) |
| | | 58 | fi |
| | | 59 | |
| | | 60 | -if test x"$jansson_found" == x"yes" |
| | | 61 | +if test x"$jansson_found" = x"yes" |
| | | 62 | then |
| | | 63 | AC_DEFINE(USE_JANSSON, 1, [use libjansson to parse REPUTE replies]) |
| | | 64 | fi |