(tree_move): fix coding style.
[midnight-commander.git] / m4.include / mc-ext2fs-attr.m4
blob42e4a292ef87037f68da9634072b17258bfb58ff
1 dnl
2 dnl Support for attributes on a Linux second extended file system
3 dnl
4 AC_DEFUN([mc_EXT2FS_ATTR],
6     ext2fs_attr_msg="no"
8     PKG_CHECK_MODULES(EXT2FS, [ext2fs >= 1.42.4], [found_ext2fs=yes], [:])
10     if test x"$found_ext2fs" = "xyes"; then
11         PKG_CHECK_MODULES(E2P, [e2p >= 1.42.4], [found_e2p=yes], [:])
13         if test x"$found_e2p" = "xyes"; then
14             AC_DEFINE(ENABLE_EXT2FS_ATTR, 1, [Define to enable support for ext2fs attributes])
15             MCLIBS="$MCLIBS $E2P_LIBS"
16             CPPFLAGS="$CPPFLAGS $EXT2FS_CFLAGS $E2P_CFLAGS"
17             ext2fs_attr_msg="yes"
18         else
19             AC_MSG_WARN([e2p library not found or version too old (must be >= 1.42.4)])
20             ext2fs_attr_msg="no"
21         fi
22     else
23         AC_MSG_WARN([ext2fs library not found or version too old (must be >= 1.42.4)])
24         ext2fs_attr_msg="no"
25     fi
27     AM_CONDITIONAL(ENABLE_EXT2FS_ATTR, [test "x$ext2fs_attr_msg" = "xyes"])