From xemacs-m  Wed May 21 03:38:07 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id DAA23133
	for <xemacs-beta@xemacs.org>; Wed, 21 May 1997 03:38:01 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id BAA08375 for <xemacs-beta@xemacs.org>; Wed, 21 May 1997 01:52:41 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id BAA25708; Wed, 21 May 1997 01:37:21 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id BAA10147; Wed, 21 May 1997 01:37:20 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id BAA14852; Wed, 21 May 1997 01:37:20 -0700
Date: Wed, 21 May 1997 01:37:20 -0700
Message-Id: <199705210837.BAA14852@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: -lcurses vs -ltermlib vs -ltermcap
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

The library specification for XPG4 curses does say that -lcurses is
the way to link in the standard library, so we should use that on any
systems we can (unless using ncurses, of course).

So Steve Carney is correct in his suggestion to put -lcurses first in
the autodetection of term libraries.  Autodetection of -lcurses allows 
a bunch more LIBS_TERMCAP stuff to be ripped out of the s&m files.

Someone should modernize the whole termcap/terminfo/curses stuff.
The functions we use (tgetent and friends) are obsolescent.
Start by reading the X/Open Curses Specification, or moral equivalent.
It seems all systems have adopted this interface, via either -lcurses
or -lncurses.

Martin

