commit - aec86aa84c7033757d36ad31aa6d87b271fe1e5b
commit + ad86a41eeed9f85d74bb50a25fa0bf4515aaf3af
blob - 57ae8bb8e66d1aba58cb84ac0fd136c4b2558fe1
blob + 899d00f762eb4e957bef2d6268691acbe0d4eccb
--- configure.ng
+++ configure.ng
CPPFLAGS="-I$withval/include $CPPFLAGS"
LDFLAGS="-L$withval/lib $LDFLAGS"
fi
- AC_CHECK_LIB(crypto, BIO_s_mem)
- AC_CHECK_LIB(ssl, SSL_new)
+ PKG_CHECK_MODULES([OPENSSL], [libssl libcrypto],
+ [LIBS="$LIBS $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_CFLAGS"],
+ [AC_CHECK_LIB(crypto, BIO_s_mem)
+ AC_CHECK_LIB(ssl, SSL_new)]
+ )
AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
AC_MSG_ERROR([Can't enable openssl])
)