From 947e26fe5a0083b42ef5db9cb0f8c46923602ae1 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Fri, 15 Mar 2019 13:16:22 +0900 Subject: 44118: use libtirpc if RPC is not in glibc --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5513e25f1..8a2664ed2 100644 --- a/configure.ac +++ b/configure.ac @@ -2087,6 +2087,10 @@ AC_CACHE_CHECK(for NIS, zsh_cv_sys_nis, zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no]) if test x$zsh_cv_sys_nis = xyes; then AC_DEFINE(HAVE_NIS) +dnl RPC is removed from glibc-2.26 and replaced by libtirpc + AC_CHECK_HEADER(rpc/rpc.h, [], + [test -f /usr/include/tirpc/rpc/rpc.h && \ + CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc"]) dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require dnl libnsl (Network Services Library) to find yp_all AC_SEARCH_LIBS(yp_all, nsl) -- cgit 1.4.1