configure: Fix check for term.h to include curses.h first
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 Aug 2013 14:05:37 +0000 (16:05 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 Aug 2013 15:57:37 +0000 (17:57 +0200)
Traditional curses needs this.  Observed on AIX 7.1.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
m4/my_terminfo.m4

index 7fb651361079d82430c34092c89a363e836e9659..844bda3e5bf0402d4161c7ffa15a8ede09b1d5e5 100644 (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])