summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorKevin Coffman <kwc@citi.umich.edu>2007-04-19 14:45:19 -0400
committerNeil Brown <neilb@suse.de>2007-04-20 14:39:01 +1000
commit5995fb8081f92acf39e5126e09d7db8fe6a02364 (patch)
treef04661d53f48619e926cb338385726f019e5fbd3 /aclocal
parent77458652703ab94da18e40728607e323dd2b65b1 (diff)
downloadnfs-utils-5995fb8081f92acf39e5126e09d7db8fe6a02364.tar.gz
nfs-utils-5995fb8081f92acf39e5126e09d7db8fe6a02364.tar.xz
nfs-utils-5995fb8081f92acf39e5126e09d7db8fe6a02364.zip
Factor out error message printing differences between MIT and Heimdal
Use a common function that factors out differences between MIT and Heimdal in getting the right error message printed. Add an autoconf check to see if the newer error message function is available. Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/kerberos5.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/aclocal/kerberos5.m4 b/aclocal/kerberos5.m4
index b83e122..2475f50 100644
--- a/aclocal/kerberos5.m4
+++ b/aclocal/kerberos5.m4
@@ -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!)