summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac4
1 files changed, 4 insertions, 0 deletions
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