fa48d2f806e8ec2c97af74f6f50ab73fb467dc11
[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                         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     ])
36
37 AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
38 #define _GNU_SOURCE
39 #include <xfs/libxfs.h>])
40
41 AC_PACKAGE_NEED_UUIDCOMPARE
42
43 case $pkg_platform
44 in
45         irix)
46                 AC_PACKAGE_NEED_SYS_ACL_H
47                 AC_PACKAGE_NEED_ATTRIBUTES_H
48                 AC_PACKAGE_WANT_NDBM
49                 AC_PACKAGE_NEED_IRIX_LIBHANDLE
50                 have_attr_list=true
51                 AC_SUBST(have_attr_list)
52                 ;;
53         *)
54                 AC_MULTILIB($enable_lib64)
55                 AC_PACKAGE_NEED_XFS_XFS_H
56                 AC_PACKAGE_WANT_LIBXFS_H
57                 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
58                 AC_PACKAGE_NEED_XFS_XQM_H
59                 AC_PACKAGE_NEED_XFSCTL_MACRO
60                 AC_PACKAGE_NEED_XFS_HANDLE_H
61
62                 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
63                 AC_PACKAGE_NEED_ATTR_XATTR_H
64                 AC_PACKAGE_NEED_ATTRIBUTES_H
65                 AC_PACKAGE_WANT_ATTRLIST_LIBATTR
66                 AC_PACKAGE_NEED_GETXATTR_LIBATTR
67
68                 AC_PACKAGE_NEED_SYS_ACL_H
69                 AC_PACKAGE_NEED_ACL_LIBACL_H
70                 AC_PACKAGE_NEED_ACLINIT_LIBACL
71
72                 AC_PACKAGE_WANT_GDBM
73                 AC_PACKAGE_WANT_AIO
74                 AC_PACKAGE_WANT_DMAPI
75                 AC_PACKAGE_WANT_LINUX_FIEMAP_H
76                 AC_PACKAGE_WANT_FALLOCATE
77                 AC_PACKAGE_WANT_LINUX_PRCTL_H
78                 AC_PACKAGE_WANT_LINUX_FS_H
79                 AC_PACKAGE_WANT_SSL
80                 ;;
81 esac
82
83 AC_CHECK_FUNCS([renameat2])
84
85 AC_CONFIG_HEADER(include/config.h)
86 AC_CONFIG_FILES([include/builddefs])
87 AC_OUTPUT