diff mbox series

[2/4] rpc-tirpc: Add libntirpc support

Message ID 20200108103413.29096-3-pvorel@suse.cz
State Changes Requested
Delegated to: Petr Vorel
Headers show
Series TI-RPC: enhancements (pkg-config, libntirpc, travis) | expand

Commit Message

Petr Vorel Jan. 8, 2020, 10:34 a.m. UTC
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 m4/ltp-tirpc.m4 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/m4/ltp-tirpc.m4 b/m4/ltp-tirpc.m4
index 3f23b1a17..dd563e650 100644
--- a/m4/ltp-tirpc.m4
+++ b/m4/ltp-tirpc.m4
@@ -6,10 +6,13 @@  AC_DEFUN([LTP_CHECK_TIRPC], [
 	dnl libtirpc library and headers
 	PKG_CHECK_MODULES([LIBTIRPC], [libtirpc], [have_libtirpc=yes], [have_libtirpc=no])
 
+	dnl libntirpc library and headers
+	PKG_CHECK_MODULES([LIBNTIRPC], [libntirpc], [have_libntirpc=yes], [have_libntirpc=no])
+
 	dnl TI-RPC headers (in glibc, since 2.26 installed only when configured with --enable-obsolete-rpc)
 	AC_CHECK_HEADERS([rpc/rpc.h], [have_rpc_headers=yes])
 
-	if test "x$have_libtirpc" = "xyes" -o "x$have_rpc_headers" = "xyes"; then
-		AC_DEFINE([HAVE_TIRPC], [1], [Define to 1 if you have libtirpc library and headers or glibc with TI-RPC support])
+	if test "x$have_libtirpc" = "xyes" -o "x$have_libntirpc" = "xyes" -o "x$have_rpc_headers" = "xyes"; then
+		AC_DEFINE([HAVE_TIRPC], [1], [Define to 1 if you have libtirpc or libntirpc library and headers or glibc with TI-RPC support])
 	fi
 ])