- # This effectively checks for NTFS-3g 2011.4.12 or later
- AC_CHECK_LIB([ntfs-3g], [ntfs_xattr_system_setxattr], [],
- [AC_MSG_ERROR([Cannot find libntfs-3g version 2011-4-12
- or later! Without libntfs-3g, wimlib cannot include support for
- capturing or applying a WIM image directly from/to an unmounted NTFS
- volume while preserving NTFS-specific data such as security descriptors
- and named data streams. Either install libntfs-3g, or configure
- --without-ntfs-3g to disable this feature.])])
-
- # This checks a definition that was changed in NTFS-3g 2013.1.13
- AC_CHECK_DECL([NTFS_MNT_RDONLY],
- [AC_DEFINE([HAVE_NTFS_MNT_RDONLY], [1],
- [Define to 1 if ntfs_mount() takes the flag
- NTFS_MNT_RDONLY])],
- [],
- [#include <ntfs-3g/volume.h>])
-
- AC_DEFINE([WITH_NTFS_3G], [1], [Define to 1 if using NTFS-3g support])
- PKG_CHECK_MODULES([LIBNTFS_3G], [libntfs-3g])
+ PKG_CHECK_MODULES([LIBNTFS_3G], [libntfs-3g >= 2011.4.12], [],
+ [AC_MSG_ERROR([Cannot find libntfs-3g version 2011-4-12 or
+ later! Without libntfs-3g, wimlib cannot include support for
+ capturing or applying a WIM image directly from/to an unmounted
+ NTFS volume while preserving NTFS-specific data such as
+ security descriptors and named data streams. Either install
+ libntfs-3g, or configure --without-ntfs-3g to disable this
+ feature.])])