Skip to content

Commit

Permalink
autoconf: use non-deprecated functions for lssl, lcrypto test
Browse files Browse the repository at this point in the history
With OpenSSL 1.1, many deprecated functions were removed.  Unfortunately,
the current configure script checks for these functions, causing an error
during compiling.

Change the script to look for non-deprecated functions, which exist
on both 1.0 and 1.1.

This fixes the build on Debian and Arch.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs committed May 17, 2017
1 parent 354a2f0 commit 4152916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ AC_ARG_WITH([openssl],AC_HELP_STRING([--with-openssl], [build with OpenSSL suppo
[openssl="$withval"],[openssl="no"])

if test "$openssl" = 'yes'; then
AC_CHECK_LIB([ssl], [SSL_library_init],,[AC_MSG_ERROR([ssl library missing])])
AC_CHECK_LIB([crypto], [CRYPTO_num_locks],,[AC_MSG_ERROR([crypto library missing])])
AC_CHECK_LIB([ssl], [SSL_CTX_new],,[AC_MSG_ERROR([ssl library missing])])
AC_CHECK_LIB([crypto], [CRYPTO_free],,[AC_MSG_ERROR([crypto library missing])])
fi

# GeoIP
Expand Down

0 comments on commit 4152916

Please sign in to comment.