From 4917514b49d5893d2bc71f5d2deb021c646da1ed Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 27 Jun 1997 06:57:36 +0000 Subject: First cut at being able to specify a Kerberos directory. svn path=/trunk/; revision=1125 --- configure.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d98ceff8..2b0d8933 100644 --- a/configure.in +++ b/configure.in @@ -55,20 +55,6 @@ then EXTRAOBJ="$EXTRAOBJ alloca.o" fi -if test -f "/usr/kerberos/include/krb.h" -then - CFLAGS="$CFLAGS -DKERBEROS_V4 -I/usr/kerberos/include" - LDFLAGS="$LDFLAGS -L/usr/kerberos/lib" - LIBS="$LIBS -lkrb -ldes" -fi - -if test -f "/usr/athena/include/krb.h" -then - CFLAGS="$CFLAGS -DKERBEROS_V4 -I/usr/athena/include" - LDFLAGS="$LDFLAGS -L/usr/athena/lib" - LIBS="$LIBS -lkrb -ldes" -fi - dnl All AC_CHECK_FUNCs must precede the following AC_SUBSTs AC_SUBST(EXTRASRC) @@ -138,6 +124,20 @@ AC_ARG_ENABLE(POP2, [with_POP2=no]) test "$with_POP2" = "yes" && AC_DEFINE(POP2_ENABLE) +### use option --with-kerberos=DIR to point at a Kerberos directory +AC_ARG_WITH(kerberos, + [ --with-kerberos=DIR point fetchmail compilation at a Kerberos directory]) + +for dir in $with_kerberos /usr/kerberos /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" + fi +done + AC_OUTPUT(Makefile, [ # Makefile uses this timestamp file to know when to remake Makefile, # build.sh, and glob/Makefile. -- cgit v1.2.3