6 dnl Check for kafs_settoken_rxkad
9 AC_DEFUN([AC_FUNC_KAFS_SETTOKEN_RXKAD], [
11 AC_CACHE_CHECK(for kafs_settoken_rxkad, ac_cv_func_kafs_settoken_rxkad, [
12 if test "$ac_cv_found_krb5" = "yes"; then
13 save_CPPFLAGS="${CPPFLAGS}"
15 CPPFLAGS="${KAFS_CPPFLAGS} ${KRB5_INC_FLAGS} ${KRB4_INC_FLAGS} ${CPPFLAGS}"
16 LIBS="${KAFS_LIBS} ${LIBS}"
17 AC_TRY_LINK([#ifdef HAVE_SYS_PARAM_H
18 #include <sys/param.h>
20 #ifdef HAVE_SYS_TYPES_H
21 #include <sys/types.h>
23 #ifdef HAVE_SYS_IOCTL_H
24 #include <sys/ioctl.h>
27 [kafs_settoken_rxkad(0,0,0,0);],
28 ac_cv_func_kafs_settoken_rxkad=yes,
29 ac_cv_func_kafs_settoken_rxkad=no)
30 CPPFLAGS="${save_CPPFLAGS}"
33 ac_cv_func_kafs_settoken_rxkad=no
36 if test "$ac_cv_func_kafs_settoken_rxkad" = "yes"; then
37 AC_DEFINE(HAVE_KAFS_SETTOKEN_RXKAD, 1, [define if you have kafs_settoken_rxkad])