summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash-completion/Makemodule.am7
-rw-r--r--configure.ac11
-rw-r--r--disk-utils/Makemodule.am12
3 files changed, 21 insertions, 9 deletions
diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am
index 14e0e6136..371aaf506 100644
--- a/bash-completion/Makemodule.am
+++ b/bash-completion/Makemodule.am
@@ -62,11 +62,14 @@ if BUILD_SWAPLABEL
dist_bashcompletion_DATA += \
bash-completion/swaplabel
endif
-if LINUX
+if BUILD_FDFORMAT
dist_bashcompletion_DATA += \
- bash-completion/blockdev \
bash-completion/fdformat
endif
+if LINUX
+dist_bashcompletion_DATA += \
+ bash-completion/blockdev
+endif
# ...disk-utils
# fdisks...
diff --git a/configure.ac b/configure.ac
index 84148abd3..fec2e4d79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -958,7 +958,7 @@ UL_REQUIRES_HAVE([cramfs], [z], [z library])
AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
-AC_ARG_ENABLE([BUILD_BFS],
+AC_ARG_ENABLE([bfs],
AS_HELP_STRING([--disable-bfs], [do not build mkfs.bfs]),
[], enable_bfs=yes
)
@@ -966,6 +966,15 @@ UL_BUILD_INIT([bfs])
AM_CONDITIONAL(BUILD_BFS, test "x$build_bfs" = xyes)
+AC_ARG_ENABLE([fdformat],
+ AS_HELP_STRING([--disable-fdformat], [do not build fdformat]),
+ [], enable_fdformat=yes
+)
+UL_BUILD_INIT([fdformat])
+UL_REQUIRES_LINUX([fdformat])
+AM_CONDITIONAL(BUILD_FDFORMAT, test "x$build_fdformat" = xyes)
+
+
AC_ARG_ENABLE([hwclock],
AS_HELP_STRING([--disable-hwclock], [do not build hwclock]),
[], enable_hwclock=check
diff --git a/disk-utils/Makemodule.am b/disk-utils/Makemodule.am
index 4e3284745..def18c7f5 100644
--- a/disk-utils/Makemodule.am
+++ b/disk-utils/Makemodule.am
@@ -107,18 +107,18 @@ test_fsck_cramfs_LDADD = $(fsck_cramfs_LDADD)
test_fsck_cramfs_CFLAGS = $(AM_CFLAGS) -DINCLUDE_FS_TESTS
endif
+if BUILD_FDFORMAT
+usrsbin_exec_PROGRAMS += fdformat
+dist_man_MANS += disk-utils/fdformat.8
+fdformat_SOURCES = disk-utils/fdformat.c
+endif
if LINUX
sbin_PROGRAMS += blockdev
dist_man_MANS += disk-utils/blockdev.8
blockdev_SOURCES = disk-utils/blockdev.c
blockdev_LDADD = $(LDADD) libcommon.la
-
-usrsbin_exec_PROGRAMS += fdformat
-dist_man_MANS += disk-utils/fdformat.8
-fdformat_SOURCES = disk-utils/fdformat.c
-endif # LINUX
-
+endif
if BUILD_PARTX
usrsbin_exec_PROGRAMS += partx addpart delpart resizepart