From 4e16c3808e228a1ea458503240235ee7ee2c0377 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Jul 1997 23:19:38 +0000 Subject: James Brister's BSD/OS changes. svn path=/trunk/; revision=1139 --- configure.in | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index bb783bdd..5939a046 100644 --- a/configure.in +++ b/configure.in @@ -128,16 +128,25 @@ test "$with_POP2" = "yes" && AC_DEFINE(POP2_ENABLE) AC_ARG_WITH(kerberos, [ --with-kerberos=DIR point fetchmail compilation at a Kerberos directory]) -for dir in $with_kerberos /usr/kerberos /usr/kerberosIV /usr/athena -do - if test -f "$dir/include/krb.h" - then - CFLAGS="$CFLAGS -DKERBEROS_V4 -I$dir/include" +# The "then" arm (nonempty $with_kerberos) is kind of a crock. It works for +# configuring the BSD/OS Kerberos IV support, though. +if test -n "$with_kerberos" +then + CFLAGS="$CFLAGS -DKERBEROS_V4 -I$with_kerberos" LDFLAGS="$LDFLAGS -L$dir/lib" LIBS="$LIBS -lkrb -ldes" - break - fi -done +else + for dir in /usr/kerberos /usr/kerberosIV /usr/athena + do + if test -f "$dir/include/krb.h" + then + CFLAGS="$CFLAGS -DKERBEROS_V4 -I$dir/include" + LDFLAGS="$LDFLAGS -L$dir/lib" + LIBS="$LIBS -lkrb -ldes" + break + fi + done +fi AC_OUTPUT(Makefile, [ # Makefile uses this timestamp file to know when to remake Makefile, -- cgit v1.2.3