diff --git a/ChangeLog b/ChangeLog index a3bbe29e77e..2ca87de9570 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-10-13 Glenn Morris + + * configure.in: Also look for tputs in libcurses. (Bug#9736) + 2011-10-12 Paul Eggert * configure.in: Remove check for -lintl (Bug#9713). diff --git a/configure.in b/configure.in index 4af95b99273..67ab4e22d77 100644 --- a/configure.in +++ b/configure.in @@ -2772,11 +2772,15 @@ AC_CHECK_FUNCS(getpt) # than to expect to find it in ncurses. # Also we need tputs and friends to be able to build at all. have_tputs_et_al=true -AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap], , have_tputs_et_al=false) +# Maybe curses should be tried earlier? +# See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35 +AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap curses], , have_tputs_et_al=false) if test "$have_tputs_et_al" != true; then - AC_MSG_ERROR([I couldn't find termcap functions (tputs and friends). -Maybe some development libraries/packages are missing? Try installing -libncurses-dev(el), libterminfo-dev(el) or similar.]) + AC_MSG_ERROR([The required function `tputs' was not found in any library. +These libraries were tried: libncurses, libterminfo, libtermcap, libcurses. +Please try installing whichever of these libraries is most appropriate +for your system, together with its header files. +For example, a libncurses-dev(el) or similar package.]) fi # Must define this when any termcap library is found. AC_DEFINE(HAVE_LIBNCURSES, 1,