]> err.no Git - util-linux/commitdiff
build-sys: add --disable-switch_root
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2009 08:15:28 +0000 (10:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jun 2009 19:30:46 +0000 (21:30 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
sys-utils/Makefile.am

index f700f5781584dde63151205ace67459dfb8f5198..ac5fecd6a923df0710b1331fb11619638db35f40 100644 (file)
@@ -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
index 856d6a1f980850b75f2c689b4f175274d1103ccf..6700677f33e997762734f2f67ba30408d005c741 100644 (file)
@@ -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