From 2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 20 Jun 2004 12:27:57 +0000 Subject: Fix HESIOD compile failure on FreeBSD 5-CURRENT, adding a new macro that is based on ac_caolan_search_package from the autoconf macro archive. Mention +HESIOD in fetchmail -V if compiled in. svn path=/trunk/; revision=3912 --- configure.in | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index bfe28303..02955a7d 100644 --- a/configure.in +++ b/configure.in @@ -626,34 +626,7 @@ then fi]) ### use option --with-hesiod=DIR to point at a HESIOD directory -AC_ARG_WITH(hesiod, - [ --with-hesiod=DIR point fetchmail compilation at a HESIOD directory]) - -case "x$with_hesiod" in -xno) - ;; -x) - for dir in /usr/athena /usr /usr/local - do - if test -f "$dir/include/hesiod.h" - then - CEFLAGS="$CEFLAGS -DHESIOD" - test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include" - LDEFLAGS="$LDEFLAGS -L$dir/lib" - LIBS="$LIBS -lhesiod" - with_hesiod=$dir - break - fi - done - ;; -*) - # Path given - CEFLAGS="$CEFLAGS -DHESIOD" - test "$with_hesiod" != "/usr" && CEFLAGS="$CEFLAGS -I$with_hesiod/include" - LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib" - LIBS="$LIBS -lhesiod" - ;; -esac +AC_ma_SEARCH_PACKAGE(hesiod, hesiod_getmailhost, /usr/athena /usr /usr/local,hesiod, hesiod.h) ### use option --with-gssapi=DIR to compile in GSSAPI support AC_ARG_WITH(gssapi, @@ -700,7 +673,8 @@ AC_SUBST(CPFLAGS) AC_SUBST(CEFLAGS) AC_SUBST(LDEFLAGS) -AC_CONFIG_FILES([Makefile po/Makefile.in m4/Makefile intl/Makefile ]) +AC_CONFIG_FILES([Makefile m4/Makefile m4-local/Makefile + po/Makefile.in intl/Makefile]) AC_OUTPUT dnl Local Variables: -- cgit v1.2.3