--- configure.in +++ configure.in 2011-11-22 14:37:39.195146873 +0000 @@ -2376,11 +2376,13 @@ AC_CHECK_FUNCS(getpt) # That is because we have not set up to link ncurses in lib-src. # It's better to believe a function is not available # than to expect to find it in ncurses. -AC_CHECK_LIB(ncurses, tparm) +for lib in tinfo ncurses ; do + AC_CHECK_LIB($lib, tparm) +done case "$opsys" in netbsd) - AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap]) + AC_SEARCH_LIBS(tputs, [tinfo ncurses ncursesw terminfo termcap]) if test $ac_cv_search_tputs = -lterminfo; then AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]) fi --- src/config.in +++ src/config.in 2011-11-22 14:34:49.199647061 +0000 @@ -388,6 +388,9 @@ along with GNU Emacs. If not, see