summaryrefslogtreecommitdiff
path: root/app-misc/cdargs/files/cdargs-1.35-tinfo.patch
blob: a4ca4e28b10b8d24a2b07f069983c098a88f8406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/configure.in
+++ b/configure.in
@@ -8,10 +8,11 @@ dnl if test "$has_curses" = "false" ; then
 dnl  AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.])
 dnl fi
 
+PKG_CHECK_MODULES([NCURSES], [ncurses],[CURSES_LIB=${NCURSES_LIBS}],[
 MP_WITH_CURSES
 if test "x$CURSES_LIB" = "x" ; then
   AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.])
-fi
+fi])
 AC_SUBST(CURSES_LIB)
 
 AC_OUTPUT(Makefile contrib/Makefile doc/Makefile src/Makefile m4/Makefile cdargs.spec)