1 dnl ######################################################################
2 dnl Find the structure of an nfs filehandle.
3 dnl if found, defined am_nfs_fh to it, else leave it undefined.
4 dnl THE ORDER OF LOOKUPS IN THIS FILE IS VERY IMPORTANT!!!
5 AC_DEFUN([AMU_STRUCT_NFS_FH],
7 AC_CACHE_CHECK(for type/structure of NFS V2 filehandle,
10 # try to compile a program which may have a definition for the type
11 dnl need a series of compilations, which will test out every possible type
12 dnl such as struct nfs_fh, fhandle_t, nfsv2fh_t, etc.
13 # set to a default value
14 ac_cv_struct_nfs_fh=notfound
17 if test "$ac_cv_struct_nfs_fh" = notfound
21 ], ac_cv_struct_nfs_fh="nfs_fh", ac_cv_struct_nfs_fh=notfound)
24 # look for "struct nfs_fh"
25 if test "$ac_cv_struct_nfs_fh" = notfound
29 ], ac_cv_struct_nfs_fh="struct nfs_fh", ac_cv_struct_nfs_fh=notfound)
32 # look for "struct nfssvcfh"
33 if test "$ac_cv_struct_nfs_fh" = notfound
37 ], ac_cv_struct_nfs_fh="struct nfssvcfh", ac_cv_struct_nfs_fh=notfound)
40 # look for "nfsv2fh_t"
41 if test "$ac_cv_struct_nfs_fh" = notfound
45 ], ac_cv_struct_nfs_fh="nfsv2fh_t", ac_cv_struct_nfs_fh=notfound)
48 # look for "fhandle_t"
49 if test "$ac_cv_struct_nfs_fh" = notfound
53 ], ac_cv_struct_nfs_fh="fhandle_t", ac_cv_struct_nfs_fh=notfound)
58 if test "$ac_cv_struct_nfs_fh" != notfound
60 AC_DEFINE_UNQUOTED(am_nfs_fh, $ac_cv_struct_nfs_fh)
63 dnl ======================================================================