Fix NetBSD build with and without ncurses
* configure.ac (netbsd): Don't set TERMINFO=no unless the termcap library is either -ltermcap or -lcurses. This prevents aborts because on recent versions of NetBSD libtermcap is actually a symlink to libterminfo. (Bug#64577) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
c5fb730159
commit
b54febef5d
1 changed files with 5 additions and 1 deletions
|
@ -5212,7 +5212,11 @@ fail;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
netbsd)
|
netbsd)
|
||||||
if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
|
# NetBSD versions prior to 6.0 lack native terminfo, but have a
|
||||||
|
# tputs() built on top of termcap in these libraries. Use native
|
||||||
|
# termcap instead in this case. NetBSD >= 6.0 has native terminfo
|
||||||
|
# implementation in -lterminfo.
|
||||||
|
if test "x$LIBS_TERMCAP" = "x-ltermcap" -o "x$LIBS_TERMCAP" = "x-lcurses"; then
|
||||||
TERMINFO=no
|
TERMINFO=no
|
||||||
LIBS_TERMCAP="-ltermcap"
|
LIBS_TERMCAP="-ltermcap"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue