Skip to contentSkip to conversation

configure.ac: fix SSL_OP_NO_TICKET check

PATCH In review Steffan Karger 2 participants 2 messages Jun 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: fix SSL_OP_NO_TICKET check

Only check for SSL_OP_NO_TICKET if building with --enable-ssl and using openssl. This fixes cross-compiling polarssl builds for Windows (where pkg-config would find the system openssl library, but the cross compiler would not have openssl for the target platform).

---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure.ac +2 -1
index 6f405ea..11b68c3 100644
@@ -807,7 +807,8 @@ if test "${have_openssl_crypto}" = "yes"; then
 	LIBS="${saved_LIBS}"
 fi
 
-if test "${have_openssl_ssl}" = "yes"; then
+if test "${enable_ssl}" = "yes" && test "${with_crypto_library}" = "openssl";
+then
     saved_CPPFLAGS="${CPPFLAGS}"
     CPPFLAGS="${CPPFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
     AC_MSG_CHECKING([for SSL_OP_NO_TICKET flag in OpenSSL])
Signature · 1 line
1.9.1
#1 lore raw

ACK. Your patch has been applied to the master branch.

commit d0483476d047b4afc671e205bdfdb5b7f56ce48c (master)

Author: Steffan Karger
Date:   Sun Jun 22 20:18:39 2014 +0200
     configure.ac: fix SSL_OP_NO_TICKET check

     Signed-off-by: Steffan Karger <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: http://article.gmane.org/gmane.network.openvpn.devel/8795
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering