fstests: update autoconf rules to define _GNU_SOURCE where needed
[xfstests-dev.git] / configure.ac
index 43e6029193a6a22136032245700310003bf3de15..fa48d2f806e8ec2c97af74f6f50ab73fb467dc11 100644 (file)
@@ -26,14 +26,18 @@ AC_HEADER_STDC
                        sys/types.h             \
                        strings.h               \
                        err.h                   \
-                       linux/falloc.h
-    ])
-    AC_CHECK_HEADERS([ sys/fs/xfs_fsops.h      \
+                       linux/falloc.h          \
+                       sys/fs/xfs_fsops.h      \
                        sys/fs/xfs_itable.h     \
                        xfs/platform_defs.h     \
                        btrfs/ioctl.h           \
+                       cifs/ioctl.h            \
     ])
 
+AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
+#define _GNU_SOURCE
+#include <xfs/libxfs.h>])
+
 AC_PACKAGE_NEED_UUIDCOMPARE
 
 case $pkg_platform