repo: ngircd
action: commit
revision: 
path_from: 
revision_from: b1893e740e745cc5081ef59719bb10bc5f729fdb:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit b1893e740e745cc5081ef59719bb10bc5f729fdb
Author: Alexander Barton 
Date:   Mon Jul 1 21:56:36 2019 +0200

    Make sure HAVE_LIBSSL is defined, even when using pkg-config

    Without this, the configure script assumes and states that OpenSSL will
    be used, but the code won't include support for it because there we use
    the "HAVE_LIBSSL" define to test for it ("#ifdef HAVE_LIBSSL").

    So define the latter when pkg-config(1) is used, too.

    This fixes #257, a regression introduced by commit ad86a41ee :-/

diff --git a/configure.ng b/configure.ng
index 899d00f762eb4e957bef2d6268691acbe0d4eccb..
index ..367c2f0cc59a9c386d11c2fab3f5239a30aba22f 100644
--- a/configure.ng
+++ b/configure.ng
@@ -465,7 +465,8 @@ AC_ARG_WITH(openssl,
 				LDFLAGS="-L$withval/lib $LDFLAGS"
 			fi
 			PKG_CHECK_MODULES([OPENSSL], [libssl libcrypto],
-				[LIBS="$LIBS $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_CFLAGS"],
+				[LIBS="$LIBS $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
+				AC_DEFINE(HAVE_LIBSSL, 1)],
 				[AC_CHECK_LIB(crypto, BIO_s_mem)
 				AC_CHECK_LIB(ssl, SSL_new)]
 			)

-----END OF PAGE-----