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