1 dnl ######################################################################
2 dnl check the correct way to dereference the address part of the nfs fhandle
3 AC_DEFUN([AMU_CHECK_NFS_FH_DREF],
5 AC_CACHE_CHECK(nfs file-handle address dereferencing style,
6 ac_cv_nfs_fh_dref_style,
8 # select the correct nfs address dereferencing style
10 hpux[[6-9]]* | hpux10* )
11 ac_cv_nfs_fh_dref_style=hpux ;;
13 ac_cv_nfs_fh_dref_style=sunos3 ;;
15 ac_cv_nfs_fh_dref_style=sunos4 ;;
16 svr4* | sysv4* | solaris* | sunos* | hpux* )
17 ac_cv_nfs_fh_dref_style=svr4 ;;
18 bsd44* | bsdi2* | freebsd2.[[01]]* )
19 ac_cv_nfs_fh_dref_style=bsd44 ;;
20 # all new BSDs changed the type of the
21 # filehandle in nfs_args from nfsv2fh_t to u_char.
22 freebsd* | freebsdelf* | bsdi* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
23 ac_cv_nfs_fh_dref_style=freebsd22 ;;
24 aix[[1-3]]* | aix4.[[01]]* )
25 ac_cv_nfs_fh_dref_style=aix3 ;;
27 ac_cv_nfs_fh_dref_style=aix42 ;;
29 ac_cv_nfs_fh_dref_style=irix ;;
31 ac_cv_nfs_fh_dref_style=linux ;;
33 ac_cv_nfs_fh_dref_style=isc3 ;;
35 ac_cv_nfs_fh_dref_style=osf2 ;;
37 ac_cv_nfs_fh_dref_style=osf4 ;;
39 ac_cv_nfs_fh_dref_style=nextstep ;;
41 ac_cv_nfs_fh_dref_style=default ;;
44 am_utils_nfs_fh_dref=$srcdir"/conf/fh_dref/fh_dref_"$ac_cv_nfs_fh_dref_style".h"
45 AC_SUBST_FILE(am_utils_nfs_fh_dref)
47 dnl ======================================================================