cc2a8bcd2990f5aa7f1cfd4faf41e6057c5ca0c7
[openafs.git] / src / cf / linux-test4.m4
1 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS, [
2 AC_MSG_CHECKING(for i_dirty_data_buffers in struct inode)
3 save_CPPFLAGS="$CPPFLAGS"
4 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
5 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers, 
6 [
7 AC_TRY_COMPILE(
8 [#include <linux/fs.h>],
9 [struct inode _inode;
10 printf("%d\n", _inode.i_dirty_data_buffers);], 
11 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=yes,
12 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=no)])
13 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers)
14 CPPFLAGS="$save_CPPFLAGS"])
15
16 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_MAPPING_OVERLOAD, [
17 AC_MSG_CHECKING(for i_mapping_overload in struct inode)
18 save_CPPFLAGS="$CPPFLAGS"
19 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
20 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_mapping_overload, 
21 [
22 AC_TRY_COMPILE(
23 [#include <linux/fs.h>],
24 [struct inode _inode;
25 printf("%d\n", _inode.i_mapping_overload);], 
26 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=yes,
27 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=no)])
28 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mapping_overload)
29 CPPFLAGS="$save_CPPFLAGS"])
30
31 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_CDEV, [
32 AC_MSG_CHECKING(for i_cdev in struct inode)
33 save_CPPFLAGS="$CPPFLAGS"
34 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
35 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_cdev, 
36 [
37 AC_TRY_COMPILE(
38 [#include <linux/fs.h>],
39 [struct inode _inode;
40 printf("%d\n", _inode.i_cdev);], 
41 ac_cv_linux_fs_struct_inode_has_i_cdev=yes,
42 ac_cv_linux_fs_struct_inode_has_i_cdev=no)])
43 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)
44 CPPFLAGS="$save_CPPFLAGS"])
45
46 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM, [
47 AC_MSG_CHECKING(for i_truncate_sem in struct inode)
48 save_CPPFLAGS="$CPPFLAGS"
49 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
50 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_truncate_sem, 
51 [
52 AC_TRY_COMPILE(
53 [#include <linux/fs.h>],
54 [struct inode _inode;
55 printf("%d\n", _inode.i_truncate_sem);], 
56 ac_cv_linux_fs_struct_inode_has_i_truncate_sem=yes,
57 ac_cv_linux_fs_struct_inode_has_i_truncate_sem=no)])
58 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_truncate_sem)
59 CPPFLAGS="$save_CPPFLAGS"])