On Thu, Dec 25, 2014 at 05:52:36PM +0000, Carl Eugen Hoyos wrote:
> Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> 
> > Clément Bœsch <u <at> pkh.me> writes:
> > 
> > > > -        check_pkg_config xcb-shm xcb/shm.h xcb_shm_attach || {
> > > > +        check_pkg_config xcb-shm xcb/shm.h xcb_shm_attach &&
> > > > +        check_code cc xcb/xcb.h "xcb_generic_error_t e; 
> > > > e.resource_id = 0" || {
> > > 
> > > No, you just want something like check_pkg_config "xcb-shm >= 1.4"
> 
> Could you provide a patch that I could test?
> (I don't think your idea works but since I 
> don't know much about pkg-config, I may miss 
> something.)
> 

Assuming the ticket is correct according to the versions, this should do the
trick:

diff --git a/configure b/configure
index 9085200..9b33234 100755
--- a/configure
+++ b/configure
@@ -5063,7 +5063,7 @@ if ! disabled libxcb; then
 
 if enabled libxcb; then
     disabled libxcb_shm || {
-        check_pkg_config xcb-shm xcb/shm.h xcb_shm_attach || {
+        check_pkg_config "xcb-shm >= 1.4" xcb/shm.h xcb_shm_attach || {
             enabled libxcb_shm && die "ERROR: libxcb_shm not found";
         } && check_header sys/shm.h && enable libxcb_shm; }
 

[...]

-- 
Clément B.

Attachment: pgpj7ZWf4Wz_O.pgp
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to