loggen: fix build vs. newer xfsprogs headers
[xfstests-dev.git] / configure.ac
index 6fba3ad9e97bb4d04d8eafc371fc7fc11fa4824b..53459d87f930d43afa23a194f8dce135efe1c485 100644 (file)
@@ -25,14 +25,16 @@ AC_HEADER_STDC
                        sys/wait.h              \
                        sys/types.h             \
                        strings.h               \
-                       err.h
-    ])
-    AC_CHECK_HEADERS([ sys/fs/xfs_fsops.h      \
+                       err.h                   \
+                       linux/falloc.h          \
+                       sys/fs/xfs_fsops.h      \
                        sys/fs/xfs_itable.h     \
                        xfs/platform_defs.h     \
                        btrfs/ioctl.h           \
     ])
 
+AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[#include <xfs/libxfs.h>])
+
 AC_PACKAGE_NEED_UUIDCOMPARE
 
 case $pkg_platform
@@ -75,6 +77,8 @@ in
                ;;
 esac
 
+AC_CHECK_FUNCS([renameat2])
+
 AC_CONFIG_HEADER(include/config.h)
 AC_CONFIG_FILES([include/builddefs])
 AC_OUTPUT