blob: 66130be41882476822af2d8885eaa236778cecf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
https://bugs.gentoo.org/670729
--- a/m4/reorganization/clamdtop.m4
+++ b/m4/reorganization/clamdtop.m4
@@ -4,12 +4,26 @@
if test "$enable_clamdtop" != "no"; then
+PKG_CHECK_MODULES([CURSES], [ncursesw],
+ [CURSES_INCLUDE="<ncurses.h>";
+ HAVE_LIBNCURSES=yes],
+ HAVE_LIBNCURSES=no])
+
+if test "X$HAVE_LIBNCURSES" != "Xyes"; then
+PKG_CHECK_MODULES([CURSES], [ncurses],
+ [CURSES_INCLUDE="<ncurses.h>";
+ HAVE_LIBNCURSES=yes],
+ HAVE_LIBNCURSES=no])
+fi
+
+if test "X$HAVE_LIBNCURSES" != "Xyes"; then
AC_LIB_FIND([ncurses], [ncurses/ncurses.h],
AC_LANG_PROGRAM([#include <ncurses/ncurses.h>],
[initscr(); KEY_RESIZE;]),
[CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES";
CURSES_INCLUDE="<ncurses/ncurses.h>"],
[])
+fi
if test "X$HAVE_LIBNCURSES" != "Xyes"; then
HAVE_LIBNCURSES=
|