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