[FFmpeg-devel] [PATCH 1/3] configure: improve pkg-config support

Diego Biurrun diego
Sun Mar 6 15:38:02 CET 2011


On Sun, Mar 06, 2011 at 01:57:52PM +0000, Mans Rullgard wrote:
> This adds helper functions for checking packages with pkg-config
> and managing the associated flags.
> 
> Note that pkg-config use is still discouraged due to widespread
> poor practices resulting in broken flags in many situations.  A
> few badly designed packages require flags only obtainable using
> pkg-config, and these functions are intended for those cases.
> 
> --- a/configure
> +++ b/configure
> @@ -1783,10 +1816,11 @@ cc_default="${cross_prefix}${cc_default}"
>  nm_default="${cross_prefix}${nm_default}"
>  ranlib="${cross_prefix}${ranlib}"
>  strip_default="${cross_prefix}${strip_default}"
> +pkg_config_default="${cross_prefix}${pkg_config_default}"

order

>  sysinclude_default="${sysroot}/usr/include"
>  
> -set_default cc nm strip sysinclude
> +set_default cc nm strip sysinclude pkg_config

order

Looks good otherwise.

Diego



More information about the ffmpeg-devel mailing list