Subject: Re: bash should depend on ncurses under Linux
To: Todd Vierling <tv@duh.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/25/2003 16:20:03
On Sat, 25 Oct 2003, Todd Vierling wrote:

> Would simple inclusion of ncurses/buildlink2.mk suffice (with USE_NCURSES
> *not* set, so platforms with a suitable less-functional replacement, i.e.
> NetBSD, would use the base OS)?

Earliert, I was thinking that would force a curses. Thanks for the
suggestion, Todd.

Under NetBSD, that appears to work:
 checking for termcap.h... yes
 ...
 checking for tgetent in -ltermcap... yes
 checking which library has the termcap functions... using libtermcap

Under my Linux, that doesn't have libtermcap:
 checking for termcap.h... yes
 ...
 checking for tgetent in -ltermcap... no
 checking for tgetent in -ltinfo... no
 checking for tgetent in -lcurses... no
 checking for tgetent in -lncurses... yes
 checking which library has the termcap functions... using libncurses

(Which is what I expect.)

I don't know what it will do under SunOS or Slackware or Red Hat (which
usually have bash using libtermcap also). Can anyone try? I don't know if
it will make it use curses in some cases when curses was not wanted.

.include "../../devel/ncurses/buildlink2.mk"

   Jeremy C. Reed
   http://bsd.reedmedia.net/