[Top][All Lists]

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

Re: [PATCH] doc: give an example of using the macro for pkg-config

From: Eric Blake
Subject: Re: [PATCH] doc: give an example of using the macro for pkg-config
Date: Wed, 05 Feb 2014 14:19:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 01/27/2014 11:39 AM, Eric Blake wrote:
> The autoconf manual doesn't mention any examples of actually
> using m4_pattern_forbid.  Yet this is the perfect macro for
> avoiding the all-too-common failure mode of configure dying with:
>       checking if libxml2 is present... ./configure: line 11586: syntax
>  error
>  near unexpected token `LIBXML2,'
>       ./configure: line 11586: `PKG_CHECK_MODULES(LIBXML2, libxml-2.0>=
>  2.6.19,'
> for developers that forgot to install pkg-config.  While we don't
> necessarily advertise the use of PKG_CHECK_MODULES, it is a
> common enough situation that the manual should make it easier to
> help developers learn about missing third-party macros.
> Based on a mailing list report by Daniel Pocock:
> * doc/autoconf.texi (Forbidden Patterns): Add examples.
> Signed-off-by: Eric Blake <address@hidden>
> ---
> No wonder it took us a couple of iterations to give you the
> right advice - we didn't have good documentation.  This patch
> should give us something to point the next person to, when
> encountering a similar situation.

No comments, so I pushed this.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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