diff options
author | Ken Raeburn <raeburn@raeburn.org> | 2001-10-19 00:31:27 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@raeburn.org> | 2001-10-19 00:31:27 +0000 |
commit | 93bc6c4e678e32959840fc711b2a933afb459d67 (patch) | |
tree | b07a0b034d3a30f68af1a121d72bc1555a42255b | |
parent | c077092d1d956cd9008969a1b26280f1e23351bc (diff) | |
download | emacs-93bc6c4e678e32959840fc711b2a933afb459d67.tar.gz |
fix up hesiod and kerberos configuration problems
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.in | 17 | ||||
-rw-r--r-- | lib-src/ChangeLog | 7 | ||||
-rw-r--r-- | lib-src/Makefile.in | 14 | ||||
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/config.in | 2 |
6 files changed, 49 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index a8b05572a64..b74bc3fb44f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-10-18 Ken Raeburn <raeburn@mit.edu> + + * configure.in: If --with-hesiod is given, look for + hes_getmailhost and res_send or __res_send; check hesiod and + resolv libraries respectively if system libraries don't supply + them. + 2001-09-05 Gerd Moellmann <gerd@gnu.org> * configure.in: Avoid `$@' which is handled specially in diff --git a/configure.in b/configure.in index 650fdbc3cb9..42eeaf493c1 100644 --- a/configure.in +++ b/configure.in @@ -1961,6 +1961,23 @@ AC_CHECK_FUNCS(getpt) # than to expect to find it in ncurses. AC_CHECK_LIB(ncurses, tparm) +# Do we need the Hesiod library to provide the support routines? +if test "$with_hesiod" == yes ; then + # Don't set $LIBS here -- see comments above. + resolv=no + AC_CHECK_FUNC(res_send, , [AC_CHECK_FUNC(__res_send, , + [AC_CHECK_LIB(resolv, res_send, resolv=yes, + [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])]) + if test "$resolv" = yes ; then + RESOLVLIB=-lresolv + AC_DEFINE(HAVE_LIBRESOLV) + else + RESOLVLIB= + fi + AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost, + AC_DEFINE(HAVE_LIBHESIOD), :, $RESOLVLIB)]) +fi + # These tell us which Kerberos-related libraries to use. if test "${with_kerberos+set}" = set; then AC_CHECK_LIB(com_err, com_err) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index af33b97e0fa..400fb1cf310 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,10 @@ +2001-10-18 Ken Raeburn <raeburn@gnu.org> + + * Makefile.in (HESIODLIB) [HAVE_LIBHESIOD]: Set to include + -lhesiod and maybe -lresolv. + (CRYPTOLIB) [HAVE_LIBK5CRYPTO]: Use -lk5crypto for Kerberos + support if it's available. + 2001-10-18 Andrew Innes <andrewi@gnu.org> * makefile.nt (ALL): Do not include fakemail. diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 44e8089c4f7..a4b6b07fc41 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -201,8 +201,12 @@ MOVE_FLAGS= # ifdef HAVE_LIBKRB5 KRB5LIB = -lkrb5 # endif -# ifdef HAVE_LIBCRYPTO +# ifdef HAVE_LIBK5CRYPTO + CRYPTOLIB = -lk5crypto +# else +# ifdef HAVE_LIBCRYPTO CRYPTOLIB = -lcrypto +# endif # endif # ifdef HAVE_LIBCOM_ERR COM_ERRLIB = -lcom_err @@ -210,7 +214,13 @@ MOVE_FLAGS= #endif /* KERBEROS */ /* If HESIOD is defined, set this to "-lhesiod". */ -HESIODLIB= +#ifdef HAVE_LIBHESIOD +# ifdef HAVE_LIBRESOLV + HESIODLIB= -lhesiod -lresolv +# else + HESIODLIB= -lhesiod +# endif +#endif MOVE_LIBS=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) diff --git a/src/ChangeLog b/src/ChangeLog index 7218e726e07..7b6e159d61d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-10-18 Ken Raeburn <raeburn@gnu.org> + + * config.in (HAVE_LIBHESIOD, HAVE_LIBK5CRYPTO): Undef these. + 2001-10-18 Andrew Innes <andrewi@gnu.org> * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable diff --git a/src/config.in b/src/config.in index d462b75425b..a0edd520a9f 100644 --- a/src/config.in +++ b/src/config.in @@ -132,6 +132,7 @@ Boston, MA 02111-1307, USA. */ /* Define to support using a Hesiod database to find the POP server. */ #undef HESIOD +#undef HAVE_LIBHESIOD /* Header for Voxware or PCM sound card driver. */ #undef HAVE_MACHINE_SOUNDCARD_H @@ -199,6 +200,7 @@ Boston, MA 02111-1307, USA. */ #undef HAVE_LIBDES425 #undef HAVE_LIBKRB5 #undef HAVE_LIBCRYPTO +#undef HAVE_LIBK5CRYPTO #undef HAVE_LIBCOM_ERR /* header files */ #undef HAVE_KRB5_H |