diff --git a/zephyr/aclocal.m4 b/zephyr/aclocal.m4
index fadf7b4..6106ecf 100644
|
a
|
b
|
fi]) |
| 194 | 194 | dnl ----- Kerberos 4 ----- |
| 195 | 195 | |
| 196 | 196 | AC_DEFUN([ATHENA_KRB4_CHECK], |
| 197 | | [AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname)) |
| | 197 | [AC_REQUIRE([AC_CANONICAL_TARGET]) |
| | 198 | AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname)) |
| 198 | 199 | AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket)) |
| 199 | 200 | AC_CHECK_LIB(gen, compile) |
| 200 | 201 | if test "$krb4" != yes; then |
| … |
… |
AC_CHECK_LIB(krb4, krb_rd_req, |
| 210 | 211 | [KRB4_LIBS="-lkrb -ldes"], |
| 211 | 212 | [AC_MSG_ERROR(Kerberos 4 libraries not found)], |
| 212 | 213 | -ldes)], |
| 213 | | -ldes425 -lkrb5 -lk5crypto -lcom_err)]) |
| | 214 | -ldes425 -lkrb5 -lk5crypto -lcom_err) |
| | 215 | if test "$KRB4_LIBS" != "" ; then |
| | 216 | case "$target_os" in |
| | 217 | darwin*) KRB4_LIBS="$KRB4_LIBS -framework Kerberos" |
| | 218 | esac |
| | 219 | fi]) |
| 214 | 220 | |
| 215 | 221 | AC_DEFUN([ATHENA_KRB4], |
| 216 | 222 | [AC_ARG_WITH(krb4, |
diff --git a/zephyr/configure.in b/zephyr/configure.in
index 3c50b6f..485b6f3 100644
|
a
|
b
|
AC_SUBST(lbindir) |
| 10 | 10 | AC_SUBST(lsbindir) |
| 11 | 11 | |
| 12 | 12 | AC_CANONICAL_SYSTEM |
| | 13 | AC_CANONICAL_TARGET |
| 13 | 14 | AC_DEFINE_UNQUOTED(MACHINE_TYPE, "$host") |
| 14 | 15 | |
| 15 | 16 | dnl Checks for programs. |
| … |
… |
if test "$krb5" != no; then |
| 112 | 113 | KRB5_LIBS="-lkrb5 -l5crypto -lcom_err" |
| 113 | 114 | fi |
| 114 | 115 | AC_DEFINE(HAVE_KRB5) |
| | 116 | |
| | 117 | case "$target_os" in |
| | 118 | darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" |
| | 119 | esac |
| 115 | 120 | fi |
| 116 | 121 | AC_SUBST(KRB5_LIBS) |
| 117 | 122 | |
diff --git a/zephyr/lib/ZInit.c b/zephyr/lib/ZInit.c
index 6a9149a..e2efbd7 100644
|
a
|
b
|
ZInitialize(void) |
| 59 | 59 | #endif |
| 60 | 60 | #endif |
| 61 | 61 | |
| 62 | | #ifdef HAVE_KRB4 |
| | 62 | #if defined(__APPLE__) && defined(__MACH__) |
| | 63 | /* On OS X you don't need to initialize the Kerberos error tables |
| | 64 | as long as you link with -framework Kerberos */ |
| | 65 | add_error_table(&et_zeph_error_table); |
| | 66 | #else |
| | 67 | # ifdef HAVE_KRB4 |
| 63 | 68 | initialize_krb_error_table(); |
| 64 | | #endif |
| 65 | | #ifdef HAVE_KRB5 |
| | 69 | # endif |
| | 70 | # ifdef HAVE_KRB5 |
| 66 | 71 | initialize_krb5_error_table(); |
| 67 | | #endif |
| | 72 | # endif |
| 68 | 73 | |
| 69 | 74 | initialize_zeph_error_table(); |
| | 75 | #endif |
| 70 | 76 | |
| 71 | 77 | (void) memset((char *)&__HM_addr, 0, sizeof(__HM_addr)); |
| 72 | 78 | |
diff --git a/zephyr/server/main.c b/zephyr/server/main.c
index 5188200..7c34217 100644
|
a
|
b
|
initialize(void) |
| 417 | 417 | if (*my_realm) |
| 418 | 418 | strcpy(__Zephyr_realm, my_realm); |
| 419 | 419 | #endif |
| 420 | | init_zsrv_err_tbl(); /* set up err table */ |
| | 420 | |
| | 421 | /* set up err table */ |
| | 422 | #if defined(__APPLE__) && defined(__MACH__) |
| | 423 | add_error_table(&et_zsrv_error_table); |
| | 424 | #else |
| | 425 | init_zsrv_err_tbl(); |
| | 426 | #endif |
| 421 | 427 | |
| 422 | 428 | ZSetFD(srv_socket); /* set up the socket as the input fildes */ |
| 423 | 429 | |