[MPlayer-dev-eng] check for XFree86-VidModeExtension broken for xfree 3.3.x
Trent Piepho
xyzzy at speakeasy.org
Mon Jan 31 19:20:32 CET 2005
The XFree86-VidModeExtension extension isn't detected, when it used to be
in older versions of mplayer. This is problematic, as xfree 3.3.x doesn't
have DGA2 to switch modes. This patch fixes it.
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.957
diff -u -r1.957 configure
--- configure 22 Jan 2005 18:30:23 -0000 1.957
+++ configure 31 Jan 2005 18:18:03 -0000
@@ -3550,7 +3550,6 @@
cat > $TMPC <<EOF
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
-#include <X11/XF86keysym.h>
int main(void) { (void) XF86VidModeQueryExtension(0, 0, 0); return 0; }
EOF
_vm=no
@@ -3566,6 +3565,28 @@
fi
echores "$_vm"
+# Check for the presence of special keycodes, like audio control buttons
+# that XFree86 might have. Used to be bundled with the xf86vm check, but
+# has nothing to do with xf86vm and XFree 3.x has xf86vm but does NOT
+# have these new keycodes
+echocheck "XF86keysym"
+if test "$_x11" = yes ; then
+ cat > $TMPC <<EOF
+#include <X11/Xlib.h>
+#include <X11/XF86keysym.h>
+int main(void) { return XF86XK_AudioPause; }
+EOF
+ _xf86xk=no
+ cc_check $_inc_x11 $_ld_x11 && _xf86xk=yes
+else
+ _xf86xk=no
+fi
+if test "$_xf86xk" = yes ; then
+ _def_xk='#define HAVE_XF86XK 1'
+else
+ _def_xk='#undef HAVE_XF86XK'
+fi
+echores "$_xf86xk"
echocheck "DGA"
# Version 2 is preferred to version 1 if available
@@ -7391,6 +7412,7 @@
$_def_xv
$_def_xvmc
$_def_vm
+$_def_xk
$_def_xinerama
$_def_gl
$_def_gl_win32
More information about the MPlayer-dev-eng
mailing list