From b3f49ebccc60d39c32988296722a2ecdbc82adf6 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 19 Aug 2014 02:18:07 +0000 Subject: Re #1751 (misc): Fixed compilation error due to the lack of the SSLv2 methods. The fix will autodetect this and define OPENSSL_NO_SSL2 if necessary. Related to #1321. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4892 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 25a6c9bc..b7bf92e0 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -1521,6 +1521,10 @@ AC_ARG_ENABLE(ssl, # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) AC_DEFINE(PJ_HAS_SSL_SOCK, 1) + AC_CHECK_LIB(ssl,SSLv2_method,[libssl_no_ssl2=1]) + if test "x$libssl_no_ssl2" != "x1"; then + CFLAGS="$CFLAGS -DOPENSSL_NO_SSL2=1" + fi else AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) fi -- cgit v1.2.3