clean up headers, obsd socket.h needs types.h
[arla.git] / cf / func-krb-kdctimeofday.m4
blobbaff2fc6719dab303482ce943afc3d7d6188b449
1 dnl
2 dnl $Id$
3 dnl
5 dnl
6 dnl Check for krb_kdctimeofday
7 dnl
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}"
14 save_LIBS="${LIBS}"
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}"
22 LIBS="${save_LIBS}"
23 else
24 dnl Make it say no
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])