summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorKarel Zak2011-10-27 14:31:34 +0200
committerKarel Zak2011-11-03 12:32:49 +0100
commita9127bc15821ed5d783084403540d3870793bb85 (patch)
tree4a4d100e8b16c828e3e49f430e2936e3137d5d92 /configure.ac
parentbuild-sys: cleanup misc-utils/Makefile.am (diff)
downloadkernel-qcow2-util-linux-a9127bc15821ed5d783084403540d3870793bb85.tar.gz
kernel-qcow2-util-linux-a9127bc15821ed5d783084403540d3870793bb85.tar.xz
kernel-qcow2-util-linux-a9127bc15821ed5d783084403540d3870793bb85.zip
build-sys: cleanup BUILD_MOUNTPOINT
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 1 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 276a6ef35..a8f2166e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,21 +473,8 @@ AC_ARG_ENABLE([mountpoint],
AS_HELP_STRING([--disable-mountpoint], [do not build mountpoint]),
[], enable_mountpoint=check
)
-
build_mountpoint=yes
-if test "x$enable_mountpoint" = xcheck; then
- if test "x$build_libmount" = xno; then
- AC_MSG_WARN([libmount disabled; do not build mountpoint])
- build_mountpoint=no
- fi
-elif test "x$enable_mountpoint" = xno; then
- build_mountpoint=no
-fi
-
-case "$build_libmount:$build_mountpoint" in
-no:yes)
- AC_MSG_ERROR([cannot enable mountpoint when libmount is disabled]) ;;
-esac
+UL_REQUIRES_BUILD([mountpoint], [libmount])
AM_CONDITIONAL(BUILD_MOUNTPOINT, test "x$build_mountpoint" = xyes)