PageRenderTime 52ms CodeModel.GetById 50ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/config/ac_krb4.m4

https://code.google.com/
m4 | 40 lines | 13 code | 7 blank | 20 comment | 0 complexity | a91f7fdb374d933b233b3d914822cec7 MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Jim Garlick <garlick@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_KRB4
 9#
10#  DESCRIPTION:
11#    Adds support for kerberos rcmd method.  Checks for kerberos
12#    libraries.  
13#
14#  WARNINGS:
15#    This macro must be placed after AC_PROG_CC or equivalent.
16##*****************************************************************************
17
18AC_DEFUN([AC_KRB4],
19[
20
21#
22# Check for kerberos libraries, if they exist, automatically build
23# kerberos module
24#
25
26AC_CHECK_LIB([krb], [krb_sendauth], 
27             [ac_have_krb4=yes],
28             [ac_have_krb4=no], [-lkrb -ldes])
29
30if test "$ac_have_krb4" = "yes" ; then
31    AC_ADD_STATIC_MODULE("k4cmd")
32    KRB_LIBS="-lkrb -ldes"
33    AC_DEFINE([HAVE_KRB4], [1], [Define if you have Kerberos])
34fi
35
36AM_CONDITIONAL(WITH_KRB4, test "$ac_have_krb4" = "yes")
37
38AC_SUBST(KRB_LIBS)
39
40])