linux-autoconf-reuse-i-truncate-sem-name-for-new-test-20011023
[openafs.git] / src / cf / linux-test4.m4
1 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_MMAP_SHARED, [
2 AC_MSG_CHECKING(for i_mmap_shared 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_mmap_shared,
6 [
7 AC_TRY_COMPILE(
8 [#include <linux/fs.h>],
9 [struct inode _inode;
10 printf("%d\n", _inode.i_mmap_shared);],
11 ac_cv_linux_fs_struct_inode_has_i_mmap_shared=yes,
12 ac_cv_linux_fs_struct_inode_has_i_mmap_shared=no)])
13 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mmap_shared)
14 CPPFLAGS="$save_CPPFLAGS"])
15
16 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS, [
17 AC_MSG_CHECKING(for i_dirty_data_buffers 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_dirty_data_buffers, 
21 [
22 AC_TRY_COMPILE(
23 [#include <linux/fs.h>],
24 [struct inode _inode;
25 printf("%d\n", _inode.i_dirty_data_buffers);], 
26 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=yes,
27 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=no)])
28 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers)
29 CPPFLAGS="$save_CPPFLAGS"])
30
31 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_MAPPING_OVERLOAD, [
32 AC_MSG_CHECKING(for i_mapping_overload 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_mapping_overload, 
36 [
37 AC_TRY_COMPILE(
38 [#include <linux/fs.h>],
39 [struct inode _inode;
40 printf("%d\n", _inode.i_mapping_overload);], 
41 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=yes,
42 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=no)])
43 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mapping_overload)
44 CPPFLAGS="$save_CPPFLAGS"])
45
46 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_CDEV, [
47 AC_MSG_CHECKING(for i_cdev 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_cdev, 
51 [
52 AC_TRY_COMPILE(
53 [#include <linux/fs.h>],
54 [struct inode _inode;
55 printf("%d\n", _inode.i_cdev);], 
56 ac_cv_linux_fs_struct_inode_has_i_cdev=yes,
57 ac_cv_linux_fs_struct_inode_has_i_cdev=no)])
58 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)
59 CPPFLAGS="$save_CPPFLAGS"])
60
61 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_DEVICES, [
62 AC_MSG_CHECKING(for i_devices in struct inode)
63 save_CPPFLAGS="$CPPFLAGS"
64 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
65 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_cdev, 
66 [
67 AC_TRY_COMPILE(
68 [#include <linux/fs.h>],
69 [struct inode _inode;
70 printf("%d\n", _inode.i_devices);], 
71 ac_cv_linux_fs_struct_inode_has_i_devices=yes,
72 ac_cv_linux_fs_struct_inode_has_i_devices=no)])
73 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_devices)
74 CPPFLAGS="$save_CPPFLAGS"])
75