--- mutt-x.y.z/PATCHES~ never +++ mutt-x.y.z/PATCHES Thu Jun 13 18:24:29 CDT 2002 @@ -1,0 +1 @@ +dgc.krb5.3 --- mutt-1.5.1/m4/gssapi.m4.orig Thu Jan 24 07:36:42 2002 +++ mutt-1.5.1/m4/gssapi.m4 Thu Jun 13 18:06:59 2002 @@ -10,6 +10,9 @@ [ 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 @@ 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 @@ CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" LIBS="$saved_LIBS" -]) \ No newline at end of file +])