ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit ad86a41eeed9f85d74bb50a25fa0bf4515aaf3af
parent aec86aa84c7033757d36ad31aa6d87b271fe1e5b
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date:   Thu, 11 Apr 2019 23:24:36 +0200

configure.ng: use pkg-config to find PpenSSL dependencies

OpenSSL can depends on lz or latomic so use pkg-config to find those
dependencies and fallback to existing mechanism.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Closes #256.

Diffstat:
Mconfigure.ng | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ng b/configure.ng @@ -464,8 +464,11 @@ AC_ARG_WITH(openssl, 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]) )