aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/type_auth_create_gidlist.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/type_auth_create_gidlist.m4')
-rw-r--r--m4/macros/type_auth_create_gidlist.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/macros/type_auth_create_gidlist.m4 b/m4/macros/type_auth_create_gidlist.m4
new file mode 100644
index 000000000000..b56d4f657313
--- /dev/null
+++ b/m4/macros/type_auth_create_gidlist.m4
@@ -0,0 +1,25 @@
+dnl ######################################################################
+dnl check the correct type for the 5th argument to authunix_create()
+AC_DEFUN([AMU_TYPE_AUTH_CREATE_GIDLIST],
+[
+AC_CACHE_CHECK(argument type of 5rd argument to authunix_create(),
+ac_cv_auth_create_gidlist,
+[
+# select the correct type
+case "${host_os_name}" in
+ sunos[[34]]* | bsdi2* | sysv4* | hpux10.10 | ultrix* | aix4* )
+ ac_cv_auth_create_gidlist="int" ;;
+ # old macosx used "gid_t" but all newer ones use int
+ macosx-10.[[0-3]]* )
+ ac_cv_auth_create_gidlist="gid_t" ;;
+ macosx* )
+ ac_cv_auth_create_gidlist="int" ;;
+ *bsd* )
+ ac_cv_auth_create_gidlist="int" ;;
+ * )
+ ac_cv_auth_create_gidlist="gid_t" ;;
+esac
+])
+AC_DEFINE_UNQUOTED(AUTH_CREATE_GIDLIST_TYPE, $ac_cv_auth_create_gidlist)
+])
+dnl ======================================================================