From: Amos Jeffries Date: Fri, 12 Oct 2012 12:25:08 +0000 (-0600) Subject: Portability: pass OS name to helper config.test scripts X-Git-Tag: SQUID_3_4_0_1~571 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acf11cc7829b99e61470a2bca99e9269dcc8c9e4;p=thirdparty%2Fsquid.git 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. --- diff --git a/configure.ac b/configure.ac index 8606d16bf2..e4927993f4 100644 --- a/configure.ac +++ b/configure.ac @@ -1720,7 +1720,7 @@ if test "x$enable_auth_basic" != "xno" ; then 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 @@ -1766,7 +1766,7 @@ if test "x$enable_auth_ntlm" != "xno" ; then 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]) @@ -1811,7 +1811,7 @@ if test "x$enable_auth_negotiate" != "xno" ; then 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]) @@ -1854,7 +1854,7 @@ if test "x$enable_auth_digest" != "xno" ; then 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]) @@ -1895,7 +1895,7 @@ if test "x$squid_opt_logdaemon_helpers" = "xauto" ; then 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]) @@ -2061,7 +2061,7 @@ enable_external_acl_helpers="`echo $enable_external_acl_helpers| sed -e 's/,/ /g 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 @@ -2097,7 +2097,7 @@ URL_REWRITE_HELPERS="" 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])