Gentoo-Bug: https://bugs.gentoo.org/581142
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1478
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
--- /dev/null
+--- 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