-
-dnl Checks for libraries.
-if test -z "$ac_krb5_disable" ; then
- AC_CHECK_LIB(krb5, krb5_get_in_tkt_with_password, [
- ac_krb5="yes"
- ac_krbdefs="-DKRB5"
- ac_krblibs="-lkrb5"
- AC_CHECK_LIB(k5crypto, krb5_string_to_key, [
- ac_krblibs="$ac_krblibs -lk5crypto"
- ], [
- AC_CHECK_LIB(crypto, krb5_string_to_key, [
- ac_krblibs="$ac_krblibs -lcrypto"
- ], [
- ac_krblibs=""
- ], "-lcom_err")
- ], "-lcom_err")
- ac_krblibs="$ac_krblibs -lcom_err"
-
- if test -z "$ac_krb4_disable" ; then
- if test -n "$ac_krblibs" ; then
- AC_CHECK_LIB(krb4, krb_get_pw_in_tkt, [
- ac_krb4="yes"
- ac_krbdefs="$ac_krbdefs -DKRB4"
- ac_krblibs="-lkrb4 $ac_krblibs"
- ],, $ac_krblibs)
- fi
- fi
- ],, "-lcom_err")
-fi
-
-if test -z "$ac_krb4_disable" -a -z "$ac_krb4" ; then
- AC_CHECK_LIB(krb, krb_get_pw_in_tkt, [
- ac_krb4="yes"
- ac_krbdefs="-DKRB4"
- ac_krblibs="$ac_krblibs -lkrb -lcom_err"
- ],, "-lcom_err")
-fi
-
-if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
- AC_ERROR(Neither Kerberos 5 nor 4 support available.)
-fi
-
-
-dnl Checks for header files.
-if test -n "$ac_krb5" ; then
- AC_CHECK_HEADERS(krb5.h, [
- ac_foundkrb5="yes"
- break
- ])
-
- if test -z "$ac_foundkrb5" ; then
- AC_MSG_RESULT(krb5.h not found... removing krb5 support.)
- ac_krb5=""
- fi
-fi
-
-if test -n "$ac_krb4" ; then
- AC_CHECK_HEADERS(kerberosIV/krb.h krb.h, [
- ac_foundkrb4="yes"
- break
- ])
-
- if test -z "$ac_foundkrb4" ; then
- AC_MSG_RESULT(krb.h not found... removing krb4 support.)
- ac_krb4=""
- fi
-fi
-
-if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
- AC_ERROR(Neither Kerberos 5 nor 4 support available.)
-fi
-
-