From 0164c24595bd4209ab7b668fec34f5cdcdd1d5eb Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 21 Jun 2011 11:46:36 +0200 Subject: mountpoint: add new command This is libmount based re-implementation of the mountpoint(1) command. The original implementation is maintained in sysvinit suite. The mountpoint(1) in util-linux is not enabled by default (for now) -- use --enable-mountpoint to enable the util. Signed-off-by: Karel Zak --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 52eade9e1..a02b5e31f 100644 --- a/configure.ac +++ b/configure.ac @@ -483,6 +483,17 @@ esac AM_CONDITIONAL(BUILD_LIBMOUNT_MOUNT, test "x$enable_libmount_mount" = xyes) +AC_ARG_ENABLE([mountpoint], + AS_HELP_STRING([--enable-mountpoint], [build mountpoint]), + [], enable_mountpoint=no +) +case "$enable_libmount:$enable_mountpoint" in +no:yes) + AC_MSG_ERROR([cannot enable mountpoint when libmount is disabled]) ;; +esac +AM_CONDITIONAL(BUILD_MOUNTPOINT, test "x$enable_mountpoint" = xyes) + + UTIL_CHECK_LIB(util, openpty) UTIL_CHECK_LIB(termcap, tgetnum) -- cgit v1.2.3-55-g7522