summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGuillaume Poirier <gpoirier@mplayerhq.hu>2006-12-12 22:31:46 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-12-12 22:31:46 +0000
commite519b02c108a6922ff0e9a12b74ea7a7fbcf7bf1 (patch)
tree56a7e139d22371d8deb528cc9cb2446deaec3f10 /configure
parentfc53da2037b21096dc2b740e044fd1f75d4cc971 (diff)
Original X11 device demuxer patch from Clemens Fruhwirth
- Build system integration is equivalent to RFC #6 patch - Same rule applies to ffmpeg.c/allformats.[c|h] - x11grab.c is from Clemens Fruhwirth except the x11 grab structure for libavformat registration is renamed to match build system integration. Originally committed as revision 7293 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index be4e574738..5899568448 100755
--- a/configure
+++ b/configure
@@ -1659,6 +1659,16 @@ int dummy = V4L2_PIX_FMT_YUV420;
struct v4l2_buffer dummy1;
EOF
+# Deal with the x11 frame grabber
+enabled gpl &&
+enabled x11_grab_device_demuxer &&
+check_header X11/Xlib.h &&
+check_header X11/extensions/XShm.h &&
+check_func XOpenDisplay -lX11 &&
+check_func XShmCreateImage -lX11 -lXext &&
+add_extralibs -lX11 -lXext ||
+disable x11_grab_device_demuxer
+
enabled debug && add_cflags -g
# add some useful compiler flags if supported