Mercurial > mplayer.hg
comparison configure @ 59:739bf8d5bebc
Added DGA autodetection
author | lgb |
---|---|
date | Thu, 08 Mar 2001 12:30:42 +0000 |
parents | 0d76b2b962ad |
children | ddf1ab273f03 |
comparison
equal
deleted
inserted
replaced
58:dfdc6c997922 | 59:739bf8d5bebc |
---|---|
3 # | 3 # |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz |
5 # pontscho@makacs.poliod.hu | 5 # pontscho@makacs.poliod.hu |
6 # | 6 # |
7 # Changes in reversed order: | 7 # Changes in reversed order: |
8 # | |
9 # 2000/03/08 by LGB: | |
10 # - DGA detection-o-matic :) | |
11 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer | |
12 # - line about '--enable-dga' is added to the help message | |
8 # | 13 # |
9 # 2000/02/26 by A'rpi: | 14 # 2000/02/26 by A'rpi: |
10 # - added DGA option: --enable-dga | 15 # - added DGA option: --enable-dga |
11 # - no notify if --with-win32libdir used [Tibcu] | 16 # - no notify if --with-win32libdir used [Tibcu] |
12 # | 17 # |
59 params: | 64 params: |
60 --enable-mmx build with mmx support [autodetect] | 65 --enable-mmx build with mmx support [autodetect] |
61 --enable-3dnow build with 3dnow! support [autodetect] | 66 --enable-3dnow build with 3dnow! support [autodetect] |
62 --enable-sse build with sse support [autodetect] | 67 --enable-sse build with sse support [autodetect] |
63 --enable-gl build with OpenGL render support [autodetect] | 68 --enable-gl build with OpenGL render support [autodetect] |
69 --enable-dga build with DGA support [autodetect] | |
64 --enable-sdl build with SDL render support [def.: disabled!] | 70 --enable-sdl build with SDL render support [def.: disabled!] |
65 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid | 71 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid |
66 is available] | 72 is available] |
67 --enable-xmga build with mga_vid X Window support [autodetect, | 73 --enable-xmga build with mga_vid X Window support [autodetect, |
68 if both /dev/mga_vid and x11 are available] | 74 if both /dev/mga_vid and x11 are available] |
341 gcc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes | 347 gcc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
342 | 348 |
343 _binutils=no | 349 _binutils=no |
344 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | 350 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes |
345 | 351 |
352 # LGB: Check DGA | |
353 | |
354 cat > $TMPC << EOF | |
355 #include <stdio.h> | |
356 #include <X11/Xlib.h> | |
357 #include <X11/extensions/xf86dga.h> | |
358 int main (void) { return 0;} | |
359 EOF | |
360 | |
361 _dga=no | |
362 gcc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes | |
363 # Note: the -lXxf86vm library is the VideoMode extension and though it's | |
364 # not needed for DGA, AFAIK every distribution packages together with DGA | |
365 # stuffs named 'X extensions' or something similar. This check can be usefull | |
366 # for further mplayer versions to set resolution by mplayer itself. | |
367 # If you run into problems, remove '-lXxf86vm'. | |
368 | |
369 # --- | |
370 | |
346 cat > $TMPC << EOF | 371 cat > $TMPC << EOF |
347 #include <GL/gl.h> | 372 #include <GL/gl.h> |
348 int main( void ) { return 0; } | 373 int main( void ) { return 0; } |
349 EOF | 374 EOF |
350 | 375 |
442 --disable-x11) | 467 --disable-x11) |
443 _x11=no | 468 _x11=no |
444 ;; | 469 ;; |
445 --disable-mlib) | 470 --disable-mlib) |
446 _mlib=no | 471 _mlib=no |
472 ;; | |
473 --disable-dga) | |
474 _dga=no | |
447 ;; | 475 ;; |
448 --disable-termcap) | 476 --disable-termcap) |
449 _termcap=no | 477 _termcap=no |
450 ;; | 478 ;; |
451 --with-x11libdir=*) | 479 --with-x11libdir=*) |
479 echo "Checking for xmga ... $_xmga" | 507 echo "Checking for xmga ... $_xmga" |
480 echo "Checking for SDL ... $_sdl" | 508 echo "Checking for SDL ... $_sdl" |
481 echo "Checking for OpenGL ... $_gl" | 509 echo "Checking for OpenGL ... $_gl" |
482 echo "Checking for Xv ... $_xv" | 510 echo "Checking for Xv ... $_xv" |
483 echo "Checking for X11 ... $_x11" | 511 echo "Checking for X11 ... $_x11" |
512 echo "Checking for DGA ... $_dga" | |
484 | 513 |
485 # write conf files. | 514 # write conf files. |
486 | 515 |
487 if [ $_gl = yes ]; then | 516 if [ $_gl = yes ]; then |
488 _gllib='-lGL' | 517 _gllib='-lGL' |