diff options
author | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
commit | ca57057f598bfc7119f79f71bf38ec88244ab396 (patch) | |
tree | 051f78ef258707b493cc7cb21569b6949915f6c7 /m4/macros/type_auth_create_gidlist.m4 | |
parent | e66b16bf080ead1c51f321eaf56710c771778706 (diff) | |
download | src-vendor/amd.tar.gz src-vendor/amd.zip |
Import am-utils 6.2,vendor/amd/6.2vendor/amd
Suggested by: pfg@
Obtained from: ftp://ftp.am-utils.org/pub/am-utils/
Notes
Notes:
svn path=/vendor/amd/dist/; revision=305100
svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
Diffstat (limited to 'm4/macros/type_auth_create_gidlist.m4')
-rw-r--r-- | m4/macros/type_auth_create_gidlist.m4 | 25 |
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 ====================================================================== |