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