]> git.pld-linux.org Git - packages/moc.git/blob - ncurses-tinfo.patch
- rel 9
[packages/moc.git] / ncurses-tinfo.patch
1 --- moc-2.4.4/m4/mp_with_curses.m4~     2006-02-12 13:55:08.000000000 +0200
2 +++ moc-2.4.4/m4/mp_with_curses.m4      2010-08-27 00:08:09.671905405 +0300
3 @@ -38,7 +38,7 @@
4                 [Define if you have ncursesw.h]))
5              AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncursesw/curses.h])
6              AC_DEFINE(HAVE_NCURSESW, 1, [Define if you have libncursesw])
7 -            CURSES_LIB="-lncursesw"
8 +            CURSES_LIB="-lncursesw -ltinfow"
9            fi
10     fi
11   
12 @@ -53,13 +53,13 @@
13       if test "$mp_cv_curses" = yes
14       then
15         AC_DEFINE(HAVE_CURSES_H, 1, [Define if you have curses.h])
16 -       CURSES_LIB="-lcurses"
17 +       CURSES_LIB="-lcurses -ltinfo"
18       fi
19     fi
20     if test ! "$CURSES_LIB"
21     then
22       AC_CACHE_CHECK([for working ncurses], mp_cv_ncurses,
23 -       [LIBS="$mp_save_LIBS -lncurses"
24 +       [LIBS="$mp_save_LIBS -lncurses -ltinfo"
25          AC_TRY_LINK(
26            [#include <ncurses.h>],
27            [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
28 @@ -67,7 +67,7 @@
29       if test "$mp_cv_ncurses" = yes
30       then
31         AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncurses.h])
32 -       CURSES_LIB="-lncurses"
33 +       CURSES_LIB="-lncurses -ltinfo"
34       fi
35     fi
36     LIBS="$mp_save_LIBS"
This page took 0.023424 seconds and 3 git commands to generate.