]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
build: search terminal info libraries 579/head
authorJeroen Roovers <jer@gentoo.org>
Thu, 7 May 2026 19:59:26 +0000 (23:59 +0400)
committerDarafei Praliaskouski <me@komzpa.net>
Fri, 8 May 2026 03:40:42 +0000 (07:40 +0400)
Refresh the libtinfo lookup originally proposed in PR #368 for the current ncursesw/ncurses configure path.

Co-authored-by: Darafei Praliaskouski <me@komzpa.net>
configure.ac

index 444aad65f01c382b60b05becdec7340cab56a534..aaf8d2c827839668dc0397a591757f4237262100 100644 (file)
@@ -138,6 +138,10 @@ AS_IF([test "x$with_ncurses" = "xyes"],
     [initscr], [ncursesw ncurses curses],
     [AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])],
     [with_ncurses=no])
+   AC_SEARCH_LIBS(
+     [raw], [tinfow tinfo termcap],
+     [],
+     [with_ncurses=no])
 ])
 AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes])