check: Remount file system if MOUNT_OPTIONS changed
[xfstests-dev.git] / configure.ac
1 AC_INIT([xfstests], [1.1.1])
2 AC_PREREQ(2.50)
3 AC_CONFIG_SRCDIR([src/xfsctl.c])
4 AC_PACKAGE_GLOBALS(xfstests)
5 AC_PACKAGE_UTILITIES(xfstests)
6
7 AC_HEADER_STDC
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     ])
31     AC_CHECK_HEADERS([  sys/fs/xfs_fsops.h      \
32                         sys/fs/xfs_itable.h     \
33                         xfs/platform_defs.h     \
34                         btrfs/ioctl.h           \
35     ])
36
37 AC_PACKAGE_NEED_UUIDCOMPARE
38
39 case $pkg_platform
40 in
41         irix)
42                 AC_PACKAGE_NEED_SYS_ACL_H
43                 AC_PACKAGE_NEED_ATTRIBUTES_H
44                 AC_PACKAGE_WANT_NDBM
45                 AC_PACKAGE_NEED_IRIX_LIBHANDLE
46                 have_attr_list=true
47                 AC_SUBST(have_attr_list)
48                 ;;
49         *)
50                 AC_MULTILIB($enable_lib64)
51                 AC_PACKAGE_NEED_XFS_XFS_H
52                 AC_PACKAGE_WANT_LIBXFS_H
53                 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
54                 AC_PACKAGE_NEED_XFS_XQM_H
55                 AC_PACKAGE_NEED_XFSCTL_MACRO
56                 AC_PACKAGE_NEED_XFS_HANDLE_H
57
58                 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
59                 AC_PACKAGE_NEED_ATTR_XATTR_H
60                 AC_PACKAGE_NEED_ATTRIBUTES_H
61                 AC_PACKAGE_WANT_ATTRLIST_LIBATTR
62                 AC_PACKAGE_NEED_GETXATTR_LIBATTR
63
64                 AC_PACKAGE_NEED_SYS_ACL_H
65                 AC_PACKAGE_NEED_ACL_LIBACL_H
66                 AC_PACKAGE_NEED_ACLINIT_LIBACL
67
68                 AC_PACKAGE_WANT_GDBM
69                 AC_PACKAGE_WANT_AIO
70                 AC_PACKAGE_WANT_DMAPI
71                 AC_PACKAGE_WANT_LINUX_FIEMAP_H
72                 AC_PACKAGE_WANT_FALLOCATE
73                 AC_PACKAGE_WANT_LINUX_PRCTL_H
74                 AC_PACKAGE_WANT_LINUX_FS_H
75                 AC_PACKAGE_WANT_SSL
76                 ;;
77 esac
78
79 AC_CONFIG_HEADER(include/config.h)
80 AC_CONFIG_FILES([include/builddefs])
81 AC_OUTPUT