diff options
author | Karel Zak | 2011-10-27 12:39:30 +0200 |
---|---|---|
committer | Karel Zak | 2011-11-03 12:32:49 +0100 |
commit | 9ead6701a13c3de60304e7b45c290b3fd81e36fb (patch) | |
tree | bedef61e8e23164c42589a28ef2d19c5a581ed54 /configure.ac | |
parent | build-sys: cleanup BUILD_RAW (diff) | |
download | kernel-qcow2-util-linux-9ead6701a13c3de60304e7b45c290b3fd81e36fb.tar.gz kernel-qcow2-util-linux-9ead6701a13c3de60304e7b45c290b3fd81e36fb.tar.xz kernel-qcow2-util-linux-9ead6701a13c3de60304e7b45c290b3fd81e36fb.zip |
build-sys: cleanup BUILD_MOUNT
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 41 |
1 files changed, 15 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac index 5ec5f9de5..39308d6fa 100644 --- a/configure.ac +++ b/configure.ac @@ -355,9 +355,6 @@ AC_DEFINE_UNQUOTED(LIBBLKID_DATE, "$LIBBLKID_DATE", [libblkid date string]) if test "x$enable_libblkid" = xyes; then AC_DEFINE(HAVE_LIBBLKID, 1, [Define to 1 if you have the -lblkid.]) else - if test "x$build_mount" = xyes; then - AC_MSG_ERROR([libblkid is needed to build util-linux mount]) - fi if test "x$enable_fsck" = xyes; then AC_MSG_ERROR([libblkid is needed to build util-linux fsck]) fi @@ -437,17 +434,24 @@ AC_ARG_ENABLE([mount], [], enable_mount=check ) build_mount=yes -if test "x$enable_mount" = xcheck; then - if test "x$linux_os" = xno; then - AC_MSG_WARN([non-linux system; do not build mount utilities]) - build_mount=no - fi -elif test "x$enable_mount" = xno; then - build_mount=no -fi +UL_REQUIRES_LINUX([mount]) +UL_REQUIRES_BUILD([mount], [libblkid]) AM_CONDITIONAL(BUILD_MOUNT, test "x$build_mount" = xyes) +AC_ARG_ENABLE([libmount-mount], + AS_HELP_STRING([--enable-libmount-mount], [link mount(8) with libmount (EXPERIMENTAL)]), + [], enable_libmount_mount=no +) +build_libmount_mount=yes +UL_REQUIRES_BUILD([libmount_mount], [mount]) +UL_REQUIRES_BUILD([libmount_mount], [libmount]) +if test "x$build_libmount_mount" = xyes; then + AC_DEFINE(HAVE_LIBMOUNT_MOUNT, 1, [use libmount for mount(8)]) +fi +AM_CONDITIONAL(BUILD_LIBMOUNT_MOUNT, test "x$build_libmount_mount" = xyes) + + AC_ARG_ENABLE([fsck], AS_HELP_STRING([--disable-fsck], [do not build fsck]), [], enable_fsck=yes @@ -490,21 +494,6 @@ AM_CONDITIONAL(BUILD_UUIDD, test "x$enable_uuidd" = xyes) - -AC_ARG_ENABLE([libmount-mount], - AS_HELP_STRING([--enable-libmount-mount], [link mount(8) with libmount (EXPERIMENTAL)]), - [], enable_libmount_mount=no -) - -case "$build_libmount:$enable_libmount_mount" in -no:yes) - AC_MSG_ERROR([cannot link mount(8) with libmount when libmount is disabled]) ;; -yes:yes) - AC_DEFINE(HAVE_LIBMOUNT_MOUNT, 1, [use libmount for mount(8)]) -esac -AM_CONDITIONAL(BUILD_LIBMOUNT_MOUNT, test "x$enable_libmount_mount" = xyes) - - AC_ARG_ENABLE([mountpoint], AS_HELP_STRING([--disable-mountpoint], [do not build mountpoint]), [], enable_mountpoint=check |