Can only check for one with AC_CHECK_LIB.

pull/829/head
Nicholas Marriott 2017-03-09 22:21:12 +00:00
parent fd96ccfd80
commit a24cf4a5e1
1 changed files with 9 additions and 1 deletions

View File

@ -189,11 +189,19 @@ if test "x$found_ncurses" = xyes; then
else
# pkg-config didn't work, try ncurses.
AC_CHECK_LIB(
[tinfo ncurses],
tinfo,
setupterm,
found_ncurses=yes,
found_ncurses=no
)
if test "x$found_ncurses" = xno; then
AC_CHECK_LIB(
ncurses,
setupterm,
found_ncurses=yes,
found_ncurses=no
)
fi
if test "x$found_ncurses" = xyes; then
AC_CHECK_HEADER(
ncurses.h,