From: Tom Yu Date: Thu, 7 Aug 1997 00:26:30 +0000 (+0000) Subject: * aclocal.m4: Add support for --with-hesiod (and add it to X-Git-Tag: krb5-1.1-beta1~1063 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35c9a72267447138b3caa9dfce8c7c0d26d9b47b;p=krb5.git * aclocal.m4: Add support for --with-hesiod (and add it to CONFIG_RULES, as it's needed almost everywhere kadm5 gets linked). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10162 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 4ea4729ca..87db266ad 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 6 20:25:49 1997 Tom Yu + + * aclocal.m4: Add support for --with-hesiod (and add it to + CONFIG_RULES, as it's needed almost everywhere kadm5 gets + linked). + Wed Jun 11 16:46:47 1997 Theodore Y. Ts'o * Makefile.in (MACFILES): Added the mac/gss files to the Macintosh diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 6fa159777..942237ef6 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -67,6 +67,7 @@ WITH_CPPOPTS dnl WITH_KRB4 dnl AC_CONST dnl WITH_NETLIB dnl +WITH_HESIOD dnl KRB_INCLUDE dnl AC_ARG_PROGRAM dnl AC_SUBST(subdirs) @@ -935,6 +936,28 @@ else fi ])dnl +dnl +dnl WITH_HESIOD +dnl +AC_DEFUN(WITH_HESIOD, +[AC_ARG_WITH(hesiod, [ --with-hesiod=path compile with hesiod support], + hesiod=$with_hesiod, with_hesiod=no) +if test "$hesiod" != "no"; then + HESIOD_DEFS=-DHESIOD + AC_CHECK_LIB(resolv, res_send, res_lib=-lresolv) + if test "$hesiod" != "yes"; then + HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib" + else + HESIOD_LIBS="-lhesiod $res_lib" + fi +else + HESIOD_DEFS= + HESIOD_LIBS= +fi +AC_SUBST(HESIOD_DEFS) +AC_SUBST(HESIOD_LIBS)]) + + dnl dnl KRB5_BUILD_LIBRARY dnl