1 --- less-418/configure.ac.orig 2007-11-15 18:43:30.000000000 +0100
2 +++ less-418/configure.ac 2008-01-22 21:04:46.715325810 +0100
6 # Checks for general libraries.
7 +AC_CHECK_LIB(tinfow, tgoto, [have_tinfow=yes], [have_tinfow=no])
8 AC_CHECK_LIB(tinfo, tgoto, [have_tinfo=yes], [have_tinfo=no])
9 AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no])
10 AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no])
14 if test "x$TERMLIBS" = x; then
15 + if test $have_tinfow = yes; then
18 + LIBS="$LIBS $TERMLIBS"
19 + AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
20 + [termok=yes], [termok=no])
22 + if test $termok = no; then TERMLIBS=""; fi
26 +if test "x$TERMLIBS" = x; then
27 if test $have_tinfo = yes; then