[gparted/lucab/btrfs: 1/4] Add --enable-btrfs to ./configure for experimental Btrfs support



commit 1ad32e2e6e90370d55d947b4b981ae64ece209c0
Author: Luca Bruno <lucab debian org>
Date:   Sat Jan 2 12:00:41 2010 +0100

    Add --enable-btrfs to ./configure for experimental Btrfs support
    
    This will take care of setting BTRFS_SUPPORT in config.h, included
    all around the sources to conditionally enable Btrfs capability.

 configure.in |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 3cc1e89..2696cea 100644
--- a/configure.in
+++ b/configure.in
@@ -123,6 +123,24 @@ fi
 
 AM_CONDITIONAL(DISABLE_DOC, test ${enable_doc} = no)
 
+dnl ******************************
+dnl Optional btrfs support
+dnl ******************************
+
+with_btrfs="no"
+AC_ARG_ENABLE(	btrfs,
+		AS_HELP_STRING([--enable-btrfs], [enable experimental btrfs support (disabled by default)]),
+		with_btrfs=$enableval,
+		with_btrfs=no)
+
+if test "x$with_btrfs" = "xyes"; then
+                with_btrfs="yes"
+                AC_DEFINE(BTRFS_SUPPORT,1,[Build in btrfs support])
+else
+        with_btrfs="no"
+fi
+AM_CONDITIONAL(BTRFS_SUPPORT, test "x$with_btrfs" = "xyes")
+
 
 AC_CONFIG_FILES([
 Makefile
@@ -147,6 +165,8 @@ echo ""
 echo "================ Final configuration ==================="
 echo "          Installing into prefix  :  $prefix"
 echo ""
+echo "           Enable btrfs support?  :  $with_btrfs"
+echo ""
 echo "            Build documentation?  :  $enable_doc"
 echo ""
 echo " If all settings are OK, type make and make install "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]