blob: 4593d16836e122f496ead1fc157160ff056b0b63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- a/m4/reorganization/clamdtop.m4
+++ b/m4/reorganization/clamdtop.m4
@@ -4,12 +4,20 @@
if test "$enable_clamdtop" != "no"; then
+PKG_CHECK_MODULES([CURSES],[ncurses],
+ [HAVE_LIBNCURSES=yes; CURSES_INCLUDE="<ncurses.h>"],
+ [HAVE_LIBNCURSES=no],
+)
+
+if test "X$HAVE_LIBNCURSES" != "Xyes"; then
+ HAVE_LIBNCURSES=
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=
|