configure: die if x11grab dependencies are unavailable

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Josh Allmann 2012-03-21 08:01:37 -07:00 committed by Diego Biurrun
parent afa6129016
commit 4a584edad7

12
configure vendored
View File

@ -1496,7 +1496,6 @@ v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h"
vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines" vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
vfwcap_indev_extralibs="-lavicap32" vfwcap_indev_extralibs="-lavicap32"
x11_grab_device_indev_deps="x11grab XShmCreateImage" x11_grab_device_indev_deps="x11grab XShmCreateImage"
x11_grab_device_indev_extralibs="-lX11 -lXext -lXfixes"
# protocols # protocols
gopher_protocol_deps="network" gopher_protocol_deps="network"
@ -3026,13 +3025,10 @@ enabled_any sndio_indev sndio_outdev && check_lib2 sndio.h sio_open -lsndio
enabled libcdio && enabled libcdio &&
check_lib2 "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open "-lcdio_paranoia -lcdio_cdda -lcdio" check_lib2 "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open "-lcdio_paranoia -lcdio_cdda -lcdio"
enabled x11grab && enabled x11grab &&
check_header X11/Xlib.h && require X11 X11/Xlib.h XOpenDisplay -lX11 &&
check_header X11/extensions/XShm.h && require Xext X11/extensions/XShm.h XShmCreateImage -lXext &&
check_header X11/extensions/Xfixes.h && require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes
check_func XOpenDisplay -lX11 &&
check_func XShmCreateImage -lX11 -lXext &&
check_func XFixesGetCursorImage -lX11 -lXext -lXfixes
# check for VDA header # check for VDA header
if ! disabled vda && check_header VideoDecodeAcceleration/VDADecoder.h; then if ! disabled vda && check_header VideoDecodeAcceleration/VDADecoder.h; then