]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - m4/package_libcdev.m4
build: Add fls check into autoconf
[thirdparty/xfsprogs-dev.git] / m4 / package_libcdev.m4
index 75aa61ee8698ad73c68b844dd1cccdf6e35efdab..4a963745c74138274f97ac1e7f0837833f6b458a 100644 (file)
@@ -202,6 +202,18 @@ AC_DEFUN([AC_HAVE_READDIR],
     AC_SUBST(have_readdir)
   ])
 
+#
+# Check if we have a flc call (Mac OS X)
+#
+AC_DEFUN([AC_HAVE_FLS],
+  [ AC_CHECK_DECL([fls],
+       have_fls=yes,
+       [],
+       [#include <string.h>]
+       )
+    AC_SUBST(have_fls)
+  ])
+
 #
 # Check if there is mntent.h
 #