Skip to content

Commit de55f87

Browse files
authored
Merge branch 'master' into arc-autoconf-ng-13-4
2 parents 5909c80 + 2e34a40 commit de55f87

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

acinclude/krb5.m4

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@
55
## Please see the COPYING and CONTRIBUTORS files for details.
66
##
77

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+
829
dnl check whether the Kerberos context has a memory keytab
930
AC_DEFUN([SQUID_CHECK_KRB5_CONTEXT_MEMORY_KEYTAB],[
1031
AC_REQUIRE([SQUID_STATE_SAVE])
@@ -63,29 +84,6 @@ AC_DEFUN([SQUID_CHECK_SOLARIS_KRB5],[
6384
])
6485
])
6586

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-
8987
dnl check for PAC requirements
9088
AC_DEFUN([SQUID_CHECK_KRB5_PAC_SUPPORT],[
9189
AC_CHECK_TYPE(krb5_pac,[
@@ -273,9 +271,6 @@ AC_DEFUN([SQUID_CHECK_KRB5_FUNCS],[
273271
SQUID_STATE_ROLLBACK(squid_krb5_test)
274272
275273
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-
279274
SQUID_CHECK_KRB5_CONTEXT_MEMORY_KEYTAB
280275
281276
SQUID_CHECK_WORKING_GSSAPI

0 commit comments

Comments
 (0)