configure.ac: Link against tinfo rather than ncurses

Closes: #970555

Merge request reports

Loading