You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
854 B
32 lines
854 B
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=
|