Mercurial > mplayer.hg
comparison configure @ 3206:588102344a68
DGA handling changed (Arpi's request)
correct options: --enable-dga => auto (default)
--enable-dga=1 or ...=2
--disable-dga
changed --enable/disable-select handling to behave as the other tests
author | pl |
---|---|
date | Thu, 29 Nov 2001 18:56:08 +0000 |
parents | 039a973b3dda |
children | 6ea45643506c |
comparison
equal
deleted
inserted
replaced
3205:1d2b2885bb8c | 3206:588102344a68 |
---|---|
123 --disable-iconv do not use iconv(3) function [autodetect] | 123 --disable-iconv do not use iconv(3) function [autodetect] |
124 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] | 124 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] |
125 | 125 |
126 Video: | 126 Video: |
127 --enable-gl build with OpenGL render support [autodetect] | 127 --enable-gl build with OpenGL render support [autodetect] |
128 --enable-dga build with DGA support [autodetect] | 128 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] |
129 --enable-svga build with SVGAlib support [autodetect] | 129 --enable-svga build with SVGAlib support [autodetect] |
130 --enable-sdl build with SDL render support [autodetect] | 130 --enable-sdl build with SDL render support [autodetect] |
131 --enable-aa build with AAlib render support [autodetect] | 131 --enable-aa build with AAlib render support [autodetect] |
132 --enable-ggi build with GGI render support [autodetect] | 132 --enable-ggi build with GGI render support [autodetect] |
133 --enable-dxr3 build with DXR3/H+ render support [autodetect] | 133 --enable-dxr3 build with DXR3/H+ render support [autodetect] |
629 fi | 629 fi |
630 | 630 |
631 | 631 |
632 _prefix="/usr/local" | 632 _prefix="/usr/local" |
633 | 633 |
634 # GOTCHA: the variables below defines the default behavior for autodetection | |
635 # and have - unless stated otherwise - at least 2 states : yes no | |
636 # If autodetection is available then the third state is: auto | |
634 _libavcodec=auto | 637 _libavcodec=auto |
635 _libavcodecso=no # changed default to no as it causes problems - atmos | 638 _libavcodecso=no # changed default to no as it causes problems - atmos |
636 | |
637 _mencoder=auto | 639 _mencoder=auto |
638 _x11=auto | 640 _x11=auto |
639 _dga=auto | 641 _dga=auto # 1 2 no auto |
640 _dga2=auto | |
641 _xv=auto | 642 _xv=auto |
642 _sdl=auto | 643 _sdl=auto |
643 _png=auto | 644 _png=auto |
644 _gl=auto | 645 _gl=auto |
645 _ggi=auto | 646 _ggi=auto |
666 _sunaudio=auto | 667 _sunaudio=auto |
667 _alsa=auto | 668 _alsa=auto |
668 _fastmemcpy=yes | 669 _fastmemcpy=yes |
669 _win32=auto | 670 _win32=auto |
670 _dshow=auto | 671 _dshow=auto |
671 _def_select='#define HAVE_AUDIO_SELECT' | 672 _select=yes |
672 _tv=no | 673 _tv=no |
673 _streaming=no | 674 _streaming=no |
674 _divx4linux=auto | 675 _divx4linux=auto |
675 _lirc=auto | 676 _lirc=auto |
676 _gui=no | 677 _gui=no |
700 # Real 2nd pass | 701 # Real 2nd pass |
701 --enable-mencoder) _mencoder=yes ;; | 702 --enable-mencoder) _mencoder=yes ;; |
702 --disable-mencoder) _mencoder=no ;; | 703 --disable-mencoder) _mencoder=no ;; |
703 --enable-x11) _x11=yes ;; | 704 --enable-x11) _x11=yes ;; |
704 --disable-x11) _x11=no ;; | 705 --disable-x11) _x11=no ;; |
705 --enable-dga) _dga=yes ;; | |
706 --disable-dga) _dga=no ;; | |
707 --enable-dga2) _dga2=yes ;; | |
708 --disable-dga2) _dga2=no ;; | |
709 --enable-xv) _xv=yes ;; | 706 --enable-xv) _xv=yes ;; |
710 --disable-xv) _xv=no ;; | 707 --disable-xv) _xv=no ;; |
711 --enable-sdl) _sdl=yes ;; | 708 --enable-sdl) _sdl=yes ;; |
712 --disable-sdl) _sdl=no ;; | 709 --disable-sdl) _sdl=no ;; |
713 --enable-png) _png=yes ;; | 710 --enable-png) _png=yes ;; |
786 --disable-largefiles) _largefiles=no ;; | 783 --disable-largefiles) _largefiles=no ;; |
787 --enable-vo2) _vo2=yes ;; | 784 --enable-vo2) _vo2=yes ;; |
788 --disable-vo2) _vo2=no ;; | 785 --disable-vo2) _vo2=no ;; |
789 --enable-shm) _shm=yes ;; | 786 --enable-shm) _shm=yes ;; |
790 --disable-shm) _shm=no ;; | 787 --disable-shm) _shm=no ;; |
791 | 788 --enable-select) _select=yes ;; |
792 --enable-select) _def_select='#define HAVE_AUDIO_SELECT' ;; | 789 --disable-select) _select=no ;; |
793 --disable-select) _def_select='#undef HAVE_AUDIO_SELECT' ;; | 790 |
794 | 791 --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2 |
792 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;; | |
793 --disable-dga) _dga=no ;; | |
795 | 794 |
796 --language=*) | 795 --language=*) |
797 LINGUAS=`echo $ac_option | cut -d '=' -f 2` | 796 LINGUAS=`echo $ac_option | cut -d '=' -f 2` |
798 ;; | 797 ;; |
799 | 798 |
1450 fi | 1449 fi |
1451 echores "$_vm" | 1450 echores "$_vm" |
1452 | 1451 |
1453 | 1452 |
1454 echocheck "DGA" | 1453 echocheck "DGA" |
1455 if test "$_x11" = yes && test "$_dga" != no ; then | 1454 # Version 2 is preferred to version 1 if available |
1455 if test "$_dga" = auto ; then | |
1456 cat > $TMPC << EOF | 1456 cat > $TMPC << EOF |
1457 #include <X11/Xlib.h> | 1457 #include <X11/Xlib.h> |
1458 #include <X11/extensions/xf86dga.h> | 1458 #include <X11/extensions/xf86dga.h> |
1459 int main (void) { (void) XDGAQueryExtension(0, 0, 0); return 0; } | 1459 int main (void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; } |
1460 EOF | 1460 EOF |
1461 _dga=no | 1461 _dga=no |
1462 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga=yes | 1462 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga=1 |
1463 else | 1463 |
1464 _dga=no | 1464 cat > $TMPC << EOF |
1465 fi | 1465 #include <X11/Xlib.h> |
1466 if test "$_dga" = yes ; then | 1466 #include <X11/extensions/xf86dga.h> |
1467 int main (void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; } | |
1468 EOF | |
1469 cc_check $_inc_x11 $_ld_x11 -lXxf86dga && _dga=2 | |
1470 fi | |
1471 | |
1472 _def_dga='#undef HAVE_DGA' | |
1473 _def_dga2='#undef HAVE_DGA2' | |
1474 if test "$_dga" = 1 ; then | |
1467 _def_dga='#define HAVE_DGA 1' | 1475 _def_dga='#define HAVE_DGA 1' |
1468 _ld_dga='-lXxf86dga -lXxf86vm' | 1476 _ld_dga='-lXxf86dga -lXxf86vm' |
1469 _vosrc="$_vosrc vo_dga.c" | 1477 _vosrc="$_vosrc vo_dga.c" |
1470 _vomodules="dga $_vomodules" | 1478 _vomodules="dga $_vomodules" |
1471 else | 1479 echores "using DGA 1.0" |
1472 _def_dga='#undef HAVE_DGA' | 1480 elif test "$_dga" = 2 ; then |
1473 fi | |
1474 echores "$_dga" | |
1475 | |
1476 | |
1477 echocheck "DGA 2.0" | |
1478 if test "$_x11" = yes && test "$_dga2" != no ; then | |
1479 cat > $TMPC << EOF | |
1480 #include <X11/Xlib.h> | |
1481 #include <X11/extensions/xf86dga.h> | |
1482 int main (void) { XDGAMode mode; XDGADevice device; return 0; } | |
1483 EOF | |
1484 _dga2=no | |
1485 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga2=yes | |
1486 fi | |
1487 if test "$_dga2" = yes ; then | |
1488 _def_dga2='#define HAVE_DGA2 1' | 1481 _def_dga2='#define HAVE_DGA2 1' |
1489 _ld_dga2='-lXxf86dga -lXxf86vm' | 1482 _ld_dga='-lXxf86dga' |
1490 _vosrc="$_vosrc vo_dga.c" | 1483 _vosrc="$_vosrc vo_dga.c" |
1491 _vomodules="dga2 $_vomodules" | 1484 _vomodules="dga $_vomodules" |
1492 else | 1485 echores "using DGA 2.0" |
1493 _def_dga2='#undef HAVE_DGA2' | 1486 elif test "$_dga" = no ; then |
1494 fi | 1487 echores "no" |
1495 echores "$_dga2" | 1488 else |
1489 die "DGA version must be 1 or 2" | |
1490 fi | |
1496 | 1491 |
1497 | 1492 |
1498 echocheck "OpenGL" | 1493 echocheck "OpenGL" |
1499 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl | 1494 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl |
1500 if test "$_x11" = yes && test "$_gl" != no ; then | 1495 if test "$_x11" = yes && test "$_gl" != no ; then |
2319 _def_tv='#define USE_TV 1' | 2314 _def_tv='#define USE_TV 1' |
2320 else | 2315 else |
2321 _def_tv='#undef USE_TV' | 2316 _def_tv='#undef USE_TV' |
2322 fi | 2317 fi |
2323 echores "$_tv" | 2318 echores "$_tv" |
2319 | |
2320 | |
2321 echocheck "select" | |
2322 if test "$_select" = no ; then | |
2323 _def_select='#undef HAVE_AUDIO_SELECT' | |
2324 elif test "$_select" = yes ; then | |
2325 _def_select='#define HAVE_AUDIO_SELECT 1' | |
2326 fi | |
2327 echores "$_select" | |
2324 | 2328 |
2325 | 2329 |
2326 echocheck "streaming" | 2330 echocheck "streaming" |
2327 # FIXME streaming check | 2331 # FIXME streaming check |
2328 if test "$_streaming" = yes ; then | 2332 if test "$_streaming" = yes ; then |
2521 | 2525 |
2522 X11_INC = $_inc_x11 | 2526 X11_INC = $_inc_x11 |
2523 X11DIR = $_ld_x11 | 2527 X11DIR = $_ld_x11 |
2524 | 2528 |
2525 # video output | 2529 # video output |
2526 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_dga2 $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock | 2530 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock |
2527 DXR3_LIB = $_ld_dxr3 | 2531 DXR3_LIB = $_ld_dxr3 |
2528 GGI_LIB = $_ld_ggi | 2532 GGI_LIB = $_ld_ggi |
2529 MLIB_LIB = $_ld_mlib | 2533 MLIB_LIB = $_ld_mlib |
2530 PNG_LIB = $_ld_png | 2534 PNG_LIB = $_ld_png |
2531 SDL_LIB = $_ld_sdl | 2535 SDL_LIB = $_ld_sdl |