Skip to content

Commit

Permalink
build: Properly detect OpenSSL 1.0.2 when using configure
Browse files Browse the repository at this point in the history
  • Loading branch information
RyeMutt authored and jay committed Jun 14, 2015
1 parent dd39a67 commit 878c575
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions m4/curl-openssl.m4
Expand Up @@ -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" ;;
Expand Down Expand Up @@ -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])
Expand Down Expand Up @@ -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" ;;
Expand Down

0 comments on commit 878c575

Please sign in to comment.