aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-12-24 15:19:44 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-12-24 15:19:44 -0500
commit8d9c50c5570c2c87a99fb68389cebdc782433f82 (patch)
tree3fafba20d66e0ab7abd61d34faea1fefc6f65aab /configure.in
parentb07f014face2e2aa0abf8a3266fd716152cd0cd4 (diff)
downloade2fsprogs-8d9c50c5570c2c87a99fb68389cebdc782433f82.tar.gz
e2fsprogs-8d9c50c5570c2c87a99fb68389cebdc782433f82.tar.xz
e2fsprogs-8d9c50c5570c2c87a99fb68389cebdc782433f82.zip
configure: control whether e4defrag is built/installed via --disable-defrag
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f9fffc18..af639c3f 100644
--- a/configure.in
+++ b/configure.in
@@ -577,6 +577,24 @@ RESIZER_CMT=
)
AC_SUBST(RESIZER_CMT)
dnl
+dnl handle --enable-defrag
+dnl
+AC_ARG_ENABLE([defrag],
+[ --disable-defrag disable support of e4defrag program],
+if test "$enableval" = "no"
+then
+ AC_MSG_RESULT([Disabling e4defrag support])
+ DEFRAG_CMT="#"
+else
+ DEFRAG_CMT=
+ AC_MSG_RESULT([Enabling e4defrag support])
+fi
+,
+AC_MSG_RESULT([Enabling e4defrag support by default])
+DEFRAG_CMT=
+)
+AC_SUBST(DEFRAG_CMT)
+dnl
dnl See whether to install the `fsck' wrapper program (that calls e2fsck)
dnl
AC_ARG_ENABLE([fsck],