bug-grep
[Top][All Lists]
Advanced

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

Re: test-fcntl-h-c++.cc:32: error: 'open' is not a member of 'gnulib'


From: Jim Meyering
Subject: Re: test-fcntl-h-c++.cc:32: error: 'open' is not a member of 'gnulib'
Date: Tue, 23 Mar 2010 09:24:04 +0100

Bruno Haible wrote:
> Jim Meyering wrote on bug-gnulib:
>> Fedora 12, gcc-c++-4.4.3-4.fc12.x86_64
>>
>> FYI, I pushed the grep changes, so if you get the latest,
>> revert the latest bootstrap.conf change (which avoids the
>> failing test), then ./bootstrap && ./configure etc. should
>> demonstrate the failure.
>
> I checked out the grep 'git' repository, reverted the bootstrap.conf
> change, did
>   $ ./bootstrap
> and got:
>
>   ...
>   ./bootstrap: autoconf --force ...
>   configure.ac:27: error: possibly undefined macro: AC_DEFINE
>         If this token and others are legitimate, please use m4_pattern_allow.
>         See the Autoconf documentation.
>
> The generated configure file indeed contains
>
>   # support for pcre
>   PKG_PROG_PKG_CONFIG
>   if test x"$testpcre" = x"yes"; then
>     PKG_CHECK_MODULES(PCRE, libpcre,
>             AC_DEFINE([HAVE_LIBPCRE], 1,
>               [Define to 1 if you have the `pcre' library (-lpcre).])
>              CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS",
>             :)
>   fi
>
> Apparently a definition of the macros PKG_PROG_PKG_CONFIG and 
> PKG_CHECK_MODULES
> is missing from the grep/m4/ directory. Please add these macros there;
> pkg-config is not a standard development tool present on every developer's
> machine.

Thank you for mentioning that.
I am ambivalent about pkg-config, and cannot justify
its use in grep, but will wait until after 2.6 to remove it.




reply via email to

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