summaryrefslogtreecommitdiff
blob: 4ceef27ac94854e78d1a00e8ce0757864325d5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
https://bugs.gentoo.org/690114

--- robotfindskitten-2.7182818.701/configure.in
+++ robotfindskitten-2.7182818.701/configure.in
@@ -11,9 +11,14 @@
 AC_PROG_CC
 AM_PROG_LIBTOOL
 AC_PROG_INSTALL
+PKG_PROG_PKG_CONFIG
 
 dnl Checks for libraries.
-AC_CHECK_LIB(ncurses, initscr, ,curses)
+PKG_CHECK_MODULES(NCURSES, ncurses, [
+		  LIBS="$LIBS $NCURSES_LIBS"
+		 ],[
+		  AC_MSG_ERROR([Cannot find ncurses lib])
+		 ])
 
 dnl Checks for header files.
 AC_CHECK_HEADERS(signal.h)