diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-01-06 23:53:17 +0100 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-01-23 10:09:13 -0500 |
commit | 463e5d695642200e7171e9d2c495456a76323209 (patch) | |
tree | 4c86c2c183e535bf9532759e6b6c5a6007c7085b | |
parent | 58b6ed7f607609d0d13d20054dce850bda3b4bc5 (diff) | |
download | nfs-utils-463e5d695642200e7171e9d2c495456a76323209.tar.gz nfs-utils-463e5d695642200e7171e9d2c495456a76323209.tar.xz nfs-utils-463e5d695642200e7171e9d2c495456a76323209.zip |
configure: restore checking for authgss_free_private_data in libtirpc
Since commit 8534063 (configure: use pkg-config to find libtirpc), we
are missing the check for authgss_free_private_data in libtirpc.
Restore this check, and adapt so that it works in both the pkg-config
case and in the "old code" case.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Chuck Lever <check.lever@oracle.com>
Cc: Steve Dickson <SteveD@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | aclocal/libtirpc.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/aclocal/libtirpc.m4 b/aclocal/libtirpc.m4 index 5e9d76e..b7de636 100644 --- a/aclocal/libtirpc.m4 +++ b/aclocal/libtirpc.m4 @@ -14,6 +14,12 @@ AC_DEFUN([AC_LIBTIRPC], [ AS_IF([test "$enable_tirpc" = "yes" -a -z "${LIBTIRPC}"], [AC_MSG_ERROR([libtirpc not found.])])])]) + AS_IF([test -n "${LIBTIRPC}"], + [AC_CHECK_LIB([tirpc], [authgss_free_private_data], + [AC_DEFINE([HAVE_AUTHGSS_FREE_PRIVATE_DATA], [1], + [Define to 1 if your rpcsec library provides authgss_free_private_data])],, + [${LIBS}])]) + AC_SUBST([AM_CPPFLAGS]) AC_SUBST(LIBTIRPC) |