util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carlos Santos <casantos@datacom.com.br>
To: util-linux@vger.kernel.org
Subject: [PATCH] build-sys: make fdisk, sfdisk, cfdisk optional (enabled by default)
Date: Thu, 22 Nov 2018 13:05:49 -0200	[thread overview]
Message-ID: <20181122150549.32675-1-casantos@datacom.com.br> (raw)

Useful for embedded systems, on which only few utilities are required.

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
---
 configure.ac | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index e32cfc7e4..7e9fcc5f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1152,26 +1152,30 @@ AC_SUBST([LIBFDISK_VERSION_INFO])
 AC_DEFINE_UNQUOTED([LIBFDISK_VERSION], ["$LIBFDISK_VERSION"], [libfdisk version string])
 
 
-UL_BUILD_INIT([fdisk], [check])
+AC_ARG_ENABLE([fdisk],
+  AS_HELP_STRING([--disable-fdisk], [do not build fdisk(8), sfdisk(8) and cfdisk(8)]),
+  [], [UL_DEFAULT_ENABLE([fdisk], [check])]
+)
+UL_BUILD_INIT([fdisk])
 UL_REQUIRES_HAVE([fdisk], [openat], [openat functions])
 UL_REQUIRES_BUILD([fdisk], [libfdisk])
 UL_REQUIRES_BUILD([fdisk], [libsmartcols])
 AM_CONDITIONAL([BUILD_FDISK], [test "x$build_fdisk" = xyes])
 
 
-UL_BUILD_INIT([sfdisk], [check])
+UL_BUILD_INIT([sfdisk])
 UL_REQUIRES_HAVE([sfdisk], [openat], [openat functions])
 UL_REQUIRES_BUILD([sfdisk], [libfdisk])
 UL_REQUIRES_BUILD([sfdisk], [libsmartcols])
-AM_CONDITIONAL([BUILD_SFDISK], [test "x$build_sfdisk" = xyes])
+AM_CONDITIONAL([BUILD_SFDISK], [test "x$build_fdisk" = xyes])
 
 
-UL_BUILD_INIT([cfdisk], [check])
+UL_BUILD_INIT([cfdisk])
 UL_REQUIRES_BUILD([cfdisk], [libfdisk])
 UL_REQUIRES_BUILD([cfdisk], [libsmartcols])
 UL_REQUIRES_HAVE([cfdisk], [open_memstream], [open_memstream function])
 UL_REQUIRES_HAVE([cfdisk], [ncursesw,slang,ncurses], [ncursesw, ncurses or slang library])
-AM_CONDITIONAL([BUILD_CFDISK], [test "x$build_cfdisk" = xyes])
+AM_CONDITIONAL([BUILD_CFDISK], [test "x$build_fdisk" = xyes])
 
 
 AC_ARG_ENABLE([mount],
-- 
2.14.5


             reply	other threads:[~2018-11-22 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-22 15:05 Carlos Santos [this message]
2018-11-29 10:37 ` [PATCH] build-sys: make fdisk, sfdisk, cfdisk optional (enabled by default) Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181122150549.32675-1-casantos@datacom.com.br \
    --to=casantos@datacom.com.br \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).