From: Francesco Chemolli Date: Fri, 16 Apr 2010 08:58:32 +0000 (+0200) Subject: Fixed regression in EUI option handling. X-Git-Tag: SQUID_3_2_0_1~271^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9dfcab89373fea67c222d197b9edeae2f943dd3;p=thirdparty%2Fsquid.git Fixed regression in EUI option handling. Partly refactored SSL option handling. --- diff --git a/configure.in b/configure.in index d7975d40d4..2daf8bfa27 100644 --- a/configure.in +++ b/configure.in @@ -1070,7 +1070,7 @@ fi AC_MSG_NOTICE([EUI (MAC address) controls enabled: $enable_eui]) SQUID_DEFINE_UNQUOTED(USE_SQUID_EUI,$enable_eui, [Define this to include code which lets you use ethernet addresses. This code uses API initially defined in 4.4-BSD.]) -AM_CONDITIONAL(USE_SQUID_EUI, [test "$enable" = "yes" ]) +AM_CONDITIONAL(USE_SQUID_EUI, [test "$enable_eui" = "yes" ]) AC_ARG_ENABLE(htcp, @@ -1086,22 +1086,27 @@ AC_MSG_NOTICE([HTCP support enabled: $enable_htcp]) dnl TODO KK: SSL not yet refactored dnl SSL is not enabled by default. -AM_CONDITIONAL(ENABLE_SSL, false) dnl Default is to use OpenSSL when available AC_ARG_ENABLE(ssl, - AS_HELP_STRING([--enable-ssl],[Enable ssl gatewaying support using OpenSSL]), -[ if test "$enableval" != "no"; then - AC_MSG_NOTICE([SSL gatewaying using OpenSSL enabled]) - AC_DEFINE(USE_SSL,1,[Define this to include code for SSL encryption.]) - AM_CONDITIONAL(ENABLE_SSL, true) + AS_HELP_STRING([--enable-ssl], + [Enable ssl gatewaying support using OpenSSL]), [ +SQUID_YESNO([$enableval], + [unrecognized argument to --enable-ssl: $enableval]) +]) +SQUID_DEFINE_UNQUOTED([USE_SSL],${enable_ssl:=no}, + [Define this to include code for SSL gatewaying support]) +AM_CONDITIONAL(ENABLE_SSL,[ test $enable_ssl = "yes" ]) +if test $enable_ssl = "yes" ; then if test "$squid_host_os" = "mingw" ; then SSLLIB='-lssleay32 -leay32 -lgdi32' else SSLLIB='-lssl -lcrypto' fi - USE_OPENSSL=1 - fi -]) +fi +AC_MSG_NOTICE([SSL gatewaying support enabled: $enable_ssl]) + +#FIXME: temporary refactoring help +USE_OPENSSL=$enable_ssl dnl User may specify OpenSSL is needed from a non-standard location AC_ARG_WITH(openssl,