[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex.m4: how do I know that the included regex is used?

From: Sam Steingold
Subject: Re: regex.m4: how do I know that the included regex is used?
Date: Thu, 28 Jul 2011 10:16:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> * Paolo Bonzini <address@hidden> [2011-07-28 12:15:38 +0200]:
> On 07/27/2011 05:11 PM, Sam Steingold wrote:
>> When the included regex is used I must prepend -I$(srcdir)/gllib to
>> CPPFLAGS to ensure that the gnulib regex.h is included in the sources.
>> (when this is not the case, I_must_  not do that!)
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> This is not true AFAIK.

If I prepend -I$(srcdir)/gllib to CPPFLAFS, then

#include <regex.h>

will read the gnulib header, not the system header.
How can you be sure that this will not lead to any problems given that
the libgnu.a does _not_ include regex.o?
If course, you can claim that, if gnulib regex.h were incompatible with
the system one, then configure would have detected that and included
gnulib regex in libgnu.a.
In that case, why the file fnmatch.in.h not called fnmatch.h?
At any rate, if gnulib regex is included in libgnu.a, then regex.h
should be copied (or linked) to $(builddir) or $(builddir)/gllib.
The current situation is clearly wrong: regex is the only gnulib package
which requires prepending -I$(srcdir)/gllib to CPPFLAFS!

Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
http://mideasttruth.com http://memri.org http://dhimmi.com http://truepeace.org
http://www.PetitionOnline.com/tap12009/ http://camera.org
MS Windows: error: the operation completed successfully.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]