Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: Termcap saga again
- X-seq: zsh-workers 14274
- From: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: PATCH: Re: Termcap saga again
- Date: Wed, 9 May 2001 09:32:47 +0400 (MSD)
- In-reply-to: <1010509050330.ZM15052@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author