UL_REQUIRES_HAVE([setterm], [ncurses], [ncurses library])
AM_CONDITIONAL([BUILD_SETTERM], [test "x$build_setterm" = xyes])
-
+# build_schedutils= is just configure-only variable to control
+# ionice, taskset and chrt
AC_ARG_ENABLE([schedutils],
AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, taskset]),
[], [enable_schedutils=yes]
)
UL_BUILD_INIT([schedutils])
-AM_CONDITIONAL([BUILD_SCHEDUTILS], [test "x$build_schedutils" = xyes])
UL_BUILD_INIT([ionice], [check])
UL_REQUIRES_BUILD([ionice], [schedutils])
[sched_getaffinity])
AM_CONDITIONAL([BUILD_TASKSET], [test "x$build_taskset" = xyes])
+UL_BUILD_INIT([chrt], [check])
+UL_REQUIRES_BUILD([chrt], [schedutils])
+AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
+
AC_ARG_ENABLE([wall],
AS_HELP_STRING([--disable-wall], [do not build wall]),
-if BUILD_SCHEDUTILS
-
+if BUILD_CHRT
usrbin_exec_PROGRAMS += chrt
dist_man_MANS += schedutils/chrt.1
chrt_SOURCES = schedutils/chrt.c
chrt_LDADD = $(LDADD) libcommon.la
+endif
if BUILD_IONICE
usrbin_exec_PROGRAMS += ionice
taskset_SOURCES = schedutils/taskset.c
taskset_LDADD = $(LDADD) libcommon.la
endif
-
-endif # BUILD_SCHEDUTILS