Skip to content

Commit

Permalink
build: Add "ncurses{t,tw}" to possible ncurses names
Browse files Browse the repository at this point in the history
"ncursest" and "ncursestw" are multi-threaded variants of the ncurses
library. The "t" library names are only used in operating systems that
do not support weak symbols (so you won't see such names in Linux), but
the names are documented in ncurses anyway. Adding them to the list of
names to check won't hurt.

* See the curs_threads(3X) man page, and the INSTALL file from ncurses
  package. Notably the "--enable-reentrant", "--with-pthread" and
  "--enable-weak-symbols" options in ncurses.

Signed-off-by: Kang-Che Sung <[email protected]>
  • Loading branch information
Explorer09 authored and BenBE committed Dec 14, 2024
1 parent e3bdb10 commit 7ad9ec2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,12 @@ AC_ARG_ENABLE([unicode],
AC_ARG_VAR([CURSES_CFLAGS], [C compiler flags for curses; this overrides auto detected values])
AC_ARG_VAR([CURSES_LIBS], [linker flags for curses; this overrides auto detected values])

curses_pkg_names="ncurses6 ncurses5 ncurses curses"
curses_pkg_names="ncurses6 ncurses5 ncurses ncursest6 ncursest5 \
ncursest curses"

if test "x$enable_unicode" = xyes; then
curses_pkg_names="ncursesw6 ncursesw5 ncursesw $curses_pkg_names"
curses_pkg_names="ncursesw6 ncursesw5 ncursesw ncursestw6 ncursestw5 \
ncursestw $curses_pkg_names"
fi

AC_ARG_WITH([curses],
Expand Down

0 comments on commit 7ad9ec2

Please sign in to comment.