Mercurial > mplayer.hg
diff configure @ 233:f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
DGA video mode switching when DGA 2.0 is present
author | mgraffam |
---|---|
date | Wed, 28 Mar 2001 19:58:45 +0000 |
parents | 62ec84961b27 |
children | abc78352e35e |
line wrap: on
line diff
--- a/configure Wed Mar 28 18:15:51 2001 +0000 +++ b/configure Wed Mar 28 19:58:45 2001 +0000 @@ -167,6 +167,7 @@ _mpg123=no _xmga=no _dga=no +_dga2=no _fbdev=no _lirc=no @@ -393,6 +394,18 @@ # --- +# Check if DGA is 2.0 or greater +cat > $TMPC << EOF +#include <stdio.h> +#include <X11/Xlib.h> +#include <X11/extensions/xf86dga.h> +int main (void) { XDGAMode mode; XDGADevice device; return 0;} +EOF + +_dga2=no +$_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes + + cat > $TMPC << EOF #include <GL/gl.h> int main( void ) { return 0; } @@ -443,7 +456,10 @@ ;; --enable-dga) _dga=yes - ;; + ;; + --enable-dga2) + _dga2=yes + ;; --enable-xv) _xv=yes ;; @@ -513,6 +529,9 @@ --disable-dga) _dga=no ;; + --disable-dga2) + _dga2=no + ;; --disable-fbdev) _fbdev=no ;; @@ -555,6 +574,7 @@ echo "Checking for Xv ... $_xv" echo "Checking for X11 ... $_x11" echo "Checking for DGA ... $_dga" +echo "Checking for DGA 2.0 .. $_dga2" echo "Checking for Xf86VM ... $_vm" echo "Checking for FBDev ... $_fbdev" # write conf files. @@ -727,6 +747,13 @@ _dga='#undef HAVE_DGA' fi +if [ $_dga2 = yes ]; then + _dga2='#define HAVE_DGA2' + _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' +else + _dga2='#undef HAVE_DGA2' +fi + if [ $_fbdev = yes ]; then _fbdev='#define HAVE_FBDEV' _vosrc=$_vosrc' vo_fbdev.c' @@ -807,6 +834,7 @@ $_vm $_gl $_dga +$_dga2 $_sdldef $_3dfx $_mga