aboutsummaryrefslogtreecommitdiff
path: root/m4/macros/type_auth_create_gidlist.m4
blob: b56d4f657313cc6a05ec6c7126515bbeb5b2fc82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 ======================================================================