]> git.pld-linux.org Git - packages/less.git/blame - less-libtinfo.patch
- updated for 418
[packages/less.git] / less-libtinfo.patch
CommitLineData
0b8cf4c6
JB
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
3@@ -23,6 +23,7 @@
0939e511 4 AC_SYS_LARGEFILE
69d6be73 5
0939e511 6 # Checks for general libraries.
0b8cf4c6
JB
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])
11@@ -55,6 +56,18 @@
bd5a66ac 12
0b8cf4c6 13 # -- Try tinfo.
bd5a66ac 14 if test "x$TERMLIBS" = x; then
bd5a66ac
JB
15+ if test $have_tinfow = yes; then
16+ TERMLIBS="-ltinfow"
bd5a66ac
JB
17+ SAVE_LIBS=$LIBS
18+ LIBS="$LIBS $TERMLIBS"
19+ AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
20+ [termok=yes], [termok=no])
21+ LIBS=$SAVE_LIBS
22+ if test $termok = no; then TERMLIBS=""; fi
23+ fi
24+fi
25+
bd5a66ac 26+if test "x$TERMLIBS" = x; then
0b8cf4c6
JB
27 if test $have_tinfo = yes; then
28 TERMLIBS="-ltinfo"
29 SAVE_LIBS=$LIBS
This page took 0.043561 seconds and 4 git commands to generate.