From e7614a0780cd0591eca30116563461a18cb7ba49 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 29 May 2012 14:14:38 +0200 Subject: build-sys: add --disable-login ... to implement fine-grained control on what is built from login-utils. Signed-off-by: Karel Zak --- configure.ac | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cd8fa4efd..83d4c6d4b 100644 --- a/configure.ac +++ b/configure.ac @@ -777,14 +777,6 @@ UL_REQUIRES_BUILD([mountpoint], [libmount]) AM_CONDITIONAL(BUILD_MOUNTPOINT, test "x$build_mountpoint" = xyes) -AC_ARG_ENABLE([sulogin], - AS_HELP_STRING([--disable-sulogin], [do not build sulogin]), - [], enable_sulogin=yes -) -UL_BUILD_INIT([sulogin]) -AM_CONDITIONAL(BUILD_SULOGIN, test "x$build_sulogin" = xyes) - - AC_ARG_ENABLE([fallocate], AS_HELP_STRING([--disable-fallocate], [do not build fallocate]), [], enable_fallocate=check @@ -1027,7 +1019,7 @@ AM_CONDITIONAL(BUILD_RESET, test "x$build_reset" = xyes) AC_ARG_ENABLE([login-utils], - AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]), + AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, newgrp, vipw]), [], enable_login_utils=no ) UL_BUILD_INIT([login_utils]) @@ -1035,6 +1027,22 @@ UL_REQUIRES_HAVE([login_utils], [security_pam_misc_h], [PAM header file]) AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$build_login_utils" = xyes) +AC_ARG_ENABLE([login], + AS_HELP_STRING([--disable-login], [do not build login]), + [], enable_login=yes +) +UL_BUILD_INIT([login]) +UL_REQUIRES_HAVE([login], [security_pam_misc_h], [PAM header file]) +AM_CONDITIONAL(BUILD_LOGIN, test "x$build_login" = xyes) + + +AC_ARG_ENABLE([sulogin], + AS_HELP_STRING([--disable-sulogin], [do not build sulogin]), + [], enable_sulogin=yes +) +UL_BUILD_INIT([sulogin]) +AM_CONDITIONAL(BUILD_SULOGIN, test "x$build_sulogin" = xyes) + AC_ARG_ENABLE([schedutils], AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]), -- cgit v1.2.3-55-g7522