8e80a3829979c57a88f52e170bd540f6497d4509
[xfstests-dev.git] / configure.ac
1 AC_INIT([xfstests], [1.1.0])
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     ])
30     AC_CHECK_HEADERS([  sys/fs/xfs_fsops.h      \
31                         sys/fs/xfs_itable.h     \
32                         xfs/platform_defs.h     \
33     ])
34
35 AC_PACKAGE_NEED_UUIDCOMPARE
36
37 case $pkg_platform
38 in
39         irix)
40                 AC_PACKAGE_NEED_SYS_ACL_H
41                 AC_PACKAGE_NEED_ATTRIBUTES_H
42                 AC_PACKAGE_WANT_NDBM
43                 AC_PACKAGE_NEED_IRIX_LIBHANDLE
44                 have_attr_list=true
45                 AC_SUBST(have_attr_list)
46                 ;;
47         *)
48                 AC_MULTILIB($enable_lib64)
49                 AC_PACKAGE_NEED_XFS_XFS_H
50                 AC_PACKAGE_WANT_LIBXFS_H
51                 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
52                 AC_PACKAGE_NEED_XFS_XQM_H
53                 AC_PACKAGE_NEED_XFSCTL_MACRO
54                 AC_PACKAGE_NEED_XFS_HANDLE_H
55
56                 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
57                 AC_PACKAGE_NEED_ATTR_XATTR_H
58                 AC_PACKAGE_NEED_ATTRIBUTES_H
59                 AC_PACKAGE_WANT_ATTRLIST_LIBATTR
60                 AC_PACKAGE_NEED_GETXATTR_LIBATTR
61
62                 AC_PACKAGE_NEED_SYS_ACL_H
63                 AC_PACKAGE_NEED_ACL_LIBACL_H
64                 AC_PACKAGE_NEED_ACLINIT_LIBACL
65
66                 AC_PACKAGE_WANT_GDBM
67                 AC_PACKAGE_WANT_AIO
68                 AC_PACKAGE_WANT_DMAPI
69                 AC_PACKAGE_WANT_LINUX_FIEMAP_H
70                 AC_PACKAGE_WANT_FALLOCATE
71                 AC_PACKAGE_WANT_LINUX_PRCTL_H
72                 AC_PACKAGE_WANT_LINUX_FS_H
73                 ;;
74 esac
75
76 AC_CONFIG_HEADER(include/config.h)
77 AC_CONFIG_FILES([include/builddefs])
78 AC_OUTPUT