[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: [PATCH 2/9] build-sys: add --disable-switch_root
From: Karel Zak <kzak () redhat ! com>
Date: 2009-06-09 20:48:18
Message-ID: 1244580505-20219-3-git-send-email-kzak () redhat ! com
[Download RAW message or body]
Signed-off-by: Karel Zak <kzak@redhat.com>
---
configure.ac | 7 +++++++
sys-utils/Makefile.am | 6 +++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index f700f57..ac5fecd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -628,6 +628,13 @@ fi
AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
+AC_ARG_ENABLE([switch_root],
+ AS_HELP_STRING([--disable-switch_root], [do not build switch_root]),
+ [], enable_switch_root=no
+)
+AM_CONDITIONAL(BUILD_SWITCH_ROOT, test "x$enable_switch_root" = xyes)
+
+
AC_ARG_ENABLE([elvtune],
AS_HELP_STRING([--enable-elvtune], [build elvtune (only works with 2.2 and 2.4 kernels)]),
[], enable_elvtune=no
diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am
index 856d6a1..6700677 100644
--- a/sys-utils/Makefile.am
+++ b/sys-utils/Makefile.am
@@ -1,7 +1,7 @@
include $(top_srcdir)/config/include-Makefile.am
bin_PROGRAMS =
-sbin_PROGRAMS = switch_root
+sbin_PROGRAMS =
usrbinexec_PROGRAMS = flock ipcrm ipcs ipcmk renice setsid
usrsbinexec_PROGRAMS = readprofile
@@ -28,6 +28,10 @@ sbin_PROGRAMS += pivot_root
dist_man_MANS += pivot_root.8
endif
+if BUILD_SWITCH_ROOT
+sbin_PROGRAMS += switch_root
+endif
+
if BUILD_ARCH
bin_PROGRAMS += arch
dist_man_MANS += arch.1
--
1.6.2.2
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic