# This fixes ffmpeg not compiling with the latest libxcb with shape support. Boris Reisig --- configure-original 2014-11-23 12:45:45.000000000 -0600 +++ configure 2014-11-23 13:39:01.817767733 -0600 @@ -254,6 +254,7 @@ --enable-libxcb enable X11 grabbing using XCB [auto] --enable-libxcb-shm enable X11 grabbing shm communication [auto] --enable-libxcb-xfixes enable X11 grabbing mouse rendering [auto] + --enable-libxcb-shape enable X11 grabbing mouse rendering [auto] --enable-libxvid enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists [no] --enable-libzmq enable message passing via libzmq [no] @@ -1386,6 +1387,7 @@ libxavs libxcb libxcb_shm + libxcb_shape libxcb_xfixes libxvid libzmq @@ -5047,8 +5049,13 @@ enabled libxcb_xfixes && die "ERROR: libxcb_xfixes not found"; } && enable libxcb_xfixes; } - add_cflags $xcb_cflags $xcb_shm_cflags $xcb_xfixes_cflags - add_extralibs $xcb_libs $xcb_shm_libs $xcb_xfixes_libs + disabled libxcb_shape || { + check_pkg_config xcb-shape xcb/shape.h xcb_shape_get_rectangles || { + enabled libxcb_shape && die "ERROR: libxcb_shape not found"; + } && enable libxcb_shape; } + + add_cflags $xcb_cflags $xcb_shm_cflags $xcb_xfixes_cflags $xcb_shape_cflags + add_extralibs $xcb_libs $xcb_shm_libs $xcb_xfixes_libs $xcb_shape_libs fi fi