about summary refs log tree commit diff
path: root/configure.ng
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2019-07-01 21:56:36 +0200
committerAlexander Barton <alex@barton.de>2019-07-01 22:03:47 +0200
commitb1893e740e745cc5081ef59719bb10bc5f729fdb (patch)
tree1a20280c8c5e0f4b3724b659e2c2d33033139af7 /configure.ng
parent2c495a1fe7c25494248204b725afaffc8c71411a (diff)
downloadngircd-b1893e740e745cc5081ef59719bb10bc5f729fdb.tar.gz
ngircd-b1893e740e745cc5081ef59719bb10bc5f729fdb.zip
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 :-/
Diffstat (limited to 'configure.ng')
-rw-r--r--configure.ng3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ng b/configure.ng
index 899d00f7..367c2f0c 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)]
 			)