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
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"
13 if test "$mp_cv_curses" = yes
15 AC_DEFINE(HAVE_CURSES_H, 1, [Define if you have curses.h])
16 - CURSES_LIB="-lcurses"
17 + CURSES_LIB="-lcurses -ltinfo"
20 if test ! "$CURSES_LIB"
22 AC_CACHE_CHECK([for working ncurses], mp_cv_ncurses,
23 - [LIBS="$mp_save_LIBS -lncurses"
24 + [LIBS="$mp_save_LIBS -lncurses -ltinfo"
26 [#include <ncurses.h>],
27 [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
29 if test "$mp_cv_ncurses" = yes
31 AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncurses.h])
32 - CURSES_LIB="-lncurses"
33 + CURSES_LIB="-lncurses -ltinfo"