]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - aclocal/kerberos5.m4
Factor out error message printing differences between MIT and Heimdal
[nfs-utils.git] / aclocal / kerberos5.m4
index b83e12236be86f3b9e06ee22b8b6feae9cc0e231..2475f506a25fa4d8d76444e45c953fecba951f01 100644 (file)
@@ -93,6 +93,10 @@ AC_DEFUN([AC_KERBEROS_V5],[
   AC_CHECK_LIB($gssapi_lib, gss_krb5_ccache_name,
     AC_DEFINE(HAVE_GSS_KRB5_CCACHE_NAME, 1, [Define this if the Kerberos GSS library supports gss_krb5_ccache_name]), ,$KRBLIBS)
 
+  dnl Check for newer error message facility
+  AC_CHECK_LIB($gssapi_lib, krb5_get_error_message,
+    AC_DEFINE(HAVE_KRB5_GET_ERROR_MESSAGE, 1, [Define this if the function krb5_get_error_message is available]), ,$KRBLIBS)
+
   dnl If they specified a directory and it didn't work, give them a warning
   if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
     AC_MSG_WARN(Using $KRBDIR instead of requested value of $krb5_with for Kerberos!)