]>
Commit | Line | Data |
---|---|---|
bde978a6 | 1 | ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
ca02e0ec AJ |
2 | ## |
3 | ## Squid software is distributed under GPLv2+ license and includes | |
4 | ## contributions from numerous individuals and organizations. | |
5 | ## Please see the COPYING and CONTRIBUTORS files for details. | |
6 | ## | |
7 | ||
5eabe4b4 AJ |
8 | # This file is supposed to run all the tests required to identify which |
9 | # configured modules are able to be built in this environment | |
10 | ||
11 | # FIXME: de-duplicate $enable_external_acl_helpers list containing double entries. | |
12 | ||
13 | #define list of modules to build | |
14 | if test "x${enable_external_acl_helpers:=yes}" = "xyes" ;then | |
15 | SQUID_LOOK_FOR_MODULES([$srcdir/helpers/external_acl],[enable_external_acl_helpers]) | |
16 | fi | |
17 | if test "x$enable_external_acl_helpers" = "xnone" ; then | |
18 | enable_external_acl_helpers="" | |
19 | fi | |
20 | EXTERNAL_ACL_HELPERS="" | |
21 | enable_external_acl_helpers="`echo $enable_external_acl_helpers| sed -e 's/,/ /g;s/ */ /g'`" | |
22 | if test "x$enable_external_acl_helpers" != "xno" ; then | |
23 | for helper in $enable_external_acl_helpers ; do | |
24 | dir="$srcdir/helpers/external_acl/$helper" | |
25 | ||
26 | # modules converted to autoconf macros already | |
27 | # NP: we only need this list because m4_include() does not accept variables | |
28 | if test "x$helper" = "xAD_group" ; then | |
29 | m4_include([helpers/external_acl/AD_group/required.m4]) | |
30 | ||
31 | elif test "x$helper" = "xLDAP_group" ; then | |
32 | m4_include([helpers/external_acl/LDAP_group/required.m4]) | |
33 | ||
34 | elif test "x$helper" = "xLM_group" ; then | |
35 | m4_include([helpers/external_acl/LM_group/required.m4]) | |
36 | ||
ec1fac73 FC |
37 | elif test "x$helper" = "xdelayer" ; then |
38 | m4_include([helpers/external_acl/delayer/required.m4]) | |
39 | ||
5eabe4b4 AJ |
40 | elif test "x$helper" = "xSQL_session" ; then |
41 | m4_include([helpers/external_acl/SQL_session/required.m4]) | |
42 | ||
43 | elif test "x$helper" = "xeDirectory_userip" ; then | |
44 | m4_include([helpers/external_acl/eDirectory_userip/required.m4]) | |
45 | ||
46 | elif test "x$helper" = "xfile_userip" ; then | |
47 | m4_include([helpers/external_acl/file_userip/required.m4]) | |
48 | ||
49 | elif test "x$helper" = "xkerberos_ldap_group" ; then | |
50 | m4_include([helpers/external_acl/kerberos_ldap_group/required.m4]) | |
51 | ||
52 | elif test "x$helper" = "xsession" ; then | |
53 | m4_include([helpers/external_acl/session/required.m4]) | |
54 | ||
55 | elif test "x$helper" = "xtime_quota" ; then | |
56 | m4_include([helpers/external_acl/time_quota/required.m4]) | |
57 | ||
58 | elif test "x$helper" = "xunix_group" ; then | |
59 | m4_include([helpers/external_acl/unix_group/required.m4]) | |
60 | ||
61 | elif test "x$helper" = "xwbinfo_group" ; then | |
62 | m4_include([helpers/external_acl/wbinfo_group/required.m4]) | |
63 | ||
64 | # modules not yet converted to autoconf macros (or third party drop-in's) | |
65 | elif test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then | |
66 | BUILD_HELPER="$helper" | |
67 | fi | |
68 | ||
69 | if test -d "$srcdir/helpers/external_acl/$helper"; then | |
70 | if test "$BUILD_HELPER" != "$helper"; then | |
71 | AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built]) | |
72 | else | |
73 | EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $BUILD_HELPER" | |
74 | fi | |
75 | else | |
76 | AC_MSG_ERROR([external acl helper $helper ... not found]) | |
77 | fi | |
78 | done | |
79 | fi | |
80 | AC_MSG_NOTICE([External acl helpers to be built: $EXTERNAL_ACL_HELPERS]) | |
81 | AC_SUBST(EXTERNAL_ACL_HELPERS) |