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