Signed-off-by: Karel Zak <kzak@redhat.com>
fi
}
+function ts_has_ncurses_support {
+ grep -q '#define HAVE_LIBNCURSES' ${top_builddir}/config.h
+ if [ $? == 0 ]; then
+ echo "yes"
+ else
+ echo "no"
+ fi
+}
+
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
# --color output depends on terminal type
export TERM=linux
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
# --color output depends on terminal type
export TERM=linux
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )