From a024f63d45bdbfa2843f3d8f5a68886366eec47b Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Sun, 2 May 2010 22:21:27 +0200 Subject: [PATCH] Correct --with-openssl processing when not given --- configure.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 73b72a2fd5..920f130e86 100644 --- a/configure.in +++ b/configure.in @@ -1097,6 +1097,9 @@ if test ${enable_ssl:=no} = "yes" ; then else SSLLIB='-lssl -lcrypto' fi + if test -z "$with_openssl"; then + with_openssl=yes + fi fi AM_CONDITIONAL(ENABLE_SSL,[ test $enable_ssl = "yes" ]) AC_MSG_NOTICE([SSL gatewaying support enabled: $enable_ssl]) @@ -1121,11 +1124,10 @@ case "$with_openssl" in with_openssl=yes esac ]) -AC_MSG_NOTICE([SSL/TLS Support: $with_openssl]) SQUID_DEFINE_UNQUOTED(USE_SSL,$enable_ssl, [Define this to include code for SSL gatewaying support]) -AC_MSG_NOTICE([Using OpenSSL MD5 implementation: $with_openssl]) -SQUID_DEFINE_UNQUOTED(USE_OPENSSL,$with_openssl, +AC_MSG_NOTICE([Using OpenSSL MD5 implementation: ${with_openssl:=no}]) +SQUID_DEFINE_UNQUOTED(USE_OPENSSL,${with_openssl}, [Define this to make use of the OpenSSL libraries for MD5 calculation rather than Squid-supplied MD5 implementation or if building with SSL encryption]) if test "$enable_ssl" = "yes"; then if test -z "$SSLLIB"; then -- 2.47.2