Mercurial > mplayer.hg
annotate configure @ 1008:1b6e183b8a87
add HAVE_ALSA5 var. Sorry :(
author | pontscho |
---|---|
date | Mon, 04 Jun 2001 18:43:35 +0000 |
parents | 57972eb8127a |
children | d1e70889094e |
rev | line source |
---|---|
850 | 1 #!/bin/bash |
1 | 2 |
3 # | |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | |
5 # pontscho@makacs.poliod.hu | |
6 # | |
4 | 7 # Changes in reversed order: |
1 | 8 # |
987 | 9 # 2001/06/04 by Nick Kurshev |
10 # - added hard checking of gcc and soft of assembler | |
11 # | |
912 | 12 # 2001/05/40 by LGB |
13 # - added --prefix support | |
14 # | |
849 | 15 # 2001/05/22 by Nick Kurshev |
16 # - added definition of CPU clone | |
17 # | |
492 | 18 # 2001/04/16 by LGB |
19 # - added libcss stuffs | |
20 # | |
463 | 21 # 2001/04/15 by Pontscho |
22 # - added --disable-select option | |
23 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | |
24 # | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
25 # 2001/03/24 by Mike Graffam: |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
26 # - added autodetect code for XF86VidMode, along with explicit --enable-vm |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
27 # |
196 | 28 # 2001/03/22 by Bivanbi: |
29 # - new option: --cc (to specify C compiler path+name) | |
30 # | |
31 # 2001/03/08 by LGB: | |
492 | 32 # - DGA detect-o-matic :) |
59 | 33 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer |
34 # - line about '--enable-dga' is added to the help message | |
35 # | |
196 | 36 # 2001/02/26 by A'rpi: |
11 | 37 # - added DGA option: --enable-dga |
38 # - no notify if --with-win32libdir used [Tibcu] | |
39 # | |
196 | 40 # 2001/02/25 by LGB: |
4 | 41 # - TMPDIR or TEMPDIR variable is honored during tests for temporary files |
42 # - ChangeLog inside configure was reversed ;-) | |
1 | 43 # |
44 # some changes by A'rpi/ESP-team: | |
4 | 45 # - added 'athlon' target for the new athlongcc [Ian Kumlien] |
46 # - applied _win32libdir=-L patch by Magnus Pfeffer | |
1 | 47 # |
48 # some changes by LGB: | |
49 # - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :) | |
50 # More info: AMD K6-2 reports with family 5, duron with 6, so I attached | |
51 # much finer CPU type detection based on Linux kernel's one :) | |
52 # (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any) | |
53 # - On some exit point (error) temporary files were not deleted. Fixed. | |
54 # - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-) | |
55 # - Some useless { ... } are removed | |
56 # | |
57 # some changes by A'rpi/ESP-team: | |
11 | 58 # - the --with-win32libdir patch by Aaron Hope applied |
4 | 59 # - some english bugfix again :) |
60 # - cpu type selection changed: | |
61 # ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error! | |
62 # - cpu type for AMD/family=5 changed k6->k5 | |
63 # | |
64 # some changes by LGB (Gábor Lénárt): | |
65 # - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization | |
66 # switches with the ability to find out the best optimization for your CPU. | |
67 # - Help moved to the begining to avoid tests if user only wants help. | |
68 # - A one lined help to indicate detailed help for users | |
69 # - Fixed /tmp race (PIDs can be predicted, I added random numbers as well) | |
70 # | |
71 # some changes by A'rpi/ESP-team: | |
72 # - some english bugfix :) | |
73 # - removed _??exists flags, _?? is enough... | |
74 # - creating only config.mak files instead of whole Makefiles | |
1 | 75 # |
76 # -- | |
77 | |
78 | |
79 # LGB: Help moved here. | |
80 | |
81 if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then | |
82 cat << EOF | |
83 | |
84 usage: $0 [options] | |
85 | |
86 params: | |
196 | 87 --cc use this C compiler to build MPlayer [gcc] |
912 | 88 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
717 | 89 --enable-debug[=1-3] compile debugging information into mplayer [disable] |
90 --enable-profile compile profiling information into mplayer [disable] | |
1 | 91 --enable-mmx build with mmx support [autodetect] |
350 | 92 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] |
1 | 93 --enable-3dnow build with 3dnow! support [autodetect] |
734 | 94 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect] |
1 | 95 --enable-sse build with sse support [autodetect] |
96 --enable-gl build with OpenGL render support [autodetect] | |
59 | 97 --enable-dga build with DGA support [autodetect] |
287 | 98 --enable-svga build with SVGAlib support [autodetect] |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
99 --enable-sdl build with SDL render support [autodetect] |
1 | 100 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid |
101 is available] | |
102 --enable-xmga build with mga_vid X Window support [autodetect, | |
103 if both /dev/mga_vid and x11 are available] | |
104 --enable-xv build with Xv render support for X 4.x [autodetect] | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
105 --enable-vm build with XF86VidMode support for x11 driver |
1 | 106 --enable-x11 build with X11 render support [autodetect] |
225 | 107 --enable-fbdev build with FBDev render support [_not_ autodetected] |
1 | 108 --enable-mlib build with MLIB support ( only Solaris ) |
109 | |
110 --enable-termcap use termcap database for key codes | |
111 --enable-xmmp use XMMP audio drivers | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
112 --enable-lirc enable LIRC (remote control) support |
1 | 113 |
1004 | 114 --disable-alsa disable alsa support [autodetect] |
115 | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
116 --disable-gcc-checking disable gcc version checking |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
117 |
463 | 118 --disable-select disable audio select() support ( for example required this |
119 option ALSA or Vortex2 driver ) | |
120 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
121 --disable-dshow disable DirectShow support (if you don't have |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
122 C++ compiler&libs, or you've found dshow codecs |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
123 slower than old VfW ones) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
124 |
642 | 125 --disable-fastmemcpy disable 3dnow/sse/mmx optimized memcpy() |
126 | |
1 | 127 --with-x11libdir=DIR X library files are in DIR |
128 --with-win32libdir=DIR windows codec files | |
492 | 129 --with-csslibdir=DIR directory contains libcss.so shared library |
130 --with-cssincdir=DIR directory contains libcss header file (css.h) | |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
131 (--with-css* only needed, if libCSS autodetect fails) |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
132 --with-sdl-config=PATH specify location of sdl-config if it's not in your PATH |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
133 (example: --with-sdl-cofig=/usr/sdl/bin/sdl-config) |
1 | 134 |
135 --size-x=SIZE default screen width | |
136 --size-y=SIZE default screen height | |
137 EOF | |
138 exit 0 | |
139 fi | |
140 | |
141 # LGB: Some inital help | |
142 | |
143 echo "You can get detailed help on configure with: $0 --help" | |
144 echo "Please wait while ./configure discovers your software and hardware environment!" | |
145 | |
146 # LGB: temporary files | |
147 | |
4 | 148 TMPC="mplayer-conf-${RANDOM}-$$-${RANDOM}.c" |
149 TMPO="mplayer-conf-${RANDOM}-$$-${RANDOM}.o" | |
1 | 150 |
4 | 151 if [ ! -z $TMPDIR ]; then |
152 TMPC="${TMPDIR}/${TMPC}" | |
153 TMPO="${TMPDIR}/${TMPO}" | |
154 elif [ ! -z $TEMPDIR ]; then | |
155 TMPC="${TEMPDIR}/${TMPC}" | |
156 TMPO="${TEMPDIR}/${TMPO}" | |
157 else | |
158 TMPC="/tmp/${TMPC}" | |
159 TMPO="/tmp/${TMPO}" | |
160 fi | |
1 | 161 |
162 # --- | |
163 | |
164 # config files | |
165 CCONF='config.h' | |
166 MCONF='config.mak' | |
167 | |
196 | 168 # --- Check for C compiler: |
169 | |
170 _cc=gcc | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
171 _x11=auto |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
172 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
173 _x11libdir= |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
174 if [ -e /usr/X11R6 ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
175 _x11libdir=-L/usr/X11R6/lib |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
176 else |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
177 if [ -e /usr/X11 ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
178 _x11libdir=-L/usr/X11/lib |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
179 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
180 fi |
196 | 181 |
990 | 182 _skip_cc_check=no |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
183 _sdlconfig='sdl-config' |
990 | 184 |
196 | 185 for ac_option |
186 do | |
187 case "$ac_option" in | |
188 --cc=*) | |
189 _cc=`echo $ac_option | cut -d '=' -f 2` | |
190 ;; | |
990 | 191 --disable-gcc-checking) |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
192 _skip_cc_check=yes |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
193 ;; |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
194 --with-x11libdir=*) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
195 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
196 ;; |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
197 --enable-x11) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
198 _x11=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
199 ;; |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
200 --disable-x11) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
201 _x11=no |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
202 ;; |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
203 --with-sdl-config=*) |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
204 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
205 ;; |
196 | 206 esac |
207 done | |
208 | |
990 | 209 # Checking CC version... what's with egcs, pgcc? - Atmos |
210 if test "$_skip_cc_check" != "yes"; then | |
211 echo -n "Checking version of $_cc ... " | |
987 | 212 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
213 case $cc_version in | |
214 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; | |
215 2.95.[2-9]|3.[0-9]) | |
216 cc_version="$cc_version, ok";; | |
217 *) cc_version="$cc_version, bad"; cc_verc_fail=yes;; | |
218 esac | |
219 echo "$cc_version" | |
220 if ! test -z "$cc_verc_fail"; then | |
221 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" | |
222 exit | |
223 fi | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
224 fi |
990 | 225 if test "$_skip_cc_check" = "yes"; then |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
226 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
227 fi |
1 | 228 # --- |
229 | |
230 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | |
231 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` | |
232 if [ -z "$pparam" ]; then | |
233 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2` | |
234 fi | |
235 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
236 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
819 | 237 pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2` |
1 | 238 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
239 | |
240 _mmx=no | |
350 | 241 _mmx2=no |
1 | 242 _3dnow=no |
734 | 243 _3dnowex=no |
1 | 244 _mtrr=no |
245 _sse=no | |
525 | 246 |
1 | 247 _mga=no |
248 _gl=no | |
249 _sdl=no | |
250 _xv=no | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
251 _vm=no |
525 | 252 _xdpms=no |
1 | 253 _3dfx=no |
254 _syncfb=no | |
255 _mlib=no | |
256 _mpg123=no | |
257 _xmga=no | |
11 | 258 _dga=no |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
259 _dga2=no |
287 | 260 _svga=no |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
261 _fbdev=yes |
1 | 262 _lirc=no |
525 | 263 _css=no |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
264 _dshow=yes |
642 | 265 _fastmemcpy=yes |
1 | 266 |
267 _x=1 | |
268 _y=1 | |
269 | |
270 _gllib= | |
271 _sdllib= | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
272 _xvlib= |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
273 _x11lib= |
1 | 274 |
463 | 275 _select='#define HAVE_AUDIO_SELECT' |
276 | |
723 | 277 _gui=no; |
278 | |
1004 | 279 _alsa=yes |
280 | |
1 | 281 for i in `echo $pparam`; do |
282 | |
283 case "$i" in | |
284 3dnow) | |
285 _3dnow=yes | |
286 _mpg123=yes | |
287 ;; | |
734 | 288 3dnowext) |
289 _3dnow=yes | |
290 _3dnowex=yes | |
291 _mpg123=yes | |
292 ;; | |
1 | 293 mmx) |
294 _mmx=yes | |
295 ;; | |
350 | 296 mmxext) |
297 _mmx2=yes | |
298 ;; | |
1 | 299 mtrr) |
300 _mtrr=yes | |
301 ;; | |
302 k6_mtrr) | |
303 _mtrr=yes | |
304 ;; | |
305 xmm) | |
306 _sse=yes | |
356 | 307 _mmx2=yes |
1 | 308 ;; |
309 sse) | |
310 _sse=yes | |
356 | 311 _mmx2=yes |
1 | 312 ;; |
313 kni) | |
314 _sse=yes | |
356 | 315 _mmx2=yes |
1 | 316 ;; |
317 esac | |
318 | |
319 done | |
320 | |
321 | |
322 _win32libdirnotify=no | |
323 if [ -e /usr/lib/win32 ]; then | |
324 _win32libdir=/usr/lib/win32 | |
325 else | |
326 if [ -e /usr/local/lib/win32 ]; then | |
327 _win32libdir=/usr/local/lib/win32 | |
328 else | |
329 # This is our default: | |
330 _win32libdir=/usr/lib/win32 | |
331 _win32libdirnotify=yes | |
332 fi | |
333 fi | |
334 | |
335 | |
336 if [ -e /dev/mga_vid ]; then | |
337 _mga=yes | |
338 _syncfb=yes | |
339 fi | |
340 | |
341 proc=pentium | |
849 | 342 iproc=586 |
1 | 343 |
344 case "$pvendor" in | |
345 AuthenticAMD) | |
346 case "$pfamily" in | |
347 3) | |
348 proc=i386 | |
849 | 349 iproc=386 |
1 | 350 ;; |
351 4) | |
352 proc=i486 | |
849 | 353 iproc=486 |
1 | 354 ;; |
355 5) | |
356 if [ $pmodel -ge 6 ]; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 | |
357 proc=k6 | |
358 else | |
359 proc=k5 | |
360 fi | |
849 | 361 iproc=586 |
1 | 362 ;; |
363 6|7) # LGB: Though it seems Athlon CPUs returns with "6" | |
364 proc=k7 | |
849 | 365 iproc=686 |
1 | 366 ;; |
367 *) | |
368 proc=pentium | |
849 | 369 iproc=586 |
1 | 370 ;; |
371 esac | |
372 ;; | |
373 GenuineIntel) | |
374 case "$pfamily" in | |
375 3) | |
376 proc=i386 | |
849 | 377 iproc=386 |
1 | 378 ;; |
379 4) | |
380 proc=i486 | |
849 | 381 iproc=486 |
1 | 382 ;; |
383 5) | |
384 proc=pentium | |
849 | 385 iproc=586 |
1 | 386 ;; |
387 6) | |
388 proc=i686 | |
849 | 389 iproc=686 |
1 | 390 ;; |
391 *) | |
392 proc=pentium | |
849 | 393 iproc=586 |
1 | 394 ;; |
395 esac | |
396 ;; | |
397 unknown) # added by Gabucino - upon Tibcu's request | |
398 case "$pfamily" in | |
399 3) | |
400 proc=i386 | |
849 | 401 iproc=386 |
1 | 402 ;; |
403 4) | |
404 proc=i486 | |
849 | 405 iproc=486 |
1 | 406 ;; |
407 *) | |
408 proc=pentium | |
849 | 409 iproc=586 |
1 | 410 ;; |
411 esac | |
412 ;; | |
413 *) | |
414 proc=pentium | |
849 | 415 iproc=586 |
1 | 416 ;; |
417 esac | |
418 | |
419 # --- | |
420 | |
421 cat > $TMPC << EOF | |
422 int main( void ) { return 0; } | |
423 EOF | |
424 | |
425 # check that gcc supports our cpu, if not, fallback to pentium | |
426 # LGB: check -mcpu and -march swithing step by step with enabling | |
427 # to fall back till 386. | |
428 | |
429 #echo -n "Checking your GCC CPU optimalization abilities: " | |
430 if [ "$proc" = "k7" ]; then | |
431 # echo -n "trying k7 " | |
196 | 432 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=athlon |
1 | 433 fi |
434 if [ "$proc" = "athlon" ]; then | |
435 # echo -n "trying athlon " | |
196 | 436 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k6 |
1 | 437 fi |
438 if [ "$proc" = "k6" ]; then | |
439 # echo -n "trying k6 " | |
196 | 440 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k5 |
1 | 441 fi |
442 if [ "$proc" = "k5" ]; then | |
443 # echo -n "trying k5 " | |
196 | 444 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 445 fi |
446 if [ "$proc" = "i686" ]; then | |
447 # echo -n "trying i686 " | |
196 | 448 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentiumpro |
1 | 449 fi |
450 if [ "$proc" = "pentiumpro" ]; then | |
451 # echo -n "trying pentiumpro " | |
196 | 452 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 453 fi |
454 if [ "$proc" = "pentium" ]; then | |
455 # echo -n "trying pentium " | |
196 | 456 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i486 |
1 | 457 fi |
458 if [ "$proc" = "i486" ]; then | |
459 # echo -n "trying i486 " | |
196 | 460 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i386 |
1 | 461 fi |
462 if [ "$proc" = "i386" ]; then | |
463 # echo -n "trying i386 " | |
196 | 464 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=error |
1 | 465 fi |
466 if [ "$proc" = "error" ]; then | |
467 echo | |
468 echo "Your gcc does not support even \"i386\" for '-march' and '-mcpu'." >&2 | |
469 rm -f $TMPC $TMPO | |
470 exit | |
471 fi | |
472 #echo "DONE (${proc})." | |
473 | |
474 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
475 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes |
1 | 476 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
477 $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ |
1 | 478 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } |
479 | |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
480 # Atmosfear: added SDL versioncheck and autodetect; removed warnings. |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
481 _sdl=no |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
482 if $_cc $TMPC -o $TMPO `$_sdlconfig --libs` &> /dev/null ; then |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
483 if test `$_sdlconfig --version | sed s/[=[:punct:]=]//g` -gt 116 ; then |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
484 if test `$_sdlconfig --version | sed s/[=[:punct:]=]//g` -lt 121 ; then |
704 | 485 _sdlbuggy='#define BUGGY_SDL' |
486 else | |
487 _sdlbuggy='#undef BUGGY_SDL' | |
488 fi | |
558
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
489 _sdl=yes |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
490 else |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
491 _sdl=outdated |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
492 fi |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
493 fi |
1 | 494 |
661 | 495 # Atmosfear: added libcss autodetect |
496 _css=no | |
497 if test -e "/usr/local/lib/libcss.so" ; then | |
498 _csslibdir="/usr/local/lib/" | |
499 if test -e "/usr/local/include/css.h" ; then | |
500 _cssincdir="/usr/local/include" | |
501 _css=yes | |
710 | 502 fi |
503 else | |
504 if test -e "/usr/lib/libcss.so" ; then | |
505 _csslibdir="/usr/lib/" | |
661 | 506 if test -e "/usr/include/css.h" ; then |
507 _cssincdir="/usr/include/" | |
508 _css=yes | |
509 fi | |
710 | 510 fi |
661 | 511 fi |
512 | |
1 | 513 _termcap=no |
196 | 514 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
1 | 515 |
525 | 516 _png=no |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
517 $_cc $TMPC -o $TMPO -lpng -lz&> /dev/null && _png=yes |
525 | 518 |
1 | 519 _binutils=no |
520 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | |
521 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
522 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
523 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
524 if [ $_x11 = auto ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
525 _x11=no |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
526 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
527 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
528 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
529 if [ $_x11 = yes ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
530 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
531 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes |
525 | 532 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv &> /dev/null && _xv=yes |
590 | 533 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm &> /dev/null && _vm=yes |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
534 |
525 | 535 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null && _gl=yes |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
536 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
537 cat > $TMPC << EOF |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
538 #include <GL/gl.h> |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
539 int main( void ) { return 0; } |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
540 EOF |
525 | 541 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null || \ |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
542 { _gl=no; echo "GL includes not found!";} |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
543 |
59 | 544 cat > $TMPC << EOF |
545 #include <stdio.h> | |
546 #include <X11/Xlib.h> | |
547 #include <X11/extensions/xf86dga.h> | |
548 int main (void) { return 0;} | |
549 EOF | |
550 | |
196 | 551 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes |
59 | 552 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
553 # not needed for DGA, AFAIK every distribution packages together with DGA | |
554 # stuffs named 'X extensions' or something similar. This check can be usefull | |
555 # for further mplayer versions to set resolution by mplayer itself. | |
556 # If you run into problems, remove '-lXxf86vm'. | |
557 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
558 # Check if DGA is 2.0 or greater |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
559 cat > $TMPC << EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
560 #include <stdio.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
561 #include <X11/Xlib.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
562 #include <X11/extensions/xf86dga.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
563 int main (void) { XDGAMode mode; XDGADevice device; return 0;} |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
564 EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
565 |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
566 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
567 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
568 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
569 fi |
1 | 570 |
571 rm -f $TMPC $TMPO | |
572 | |
573 # --- | |
574 | |
1004 | 575 cat > $TMPC << EOF |
576 #include <sys/asoundlib.h> | |
577 #include <soundcard.h> | |
578 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } | |
579 EOF | |
580 | |
581 _alsaver='not found' | |
582 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no | |
583 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } | |
584 | |
585 if [ $_alsaver == 'not found' ]; then | |
586 cat > $TMPC << EOF | |
587 #include <sys/asoundlib.h> | |
588 #include <soundcard.h> | |
589 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } | |
590 EOF | |
591 | |
592 _alsaver='not found' | |
593 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no | |
594 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } | |
595 fi | |
596 | |
597 # --- | |
598 | |
1 | 599 # check for the parameters. |
600 | |
912 | 601 _prefix="/usr/local" |
602 | |
1 | 603 for ac_option |
604 do | |
605 case "$ac_option" in | |
717 | 606 --enable-profile) |
607 _profile='-p' | |
608 ;; | |
711
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
609 --enable-debug) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
610 _debug='-g' |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
611 ;; |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
612 --enable-debug=*) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
613 _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2` |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
614 ;; |
492 | 615 --enable-css) |
616 _css=yes | |
617 ;; | |
525 | 618 --enable-png) |
619 _png=yes | |
620 ;; | |
1 | 621 --enable-sse) |
622 _sse=yes | |
623 ;; | |
624 --enable-3dnow) | |
625 _3dnow=yes | |
626 ;; | |
734 | 627 --enable-3dnowex) |
628 _3dnow=yes | |
629 _3dnowex=yes | |
630 ;; | |
1 | 631 --enable-mmx) |
632 _mmx=yes | |
633 ;; | |
350 | 634 --enable-mmx2) |
635 _mmx2=yes | |
636 ;; | |
72 | 637 --enable-mtrr) |
638 _mtrr=yes | |
639 ;; | |
1 | 640 --enable-gl) |
641 _gl=yes | |
642 ;; | |
643 --enable-sdl) | |
644 _sdl=yes | |
645 ;; | |
646 --enable-mga) | |
647 _mga=yes | |
648 ;; | |
649 --enable-xmga) | |
650 _xmga=yes | |
651 ;; | |
287 | 652 --enable-svga) |
653 _svga=yes | |
654 ;; | |
11 | 655 --enable-dga) |
656 _dga=yes | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
657 ;; |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
658 --enable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
659 _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
660 ;; |
1 | 661 --enable-xv) |
662 _xv=yes | |
663 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
664 --enable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
665 _vm=yes |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
666 ;; |
1 | 667 --enable-3dfx) |
668 _3dfx=yes | |
669 ;; | |
670 --enable-syncfb) | |
671 _syncfb=yes | |
672 ;; | |
225 | 673 --enable-fbdev) |
674 _fbdev=yes | |
675 ;; | |
1 | 676 --enable-mlib) |
677 _mlib=yes | |
678 ;; | |
679 --enable-termcap) | |
680 _termcap=yes | |
681 ;; | |
682 --enable-xmmp) | |
683 _xmmp=yes | |
684 ;; | |
685 --enable-lirc) | |
686 _lirc=yes | |
687 ;; | |
463 | 688 --enable-select) |
689 _select='#define HAVE_AUDIO_SELECT' | |
690 ;; | |
723 | 691 --enable-gui) |
692 _gui=yes | |
693 ;; | |
492 | 694 --disable-css) |
695 _css=no | |
696 ;; | |
525 | 697 --disable-png) |
698 _png=no | |
699 ;; | |
1 | 700 --disable-sse) |
701 _sse=no | |
702 ;; | |
703 --disable-3dnow) | |
704 _3dnow=no | |
734 | 705 _3dnowex=no |
706 ;; | |
707 --disable-3dnowex) | |
708 _3dnowex=no | |
1 | 709 ;; |
710 --disable-mmx) | |
711 _mmx=no | |
350 | 712 _mmx2=no |
1 | 713 ;; |
696 | 714 --disable-mmx2) |
715 _mmx2=no | |
716 ;; | |
72 | 717 --disable-mtrr) |
718 _mtrr=no | |
719 ;; | |
1 | 720 --disable-gl) |
721 _gl=no | |
722 ;; | |
723 --disable-sdl) | |
724 _sdl=no | |
725 ;; | |
726 --disable-mga) | |
727 _mga=no | |
728 ;; | |
729 --disable-xmga) | |
730 _xmga=no | |
731 ;; | |
732 --disable-xv) | |
733 _xv=no | |
734 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
735 --disable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
736 _vm=no |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
737 ;; |
1 | 738 --disable-mlib) |
739 _mlib=no | |
740 ;; | |
287 | 741 --disable-svga) |
742 _svga=no | |
743 ;; | |
59 | 744 --disable-dga) |
745 _dga=no | |
746 ;; | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
747 --disable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
748 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
749 ;; |
225 | 750 --disable-fbdev) |
751 _fbdev=no | |
752 ;; | |
1 | 753 --disable-termcap) |
754 _termcap=no | |
755 ;; | |
463 | 756 --disable-select) |
757 _select='#undef HAVE_AUDIO_SELECT' | |
758 ;; | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
759 --disable-dshow) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
760 _dshow=no |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
761 ;; |
642 | 762 --disable-fastmemcpy) |
763 _fastmemcpy=no | |
764 ;; | |
723 | 765 --disable-gui) |
766 _gui=no | |
767 ;; | |
1004 | 768 --disable-alsa) |
769 _alsaver='not found' | |
770 _alsa=no | |
771 ;; | |
1 | 772 --with-win32libdir=*) |
773 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
11 | 774 _win32libdirnotify=no |
1 | 775 ;; |
492 | 776 --with-csslibdir=*) |
777 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
778 _css='yes'; | |
779 ;; | |
780 --with-cssincdir=*) | |
781 _cssincdir=`echo $ac_option | cut -d '=' -f 2` | |
782 _css='yes'; | |
783 ;; | |
1 | 784 --size-x=*) |
785 _x=`echo $ac_option | cut -d '=' -f 2` | |
786 ;; | |
787 --size-y=*) | |
788 _y=`echo $ac_option | cut -d '=' -f 2` | |
789 ;; | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
790 --with-x11libdir=*) |
912 | 791 ;; |
792 --prefix=*) | |
793 _prefix=`echo $ac_option | cut -d '=' -f 2` | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
794 ;; |
196 | 795 --cc=*) |
796 ;; | |
1 | 797 esac |
798 done | |
799 | |
987 | 800 # Checking as compatibility... |
990 | 801 echo -n "Checking assembler (as) ... " |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
802 cat > astest.S <<EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
803 filds -2(%ebp) |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
804 EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
805 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
987 | 806 if [ $_mmx = 'yes' ]; then |
807 cat > astest.S <<EOF | |
808 emms | |
809 EOF | |
810 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
811 fi | |
812 if [ $_3dnow = 'yes' ]; then | |
813 cat >> astest.S <<EOF | |
814 femms | |
815 EOF | |
816 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
817 fi | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
818 if [ $_3dnowex = 'yes' ]; then |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
819 cat >> astest.S <<EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
820 pswapd %mm0, %mm0 |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
821 EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
822 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
823 fi |
987 | 824 if [ $_mmx2 = 'yes' ]; then |
825 cat >> astest.S <<EOF | |
826 movntq %mm0, (%eax) | |
827 EOF | |
828 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
829 fi | |
830 if [ $_sse = 'yes' ]; then | |
831 cat >> astest.S <<EOF | |
832 xorps %xmm0, %xmm0 | |
833 EOF | |
834 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
835 rm -f astest.S astest.o | |
836 fi | |
990 | 837 if test "$as_verc_fail" != "yes"; then |
838 echo "ok" | |
839 else | |
840 echo "failed" | |
841 echo "Please upgrade binutils..." # to which version? - Atmos | |
842 exit | |
987 | 843 fi |
844 | |
845 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
846 if [ $_x11 = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
847 if [ $_mga = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
848 _xmga=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
849 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
850 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
851 |
1 | 852 # to screen. |
887 | 853 echo -n "Kernel: " |
854 uname -a | |
912 | 855 echo "Install prefix: $_prefix" |
1 | 856 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
857 echo "Checking for cpu type ... $pname" | |
858 echo "Optimizing to ... $proc" | |
859 echo "Checking for mmx support ... $_mmx" | |
350 | 860 echo "Checking for mmx2 support ... $_mmx2" |
1 | 861 echo "Checking for 3dnow support ... $_3dnow" |
734 | 862 echo "Checking for 3dnowex support ... $_3dnowex" |
1 | 863 echo "Checking for sse support ... $_sse" |
864 echo "Checking for mtrr support ... $_mtrr" | |
865 echo "Screen size ... ${_x}x${_y}" | |
866 echo "Checking for X11 libs ... $_x11libdir" | |
867 echo "Checking mga_vid device ... $_mga" | |
868 echo "Checking for xmga ... $_xmga" | |
869 echo "Checking for SDL ... $_sdl" | |
870 echo "Checking for OpenGL ... $_gl" | |
871 echo "Checking for Xv ... $_xv" | |
872 echo "Checking for X11 ... $_x11" | |
59 | 873 echo "Checking for DGA ... $_dga" |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
874 echo "Checking for DGA 2.0 .. $_dga2" |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
875 echo "Checking for Xf86VM ... $_vm" |
287 | 876 echo "Checking for SVGAlib ... $_svga" |
225 | 877 echo "Checking for FBDev ... $_fbdev" |
492 | 878 echo "Checking for DeCSS support ... $_css" |
525 | 879 echo "Checking for PNG support ... $_png" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
880 echo "Checking for DirectShow ... $_dshow" |
642 | 881 echo "Checking for fastmemcpy ... $_fastmemcpy" |
1004 | 882 echo "Checking for alsa ... $_alsaver" |
1 | 883 # write conf files. |
884 | |
885 if [ $_gl = yes ]; then | |
886 _gllib='-lGL' | |
887 fi | |
888 | |
492 | 889 if [ $_css = yes ]; then |
890 if [ ! -z $_csslibdir ]; then | |
891 _csslib="-L${_csslibdir} -lcss" | |
892 else | |
893 _csslib='-lcss' | |
894 fi | |
895 _css='#define HAVE_LIBCSS' | |
896 if [ ! -z $_cssincdir ]; then | |
897 _cssinc="-I${_cssincdir}" | |
898 else | |
899 _cssinc="" | |
900 fi | |
901 else | |
902 _css='#undef HAVE_LIBCSS' | |
903 _csslib='' | |
904 _cssinc='' | |
905 fi | |
906 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
907 if [ $_dshow = yes ]; then |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
908 _dshowlib='-Lloader/DirectShow -lDS_Filter -lstdc++' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
909 _dshowdep='loader/DirectShow/libDS_Filter.a' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
910 _dshow='#define USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
911 else |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
912 _dshowlib='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
913 _dshowdep='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
914 _dshow='#undef USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
915 fi |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
916 |
642 | 917 if [ $_fastmemcpy = yes ]; then |
918 _fastmemcpy='#define USE_FASTMEMCPY' | |
919 else | |
920 _fastmemcpy='#undef USE_FASTMEMCPY' | |
921 fi | |
922 | |
1 | 923 if [ $_x11 = yes ]; then |
330 | 924 if [ $_xdpms = yes ]; then |
925 _x11lib='-lX11 -lXext -lXdpms' | |
926 else | |
927 _x11lib='-lX11 -lXext' | |
928 fi | |
1 | 929 fi |
930 | |
931 if [ $_xv = yes ]; then | |
932 _xvlib='-lXv' | |
933 fi | |
934 | |
935 if [ $_sdl = yes ]; then | |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
936 _sdllib=`$_sdlconfig --libs` |
1 | 937 fi |
938 | |
14 | 939 if [ $_dga = yes ]; then |
940 _dgalib='-lXxf86dga' | |
941 fi | |
942 | |
287 | 943 if [ $_svga = yes ]; then |
289 | 944 _svgalib='-lvgagl -lvga' |
287 | 945 fi |
946 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
947 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
948 _vmlib='-lXxf86vm' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
949 fi |
14 | 950 |
1 | 951 if [ "$_termcap" = "yes" ]; then |
952 _termcap='#define USE_TERMCAP' | |
953 _libtermcap='-ltermcap' | |
954 else | |
955 _termcap='#undef USE_TERMCAP' | |
956 _libtermcap='' | |
957 fi | |
958 | |
959 if [ "$_xmmp" = "yes" ]; then | |
960 _xmmpaudio='#define USE_XMMP_AUDIO' | |
961 _xmmplibs='-Llibxmm -lxmm' | |
962 else | |
963 _xmmpaudio='#undef USE_XMMP_AUDIO' | |
964 fi | |
965 | |
966 if [ "$_lirc" = "yes" ]; then | |
967 _lircdefs='#define HAVE_LIRC' | |
968 _lirclibs='-llirc_client' | |
969 else | |
970 _lircdefs='#undef HAVE_LIRC' | |
971 _lirclibs='' | |
972 fi | |
973 | |
525 | 974 if [ $_png = yes ]; then |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
975 _libpng='-lpng -lz' |
525 | 976 fi |
1 | 977 |
697 | 978 # Checking for CFLAGS |
717 | 979 if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then |
980 CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile" | |
981 else | |
982 if test -z "$CFLAGS"; then | |
983 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" | |
697 | 984 fi |
717 | 985 fi |
1 | 986 echo |
987 echo "Creating $MCONF" | |
988 cat > $MCONF << EOF | |
989 | |
990 # -------- Generated by ./configure ----------- | |
991 | |
992 AR=ar | |
196 | 993 CC=$_cc |
518 | 994 X11DIR=$_x11libdir |
717 | 995 # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
697 | 996 OPTFLAGS=$CFLAGS |
14 | 997 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
525 | 998 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng |
1 | 999 TERMCAP_LIB=$_libtermcap |
1000 XMM_LIBS = $_xmmplibs | |
1001 LIRC_LIBS = $_lirclibs | |
492 | 1002 CSS_LIB = $_csslib |
1003 CSS_INC = $_cssinc | |
1 | 1004 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1005 DS_DEP = $_dshowdep |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1006 DS_LIB = $_dshowlib |
912 | 1007 prefix = $_prefix |
958
162a78d3cc08
FreeBSD support by Vladimir Kushnir vkushnir@Alfacom.net
arpi_esp
parents:
947
diff
changeset
|
1008 ARCH_LIBS = -ldl -lpthread |
1 | 1009 |
1010 EOF | |
1011 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | |
1012 | |
1013 echo "Creating $CCONF" | |
1014 | |
1015 if [ "$_mmx" = "yes" ]; then | |
1016 _mmx='#define HAVE_MMX' | |
1017 else | |
1018 _mmx='#undef HAVE_MMX' | |
1019 fi | |
1020 | |
350 | 1021 if [ "$_mmx2" = "yes" ]; then |
1022 _mmx2='#define HAVE_MMX2' | |
1023 else | |
1024 _mmx2='#undef HAVE_MMX2' | |
1025 fi | |
1026 | |
1 | 1027 if [ $_3dnow = yes ]; then |
1028 _3dnowm='#define HAVE_3DNOW' | |
1029 else | |
1030 _3dnowm='#undef HAVE_3DNOW' | |
1031 fi | |
1032 | |
734 | 1033 if [ $_3dnowex = yes ]; then |
1034 _3dnowexm='#define HAVE_3DNOWEX' | |
1035 else | |
1036 _3dnowexm='#undef HAVE_3DNOWEX' | |
1037 fi | |
1038 | |
1 | 1039 if [ $_sse = yes ]; then |
1040 _ssem='#define HAVE_SSE' | |
1041 else | |
1042 _ssem='#undef HAVE_SSE' | |
1043 fi | |
1044 | |
1045 # --- | |
1046 | |
1047 _vosrc='' | |
965 | 1048 _aosrc='' |
1 | 1049 |
525 | 1050 if [ $_png = yes ]; then |
1051 _png='#define HAVE_PNG' | |
1052 _vosrc=$_vosrc' vo_png.c' | |
1053 else | |
1054 _png='#undef HAVE_PNG' | |
1055 fi | |
1056 | |
1057 | |
1 | 1058 if [ $_mlib = yes ]; then |
1059 _mlib='#define HAVE_MLIB' | |
1060 _vosrc=$_vosrc' yuv2rgb_mlib.c' | |
1061 else | |
1062 _mlib='#undef HAVE_MLIB' | |
1063 fi | |
1064 | |
1065 # --- | |
1066 | |
1067 if [ $_gl = yes ]; then | |
1068 _gl='#define HAVE_GL' | |
1069 _vosrc=$_vosrc' vo_gl.c' | |
1070 else | |
1071 _gl='#undef HAVE_GL' | |
1072 fi | |
1073 | |
1074 if [ $_sdl = yes ]; then | |
1075 _sdldef='#define HAVE_SDL' | |
1076 _vosrc=$_vosrc' vo_sdl.c' | |
965 | 1077 _aosrc=$_aosrc' ao_sdl.c' |
1 | 1078 else |
1079 _sdldef='#undef HAVE_SDL' | |
1080 fi | |
1081 | |
1082 if [ $_x11 = yes ]; then | |
1083 _x11='#define HAVE_X11' | |
1084 _vosrc=$_vosrc' vo_x11.c' | |
1085 else | |
1086 _x11='#undef HAVE_X11' | |
1087 fi | |
1088 | |
1089 if [ $_xv = yes ]; then | |
1090 _xv='#define HAVE_XV' | |
1091 _vosrc=$_vosrc' vo_xv.c' | |
1092 else | |
1093 _xv='#undef HAVE_XV' | |
1094 fi | |
1095 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1096 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1097 _vm='#define HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1098 else |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1099 _vm='#undef HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1100 fi |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1101 |
1 | 1102 # --- |
1103 | |
1104 if [ $_mga = yes ]; then | |
1105 _mga='#define HAVE_MGA' | |
1106 _vosrc=$_vosrc' vo_mga.c' | |
1107 else | |
1108 _mga='#undef HAVE_MGA' | |
1109 fi | |
1110 if [ $_xmga = yes ]; then | |
1111 _vosrc=$_vosrc' vo_xmga.c' | |
1112 fi | |
1113 | |
1114 if [ $_syncfb = yes ]; then | |
1115 _syncfb='#define HAVE_SYNCFB' | |
1116 _vosrc=$_vosrc' vo_syncfb.c' | |
1117 else | |
1118 _syncfb='#undef HAVE_SYNCFB' | |
1119 fi | |
1120 | |
1121 if [ $_3dfx = yes ]; then | |
1122 _3dfx='#define HAVE_3DFX' | |
1123 _vosrc=$_vosrc' vo_3dfx.c' | |
1124 else | |
1125 _3dfx='#undef HAVE_3DFX' | |
1126 fi | |
1127 | |
287 | 1128 if [ $_svga = yes ]; then |
1129 _svga='#define HAVE_SVGALIB' | |
1130 _vosrc=$_vosrc' vo_svga.c' | |
1131 else | |
1132 _svga='#undef HAVE_SVGALIB' | |
1133 fi | |
1134 | |
11 | 1135 if [ $_dga = yes ]; then |
1136 _dga='#define HAVE_DGA' | |
38 | 1137 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
11 | 1138 else |
1139 _dga='#undef HAVE_DGA' | |
1140 fi | |
1141 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1142 if [ $_dga2 = yes ]; then |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1143 _dga2='#define HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1144 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1145 else |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1146 _dga2='#undef HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1147 fi |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1148 |
225 | 1149 if [ $_fbdev = yes ]; then |
1150 _fbdev='#define HAVE_FBDEV' | |
1151 _vosrc=$_vosrc' vo_fbdev.c' | |
1152 else | |
1153 _fbdev='#undef HAVE_FBDEV' | |
1154 fi | |
1155 | |
1 | 1156 if [ $_mpg123 = yes ]; then |
1157 _mpg123='#define DEFAULT_MPG123' | |
1158 else | |
1159 _mpg123='#undef DEFAULT_MPG123' | |
1160 fi | |
1161 | |
723 | 1162 if [ $_gui = yes ]; then |
1163 _gui='#define HAVE_GUI' | |
1164 else | |
1165 _gui='#undef HAVE_GUI' | |
1166 fi | |
1167 | |
1004 | 1168 if [ $_alsaver != 'not found' ]; then |
1008 | 1169 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } |
1004 | 1170 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } |
1008 | 1171 else |
1172 _alsa=' ' | |
1004 | 1173 fi |
1174 | |
1 | 1175 cat > $CCONF << EOF |
1176 | |
1177 /* -------- Generated by ./configure ----------- */ | |
1178 | |
1179 /* Define this to enable avg. byte/sec-based AVI sync method by default: | |
1180 (use -bps or -nobps commandline option for run-time method selection) */ | |
1181 #undef AVI_SYNC_BPS | |
1182 | |
1183 /* Undefine this if you want soundcard-only timing by default: | |
1184 You can still change this with the -alsa or -noalsa command-line option! | |
1185 (This function was originally impemented to solve ALSA driver's big | |
1186 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
1187 #define ALSA_TIMER | |
1188 | |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1189 /* Undefine this if you don't want to select mono audio (left or right) |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1190 with a stereo MPEG layer 2/3 audio stream. The command-line option |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1191 -stereo has three possible values (0 for stereo, 1 for left-only, 2 for |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1192 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1193 */ |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1194 #define USE_FAKE_MONO |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1195 |
1 | 1196 /* Undefine this if your soundcard driver has no working select(). |
1197 If you have kernel Oops, player hangups, or just no audio, you should | |
1198 try to recompile MPlayer with this option disabled! */ | |
463 | 1199 $_select |
1 | 1200 |
1201 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | |
1202 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | |
1203 (with mmx/sse optimizations) | |
1204 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | |
1205 $_mpg123 | |
1206 | |
1207 /* XMMP support: (test code) */ | |
1208 $_xmmpaudio | |
1209 #define LIBDIR "/usr/local/lib" | |
1210 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | |
1211 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | |
1212 | |
755 | 1213 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
1214 #define MAX_OUTBURST 65536 | |
1215 | |
586 | 1216 /* set up audio OUTBURST. Do not change this! */ |
1217 #ifdef USE_XMMP_AUDIO | |
1218 #define OUTBURST 4096 | |
1219 #else | |
1220 //#define OUTBURST 1024 | |
1221 #define OUTBURST 512 | |
1222 #endif | |
1223 | |
1 | 1224 /* LIRC (remote control, see www.lirc.org) support: */ |
1225 $_lircdefs | |
1226 | |
492 | 1227 /* DeCSS support using libcss */ |
1228 $_css | |
1229 | |
41 | 1230 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
1231 #define MPEG12_POSTPROC | |
1232 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1233 /* DirectShow support */ |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1234 $_dshow |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1235 |
642 | 1236 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
1237 $_fastmemcpy | |
1238 | |
723 | 1239 /* gui support, please do not edit this option */ |
1240 $_gui | |
1004 | 1241 #define PREFIX "$_prefix" |
723 | 1242 |
1008 | 1243 /* ALSA support */ |
1244 $_alsa | |
1245 | |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1246 /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */ |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1247 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1248 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1249 |
1 | 1250 /* Define if your processor stores words with the most significant |
1251 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
1252 /* #define WORDS_BIGENDIAN */ | |
1253 | |
1254 #define ARCH_X86 | |
1255 | |
849 | 1256 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
1257 #define __CPU__ $iproc | |
1258 | |
1259 /*---------------------------------------------------------------------------- | |
1260 ** | |
1261 ** NOTE: Instead of modifying these definitions here, use the | |
1262 ** --enable/--disable options of the ./configure script! | |
1263 ** See ./configure --help for details. | |
1264 ** | |
1265 *---------------------------------------------------------------------------*/ | |
1 | 1266 |
1267 /* termcap flag for getch2.c */ | |
1268 $_termcap | |
525 | 1269 $_png |
1 | 1270 |
1271 /* Extension defines */ | |
1272 $_mlib // available only on solaris | |
1273 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | |
734 | 1274 $_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.) |
1 | 1275 $_mmx // only define if you have MMX |
350 | 1276 $_mmx2 // only define if you have MMX2 |
1 | 1277 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) |
1278 | |
1279 /* libvo options */ | |
1280 #define SCREEN_SIZE_X $_x | |
1281 #define SCREEN_SIZE_Y $_y | |
1282 $_x11 | |
1283 $_xv | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1284 $_vm |
1 | 1285 $_gl |
11 | 1286 $_dga |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1287 $_dga2 |
1 | 1288 $_sdldef |
704 | 1289 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
1290 $_sdlbuggy | |
1 | 1291 $_3dfx |
1292 $_mga | |
1293 $_syncfb | |
225 | 1294 $_fbdev |
287 | 1295 $_svga |
1 | 1296 |
23 | 1297 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1 | 1298 #define X11_FULLSCREEN |
1299 #endif | |
1300 | |
1301 EOF | |
1302 | |
1303 echo "Creating libvo/config.mak" | |
1304 | |
1305 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` | |
1306 | |
1307 cat > libvo/config.mak << EOF | |
1308 | |
1309 include ../config.mak | |
1310 | |
1311 OPTIONAL_SRCS=$_vosrc | |
1312 OPTIONAL_OBJS=$_voobj | |
1313 | |
1314 EOF | |
1315 | |
965 | 1316 echo "Creating libao2/config.mak" |
1317 | |
1318 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'` | |
1319 | |
1320 cat > libao2/config.mak << EOF | |
1321 | |
1322 include ../config.mak | |
1323 | |
1324 OPTIONAL_SRCS=$_aosrc | |
1325 OPTIONAL_OBJS=$_aoobj | |
1326 | |
1327 EOF | |
1328 | |
1 | 1329 echo "Creating libac3/config.mak" |
1330 | |
1331 if [ $_sse = yes ]; then | |
1332 _downmixc='downmix/downmix_kni.S' | |
1333 _downmixo='downmix/downmix_kni.o' | |
1334 else | |
825
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1335 if [ $_3dnow = yes ]; then |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1336 _downmixc='downmix/downmix_3dnow.S' |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1337 _downmixo='downmix/downmix_3dnow.o' |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1338 else |
1 | 1339 if [ $_binutils = yes ]; then |
1340 _downmixc='downmix/downmix_i386.S' | |
1341 _downmixo='downmix/downmix_i386.o' | |
1342 else | |
1343 _downmixc='downmix/downmix.c' | |
1344 _downmixo='downmix/downmix.o' | |
1345 cat << EOF | |
1346 | |
1347 !!! Warning! fallback to slow downmix.c due the old binutils. | |
1348 !!! Upgrade for better audio decoding performance. | |
1349 | |
1350 EOF | |
1351 fi | |
1352 fi | |
825
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1353 fi |
1 | 1354 cat > libac3/config.mak << EOF |
1355 | |
1356 include ../config.mak | |
1357 | |
1358 OPTIONAL_SRCS = $_downmixc | |
1359 OPTIONAL_OBJS = $_downmixo | |
1360 | |
1361 EOF | |
1362 | |
1363 echo "Creating mp3lib/config.mak" | |
1364 | |
734 | 1365 if [ $_3dnowex = yes ]; then |
787 | 1366 _mp3libobjectsrcs='dct36_k7.s dct64_k7.s decode_k7.s dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1367 _mp3libobjectobjs='dct36_k7.o dct64_k7.o decode_k7.o dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
734 | 1368 else |
1 | 1369 if [ $_3dnow = yes ]; then |
787 | 1370 _mp3libobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1371 _mp3libobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
1 | 1372 else |
787 | 1373 if [ $_sse = yes ]; then |
1374 _mp3libobjectsrcs='decode_sse.s' | |
1375 _mp3libobjectobjs='decode_sse.o' | |
1376 else | |
1377 _mp3libobjectsrcs= | |
1378 _mp3libobjectobjs= | |
1379 fi | |
1 | 1380 fi |
734 | 1381 fi |
1 | 1382 |
1383 cat > mp3lib/config.mak << EOF | |
1384 | |
1385 include ../config.mak | |
1386 | |
787 | 1387 OPTIONAL_SRCS = $_mp3libobjectsrcs |
1388 OPTIONAL_OBJS = $_mp3libobjectobjs | |
1 | 1389 |
1390 EOF | |
1391 | |
1392 cat << EOF | |
1393 | |
1394 Config files successfully generated by ./configure ! | |
1395 Please check config.h and config.mak files, tune CPU | |
1396 and optimization flags if you don't like these defaults. | |
1397 You can compile the program with 'make dep;make' and | |
1398 install with 'make install'. Good luck! | |
1399 | |
1400 EOF | |
1401 | |
1402 if [ $_mtrr = yes ]; then | |
1403 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" | |
1404 echo | |
1405 fi | |
1406 | |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1407 if [ $_sdl = outdated ]; then |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1408 echo "You have libSDL installed, but your version is outdated (earlier then" |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1409 echo "v.1.1.7), SDL support has been disabled please update, if you want to" |
965 | 1410 echo "use it (libSDL v1.1.8 and v1.2.0/1 are tested and known to work, recent" |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1411 echo "versions are available from http://www.libsdl.org/)." |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1412 echo "After updating you need to re-run ./configure and recompile to enable SDL." |
965 | 1413 echo "(If you only want to use SDLlib audio driver older versions might work, you" |
1414 echo "can use --enable-sdl to force using SDLlib)" | |
1 | 1415 echo |
1416 fi | |
1417 | |
1418 if [ $_win32libdirnotify = yes ]; then | |
1419 echo "Missing WIN32 codecs dir at $_win32libdir !" | |
1420 echo "Make it and copy DLL files to there! (You can get them from your windows" | |
1421 echo "directory or download ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip" | |
1422 else | |
1423 echo "Ok, Win32 codecs directory at $_win32libdir already exists." | |
1424 fi | |
1425 |