Ethereal-dev: Re: [Ethereal-dev] configure does not look in /usr/include/pcre for pcre.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Charles Levert <chuck@xxxxxxxxxxxxxxxx>
Date: Fri, 22 Oct 2004 03:18:09 -0400
* On Thursday 2004-10-21 at 23:48:43 -0700, Guy Harris wrote:
> Charles Levert wrote:
> >The configure script should probably check for pcre.h at least in the 
> >following
> >locations:
> >
> >	/usr/include/pcre
> >	/usr/local/include/pcre
> >	$prefix/pcre
> 
> ...and not check in "/usr/include", which is what it's doing now?

Well, I did say "at least"...

Actually, I meant for values to (tentatively) add to CFLAGS with -I before
invoking AC_CHECK_HEADER() if "test -d DIR" (or "test -f DIR/pcre.h")
is true.  So, /usr/include does not need to be added explicitly at that
step, since the preprocessor will always look there anyway.

I made one mistake above:  it should be $prefix/include/pcre instead
of what I wrote.  Plain $prefix/include could be (tentatively) added as
well, if $prefix differs from /usr (gcc also checks in /usr/local/include
by default, but maybe not other C compilers).