From afa340ee84fe24683c5d8d619f3fafe73b75edef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Sun, 23 Jun 2013 23:50:43 +0000 Subject: [PATCH] Check for OpenSSL support for --enable-dane It doesn't make any sense to build Irssi without SSL support, but with DANE support. This patch adds an extra check in the configure script that will make the script bail out if someone tries to build Irssi with DANE support, but without OpenSSL support. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5222 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.in b/configure.in index cabc81bb..51846c3d 100644 --- a/configure.in +++ b/configure.in @@ -634,6 +634,12 @@ if test "x$want_dane" = "xyes"; then AC_DEFINE([HAVE_DANE], [], [DANE support]) have_dane=yes ], [], [-lssl -lcrypto -lsres]) + + if test x$have_dane = "xyes" ; then + if test x$have_openssl = "xno" ; then + AC_ERROR([SSL is required to build Irssi with DANE support enabled.]) + fi + fi fi AC_CONFIG_FILES([