summaryrefslogtreecommitdiff
blob: e6cd13f6ffc192a35a49bdac99efeb1424f02e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,7 @@
 AC_PATH_PROG(MAKE, make, $FALSE)
 AC_PROG_INSTALL
 
+PKG_PROG_PKG_CONFIG()
 
 dnl
 dnl Do all tests with c++ compiler.
@@ -291,6 +292,7 @@
 	if test "$FOUND" = "no"; then
 		AC_MSG_ERROR([Couldn't find curses headers (ncurses.h or curses.h)])
 	fi
+	PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",)
 	AC_SEARCH_LIBS([refresh], [ncurses curses],, 
 		AC_ERROR([Couldn't find curses library]))
 else