zsh-workers
 help / color / mirror / code / Atom feed
From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: Adam Spiers <adam@spiers.net>
Cc: zsh workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: Re: location of pcre.h
Date: Mon, 30 Jul 2001 21:21:37 +0400	[thread overview]
Message-ID: <3B6597A1.4060603@mow.siemens.ru> (raw)
In-Reply-To: <20010730155528.B16163@thelonious.new.ox.ac.uk>

Adam Spiers wrote:

> Borsenkow Andrej (Andrej.Borsenkow@mow.siemens.ru) wrote:
> 
>>Do they have anything else in /usr/include/pcre? Else I'd call this broken
>>(yet another thing in 7.0).
>>
> 
> Yes, pcreposix.h is also there.
> 
> 
>>Obvious fix is to check for both pcre.h and pcre/pcre.h and take whatever
>>exists
>>
>>#ifdef HAVE_PCRE_H
>>#include <pcre.h>
>>#else
>>#ifdef HAVE_PCRE_PCRE_H - ick!
>>#include <pcre/pcre.h>
>>#else
>>#error pcre not found
>>#endif
>>#endif
>>
> 
> Yep.  Presumably this needs some autoconf wizardry to set
> HAVE_PCRE_PCRE_H in the first place, which is where I get lost ...
> 


Just add it to AC_CHECK_HEADERS(...), near pcre.h.


> 
>>Additionally, pcre should be compiled conditionally only if prerequisites
>>are found (compare termcap.mdd or terminfo.mdd).
>>
> 
> There must be a bug in that too then, because I get
> 
>   checking for pcre.h... no
> 
> 


There is probably no bug. I meant "we should add code to pcre.mdd to 
conditionally compile it", not that it is already there. Currently it is 
unconditional.

Ideally, it would be nice to have some high level means to specify 
conditions ... probably something like

need_headers="pcre.h"
need_libraries="perl.so"

or like. It is better to no add any autoconf-dependent code to mdd files.

-andrej




      parent reply	other threads:[~2001-07-30 17:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-30 14:38 Adam Spiers
2001-07-30 14:46 ` Borsenkow Andrej
2001-07-30 14:55   ` Adam Spiers
2001-07-30 15:40     ` Clint Adams
2001-07-30 23:46       ` Adam Spiers
2001-07-31  1:35         ` Clint Adams
2001-08-06 13:59           ` Adam Spiers
2001-07-30 17:21     ` Borsenkow Andrej [this message]

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=3B6597A1.4060603@mow.siemens.ru \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.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).