]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed regression in EUI option handling.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 16 Apr 2010 08:58:32 +0000 (10:58 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 16 Apr 2010 08:58:32 +0000 (10:58 +0200)
Partly refactored SSL option handling.

configure.in

index d7975d40d432ff4181fa8483fc601434eac3981b..2daf8bfa27a33ceb9e28bd63a8730b78184ebf14 100644 (file)
@@ -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,