aboutsummaryrefslogtreecommitdiffstats
path: root/m4/package_libcdev.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/package_libcdev.m4')
-rw-r--r--m4/package_libcdev.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
index 7f73104405..0f4b8063f3 100644
--- a/m4/package_libcdev.m4
+++ b/m4/package_libcdev.m4
@@ -174,3 +174,16 @@ AC_DEFUN([AC_HAVE_FIEXCHANGE],
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
AC_SUBST(have_fiexchange)
])
+
+# Check if we have FICLONE
+AC_DEFUN([AC_HAVE_FICLONE],
+ [ AC_MSG_CHECKING([for FICLONE])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/ioctl.h>
+#include <linux/fs.h>
+ ]], [[
+ ioctl(-1, FICLONE, -1);
+ ]])],[have_ficlone=yes
+ AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+ AC_SUBST(have_ficlone)
+ ])