Index: b/m4/curses.m4 =================================================================== --- b/m4/curses.m4 +++ b/m4/curses.m4 @@ -36,6 +36,8 @@ have_ncursesw=no fi if test "$LIBNCURSES"; then + AC_CHECK_LIB(tinfow, curs_set, LIBNCURSES="${LIBNCURSES} -ltinfow", + AC_CHECK_LIB(tinfo, curs_set, LIBNCURSES="${LIBNCURSES} -ltinfo")) # Use ncurses header files instead of the ordinary ones, if possible; # is there a better way of doing this, that avoids looking in specific # directories?