]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix shell issues with require_smblib definition in rev.14692
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Jun 2016 02:36:42 +0000 (14:36 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Jun 2016 02:36:42 +0000 (14:36 +1200)
Some shells do not handle sub-shell expansion in a way suitable for bare
inclusion into if statements as needed by AM_CONDITIONAL.

configure.ac
src/auth/basic/SMB_LM/required.m4
src/auth/ntlm/SMB_LM/required.m4

index 8eed79a3a4907acdad09469046b40ef4d264ade2..286dbff85411915ffb2cc98d56054fad9b0cd352 100644 (file)
@@ -2472,7 +2472,7 @@ AC_MSG_NOTICE([Authentication support enabled: ${enable_auth:=yes}])
 SQUID_DEFINE_BOOL(USE_AUTH,$enable_auth,[Enable support for authentication])
 AM_CONDITIONAL(ENABLE_AUTH, test "x$enable_auth" != "xno")
 AUTH_MODULES=""
-require_smblib=0
+require_smblib="no"
 
 AC_ARG_ENABLE(auth-basic,
   AS_HELP_STRING([--enable-auth-basic="list of helpers"],
@@ -2532,7 +2532,7 @@ for module in $AUTH_MODULES; do
 done
 AC_SUBST(AUTH_MODULES)
 AC_SUBST(AUTH_LIBS_TO_BUILD)
-AM_CONDITIONAL(ENABLE_SMBLIB, $require_smblib)
+AM_CONDITIONAL(ENABLE_SMBLIB, test "x$require_smblib" = "xyes")
 
 dnl Select logging daemon helpers to build
 AC_ARG_ENABLE(log-daemon-helpers,
index 26597304e9d64bb10130b230ac578b96b7a6b226..8f9c70fd6ac72b601f4588bea392c9d3036622db 100755 (executable)
@@ -10,5 +10,5 @@
 if test "x$auto_auth_basic_modules" != "xyes";then
   BUILD_HELPER="SMB_LM"
   AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
-  require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
+  AS_IF([test "x$BUILD_HELPER" = "xSMB_LM"],[require_smblib="yes"])
 fi
index 81ed295eff602e7d46eac57d0235c2592f41f8bd..ae82e440485da8d89048b9947a8a34d3ee533bdb 100755 (executable)
@@ -13,5 +13,5 @@
 if test "$squid_host_os" != "mingw" -a "x$auto_auth_ntlm_modules" != "xyes"; then
   BUILD_HELPER="SMB_LM"
   AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
-  require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
+  AS_IF([test "x$BUILD_HELPER" = "xSMB_LM"],[require_smblib="yes"])
 fi