|
5 | 5 | ## Please see the COPYING and CONTRIBUTORS files for details. |
6 | 6 | ## |
7 | 7 |
|
| 8 | +dnl check whether the Kerberos context has a memory cache |
| 9 | +AC_DEFUN([SQUID_CHECK_KRB5_CONTEXT_MEMORY_CACHE],[ |
| 10 | + AC_REQUIRE([SQUID_STATE_SAVE]) |
| 11 | + AC_REQUIRE([SQUID_STATE_ROLLBACK]) |
| 12 | + AC_REQUIRE([SQUID_DEFINE_BOOL]) |
| 13 | + AC_CACHE_CHECK([for Kerberos context memory cache],squid_cv_krb5_memory_cache,[ |
| 14 | + SQUID_STATE_SAVE(squid_krb5_test) |
| 15 | + CPPFLAGS="-I${srcdir:-.} $CPPFLAGS" |
| 16 | + AC_RUN_IFELSE([ |
| 17 | + AC_LANG_PROGRAM([[#include "compat/krb5.h"]],[[ |
| 18 | + krb5_context c; |
| 19 | + krb5_ccache cc; |
| 20 | + krb5_init_context(&c); |
| 21 | + return krb5_cc_resolve(c, "MEMORY:test_cache", &cc); |
| 22 | + ]]) |
| 23 | + ],[squid_cv_krb5_memory_cache=yes],[squid_cv_krb5_memory_cache=no],[:]) |
| 24 | + SQUID_STATE_ROLLBACK(squid_krb5_test) |
| 25 | + ]) |
| 26 | + SQUID_DEFINE_BOOL(HAVE_KRB5_MEMORY_CACHE,$squid_cv_krb5_memory_cache,[kerberos has MEMORY: cache support]) |
| 27 | +]) dnl SQUID_CHECK_KRB5_CONTEXT_MEMORY_CACHE |
| 28 | + |
8 | 29 | dnl check whether the Kerberos context has a memory keytab |
9 | 30 | AC_DEFUN([SQUID_CHECK_KRB5_CONTEXT_MEMORY_KEYTAB],[ |
10 | 31 | AC_REQUIRE([SQUID_STATE_SAVE]) |
@@ -63,29 +84,6 @@ AC_DEFUN([SQUID_CHECK_SOLARIS_KRB5],[ |
63 | 84 | ]) |
64 | 85 | ]) |
65 | 86 |
|
66 | | -dnl check whether the kerberos context has a memory cache. Sets |
67 | | -dnl squid_cv_memory_cache if that's the case. |
68 | | -AC_DEFUN([SQUID_CHECK_KRB5_CONTEXT_MEMORY_CACHE],[ |
69 | | - AC_CACHE_CHECK([for memory cache], squid_cv_memory_cache, [ |
70 | | - SQUID_STATE_SAVE(squid_krb5_test) |
71 | | - CPPFLAGS="-I${srcdir:-.} $CPPFLAGS" |
72 | | - AC_RUN_IFELSE([ |
73 | | - AC_LANG_SOURCE([[ |
74 | | -#include "compat/krb5.h" |
75 | | -int main(int argc, char *argv[]) |
76 | | -{ |
77 | | - krb5_context context; |
78 | | - krb5_ccache cc; |
79 | | -
|
80 | | - krb5_init_context(&context); |
81 | | - return krb5_cc_resolve(context, "MEMORY:test_cache", &cc); |
82 | | -} |
83 | | - ]]) |
84 | | - ], [ squid_cv_memory_cache=yes ], [ squid_cv_memory_cache=no ], [:]) |
85 | | - SQUID_STATE_ROLLBACK(squid_krb5_test) |
86 | | - ]) |
87 | | -]) |
88 | | - |
89 | 87 | dnl check for PAC requirements |
90 | 88 | AC_DEFUN([SQUID_CHECK_KRB5_PAC_SUPPORT],[ |
91 | 89 | AC_CHECK_TYPE(krb5_pac,[ |
@@ -273,9 +271,6 @@ AC_DEFUN([SQUID_CHECK_KRB5_FUNCS],[ |
273 | 271 | SQUID_STATE_ROLLBACK(squid_krb5_test) |
274 | 272 |
|
275 | 273 | SQUID_CHECK_KRB5_CONTEXT_MEMORY_CACHE |
276 | | - SQUID_DEFINE_BOOL(HAVE_KRB5_MEMORY_CACHE,$squid_cv_memory_cache, |
277 | | - [Define if kerberos has MEMORY: cache support]) |
278 | | -
|
279 | 274 | SQUID_CHECK_KRB5_CONTEXT_MEMORY_KEYTAB |
280 | 275 |
|
281 | 276 | SQUID_CHECK_WORKING_GSSAPI |
|
0 commit comments