zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: PATCH: Re: Termcap saga
Date: Wed, 2 May 2001 15:55:36 +0000	[thread overview]
Message-ID: <1010502155536.ZM9724@candle.brasslantern.com> (raw)
In-Reply-To: <Tc0a88d0153457fbe39@mailsweeper01.cambridgesiliconradio.com>

On May 2, 10:38am, Peter Stephenson wrote:
} Subject: Re: Termcap saga
}
} > There was a short period of time when installing ncurses would overwrite
} > termcap.h with its own header; it is fixed now but if you happen to catch
} > this old version, you have to reinstall termcap to get original header.
} > 
} > There is no term.h under Cygwin so it looks like the only possibility.
} 
} termcap.h looks OK, but there is a term.h in my case which smells strongly
} of ncurses.  It could be that's gone since the last time I installed
} cygwin.

See if this doesn't fix you up.  It also repairs a bug that I introduced
when reshuffling the order of some of the --enable option checks.

Index: configure.in
===================================================================
--- configure.in	2001/05/02 15:04:40	1.6
+++ configure.in	2001/05/02 15:48:17
@@ -425,7 +425,6 @@
 
 [if test x$enableval = xyes; then
 
-  if test $ac_cv_header_linux_tasks_h = yes; then
    AC_EGREP_CPP(yes,
    [#include <linux/tasks.h>
     #ifdef MAX_TASKS_PER_USER
@@ -433,7 +432,6 @@
     #endif
    ],
    maxj=max)
-  fi
 
    if test x$maxj = xmax; then
     AC_DEFINE(MAXJOB, MAX_TASKS_PER_USER)
@@ -478,7 +476,7 @@
 		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
 		 locale.h errno.h stdlib.h unistd.h sys/capability.h \
 		 utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
-		 linux/tasks.h netinet/in_systm.h curses.h term.h)
+		 netinet/in_systm.h)
 if test $dynamic = yes; then
   AC_CHECK_HEADERS(dlfcn.h)
   AC_CHECK_HEADERS(dl.h)
@@ -562,6 +560,11 @@
 esac])dnl
 
 AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
+case "$LIBS" in
+*curses*)
+AC_CHECK_HEADERS(curses.h term.h)
+if test x$ac_cv_header_term_h = xyes; then
+
 AC_MSG_CHECKING(if term.h needs curses.h)
 AC_TRY_COMPILE([#include <term.h>], [char **test = boolcodes;], boolcodes_with_only_term_h=yes,
 boolcodes_with_only_term_h=no)
@@ -612,6 +615,9 @@
 #include <term.h>], [char **test = strnames; printf(*test);],
 AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no)
 AC_MSG_RESULT($strnames)
+
+fi;;
+esac
 
 dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
 dnl libnsl (Network Services Library) to find yp_all

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2001-05-02 15:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-01  9:56 Peter Stephenson
2001-05-01 12:58 ` Peter Stephenson
2001-05-01 15:02   ` Bart Schaefer
2001-05-02  5:22     ` F. G. Marx
2001-05-02  7:52       ` Bart Schaefer
2001-05-02  5:31     ` _use_lo is still being refered to F. G. Marx
2001-05-02  7:57       ` Bart Schaefer
2001-05-02 15:55         ` F. G. Marx
2001-05-02 16:51           ` Bart Schaefer
2001-05-01 17:24 ` Termcap saga Andrej Borsenkow
2001-05-01 18:19   ` Andrej Borsenkow
2001-05-02  9:38     ` Peter Stephenson
2001-05-02 15:55       ` Bart Schaefer [this message]
2001-05-02 16:09         ` PATCH: " Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1010502155536.ZM9724@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).