summaryrefslogtreecommitdiffstats
path: root/tdeioslave/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-08-26 04:08:32 +0200
committerSlávek Banko <[email protected]>2018-08-26 04:08:41 +0200
commitcb787d0541a806a6bb4f3b01517dcbf5663a8c7a (patch)
treed94397b40db069544a3151c086f3bac5c2979757 /tdeioslave/ConfigureChecks.cmake
parent11333a810ebb146394a0c5b41d045cc894bb3ef4 (diff)
downloadtdebase-cb787d0541a806a6bb4f3b01517dcbf5663a8c7a.tar.gz
tdebase-cb787d0541a806a6bb4f3b01517dcbf5663a8c7a.zip
tdeioslave nfs: Add support for libtirpc
as a replacement for deprecated SunRPC from glibc >= 2.26 This resolves bug 2962 Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit f6a5cd3e8dcc0a58c04afb14857d43bf98080529)
Diffstat (limited to 'tdeioslave/ConfigureChecks.cmake')
-rw-r--r--tdeioslave/ConfigureChecks.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/tdeioslave/ConfigureChecks.cmake b/tdeioslave/ConfigureChecks.cmake
index eed370833..b1da9eb93 100644
--- a/tdeioslave/ConfigureChecks.cmake
+++ b/tdeioslave/ConfigureChecks.cmake
@@ -24,3 +24,21 @@ if( WITH_SASL )
tde_message_fatal( "sasl2 are requested, but not found on your system" )
endif( )
endif( )
+
+# rpc/rpc.h, originally was shipped with glibc ...
+check_include_file( rpc/rpc.h HAVE_RPC_H )
+# ... but later might be not present (deprecated from 2.26)
+if( NOT HAVE_RPC_H )
+ pkg_search_module( TIRPC libtirpc )
+ if( NOT TIRPC_FOUND )
+ tde_message_fatal( "rpc/rpc.h is required, please check your glibc or libtirpc package" )
+ endif( )
+endif( )
+
+message( STATUS "Looking for rpcgen" )
+find_program( RPCGEN_BINARY rpcgen )
+if( RPCGEN_BINARY )
+ message( STATUS "Looking for rpcgen - ${RPCGEN_BINARY}" )
+else( RPCGEN_BINARY )
+ tde_message_fatal( "rpcgen is required, but not found on your system" )
+endif( RPCGEN_BINARY )