]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: Adding XFS library/headers check.
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 6 Jul 2018 13:43:00 +0000 (10:43 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Jul 2018 14:56:55 +0000 (16:56 +0200)
This commit checks for xfs.h library to use XFS_IOC_CLONE which is
defined into that library file. So, after that it is possible to use
thie macro to create reflinks.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
configure.ac

index 59d2d09611d202d3a21876aefce60e62bb669ba3..a87ca06854d913588de9631efd1e3d5af39f779a 100644 (file)
@@ -625,6 +625,13 @@ if test "$with_linux" = "yes"; then
     AC_CHECK_HEADERS([linux/btrfs.h])
 fi
 
+dnl
+dnl check for xfs dev headers required by xfs ioctl
+dnl
+if test "$with_linux" = "yes"; then
+    AC_CHECK_HEADERS([xfs/xfs.h])
+fi
+
 dnl
 dnl check for DEVLINK_CMD_ESWITCH_GET
 dnl