From 2578ecb1b583408c7a75716edbd203995da373c7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 8 Dec 2018 19:35:47 -0500 Subject: [PATCH] Look for tgetent in libtinfow MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On some systems where ncurses is only available in the "wide" version (compiled with --with-widec), there might be no libtinfo.so, only a libtinfow.so. Look for libtinfow in addition to libtinfo. gdb/ChangeLog: YYYY-MM-DD Simon Marchi Дилян Палаузов PR gdb/23950 * configure.ac: Search for tgetent in libtinfow. * configure: Re-generate. --- gdb/ChangeLog | 7 +++++++ gdb/configure | 2 +- gdb/configure.ac | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ec5a7e48355..d9cfb264428 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2018-12-08 Simon Marchi + Дилян Палаузов + + PR gdb/23950 + * configure.ac: Search for tgetent in libtinfow. + * configure: Re-generate. + 2018-12-08 Philippe Waroquiers * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p. diff --git a/gdb/configure b/gdb/configure index 37772308986..833c92ea954 100755 --- a/gdb/configure +++ b/gdb/configure @@ -9027,7 +9027,7 @@ return tgetent (); return 0; } _ACEOF -for ac_lib in '' termcap tinfo curses ncursesw ncurses; do +for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do if test -z "$ac_lib"; then ac_res="none required" else diff --git a/gdb/configure.ac b/gdb/configure.ac index eca7ea6d41a..8bc87483f28 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -592,7 +592,7 @@ case $host_os in esac # These are the libraries checked by Readline. -AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses]) +AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses]) if test "$ac_cv_search_tgetent" = no; then CONFIG_OBS="$CONFIG_OBS stub-termcap.o" -- 2.30.2