Skip to content

Commit

Permalink
configure: fix BoringSSL detection and detect libresssl
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 22, 2015
1 parent 12e45b8 commit 3d5648f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion configure.ac
Expand Up @@ -1615,12 +1615,27 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
AC_MSG_RESULT([no])
])
AC_MSG_CHECKING([for BoringSSL])
if test "x$ac_cv_func_des_set_odd_parity" != "xyes"; then
if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then
curl_ssl_msg="enabled (BoringSSL)"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_MSG_CHECKING([for libressl])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <openssl/opensslv.h>
]],[[
int dummy = LIBRESSL_VERSION_NUMBER;
]])
],[
AC_MSG_RESULT([yes])
AC_DEFINE_UNQUOTED(HAVE_LIBRESSL, 1,
[Define to 1 if using libressl.])
curl_ssl_msg="enabled (libressl)"
],[
AC_MSG_RESULT([no])
])
fi

if test "$OPENSSL_ENABLED" = "1"; then
Expand Down

0 comments on commit 3d5648f

Please sign in to comment.