diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-07-01 23:19:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-07-01 23:19:38 +0000 |
commit | 4e16c3808e228a1ea458503240235ee7ee2c0377 (patch) | |
tree | 763e1a2da0914bac2e334138469d7236017f7ad7 /configure.in | |
parent | d7d0aaf8eb2f802f373a0b011bda6f23883c7c3a (diff) | |
download | fetchmail-4e16c3808e228a1ea458503240235ee7ee2c0377.tar.gz fetchmail-4e16c3808e228a1ea458503240235ee7ee2c0377.tar.bz2 fetchmail-4e16c3808e228a1ea458503240235ee7ee2c0377.zip |
James Brister's BSD/OS changes.
svn path=/trunk/; revision=1139
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 25 |
1 files changed, 17 insertions, 8 deletions
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, |