6 dnl Check for krb_kdctimeofday
9 AC_DEFUN([AC_FUNC_KRB_KDCTIMEOFDAY], [
11 AC_CACHE_CHECK(for krb_kdctimeofday, ac_cv_func_krb_kdctimeofday, [
12 if test "$ac_cv_found_krb4" = "yes"; then
13 save_CPPFLAGS="${CPPFLAGS}"
15 CPPFLAGS="${KRB4_INC_FLAGS} ${CPPFLAGS}"
16 LIBS="${KRB4_LIB_FLAGS} ${LIBS}"
17 AC_TRY_LINK([#include <krb.h>],
18 [krb_kdctimeofday(0);],
19 ac_cv_func_krb_kdctimeofday=yes,
20 ac_cv_func_krb_kdctimeofday=no)
21 CPPFLAGS="${save_CPPFLAGS}"
25 eval "ac_cv_func_krb_kdctimeofday=no"
28 if test "$ac_cv_func_krb_kdctimeofday" = "yes"; then
29 AC_DEFINE(HAVE_KRB_KDCTIMEOFDAY, 1, [define if you have krb_kdctimeofday])