From: David Champion Date: Tue, 18 Jun 2002 09:52:13 +0000 (+0000) Subject: Okay, two bugs here. One's an oversight of mine in my previous patch, X-Git-Tag: mutt-1-5-2-rel~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b01feedb0963eeac6d5cc12f3f047b589f78105e;p=mutt Okay, two bugs here. One's an oversight of mine in my previous patch, where I tried to use "[hH]" as Bourne code while m4 had quoting set to ([, ]) -- this probably makes mutt mis-detect Heimdal after all. The other is not mine (i.e., it's in cvs now) and it makes mutt overstrike $LIBS if Heimdal or MIT Kerberos is detected. This is a problem for anyone who needs -lnsl -lsocket, in particular. I was fixing this by hand during late 1.3.x releases, as I didn't have time to track it down.... Here's a patch against the current (unpatched) 1.5 cvs copy of m4/gssapi.m4. It probably should go into both branches. Sorry for the repeats. --- diff --git a/m4/gssapi.m4 b/m4/gssapi.m4 index 31382157..5c01b811 100644 --- a/m4/gssapi.m4 +++ b/m4/gssapi.m4 @@ -10,6 +10,9 @@ AC_DEFUN(MUTT_AM_PATH_GSSAPI, [ GSSAPI_PREFIX=[$]$1 GSSAPI_IMPL="none" + saved_CPPFLAGS="$CPPFLAGS" + saved_LDFLAGS="$LDFLAGS" + saved_LIBS="$LIBS" dnl First try krb5-config if test "$GSSAPI_PREFIX" != "yes" then @@ -22,12 +25,13 @@ AC_DEFUN(MUTT_AM_PATH_GSSAPI, then GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`" GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`" - GSSAPI_IMPL="Heimdal" + case "`$KRB5CFGPATH --version`" in + "Kerberos 5 "*) GSSAPI_IMPL="MIT";; + ?eimdal*) GSSAPI_IMPL="Heimdal";; + *) GSSAPI_IMPL="Unknown";; + esac else dnl No krb5-config, run the old code - saved_CPPFLAGS="$CPPFLAGS" - saved_LDFLAGS="$LDFLAGS" - saved_LIBS="$LIBS" if test "$GSSAPI_PREFIX" != "yes" then GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include" @@ -70,4 +74,4 @@ AC_DEFUN(MUTT_AM_PATH_GSSAPI, CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" LIBS="$saved_LIBS" -]) \ No newline at end of file +])