From 76a706fbde02f7f4c1aa5ec04e775af0a22baabb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 2 May 2019 10:42:23 +0200 Subject: [PATCH] configure: error out if OpenSSL wasn't detected when asked for If --with-ssl is used and configure still couldn't enable SSL this creates an error instead of just silently ignoring the fact. Suggested-by: Isaiah Norton Fixes #3824 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 00fef948918cb9..a5b8241918f5d0 100755 --- a/configure.ac +++ b/configure.ac @@ -1889,6 +1889,11 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno && test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" fi +if test X"$with_ssl" != Xno && + test "$OPENSSL_ENABLED" != "1"; then + AC_MSG_ERROR([--with-ssl was given but OpenSSL could not be detected]) +fi + dnl ********************************************************************** dnl Check for the random seed preferences dnl **********************************************************************