20 lines
936 B
Diff
20 lines
936 B
Diff
Index: OpenIPMI-2.0.31/configure.ac
|
|
===================================================================
|
|
--- OpenIPMI-2.0.31.orig/configure.ac
|
|
+++ OpenIPMI-2.0.31/configure.ac
|
|
@@ -768,10 +768,12 @@ AX_CONFIG_FEATURE(
|
|
[epoll_pwait], [This platform supports epoll(7) with epoll_pwait(2)],
|
|
[HAVE_EPOLL_PWAIT], [This platform supports epoll(7) with epoll_pwait(2).])
|
|
|
|
-AC_CHECK_LIB(curses, tgetent, TERM_LIBS=-lcurses,
|
|
+PKG_CHECK_MODULES(ncurses, ncurses, TERM_LIBS=$ncurses_LIBS,
|
|
+ [AC_CHECK_LIB(tinfo, tgetent, TERM_LIBS=-ltinfo,
|
|
+ [AC_CHECK_LIB(curses, tgetent, TERM_LIBS=-lcurses,
|
|
[AC_CHECK_LIB(ncursesw, tgetent, TERM_LIBS=-lncursesw,
|
|
[AC_CHECK_LIB(ncurses, tgetent, TERM_LIBS=-lncurses,
|
|
- [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])])] )] )
|
|
+ [AC_MSG_ERROR([libtinfo, libtermcap, libcurses or libncurses are required!])])] )] )] )] )
|
|
AC_SUBST(TERM_LIBS)
|
|
|
|
AC_CHECK_FUNCS(cfmakeraw)
|