diff options
author | Ruediger Meier | 2016-04-06 12:51:07 +0200 |
---|---|---|
committer | Karel Zak | 2016-04-06 13:46:34 +0200 |
commit | 50e6f15bb3e81561465d06053b0d9fb9742291b2 (patch) | |
tree | 0f75882c98ce23ae567e77921bf84644b00cabbf /configure.ac | |
parent | tests: remove deprecated md5sum based fdisk/bsd test (diff) | |
download | kernel-qcow2-util-linux-50e6f15bb3e81561465d06053b0d9fb9742291b2.tar.gz kernel-qcow2-util-linux-50e6f15bb3e81561465d06053b0d9fb9742291b2.tar.xz kernel-qcow2-util-linux-50e6f15bb3e81561465d06053b0d9fb9742291b2.zip |
build-sys: add --disable-logger and --disable-lslogins
Now we are able to disable all programs which have systemd/journald
support. This feature is needed by openSUSE packagers who are building
util-linux in 2 stages to avoid build cycles.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8a4a9311f..e42a2c4fd 100644 --- a/configure.ac +++ b/configure.ac @@ -1319,7 +1319,11 @@ UL_REQUIRES_HAVE([lscpu], [cpu_set_t], [cpu_set_t type]) AM_CONDITIONAL([BUILD_LSCPU], [test "x$build_lscpu" = xyes]) -UL_BUILD_INIT([lslogins], [check]) +AC_ARG_ENABLE([lslogins], + AS_HELP_STRING([--disable-lslogins], [do not build lslogins]), + [], [UL_DEFAULT_ENABLE([lslogins], [check])] +) +UL_BUILD_INIT([lslogins]) UL_REQUIRES_BUILD([lslogins], [libsmartcols]) UL_REQUIRES_HAVE([lslogins], [shadow_h], [shadow.h header]) UL_REQUIRES_HAVE([lslogins], [utmp_h], [utmp.h header]) @@ -1362,8 +1366,11 @@ AC_ARG_ENABLE([cal], UL_BUILD_INIT([cal]) AM_CONDITIONAL([BUILD_CAL], [test "x$build_cal" = xyes]) - -UL_BUILD_INIT([logger], [yes]) +AC_ARG_ENABLE([logger], + AS_HELP_STRING([--disable-logger], [do not build logger]), + [], [UL_DEFAULT_ENABLE([logger], [check])] +) +UL_BUILD_INIT([logger]) AM_CONDITIONAL([BUILD_LOGGER], [test "x$build_logger" = xyes]) UL_BUILD_INIT([look], [yes]) |