xfs: Verify correctness of upgrading an fs to support large extent counters
[xfstests-dev.git] / configure.ac
1 AC_INIT([xfstests],[1.1.2])
2 AC_CONFIG_MACRO_DIR([m4])
3 LT_INIT
4 AC_CONFIG_SRCDIR([src/xfsctl.c])
5 AC_PACKAGE_GLOBALS(xfstests)
6 AC_PACKAGE_UTILITIES(xfstests)
7
8 AC_CHECK_HEADERS([      assert.h                \
9                         bstring.h               \
10                         libgen.h                \
11                         dirent.h                \
12                         errno.h                 \
13                         malloc.h                \
14                         uuid.h                  \
15                         uuid/uuid.h             \
16                         sys/uuid.h              \
17                         sys/file.h              \
18                         sys/fcntl.h             \
19                         sys/syssgi.h            \
20                         sys/param.h             \
21                         sys/stat.h              \
22                         sys/statvfs.h           \
23                         sys/time.h              \
24                         sys/ioctl.h             \
25                         sys/wait.h              \
26                         sys/types.h             \
27                         strings.h               \
28                         err.h                   \
29                         linux/falloc.h          \
30                         sys/fs/xfs_fsops.h      \
31                         sys/fs/xfs_itable.h     \
32                         xfs/platform_defs.h     \
33                         btrfs/ioctl.h           \
34                         cifs/ioctl.h            \
35                         sys/mman.h              \
36 ])
37
38 AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
39 #define _GNU_SOURCE
40 #include <xfs/libxfs.h>])
41
42 AC_PACKAGE_NEED_UUIDCOMPARE
43
44 AC_MULTILIB($enable_lib64)
45 AC_PACKAGE_NEED_XFS_XFS_H
46 AC_PACKAGE_WANT_LIBXFS_H
47 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
48 AC_PACKAGE_NEED_XFS_XQM_H
49 AC_PACKAGE_NEED_XFSCTL_MACRO
50 AC_PACKAGE_NEED_XFS_HANDLE_H
51 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
52
53 AC_PACKAGE_NEED_SYS_ACL_H
54 AC_PACKAGE_NEED_ACL_LIBACL_H
55 AC_PACKAGE_NEED_ACLINIT_LIBACL
56
57 AC_PACKAGE_WANT_GDBM
58 AC_PACKAGE_WANT_AIO
59 AC_PACKAGE_WANT_URING
60 AC_PACKAGE_WANT_LIBCAP
61 AC_PACKAGE_WANT_LINUX_FIEMAP_H
62 AC_PACKAGE_WANT_FALLOCATE
63 AC_PACKAGE_WANT_OPEN_BY_HANDLE_AT
64 AC_PACKAGE_WANT_LINUX_PRCTL_H
65 AC_PACKAGE_WANT_LINUX_FS_H
66 AC_PACKAGE_WANT_LIBBTRFSUTIL
67
68 AC_HAVE_COPY_FILE_RANGE
69 AC_CHECK_FUNCS([renameat2])
70 AC_CHECK_FUNCS([reallocarray])
71 AC_CHECK_TYPES([struct mount_attr], [], [], [[#include <linux/mount.h>]])
72 AC_CHECK_TYPES([struct btrfs_qgroup_limit], [], [], [[
73 #include <stddef.h>
74 #include <linux/btrfs.h>
75 ]])
76 AC_CHECK_TYPES([struct btrfs_qgroup_inherit], [], [], [[
77 #include <stddef.h>
78 #include <linux/btrfs.h>
79 ]])
80 AC_CHECK_TYPES([struct btrfs_ioctl_vol_args], [], [], [[
81 #include <stddef.h>
82 #include <linux/btrfs.h>
83 ]])
84 AC_CHECK_TYPES([struct btrfs_ioctl_vol_args_v2], [], [], [[
85 #include <stddef.h>
86 #include <linux/btrfs.h>
87 ]])
88 AC_CHECK_TYPES([struct btrfs_ioctl_ino_lookup_args], [], [], [[
89 #include <stddef.h>
90 #include <linux/btrfs.h>
91 ]])
92 AC_CHECK_TYPES([struct btrfs_ioctl_ino_lookup_user_args], [], [], [[
93 #include <stddef.h>
94 #include <linux/btrfs.h>
95 ]])
96 AC_CHECK_TYPES([struct btrfs_ioctl_get_subvol_rootref_args], [], [], [[
97 #include <stddef.h>
98 #include <linux/btrfs.h>
99 ]])
100 AC_CHECK_HEADERS([linux/btrfs.h linux/btrfs_tree.h])
101 AC_CHECK_MEMBERS([struct btrfs_ioctl_vol_args_v2.subvolid], [], [], [[
102 #include <stddef.h>
103 #include <linux/btrfs.h>
104 ]])
105
106 AC_CONFIG_HEADERS([include/config.h])
107 AC_CONFIG_FILES([include/builddefs])
108 AC_OUTPUT