diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-06-04 04:28:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-06-04 04:28:41 +0000 |
commit | 41620bcbb3f21e2cf7d23242ab0d21b07c308a66 (patch) | |
tree | c31c58aeae5acf2c33d05bebe84ecd0cddfbc04c /configure.in | |
parent | 17b79e30b7dd686e0f11436030e7a9bcce7969b2 (diff) | |
download | fetchmail-41620bcbb3f21e2cf7d23242ab0d21b07c308a66.tar.gz fetchmail-41620bcbb3f21e2cf7d23242ab0d21b07c308a66.tar.bz2 fetchmail-41620bcbb3f21e2cf7d23242ab0d21b07c308a66.zip |
Brendan Cully's fixes for GSSAPI.
svn path=/trunk/; revision=1892
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/configure.in b/configure.in index 280728c2..b361f998 100644 --- a/configure.in +++ b/configure.in @@ -219,32 +219,22 @@ AC_ARG_ENABLE(netsec, ### use option --with-gssapi=DIR to compile in GSSAPI support AC_ARG_WITH(gssapi, - [ --with-gssapi[=DIR] compile in GSSAPI support using libraries in DIR]) -if test "$with-gssapi" = "yes" + [ --with-gssapi[=DIR] compile in GSSAPI support using libraries in DIR], +[ +if test "$with_gssapi" != "no" then - GSSAPIDIR="/usr /usr/local /usr/athena" -else - GSSAPIDIR="$with_gssapi" -fi -if test "$GSSAPIDIR" != "" -a "$GSSAPIDIR" != "no" -then - AC_MSG_CHECKING([for gssapi]) - for curgssapidir in $GSSAPIDIR - do - if test -f $curgssapidir/include/gssapi/gssapi.h - then - CEFLAGS="$CEFLAGS -DGSSAPI -I$curgssapidir/include" - LDEFLAGS="$LDEFLAGS -L$curgssapidir/lib" - LIBS="$LIBS -lgssapi_krb5 -lkrb5" - AC_MSG_RESULT([in $curgssapidir]) - GSSAPIFOUND="yes" - fi - done - if test "$GSSAPIFOUND" != "yes" - then - AC_MSG_ERROR([not found]) - fi -fi + if test "$with_gssapi" != "yes" -a -n "$with_gssapi" + then + CFLAGS="$CEFLAGS -I$with_gssapi/include" + LDFLAGS="$LDEFLAGS -L$with_gssapi/lib" + fi + AC_CHECK_LIB(krb5, krb5_init_context,, + AC_MSG_ERROR([could not find libkrb5 which is needed for GSSAPI support])) + AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context,, + AC_MSG_ERROR([could not find libgssapi_krb5 which is needed for GSSAPI support]), -lkrb5) + AC_DEFINE(GSSAPI) + LIBS="$LIBS -lgssapi_krb5 -lkrb5" +fi]) ### use option --with-kerberos=DIR to point at a Kerberos directory AC_ARG_WITH(kerberos, |