https://bugs.gentoo.org/669096 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -616,4 +616,4 @@ esac -# These are the libraries checked by Readline. -AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses]) +# These are the libraries checked by Readline. Not really: readline does not know about *w libs. +AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses]) --- a/gdb/configure +++ b/gdb/configure @@ -8984,3 +8984,3 @@ esac -# These are the libraries checked by Readline. +# These are the libraries checked by Readline. Not really: readline does not know about *w libs. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 @@ -9009,3 +9009,3 @@ return tgetent (); _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