1 AC_DEFUN([MY_CURSES_TERMINFO],
3 AC_SEARCH_LIBS([setupterm], [termlib termcap curses ncurses],
4 [have_terminfo=yes], [have_terminfo=no])
5 AC_CHECK_HEADERS([curses.h term.h], [], [have_terminfo=no],
6 [[#include <curses.h>]])
7 if test "$have_terminfo" = yes
8 then AC_DEFINE([HAVE_CURSES_TERMINFO], 1,
9 [Define if you have the curses interface to terminfo])
13 AC_DEFUN([MY_WITH_TERMINFO],
15 AC_ARG_WITH([terminfo],
16 AS_HELP_STRING([--with-terminfo],
17 [use terminfo for highlighting (default check)]))
18 if test "x$with_terminfo" != xno; then
20 if test "$have_terminfo$with_terminfo" = noyes
21 then AC_MSG_FAILURE([Can't satisfy --with-terminfo])
23 with_terminfo="$have_terminfo"