File openipmi-tinfo.patch of Package OpenIPMI

diff -ur a/configure.ac b/configure.ac
--- a/configure.ac	2014-01-28 20:35:02.000000000 +0100
+++ b/configure.ac	2015-09-23 17:05:03.526010122 +0200
@@ -861,10 +861,12 @@
    *-sun-*) AC_DEFINE([_SUNOS], [], [Solaris's term.h does horrid things.]);;
 esac
 
-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!])])] )] )] )] )
 
 # Checks for header files.
 AC_FUNC_ALLOCA
openSUSE Build Service is sponsored by