[PATCH] schedutils: build when configured with --disable-all-programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix AM_CONDITIONAL parameters that conditioned ionice, taskset an chrt
to the values of build_{ionice,taskset,chrt} respectively, instead of
build_schedutils.

Fixes:
  https://bugs.busybox.net/show_bug.cgi?id=9656
  https://github.com/karelzak/util-linux/issues/415

Signed-off-by: Carlos Santos <casantos@xxxxxxxxxxxxxx>
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index ad241fe..1933741 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1935,7 +1935,7 @@ UL_REQUIRES_SYSCALL_CHECK([ionice],
 	  [x86_64*],	[252])],
 	[ioprio_get])
 
-AM_CONDITIONAL([BUILD_IONICE], [test "x$build_ionice" = xyes])
+AM_CONDITIONAL([BUILD_IONICE], [test "x$build_schedutils" = xyes])
 
 UL_BUILD_INIT([taskset], [check])
 UL_REQUIRES_BUILD([taskset], [schedutils])
@@ -1943,7 +1943,7 @@ UL_REQUIRES_HAVE([taskset], [cpu_set_t], [cpu_set_t type])
 UL_REQUIRES_SYSCALL_CHECK([taskset],
 	[UL_CHECK_SYSCALL([sched_getaffinity])],
 	[sched_getaffinity])
-AM_CONDITIONAL([BUILD_TASKSET], [test "x$build_taskset" = xyes])
+AM_CONDITIONAL([BUILD_TASKSET], [test "x$build_schedutils" = xyes])
 
 
 have_schedsetter=no
@@ -1953,7 +1953,7 @@ AS_IF([test "x$ac_cv_func_sched_setscheduler" = xyes], [have_schedsetter=yes],
 UL_BUILD_INIT([chrt], [check])
 UL_REQUIRES_BUILD([chrt], [schedutils])
 UL_REQUIRES_HAVE([chrt], [schedsetter], [sched_set functions])
-AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
+AM_CONDITIONAL([BUILD_CHRT], [test "x$build_schedutils" = xyes])
 
 AS_IF([test "x$build_chrt" = xyes], [
 	UL_CHECK_SYSCALL([sched_setattr])
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux