mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 16:40:29 +01:00
Fix term* linkage _again_.
This commit is contained in:
parent
e2e9121893
commit
8baeec4637
4 changed files with 16 additions and 8 deletions
|
|
@ -1,5 +1,11 @@
|
|||
2001-04-23 Bart Schaefer <schaefer@brasslantern.com>
|
||||
|
||||
* 14081: configure.in, Src/termcap.c, Src/terminfo.c: Fix linking
|
||||
yet again in the wake of 14077. Disables echoti and the terminfo
|
||||
parameter on systems that have the old termcap, because otherwise
|
||||
the main zsh may be unnecessarily linked with curses even when the
|
||||
zsh/terminfo module is not in use.
|
||||
|
||||
* 14080: Src/glob.c, Src/params.c, Src/subst.c, Src/zsh.h,
|
||||
Test/D06subscript.ztst: Optimize subscript parsing slightly by
|
||||
passing down an indication of whether the expression is in double
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ int
|
|||
boot_(Module m)
|
||||
{
|
||||
#ifdef HAVE_TGETENT
|
||||
# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
|
||||
# ifdef HAVE_SETUPTERM
|
||||
setupterm((char *)0, 1, (int *)0);
|
||||
# endif
|
||||
|
||||
|
|
|
|||
|
|
@ -347,7 +347,9 @@ int
|
|||
boot_(Module m)
|
||||
{
|
||||
#ifdef HAVE_TIGETSTR
|
||||
# ifdef HAVE_SETUPTERM
|
||||
setupterm((char *)0, 1, (int *)0);
|
||||
# endif
|
||||
|
||||
if (!createtihash())
|
||||
return 1;
|
||||
|
|
|
|||
14
configure.in
14
configure.in
|
|
@ -516,32 +516,32 @@ esac
|
|||
|
||||
AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
|
||||
AC_MSG_CHECKING(if boolcodes is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = boolcodes;],
|
||||
AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no)
|
||||
AC_MSG_RESULT($boolcodes)
|
||||
AC_MSG_CHECKING(if numcodes is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = numcodes;],
|
||||
AC_DEFINE(HAVE_NUMCODES) numcodes=yes, numcodes=no)
|
||||
AC_MSG_RESULT($numcodes)
|
||||
AC_MSG_CHECKING(if strcodes is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = strcodes;],
|
||||
AC_DEFINE(HAVE_STRCODES) strcodes=yes, strcodes=no)
|
||||
AC_MSG_RESULT($strcodes)
|
||||
AC_MSG_CHECKING(if boolnames is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = boolnames;],
|
||||
AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes, boolnames=no)
|
||||
AC_MSG_RESULT($boolnames)
|
||||
AC_MSG_CHECKING(if numnames is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = numnames;],
|
||||
AC_DEFINE(HAVE_NUMNAMES) numnames=yes, numnames=no)
|
||||
AC_MSG_RESULT($numnames)
|
||||
AC_MSG_CHECKING(if strnames is available)
|
||||
AC_TRY_COMPILE([#include <curses.h>
|
||||
AC_TRY_LINK([#include <curses.h>
|
||||
#include <term.h>], [char **test = strnames;],
|
||||
AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no)
|
||||
AC_MSG_RESULT($strnames)
|
||||
|
|
@ -853,7 +853,7 @@ AC_CHECK_FUNCS(strftime difftime gettimeofday \
|
|||
putenv getenv \
|
||||
brk sbrk \
|
||||
pathconf sysconf \
|
||||
tgetent tigetflag tigetnum tigetstr)
|
||||
tgetent tigetflag tigetnum tigetstr setupterm)
|
||||
AC_FUNC_STRCOLL
|
||||
|
||||
dnl Check if tgetent accepts NULL (and will allocate its own termcap buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue