summaryrefslogtreecommitdiff
blob: 75c0043bbe413a20db665fac148171a5eef28646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/configure.ac	2014-03-05 11:05:12.319043741 +0100
+++ b/configure.ac	2014-03-05 11:15:00.866849013 +0100
@@ -21,6 +21,7 @@ esac
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
+PKG_PROG_PKG_CONFIG
 
 # Checks for header files.
 AC_HEADER_STDC
@@ -53,6 +54,6 @@ AC_HEADER_STDBOOL
 # Tests involving libraries
 AC_CHECK_LIB([m], [pow])
-AC_CHECK_LIB([ncurses], [waddstr])
+PKG_CHECK_MODULES([ncurses], [ncurses], [LIBS="$LIBS $ncurses_LIBS"], AC_MSG_ERROR([ncurses is required but was not found]))
 AC_CHECK_LIB([cap], [cap_get_flag])