about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-03-15 13:16:22 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-03-15 13:36:55 +0900
commit947e26fe5a0083b42ef5db9cb0f8c46923602ae1 (patch)
tree7b59c948c2e11f03388f0b45e9c27252a3564173
parent00e6ab70b89f6d95c38322b12aef94408e486336 (diff)
downloadzsh-947e26fe5a0083b42ef5db9cb0f8c46923602ae1.tar.gz
zsh-947e26fe5a0083b42ef5db9cb0f8c46923602ae1.tar.xz
zsh-947e26fe5a0083b42ef5db9cb0f8c46923602ae1.zip
44118: use libtirpc if RPC is not in glibc
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b60332b5..e23cb061e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-15  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp>
+
+	* 44118: configure.ac: use /usr/include/tirpc/ if headers for
+	RPC is not found in the standard location.
+
 2019-03-14  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Kamil: 44122: Src/parse.c: turn an int into a long to avoid
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)