zsh-workers
 help / color / mirror / code / Atom feed
From: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: PATCH: Re: Termcap saga again
Date: Wed, 9 May 2001 09:32:47 +0400 (MSD)	[thread overview]
Message-ID: <Pine.SV4.4.33.0105090931050.17488-100000@itsrm2.mow.siemens.ru> (raw)
In-Reply-To: <1010509050330.ZM15052@candle.brasslantern.com>

On Wed, 9 May 2001, Bart Schaefer wrote:

> On May 8,  7:25pm, Peter Stephenson wrote:
> } Subject: Re: Termcap saga again
> }
> } In that case I shall commit the following.
>
> Unfortunately, that has now broken my build on RedHat 5.2 and 6.2.  It
> appears that AC_CACHE_CHECK does *nothing* when ac_cv_header_curses_h
> is already set, so the AC_DEFINE(HAVE_CURSES_H) never happens.  In
> short, this patch works only if you configure from scratch without using
> a cache.
>

Any better?

-andrej

Index: configure.in
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.in,v
retrieving revision 1.54
diff -u -r1.54 configure.in
--- configure.in	2001/05/08 18:34:38	1.54
+++ configure.in	2001/05/09 05:30:43
@@ -564,9 +564,12 @@
 *curses*)
 AC_CACHE_CHECK(for curses.h, ac_cv_header_curses_h,
 AC_TRY_COMPILE([#include <curses.h>], [],
-[ac_cv_header_curses_h=yes
-AC_DEFINE(HAVE_CURSES_H)],
-ac_cv_header_curses_h=no))
+[ac_cv_header_curses_h=yes],
+[ac_cv_header_curses_h=no]))
+if test x$ac_cv_header_curses_h = xyes; then
+  AC_DEFINE(HAVE_CURSES_H)
+fi
+
 AC_CHECK_HEADERS(term.h)
 if test x$ac_cv_header_term_h = xyes; then



  parent reply	other threads:[~2001-05-09  5:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-08  9:36 Peter Stephenson
2001-05-08 13:34 ` Clint Adams
2001-05-08 14:35 ` Bart Schaefer
2001-05-08 14:56   ` Peter Stephenson
2001-05-08 15:14     ` Bart Schaefer
2001-05-08 16:23       ` Peter Stephenson
2001-05-08 18:01         ` Andrej Borsenkow
2001-05-08 18:07         ` Bart Schaefer
2001-05-08 18:25           ` Peter Stephenson
2001-05-09  5:03             ` Bart Schaefer
2001-05-09  5:19               ` Andrej Borsenkow
2001-05-09  5:32               ` Andrej Borsenkow [this message]
2001-05-09  5:42                 ` PATCH: " Bart Schaefer
2001-05-09  5:37               ` PATCH (the last?) " Bart Schaefer

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=Pine.SV4.4.33.0105090931050.17488-100000@itsrm2.mow.siemens.ru \
    --to=andrej.borsenkow@mow.siemens.ru \
    --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).