aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2012-06-26 11:42:15 +1000
committerTheodore Ts'o <tytso@mit.edu>2012-07-30 14:50:30 -0400
commitd6a4bcb517ac7aa6d2347d6979f1f04cd94d60d8 (patch)
treec93fdb3416f55df7200cd2a6bfec09ac9aed0d41 /configure.in
parent119f1ad8c905489bd1a5910f588a0123026dab1e (diff)
downloade2fsprogs-d6a4bcb517ac7aa6d2347d6979f1f04cd94d60d8.tar.gz
e2fsprogs-d6a4bcb517ac7aa6d2347d6979f1f04cd94d60d8.tar.xz
e2fsprogs-d6a4bcb517ac7aa6d2347d6979f1f04cd94d60d8.zip
Make Multi Mount Protection (MMP) optional at configure time.
Add --{en,dis}able-mmp options for configure, default to enabled. Also make tools fail gracefully in the event of encoutering a filesystem with MMP enabled when the tools were compiled with --disable-mmp Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 7373e8e9..1da91672 100644
--- a/configure.in
+++ b/configure.in
@@ -746,6 +746,23 @@ AC_MSG_RESULT([Building uuidd by default])
)
AC_SUBST(UUIDD_CMT)
dnl
+dnl handle --disable-mmp
+dnl
+AH_TEMPLATE([CONFIG_MMP], [Define to 1 to enable mmp support])
+AC_ARG_ENABLE([mmp],
+[ --disable-mmp disable support mmp, Multi Mount Protection],
+if test "$enableval" = "no"
+then
+ AC_MSG_RESULT([Disabling mmp support])
+else
+ AC_MSG_RESULT([Enabling mmp support])
+ AC_DEFINE(CONFIG_MMP, 1)
+fi
+,
+AC_MSG_RESULT([Enabling mmp support by default])
+AC_DEFINE(CONFIG_MMP, 1)
+)
+dnl
dnl
dnl
MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library