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.
This commit is contained in:
parent
30efae4b8d
commit
a64cc98bb5
20
configure.in
20
configure.in
|
@ -170,6 +170,24 @@ fi
|
||||||
|
|
||||||
AM_CONDITIONAL([DISABLE_DOC], [test ${enable_doc} = no])
|
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([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -194,6 +212,8 @@ echo ""
|
||||||
echo "================ Final configuration ==================="
|
echo "================ Final configuration ==================="
|
||||||
echo " Installing into prefix : $prefix"
|
echo " Installing into prefix : $prefix"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo " Enable btrfs support? : $with_btrfs"
|
||||||
|
echo ""
|
||||||
echo " Build documentation? : $enable_doc"
|
echo " Build documentation? : $enable_doc"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Need part table re-read work around? : $need_pt_reread_work_around"
|
echo " Need part table re-read work around? : $need_pt_reread_work_around"
|
||||||
|
|
Loading…
Reference in New Issue