Permalink
Browse files

build-sys: add --disable-setterm

Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information...
1 parent 69f1cad commit d78d040933a013fc3264b014a8629734aac67650 @karelzak committed Apr 26, 2013
Showing with 11 additions and 4 deletions.
  1. +10 −0 configure.ac
  2. +1 −4 term-utils/Makemodule.am
View
@@ -1294,6 +1294,16 @@ UL_REQUIRES_HAVE([pg], [ncurses], [ncurses or ncursesw library])
AM_CONDITIONAL(BUILD_PG, test "x$build_pg" = xyes)
+AC_ARG_ENABLE([setterm],
+ AS_HELP_STRING([--disable-setterm], [do not build setterm]),
+ [], enable_setterm=check
+)
+UL_BUILD_INIT([setterm])
+UL_REQUIRES_LINUX([setterm])
+UL_REQUIRES_HAVE([setterm], [ncurses], [ncurses library])
+AM_CONDITIONAL(BUILD_SETTERM, test "x$build_setterm" = xyes)
+
+
AC_ARG_ENABLE([schedutils],
AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]),
[], enable_schedutils=yes
View
@@ -24,13 +24,10 @@ agetty_LDADD = $(LDADD) libcommon.la
endif # BUILD_AGETTY
-# TODO: add BUILD_SETTERM to configure.am
-if HAVE_NCURSES
-if LINUX
+if BUILD_SETTERM
usrbin_exec_PROGRAMS += setterm
dist_man_MANS += term-utils/setterm.1
setterm_SOURCES = term-utils/setterm.c
-endif
if HAVE_TINFO
setterm_LDADD = $(LDADD) -ltinfo
else

0 comments on commit d78d040

Please sign in to comment.