configure: Fix check for term.h to include curses.h first

Traditional curses needs this.  Observed on AIX 7.1.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-08-17 16:05:37 +02:00
parent 3cc23a3cd4
commit 26a03abfd8

View file

@ -2,8 +2,8 @@ AC_DEFUN([MY_CURSES_TERMINFO],
[
AC_SEARCH_LIBS([setupterm], [termlib termcap curses ncurses],
[have_terminfo=yes], [have_terminfo=no])
AC_CHECK_HEADER([curses.h], , [have_terminfo=no])
AC_CHECK_HEADER([term.h], , [have_terminfo=no])
AC_CHECK_HEADERS([curses.h term.h], [], [have_terminfo=no],
[[#include <curses.h>]])
if test "$have_terminfo" = yes
then AC_DEFINE([HAVE_CURSES_TERMINFO], 1,
[Define if you have the curses interface to terminfo])