Commit 0a5a0089 authored by enami tsugutomo's avatar enami tsugutomo Committed by Glenn Morris
Browse files

Use terminfo rather than termcap on recent NetBSD.

* configure.in: On NetBSD, if terminfo is found, use it in preference
to termcap.  (Bug#6190)
parent 74e6ff9a
2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
* configure.in: On NetBSD, if terminfo is found, use it in
preference to termcap. (Bug#6190)
2010-05-20 Glenn Morris <rgm@gnu.org> 2010-05-20 Glenn Morris <rgm@gnu.org>
* make-dist (src): Include *.mk. * make-dist (src): Include *.mk.
......
...@@ -2643,7 +2643,7 @@ HAVE_LIBNCURSES=yes ...@@ -2643,7 +2643,7 @@ HAVE_LIBNCURSES=yes
## Use terminfo instead of termcap? ## Use terminfo instead of termcap?
## Note only system files NOT using terminfo are: ## Note only system files NOT using terminfo are:
## freebsd < 40000, ms-w32, msdos, netbsd, and ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
## darwin|gnu without ncurses. ## darwin|gnu without ncurses.
TERMINFO=no TERMINFO=no
LIBS_TERMCAP= LIBS_TERMCAP=
...@@ -2685,13 +2685,22 @@ fail; ...@@ -2685,13 +2685,22 @@ fail;
fi fi
;; ;;
netbsd)
if test $ac_cv_search_tputs = -lterminfo; then
TERMINFO=yes
LIBS_TERMCAP="-lterminfo"
else
LIBS_TERMCAP="-ltermcap"
fi
;;
esac esac
case "$opsys" in case "$opsys" in
## hpux: Make sure we get select from libc rather than from libcurses ## hpux: Make sure we get select from libc rather than from libcurses
## because libcurses on HPUX 10.10 has a broken version of select. ## because libcurses on HPUX 10.10 has a broken version of select.
## We used to use -lc -lcurses, but this may be cleaner. ## We used to use -lc -lcurses, but this may be cleaner.
hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;; hpux*) LIBS_TERMCAP="-ltermcap" ;;
openbsd) LIBS_TERMCAP="-lncurses" ;; openbsd) LIBS_TERMCAP="-lncurses" ;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment