------------------------------------------------------------ revno: 12362 revision-id: squid3@treenet.co.nz-20121013060711-ynmigg93s2ywvpun parent: squid3@treenet.co.nz-20121013060627-8vvllqdvkmbisr4p committer: Amos Jeffries branch nick: 3.3 timestamp: Sat 2012-10-13 00:07:11 -0600 message: Portability: pass OS name to helper config.test scripts This will help us perform OS-specific enable/disable rather than having to identify some software or file that SHOULD exist only in those OS, but which might exist elsewhere for weird reasons (ie windows.h). NP: the $@ which was being passed was unused by any current config.test Removed it and converted to fixed-position parameters for easier script development. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20121013060711-ynmigg93s2ywvpun # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: 1db24cd8b937bc0d3e398487716f22b7509da469 # timestamp: 2012-10-13 06:07:50 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20121013060627-\ # 8vvllqdvkmbisr4p # # Begin patch === modified file 'configure.ac' --- configure.ac 2012-10-13 06:01:01 +0000 +++ configure.ac 2012-10-13 06:07:11 +0000 @@ -1715,7 +1715,7 @@ for helper in $enable_auth_basic do dir="$srcdir/helpers/basic_auth/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $helper" # special case if test "x$helper" = "xSASL" ; then @@ -1761,7 +1761,7 @@ AC_DEFINE([HAVE_AUTH_MODULE_NTLM],1,[NTLM auth module is built]) for helper in $enable_auth_ntlm ; do dir="$srcdir/helpers/ntlm_auth/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $helper" elif test -d "$srcdir/helpers/ntlm_auth/$helper" ; then AC_MSG_NOTICE([NTLM auth helper $helper ... found but cannot be built]) @@ -1806,7 +1806,7 @@ AC_DEFINE([HAVE_AUTH_MODULE_NEGOTIATE],1,[Negotiate auth module is built]) for helper in $enable_auth_negotiate ; do dir="$srcdir/helpers/negotiate_auth/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $helper" elif test -d "$srcdir/helpers/negotiate_auth/$helper" ; then AC_MSG_NOTICE([Negotiate auth helper $helper ... found but cannot be built]) @@ -1849,7 +1849,7 @@ AC_DEFINE([HAVE_AUTH_MODULE_DIGEST],1,[Digest auth module is built]) for helper in $enable_auth_digest ; do dir="$srcdir/helpers/digest_auth/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $helper" elif test -d "$srcdir/helpers/digest_auth/$helper" ; then AC_MSG_NOTICE([Digest auth helper $helper ... found but cannot be built]) @@ -1890,7 +1890,7 @@ fi for helper in $squid_opt_logdaemon_helpers ; do dir="$srcdir/helpers/log_daemon/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then LOG_DAEMON_HELPERS="$LOG_DAEMON_HELPERS $helper" elif test -d "$srcdir/helpers/log_daemon/$helper" ; then AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built]) @@ -2056,7 +2056,7 @@ if test "x$enable_external_acl_helpers" != "xno" ; then for helper in $enable_external_acl_helpers ; do dir="$srcdir/helpers/external_acl/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $helper" # special case if test "x$helper" = "xkerberos_ldap_group" ; then @@ -2092,7 +2092,7 @@ if test "x$enable_url_rewrite_helpers" != "xno" ; then for helper in $enable_url_rewrite_helpers; do dir="$srcdir/helpers/url_rewrite/$helper" - if test -f "$dir/config.test" && sh "$dir/config.test" "$@"; then + if test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then URL_REWRITE_HELPERS="$URL_REWRITE_HELPERS $helper" elif test -d "$srcdir/helpers/ntlm_auth/$helper" ; then AC_MSG_NOTICE([URL rewrite helper $helper ... found but cannot be built])