From a3234c91305c2e80d7b2673f2f4c8e6d3533843f Mon Sep 17 00:00:00 2001 From: Janet Anderson Date: Fri, 22 Oct 2010 09:33:44 -0500 Subject: [PATCH] Set CYGWIN_RPC_LIB by using cygwin version to determine rpc lib name. --- configure/os/CONFIG.Common.cygwin-x86 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure/os/CONFIG.Common.cygwin-x86 b/configure/os/CONFIG.Common.cygwin-x86 index 20fb16012..63eec2768 100644 --- a/configure/os/CONFIG.Common.cygwin-x86 +++ b/configure/os/CONFIG.Common.cygwin-x86 @@ -69,3 +69,9 @@ LIBNAME = $(LIBNAME_$(SHARED_LIBRARIES)) # dll install location INSTALL_SHRLIB = $(INSTALL_BIN) + +# Cygwin supports the sunrpc package in versions before 1.7. +# Cygwin supports the tirpc (Transport Independent RPC) package in versions 1.7 and later. +# uname -r return a string like "1.76(0230/5/3)" +CYGWIN_RPC_LIB= $(if $(findstring 1.5,$(shell uname -r)),rpc,tirpc) +