+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
# 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)
+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.
# 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
#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)
+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
/* 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
#undef HAVE_LIBDES425
#undef HAVE_LIBKRB5
#undef HAVE_LIBCRYPTO
+#undef HAVE_LIBK5CRYPTO
#undef HAVE_LIBCOM_ERR
/* header files */
#undef HAVE_KRB5_H