Fix the -ldl and -ldl + -lpthread checks for OpenSSL, necessary for
building with static libs without pkg-config.
Reported-by: Marcel Raad
Fixes #2199
Closes #2659
dnl still no, but what about with -ldl?
AC_MSG_CHECKING([OpenSSL linking with -ldl])
- LIBS="$LIBS -ldl"
+ LIBS="$LIBS -ldl -lcrypto"
AC_TRY_LINK(
[
#include <openssl/err.h>
dnl ok, so what about bouth -ldl and -lpthread?
AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
- LIBS="$LIBS -lpthread"
+ LIBS="$CLEANLIBS -ldl -lpthread -lcrypto"
AC_TRY_LINK(
[
#include <openssl/err.h>