If both ncurses and ncursesw are installed, the headers ncurses/curses.h
and ncursesw/curses.h differ, and since libncursesw will be found first,
so should ncursesw/curses.h.
Based on kernel commit
84354256bff5e95ed3dd8d42b4d7322044c979d7.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Message-Id: <
e86967e4b396876d4a96.
1342985552@YAAKOV04>
LIBS_old="$LIBS"
LIBS=
AC_CHECK_HEADERS(
- [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
+ [ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h],
[CURSES_LOC=$ac_header; break])
AS_IF(
[test -z "$CURSES_LOC"],