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 | |
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
-rw-r--r-- | INSTALL | 8 | ||||
-rw-r--r-- | configure.in | 25 |
2 files changed, 24 insertions, 9 deletions
@@ -32,7 +32,13 @@ leaving it out cuts the executable's size slightly. Specifying --with-kerberos=DIR will tell the fetchmail build process to look in DIR for Kerberos support. Configure normally looks in /usr/kerberos -and /usr/athena; if you specify this option it will look in DIR first. +and /usr/athena; if you specify this option with an argument it will look +in DIR first. + +Unfortunately, there doesn't seem to be good standardization of where +Kerberos lives. If your configuration doesn't match one of the four +that fetchmail's configure.in knows about, you may find you have to +hand-hack the Makefile a bit. If you want to build for debugging, 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, |