1 --- less-394/configure.ac.orig 2005-10-21 18:21:55.000000000 +0200
2 +++ less-394/configure.ac 2006-02-25 19:02:39.151141750 +0100
6 # Checks for general libraries.
7 -AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no])
8 -AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no])
9 -AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
10 -AC_CHECK_LIB(curses, initscr, [have_curses=yes], [have_curses=no])
11 +AC_CHECK_LIB(xcurses, tgetent, [have_xcurses=yes], [have_xcurses=no])
12 +AC_CHECK_LIB(tinfow, tgetent, [have_tinfow=yes], [have_tinfow=no])
13 +AC_CHECK_LIB(ncursesw, tgetent, [have_ncursesw=yes], [have_ncursesw=no])
14 +AC_CHECK_LIB(tinfo, tgetent, [have_tinfo=yes], [have_tinfo=no])
15 +AC_CHECK_LIB(ncurses, tgetent, [have_ncurses=yes], [have_ncurses=no])
16 +AC_CHECK_LIB(curses, tgetent, [have_curses=yes], [have_curses=no])
17 AC_CHECK_LIB(termcap, tgetent, [have_termcap=yes], [have_termcap=no])
18 AC_CHECK_LIB(termlib, tgetent, [have_termlib=yes], [have_termlib=no])
19 # Regular expressions (regcmp) are in -lgen on Solaris 2,
23 if test $curses_broken = 0; then
26 if test "x$TERMLIBS" = x; then
27 - if test $have_xcurses = yes; then
28 - TERMLIBS="-lxcurses"
29 + if test $have_tinfow = yes; then
32 LIBS="$LIBS $TERMLIBS"
33 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
39 +if test "x$TERMLIBS" = x; then
40 + if test $have_tinfo = yes; then
43 + LIBS="$LIBS $TERMLIBS"
44 + AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
45 + [termok=yes], [termok=no])
47 + if test $termok = no; then TERMLIBS=""; fi
52 if test "x$TERMLIBS" = x; then
53 if test $have_ncurses = yes; then
59 +if test "x$TERMLIBS" = x; then
60 + if test $have_xcurses = yes; then
61 + TERMLIBS="-lxcurses"
63 + LIBS="$LIBS $TERMLIBS"
64 + AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
65 + [termok=yes], [termok=no])
67 + if test $termok = no; then TERMLIBS=""; fi
72 if test "x$TERMLIBS" = x; then
73 if test $have_curses = yes; then