poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[COMMITTED] build: check for `tgetnum' in both -ltermcap and -lncurses


From: Jose E. Marchesi
Subject: [COMMITTED] build: check for `tgetnum' in both -ltermcap and -lncurses
Date: Sat, 29 Jan 2022 16:18:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

2022-01-29  Jose E. Marchesi  <jemarch@gnu.org>

        * configure.ac (HAVE_HSERVER): Search for `tgetnum' first in
        libtermcap and then in libncurses.
---
 ChangeLog    |  5 +++++
 configure.ac | 10 ++++++++++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 69946c35..3e0c3c18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2022-01-29  Jose E. Marchesi  <jemarch@gnu.org>
 
+       * configure.ac (HAVE_HSERVER): Search for `tgetnum' first in
+       libtermcap and then in libncurses.
+
+2022-01-29  Jose E. Marchesi  <jemarch@gnu.org>
+
        * bootstrap.conf (gnulib_modules): Add `termios'.
 
 2022-01-29  Jose E. Marchesi  <jemarch@gnu.org>
diff --git a/configure.ac b/configure.ac
index a1943b57..623b892c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,6 +227,12 @@ if test "x$hserver_enabled" = "xyes"; then
             [Defined if the hyperlinks server is available])
 fi
 
+dnl The poke terminal (pk-term) requires accessing the terminal
+dnl capabilities and other goodities.  We first try with termcap, and
+dnl if that doesn't work, ncurses.
+
+AC_SEARCH_LIBS([tgetnum],[termcap ncurses])
+
 dnl The GUI is optional, and depends on the availability of Tcl and
 dnl Tk.
 
@@ -322,4 +328,8 @@ if test "x$gl_cv_lib_readline" = "xno"; then
    AC_MSG_ERROR([can't find an usable libreadline.  Please install one.])
 fi
 
+if test "x$ac_cv_search_tgetnum" = "xno"; then
+   AC_MSG_ERROR([can't find an usable termcap or ncurses])
+fi
+
 dnl End of configure.ac
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]