aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/type_rpcvers_t.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/type_rpcvers_t.m4')
-rw-r--r--m4/macros/type_rpcvers_t.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/macros/type_rpcvers_t.m4 b/m4/macros/type_rpcvers_t.m4
new file mode 100644
index 000000000000..d0fa8c140884
--- /dev/null
+++ b/m4/macros/type_rpcvers_t.m4
@@ -0,0 +1,11 @@
+dnl ######################################################################
+dnl check for type of rpcvers_t (usually in <rpc/types.h>)
+AC_DEFUN([AMU_TYPE_RPCVERS_T],
+[AC_CHECK_TYPE(rpcvers_t, ,
+[AC_DEFINE_UNQUOTED(rpcvers_t, unsigned long, [Check if rpcvers_t is defined in <rpc/types.h>])],
+[
+#ifdef HAVE_RPC_TYPES_H
+# include <rpc/types.h>
+#endif /* HAVE_RPC_TYPES_H */
+])])
+dnl ======================================================================