$NetBSD: patch-al,v 1.11 2017/05/10 12:29:13 jperkin Exp $

--- configure.orig	2017-04-18 23:07:15.000000000 +0000
+++ configure
@@ -8406,7 +8406,7 @@ fi
 
         old_LIBS="$LIBS"
         LIBS="$LIBS $MUTTLIBS"
-        for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
+        for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm mvchgat mvwchgat
 do
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func declaration" >&5
@@ -9463,7 +9463,7 @@ fi
 
 if test x$mutt_cv_setgid = xyes; then
         DOTLOCK_GROUP='mail'
-        DOTLOCK_PERMISSION=2755
+        DOTLOCK_PERMISSION=2555
 else
         DOTLOCK_GROUP=''
         DOTLOCK_PERMISSION=755
@@ -9772,6 +9772,7 @@ fi
     case "`$KRB5CFGPATH --version`" in
       "Kerberos 5 "*)	GSSAPI_IMPL="MIT";;
       ?eimdal*)		GSSAPI_IMPL="Heimdal";;
+      Solaris*)		GSSAPI_IMPL="Solaris";;
       *)		GSSAPI_IMPL="Unknown";;
    esac
   else
@@ -10021,7 +10022,7 @@ rm -f confcache
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: GSSAPI libraries not found" >&5
 $as_echo "GSSAPI libraries not found" >&6; }
     fi
-    if test "$GSSAPI_IMPL" = "Heimdal"
+    if test "$GSSAPI_IMPL" = "Heimdal" || test "$GSSAPI_IMPL" = "Solaris"
     then
 
 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
