From: Drake Arconis Date: Sun, 14 Jun 2015 17:51:06 +0000 (-0400) Subject: build: Properly detect OpenSSL 1.0.2 when using configure X-Git-Tag: curl-7_43_0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=878c5757c0d97002f3ca623761993b867995c3d3;p=thirdparty%2Fcurl.git build: Properly detect OpenSSL 1.0.2 when using configure --- diff --git a/m4/curl-openssl.m4 b/m4/curl-openssl.m4 index cd9074b02f..5980802b7b 100644 --- a/m4/curl-openssl.m4 +++ b/m4/curl-openssl.m4 @@ -67,6 +67,7 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_HEADERS], [ esac case $tst_api in 0x110) tst_show="1.1.0" ;; + 0x102) tst_show="1.0.2" ;; 0x101) tst_show="1.0.1" ;; 0x100) tst_show="1.0.0" ;; 0x099) tst_show="0.9.9" ;; @@ -138,6 +139,13 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_LIBRARY], [ ;; esac fi + if test "$tst_api" = "unknown"; then + AC_LINK_IFELSE([ + AC_LANG_FUNC_LINK_TRY([SSL_CONF_CTX_new]) + ],[ + tst_api="0x102" + ]) + fi if test "$tst_api" = "unknown"; then AC_LINK_IFELSE([ AC_LANG_FUNC_LINK_TRY([SSL_renegotiate_abbreviated]) @@ -210,6 +218,7 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_LIBRARY], [ fi case $tst_api in 0x110) tst_show="1.1.0" ;; + 0x102) tst_chow="1.0.2" ;; 0x101) tst_show="1.0.1" ;; 0x100) tst_show="1.0.0" ;; 0x099) tst_show="0.9.9" ;;