Blame SOURCES/cyrus-sasl-2.1.26-keytab.patch

794a5c
diff --git a/cmulocal/sasl2.m4 b/cmulocal/sasl2.m4
794a5c
index 3c2841a..b086b8f 100644
794a5c
--- a/cmulocal/sasl2.m4
794a5c
+++ b/cmulocal/sasl2.m4
794a5c
@@ -269,6 +269,18 @@ if test "$gssapi" != no; then
794a5c
   cmu_save_LIBS="$LIBS"
794a5c
   LIBS="$LIBS $GSSAPIBASE_LIBS"
794a5c
   AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity)
794a5c
+  if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then
794a5c
+    AC_CHECK_HEADERS(gssapi/gssapi_krb5.h)
794a5c
+    if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then
794a5c
+      AC_CHECK_DECL(gsskrb5_register_acceptor_identity,
794a5c
+                    [AC_DEFINE(HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY,1,
794a5c
+                               [Define if your GSSAPI implementation defines gsskrb5_register_acceptor_identity])],,
794a5c
+                    [
794a5c
+                    AC_INCLUDES_DEFAULT
794a5c
+                    #include <gssapi/gssapi_krb5.h>
794a5c
+                    ])
794a5c
+    fi
794a5c
+  fi
794a5c
   AC_CHECK_FUNCS(gss_decapsulate_token)
794a5c
   AC_CHECK_FUNCS(gss_encapsulate_token)
794a5c
   AC_CHECK_FUNCS(gss_oid_equal)
794a5c
diff --git a/plugins/gssapi.c b/plugins/gssapi.c
794a5c
index 6be9d23..e6fcf46 100644
794a5c
--- a/plugins/gssapi.c
794a5c
+++ b/plugins/gssapi.c
794a5c
@@ -51,6 +51,10 @@
794a5c
 #include <gssapi/gssapi.h>
794a5c
 #endif
794a5c
 
794a5c
+#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
794a5c
+#include <gssapi/gssapi_krb5.h>
794a5c
+#endif
794a5c
+
794a5c
 #ifdef WIN32
794a5c
 #  include <winsock2.h>
794a5c