AC_MSG_ERROR([Basic auth requested but auth disabled])
fi
#define list of modules to build
+auto_auth_basic_modules=no
if test "x$enable_auth_basic" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/basic_auth],[enable_auth_basic])
+ auto_auth_basic_modules=yes
fi
#handle the "none" special case
if test "x$enable_auth_basic" = "xnone" ; then
if test -d "$srcdir/helpers/basic_auth/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([Basic auth helper $helper ... found but cannot be built])
+ if test "x$auto_auth_basic_modules" = "xyes"; then
+ AC_MSG_NOTICE([Basic auth helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([Basic auth helper $helper ... found but cannot be built])
+ fi
else
BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $BUILD_HELPER"
fi
AC_MSG_ERROR([Digest auth requested but auth disabled])
fi
#define list of modules to build
+auto_auth_digest_modules=no
if test "x$enable_auth_digest" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/digest_auth],[enable_auth_digest])
+ auto_auth_digest_modules=yes
fi
#handle the "none" special case
if test "x$enable_auth_digest" = "xnone" ; then
if test -d "$srcdir/helpers/digest_auth/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([Digest auth helper $helper ... found but cannot be built])
+ if test "x$auto_auth_digest_modules" = "xyes"; then
+ AC_MSG_NOTICE([Digest auth helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([Digest auth helper $helper ... found but cannot be built])
+ fi
else
DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $BUILD_HELPER"
fi
# FIXME: de-duplicate $enable_external_acl_helpers list containing double entries.
#define list of modules to build
+auto_ext_acl_modules=no
if test "x${enable_external_acl_helpers:=yes}" = "xyes" ;then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/external_acl],[enable_external_acl_helpers])
+ auto_ext_acl_modules=yes
fi
if test "x$enable_external_acl_helpers" = "xnone" ; then
enable_external_acl_helpers=""
if test -d "$srcdir/helpers/external_acl/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built])
+ if test "x$auto_ext_acl_modules" = "xyes"; then
+ AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([external acl helper $helper ... found but cannot be built])
+ fi
else
EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $BUILD_HELPER"
fi
# FIXME: de-duplicate $enable_log_daemon_helpers list containing double entries.
#define list of modules to build
+auto_logdaemon_modules=no
if test "x${enable_log_daemon_helpers:=yes}" = "xyes" ;then
enable_log_daemon_helpers=""
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/log_daemon],[enable_log_daemon_helpers])
+ auto_logdaemon_modules=yes
fi
if test "x$enable_log_daemon_helpers" = "xnone" ; then
enable_log_daemon_helpers=""
if test -d "$srcdir/helpers/log_daemon/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built])
+ if test "x$auto_logdaemon_modules" = "xyes"; then
+ AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([Log daemon helper $helper ... found but cannot be built])
+ fi
else
LOG_DAEMON_HELPERS="$LOG_DAEMON_HELPERS $BUILD_HELPER"
fi
AC_MSG_ERROR([Negotiate auth requested but auth disabled])
fi
#define list of modules to build
+auto_auth_negotiate_modules=no
if test "x$enable_auth_negotiate" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/negotiate_auth],[enable_auth_negotiate])
+ auto_auth_negotiate_modules=yes
fi
#handle the "none" special case
if test "x$enable_auth_negotiate" = "xnone" ; then
if test -d "$srcdir/helpers/negotiate_auth/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([Negotiate auth helper $helper ... found but cannot be built])
+ if test "x$auto_auth_negotiate_modules" = "xyes"; then
+ AC_MSG_NOTICE([Negotiate auth helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([Negotiate auth helper $helper ... found but cannot be built])
+ fi
else
NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $BUILD_HELPER"
fi
AC_MSG_ERROR([NTLM auth requested but auth disabled])
fi
#define list of modules to build
+auto_auth_ntlm_modules=no
if test "x$enable_auth_ntlm" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/ntlm_auth],[enable_auth_ntlm])
+ auto_auth_ntlm_modules=yes
fi
#handle the "none" special case
if test "x$enable_auth_ntlm" = "xnone" ; then
if test -d "$srcdir/helpers/ntlm_auth/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([NTLM auth helper $helper ... found but cannot be built])
+ if test "x$auto_auth_ntlm_modules" = "xyes"; then
+ AC_MSG_NOTICE([NTLM auth helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([NTLM auth helper $helper ... found but cannot be built])
+ fi
else
NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $BUILD_HELPER"
fi
# FIXME: de-duplicate $enable_storeid_rewrite_helpers list containing double entries.
#define list of modules to build
+auto_storeid_modules=no
if test "x${enable_storeid_rewrite_helpers:=yes}" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/storeid_rewrite],[enable_storeid_rewrite_helpers])
+ auto_storeid_modules=yes
fi
enable_storeid_rewrite_helpers="`echo $enable_storeid_rewrite_helpers| sed -e 's/,/ /g;s/ */ /g'`"
if test -d "$srcdir/helpers/storeid_rewrite/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([Store-ID rewrite helper $helper ... found but cannot be built])
+ if test "x$auto_storeid_modules" = "xyes"; then
+ AC_MSG_NOTICE([Store-ID rewrite helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([Store-ID rewrite helper $helper ... found but cannot be built])
+ fi
else
STOREID_REWRITE_HELPERS="$STOREID_REWRITE_HELPERS $BUILD_HELPER"
fi
# FIXME: de-duplicate $enable_url_rewrite_helpers list containing double entries.
#define list of modules to build
+auto_urlrewrite_modules=no
if test "x${enable_url_rewrite_helpers:=yes}" = "xyes" ; then
SQUID_LOOK_FOR_MODULES([$srcdir/helpers/url_rewrite],[enable_url_rewrite_helpers])
+ auto_urlrewrite_modules=yes
fi
enable_url_rewrite_helpers="`echo $enable_url_rewrite_helpers| sed -e 's/,/ /g;s/ */ /g'`"
if test -d "$srcdir/helpers/url_rewrite/$helper"; then
if test "$BUILD_HELPER" != "$helper"; then
- AC_MSG_NOTICE([URL rewrite helper $helper ... found but cannot be built])
+ if test "x$auto_urlrewrite_modules" = "xyes"; then
+ AC_MSG_NOTICE([URL rewrite helper $helper ... found but cannot be built])
+ else
+ AC_MSG_ERROR([URL rewrite helper $helper ... found but cannot be built])
+ fi
else
URL_REWRITE_HELPERS="$URL_REWRITE_HELPERS $BUILD_HELPER"
fi