[FFmpeg-devel] [PATCH] configure: use pkg-config for xlib/Xv

Timo Rothenpieler timo at rothenpieler.org
Thu Jul 15 00:54:29 EEST 2021


On 14.07.2021 23:28, James Almer wrote:
> On 7/14/2021 6:23 PM, Timo Rothenpieler wrote:
>> ---
>>   configure | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/configure b/configure
>> index 2d2d125fd3..f5370b3ead 100755
>> --- a/configure
>> +++ b/configure
>> @@ -6194,7 +6194,7 @@ check_func_headers windows.h Sleep
>>   check_func_headers windows.h VirtualAlloc
>>   check_func_headers glob.h glob
>>   enabled xlib &&
>> -    check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" 
>> XvGetPortAttribute -lXv -lX11 -lXext
>> +    check_pkg_config xlib "xv" "X11/Xlib.h X11/extensions/Xvlib.h" 
>> XvGetPortAttribute
> 
> No need for quotes if you're just checking for xv.
> 
> LGTM either way, but probably keep the existing check as fallback.

Did libXv ever not have a .pc file?
I had the old version as fallback first, but could not find a case where 
there was no xv.pc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210714/c19eb996/attachment.bin>


More information about the ffmpeg-devel mailing list