Mercurial > mplayer.hg
comparison configure @ 448:198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
author | arpi_esp |
---|---|
date | Sun, 15 Apr 2001 20:31:58 +0000 |
parents | d19a3da6ac13 |
children | 5062115afefd |
comparison
equal
deleted
inserted
replaced
447:b3b28a0d9404 | 448:198b46b739d8 |
---|---|
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 # 2001/04/15 by Pontscho | |
10 # - added --disable-select option | |
11 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | |
12 # | 8 # |
13 # 2001/03/24 by Mike Graffam: | 9 # 2001/03/24 by Mike Graffam: |
14 # - added autodetect code for XF86VidMode, along with explicit --enable-vm | 10 # - added autodetect code for XF86VidMode, along with explicit --enable-vm |
15 # | 11 # |
16 # 2001/03/22 by Bivanbi: | 12 # 2001/03/22 by Bivanbi: |
91 --enable-fbdev build with FBDev render support [_not_ autodetected] | 87 --enable-fbdev build with FBDev render support [_not_ autodetected] |
92 --enable-mlib build with MLIB support ( only Solaris ) | 88 --enable-mlib build with MLIB support ( only Solaris ) |
93 | 89 |
94 --enable-termcap use termcap database for key codes | 90 --enable-termcap use termcap database for key codes |
95 --enable-xmmp use XMMP audio drivers | 91 --enable-xmmp use XMMP audio drivers |
96 --enable-lirc enable LIRC ( remote control ) support | 92 --enable-lirc enable LIRC (remote control) support |
97 | |
98 --disable-select disable audio select() support ( for example required this | |
99 option ALSA or Vortex2 driver ) | |
100 | 93 |
101 --with-x11libdir=DIR X library files are in DIR | 94 --with-x11libdir=DIR X library files are in DIR |
102 --with-win32libdir=DIR windows codec files | 95 --with-win32libdir=DIR windows codec files |
103 | 96 |
104 --size-x=SIZE default screen width | 97 --size-x=SIZE default screen width |
135 MCONF='config.mak' | 128 MCONF='config.mak' |
136 | 129 |
137 # --- Check for C compiler: | 130 # --- Check for C compiler: |
138 | 131 |
139 _cc=gcc | 132 _cc=gcc |
133 _x11=auto | |
134 | |
135 _x11libdir= | |
136 if [ -e /usr/X11R6 ]; then | |
137 _x11libdir=-L/usr/X11R6/lib | |
138 else | |
139 if [ -e /usr/X11 ]; then | |
140 _x11libdir=-L/usr/X11/lib | |
141 fi | |
142 fi | |
140 | 143 |
141 for ac_option | 144 for ac_option |
142 do | 145 do |
143 case "$ac_option" in | 146 case "$ac_option" in |
144 --cc=*) | 147 --cc=*) |
145 _cc=`echo $ac_option | cut -d '=' -f 2` | 148 _cc=`echo $ac_option | cut -d '=' -f 2` |
149 ;; | |
150 --with-x11libdir=*) | |
151 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | |
152 ;; | |
153 --enable-x11) | |
154 _x11=yes | |
155 ;; | |
156 --disable-x11) | |
157 _x11=no | |
146 ;; | 158 ;; |
147 esac | 159 esac |
148 done | 160 done |
149 | 161 |
150 # --- | 162 # --- |
168 _mga=no | 180 _mga=no |
169 _gl=no | 181 _gl=no |
170 _sdl=no | 182 _sdl=no |
171 _xv=no | 183 _xv=no |
172 _vm=no | 184 _vm=no |
173 _x11=no | |
174 _3dfx=no | 185 _3dfx=no |
175 _syncfb=no | 186 _syncfb=no |
176 _mlib=no | 187 _mlib=no |
177 _mpg123=no | 188 _mpg123=no |
178 _xmga=no | 189 _xmga=no |
179 _dga=no | 190 _dga=no |
180 _dga2=no | 191 _dga2=no |
181 _svga=no | 192 _svga=no |
182 _fbdev=no | 193 _fbdev=yes |
183 _lirc=no | 194 _lirc=no |
184 _xdpms=no | 195 _xdpms=no |
185 | 196 |
186 _x=1 | 197 _x=1 |
187 _y=1 | 198 _y=1 |
188 | 199 |
189 _gllib= | 200 _gllib= |
190 _sdllib= | 201 _sdllib= |
202 _xvlib= | |
191 _x11lib= | 203 _x11lib= |
192 _xvlib= | |
193 _xlibdir= | |
194 | |
195 _select='#define HAVE_AUDIO_SELECT' | |
196 | 204 |
197 for i in `echo $pparam`; do | 205 for i in `echo $pparam`; do |
198 | 206 |
199 case "$i" in | 207 case "$i" in |
200 3dnow) | 208 3dnow) |
227 ;; | 235 ;; |
228 esac | 236 esac |
229 | 237 |
230 done | 238 done |
231 | 239 |
232 if [ -e /usr/X11R6 ]; then | |
233 _x11libdir=-L/usr/X11R6/lib | |
234 else | |
235 if [ -e /usr/X11 ]; then | |
236 _x11libdir=-L/usr/X11/lib | |
237 fi | |
238 fi | |
239 | 240 |
240 _win32libdirnotify=no | 241 _win32libdirnotify=no |
241 if [ -e /usr/lib/win32 ]; then | 242 if [ -e /usr/lib/win32 ]; then |
242 _win32libdir=/usr/lib/win32 | 243 _win32libdir=/usr/lib/win32 |
243 else | 244 else |
373 exit | 374 exit |
374 fi | 375 fi |
375 #echo "DONE (${proc})." | 376 #echo "DONE (${proc})." |
376 | 377 |
377 | 378 |
378 # check GL & X11 & Xext & Xv & SDL & termcap libs | |
379 | |
380 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes | |
381 $_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes | |
382 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes | 379 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes |
383 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes | 380 |
384 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes | 381 $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ |
385 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes | |
386 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \ | |
387 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } | 382 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } |
388 | 383 |
389 # SDL disabled by default (0.11pre22-) because of the compilation problems | 384 # SDL disabled by default (0.11pre22-) because of the compilation problems |
390 # this is very buggy & experimental code, use it only if you really need it!! | 385 # this is very buggy & experimental code, use it only if you really need it!! |
391 _have_sdl=no | 386 _have_sdl=no |
392 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes | 387 $_cc $TMPC -o $TMPO -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes |
393 | 388 |
394 _termcap=no | 389 _termcap=no |
395 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes | 390 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
396 | 391 |
397 _binutils=no | 392 _binutils=no |
398 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | 393 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes |
399 | 394 |
400 # LGB: Check DGA | 395 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- |
396 | |
397 if [ $_x11 = auto ]; then | |
398 _x11=no | |
399 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes | |
400 fi | |
401 | |
402 if [ $_x11 = yes ]; then | |
403 | |
404 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes | |
405 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes | |
406 | |
407 $_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null && _gl=yes | |
408 | |
409 cat > $TMPC << EOF | |
410 #include <GL/gl.h> | |
411 int main( void ) { return 0; } | |
412 EOF | |
413 $_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null || \ | |
414 { _gl=no; echo "GL includes not found!";} | |
415 | |
416 $_cc $TMPC -o $TMPO $_x11libdir -lXxf86vm &> /dev/null && _vm=yes | |
401 | 417 |
402 cat > $TMPC << EOF | 418 cat > $TMPC << EOF |
403 #include <stdio.h> | 419 #include <stdio.h> |
404 #include <X11/Xlib.h> | 420 #include <X11/Xlib.h> |
405 #include <X11/extensions/xf86dga.h> | 421 #include <X11/extensions/xf86dga.h> |
406 int main (void) { return 0;} | 422 int main (void) { return 0;} |
407 EOF | 423 EOF |
408 | 424 |
409 _dga=no | |
410 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes | 425 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes |
411 # Note: the -lXxf86vm library is the VideoMode extension and though it's | 426 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
412 # not needed for DGA, AFAIK every distribution packages together with DGA | 427 # not needed for DGA, AFAIK every distribution packages together with DGA |
413 # stuffs named 'X extensions' or something similar. This check can be usefull | 428 # stuffs named 'X extensions' or something similar. This check can be usefull |
414 # for further mplayer versions to set resolution by mplayer itself. | 429 # for further mplayer versions to set resolution by mplayer itself. |
415 # If you run into problems, remove '-lXxf86vm'. | 430 # If you run into problems, remove '-lXxf86vm'. |
416 | 431 |
417 # --- | |
418 | |
419 # Check if DGA is 2.0 or greater | 432 # Check if DGA is 2.0 or greater |
420 cat > $TMPC << EOF | 433 cat > $TMPC << EOF |
421 #include <stdio.h> | 434 #include <stdio.h> |
422 #include <X11/Xlib.h> | 435 #include <X11/Xlib.h> |
423 #include <X11/extensions/xf86dga.h> | 436 #include <X11/extensions/xf86dga.h> |
425 EOF | 438 EOF |
426 | 439 |
427 _dga2=no | 440 _dga2=no |
428 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes | 441 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes |
429 | 442 |
430 | 443 fi |
431 cat > $TMPC << EOF | |
432 #include <GL/gl.h> | |
433 int main( void ) { return 0; } | |
434 EOF | |
435 | |
436 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null || \ | |
437 { _gl=no; echo "GL includes not found!";} | |
438 | 444 |
439 rm -f $TMPC $TMPO | 445 rm -f $TMPC $TMPO |
440 | |
441 | |
442 if [ $_x11 = 'yes' ]; then | |
443 if [ $_mga = 'yes' ]; then | |
444 _xmga=yes | |
445 fi | |
446 fi | |
447 | 446 |
448 # --- | 447 # --- |
449 | 448 |
450 # check for the parameters. | 449 # check for the parameters. |
451 | 450 |
492 _xv=yes | 491 _xv=yes |
493 ;; | 492 ;; |
494 --enable-vm) | 493 --enable-vm) |
495 _vm=yes | 494 _vm=yes |
496 ;; | 495 ;; |
497 --enable-x11) | |
498 _x11=yes | |
499 ;; | |
500 --enable-3dfx) | 496 --enable-3dfx) |
501 _3dfx=yes | 497 _3dfx=yes |
502 ;; | 498 ;; |
503 --enable-syncfb) | 499 --enable-syncfb) |
504 _syncfb=yes | 500 _syncfb=yes |
515 --enable-xmmp) | 511 --enable-xmmp) |
516 _xmmp=yes | 512 _xmmp=yes |
517 ;; | 513 ;; |
518 --enable-lirc) | 514 --enable-lirc) |
519 _lirc=yes | 515 _lirc=yes |
520 ;; | |
521 --enable-select) | |
522 _select='#define HAVE_AUDIO_SELECT' | |
523 ;; | 516 ;; |
524 --disable-sse) | 517 --disable-sse) |
525 _sse=no | 518 _sse=no |
526 ;; | 519 ;; |
527 --disable-3dnow) | 520 --disable-3dnow) |
550 _xv=no | 543 _xv=no |
551 ;; | 544 ;; |
552 --disable-vm) | 545 --disable-vm) |
553 _vm=no | 546 _vm=no |
554 ;; | 547 ;; |
555 --disable-x11) | |
556 _x11=no | |
557 ;; | |
558 --disable-mlib) | 548 --disable-mlib) |
559 _mlib=no | 549 _mlib=no |
560 ;; | 550 ;; |
561 --disable-svga) | 551 --disable-svga) |
562 _svga=no | 552 _svga=no |
571 _fbdev=no | 561 _fbdev=no |
572 ;; | 562 ;; |
573 --disable-termcap) | 563 --disable-termcap) |
574 _termcap=no | 564 _termcap=no |
575 ;; | 565 ;; |
576 --disable-select) | |
577 _select='#undef HAVE_AUDIO_SELECT' | |
578 ;; | |
579 --with-x11libdir=*) | |
580 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | |
581 ;; | |
582 --with-win32libdir=*) | 566 --with-win32libdir=*) |
583 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | 567 _win32libdir=`echo $ac_option | cut -d '=' -f 2` |
584 _win32libdirnotify=no | 568 _win32libdirnotify=no |
585 ;; | 569 ;; |
586 --size-x=*) | 570 --size-x=*) |
587 _x=`echo $ac_option | cut -d '=' -f 2` | 571 _x=`echo $ac_option | cut -d '=' -f 2` |
588 ;; | 572 ;; |
589 --size-y=*) | 573 --size-y=*) |
590 _y=`echo $ac_option | cut -d '=' -f 2` | 574 _y=`echo $ac_option | cut -d '=' -f 2` |
591 ;; | 575 ;; |
576 --with-x11libdir=*) | |
577 ;; | |
592 --cc=*) | 578 --cc=*) |
593 ;; | 579 ;; |
594 esac | 580 esac |
595 done | 581 done |
582 | |
583 if [ $_x11 = 'yes' ]; then | |
584 if [ $_mga = 'yes' ]; then | |
585 _xmga=yes | |
586 fi | |
587 fi | |
596 | 588 |
597 # to screen. | 589 # to screen. |
598 echo "Using C compiler: $_cc" | 590 echo "Using C compiler: $_cc" |
599 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" | 591 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
600 echo "Checking for cpu type ... $pname" | 592 echo "Checking for cpu type ... $pname" |
681 | 673 |
682 # -------- Generated by ./configure ----------- | 674 # -------- Generated by ./configure ----------- |
683 | 675 |
684 AR=ar | 676 AR=ar |
685 CC=$_cc | 677 CC=$_cc |
686 X11DIR=$_x11libdir | |
687 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math | 678 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
688 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math | 679 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math |
689 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib | 680 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
690 # X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib | 681 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib |
691 X_LIBS=\$(X11DIR) $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib | |
692 TERMCAP_LIB=$_libtermcap | 682 TERMCAP_LIB=$_libtermcap |
693 XMM_LIBS = $_xmmplibs | 683 XMM_LIBS = $_xmmplibs |
694 LIRC_LIBS = $_lirclibs | 684 LIRC_LIBS = $_lirclibs |
695 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" | 685 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
696 | 686 |
845 #define ALSA_TIMER | 835 #define ALSA_TIMER |
846 | 836 |
847 /* Undefine this if your soundcard driver has no working select(). | 837 /* Undefine this if your soundcard driver has no working select(). |
848 If you have kernel Oops, player hangups, or just no audio, you should | 838 If you have kernel Oops, player hangups, or just no audio, you should |
849 try to recompile MPlayer with this option disabled! */ | 839 try to recompile MPlayer with this option disabled! */ |
850 $_select | 840 #define HAVE_AUDIO_SELECT |
851 | 841 |
852 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | 842 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) |
853 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | 843 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm |
854 (with mmx/sse optimizations) | 844 (with mmx/sse optimizations) |
855 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | 845 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ |