7b9b7d9ad54375216ced3f6692e9e8a81bcb0dd6
[openafs.git] / src / cf / gss.m4
1 AC_DEFUN([OPENAFS_GSS],
2 dnl Probe for GSSAPI
3   [RRA_LIB_GSSAPI
4 dnl Check for the characteristics of whatever GSSAPI we found, if we found one
5   BUILD_GSSAPI=no
6   AS_IF([test x"$GSSAPI_LIBS" != x],
7       [BUILD_GSSAPI=yes
8        RRA_LIB_GSSAPI_SWITCH
9        AC_CHECK_FUNCS([gss_pseudo_random \
10                        krb5_gss_register_acceptor_identity \
11                        gss_krb5_ccache_name])
12 dnl We only need gssapi for rxgk (at this point).  rxgk requires pseudo_random.
13        AS_IF([test x"$ac_cv_func_gss_pseudo_random" != xyes],
14              [BUILD_GSSAPI=no])
15        RRA_LIB_GSSAPI_RESTORE])
16   AC_SUBST([BUILD_GSSAPI])])