Mercurial > mplayer.hg
annotate configure @ 2993:734ad5d562ef
png detect bug fixed
author | pontscho |
---|---|
date | Mon, 19 Nov 2001 09:43:55 +0000 |
parents | ef58de7a942f |
children | b27e7c3158ab |
rev | line source |
---|---|
2463 | 1 #! /bin/sh |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
2 # |
2943 | 3 # Original version (C) 2000 Pontscho/fresh!mindworkz |
4 # pontscho@makacs.poliod.hu | |
2482 | 5 # |
2943 | 6 # History / Contributors: check the cvs log ! |
1618 | 7 # |
2943 | 8 # Cleanups all over the place (c) 2001 pl |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
9 # |
1258 | 10 # |
2943 | 11 # Guidelines: |
12 # If the option is named 'opt': | |
13 # _opt : should have a value in yes/no/auto | |
14 # _def_opt : '#define ... 1' or '#undef ...' that is: some C code | |
15 # _ld_opt : ' -L/path/dir -lopt ' that is: some GCC option | |
16 # _inc_opt : ' -I/path/dir/include ' | |
849 | 17 # |
2943 | 18 # GOTCHAS: |
19 # - config files are currently: | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
20 # config.h config.mak libvo/config.mak libao2/config.mak |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
21 # Gui/config.mak libvo2/config.mak |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
22 # - removed dvbincdir/madincdir/cssincdir: add them to extraincdir |
1 | 23 # |
2943 | 24 ############################################################################# |
1 | 25 |
2943 | 26 # Prefer these macros to full length text ! |
27 # These macros only return an error code - NO display is done | |
2193 | 28 cc_check() { |
2988 | 29 echo >> "$TMPLOG" |
2943 | 30 cat "$TMPC" >> "$TMPLOG" |
31 echo >> "$TMPLOG" | |
2988 | 32 echo "$_cc $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG" |
33 ( "$_cc" $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 | |
34 TMP="$?" | |
35 echo >> "$TMPLOG" | |
36 echo "ldd $TMPO" >> "$TMPLOG" | |
37 ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1 | |
38 echo >> "$TMPLOG" | |
39 return "$TMP" | |
2190 | 40 } |
41 | |
2943 | 42 # Display error message, flushes tempfile, exit |
2193 | 43 die () { |
2943 | 44 echo |
45 echo "Error: $@" >&2 | |
46 echo >&2 | |
47 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" | |
48 echo "Check "$TMPLOG" if you don't understand why it failed." | |
49 exit 1 | |
2190 | 50 } |
51 | |
2943 | 52 # OS test booleans functions |
2594 | 53 linux() { test "$system_name" = "Linux" ; return "$?" ; } |
54 sunos() { test "$system_name" = "SunOS" ; return "$?" ; } | |
55 irix() { test "$system_name" = "IRIX" ; return "$?" ; } | |
56 cygwin() { test "$system_name" = "CYGWIN" ; return "$?" ; } | |
57 freebsd() { test "$system_name" = "FreeBSD" ; return "$?" ; } | |
58 netbsd() { test "$system_name" = "NetBSD" ; return "$?" ; } | |
59 bsdos() { test "$system_name" = "BSD/OS" ; return "$?" ; } | |
60 openbsd() { test "$system_name" = "OpenBSD" ; return "$?" ; } | |
61 bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; } | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
62 qnx() { test "$system_name" = "QNX" ; return "$?" ; } |
2190 | 63 |
2943 | 64 # Use this before starting a check |
65 echocheck() { | |
66 echo "============ Checking for $@ ============" >> "$TMPLOG" | |
67 echo "$_echo_n" "Checking for $@ ... $_echo_c" | |
68 } | |
69 | |
70 # Use this to echo the results of a check | |
71 echores() { | |
2961 | 72 echo "Result is: $@" >> "$TMPLOG" |
2943 | 73 echo "##########################################" >> "$TMPLOG" |
74 echo "" >> "$TMPLOG" | |
75 echo "$@" | |
76 } | |
77 ############################################################################# | |
1 | 78 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
79 # Check how echo works in this /bin/sh |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
80 case `echo -n` in |
2943 | 81 -n) _echo_n='' _echo_c='\c' ;; # SysV echo |
82 *) _echo_n=-n _echo_c='' ;; # BSD echo | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
83 esac |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
84 |
2435 | 85 LANGUAGES=`echo help_mp-??.h | sed "s/help_mp-\(..\).h/\1/g"` |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
86 |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
87 for parm in "$@" ; do |
2435 | 88 if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then |
89 cat << EOF | |
90 | |
2943 | 91 Usage: $0 [OPTIONS]... |
1 | 92 |
2435 | 93 Configuration: |
94 -h, --help display this help and exit | |
1 | 95 |
2435 | 96 Installation directories: |
2190 | 97 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
98 --datadir=DIR use this prefix for installing machine independent | |
2943 | 99 data [/usr/local/share/mplayer] |
2435 | 100 |
101 Optional features: | |
102 --enable-largefiles enable support for files >2^32 bytes long [disable] | |
2945 | 103 --enable-termcap use termcap database for key codes [autodetect] |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
104 --enable-lirc enable LIRC (remote control) support [autodetect] |
2435 | 105 --enable-gui enable GUI [disable] |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
106 --enable-tv enable TV Interface (tv/dvb grabbers) [disable] |
2435 | 107 --disable-win32 disable Win32 DLL support [autodetect] |
108 --disable-dshow disable DirectShow support (if no C++ compiler and | |
2943 | 109 libs are available or find the dshow codecs slower |
2435 | 110 than the old VfW ones) [autodetect] |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
111 --disable-xanim disable XAnim DLL support [autodetect] |
2435 | 112 --enable-vorbis build with OggVorbis support [autodetect] |
113 --disable-iconv do not use iconv(3) function [autodetect] | |
114 | |
115 Video: | |
2190 | 116 --enable-gl build with OpenGL render support [autodetect] |
117 --enable-dga build with DGA support [autodetect] | |
118 --enable-svga build with SVGAlib support [autodetect] | |
119 --enable-sdl build with SDL render support [autodetect] | |
120 --enable-aa build with AAlib render support [autodetect] | |
121 --enable-ggi build with GGI render support [autodetect] | |
2644 | 122 --enable-dxr3 build with DXR3/H+ render support [autodetect] |
2727 | 123 --enable-dvb build with support for output via DVB-Card [autodetect] |
2943 | 124 --enable-mga build with mga_vid support |
2435 | 125 (check for /dev/mga_vid) [autodetect] |
126 --enable-xmga build with mga_vid X Window support | |
127 (check for X & /dev/mga_vid) [autodetect] | |
2190 | 128 --enable-xv build with Xv render support for X 4.x [autodetect] |
2435 | 129 --enable-vm build with XF86VidMode support for x11 driver [disable] |
2190 | 130 --enable-xinerama build with Xinerama support for x11 driver [autodetect] |
131 --enable-x11 build with X11 render support [autodetect] | |
2435 | 132 --enable-fbdev build with FBDev render support [disable] |
133 --enable-mlib build with MLIB support (Solaris only) [disable] | |
1 | 134 |
2435 | 135 Audio: |
2190 | 136 --disable-ossaudio disable OSS sound support [autodetect] |
137 --disable-alsa disable alsa sound support [autodetect] | |
138 --disable-sunaudio disable Sun sound support [autodetect] | |
2435 | 139 --disable-mad disable mad audio support [autodetect] |
642 | 140 |
2594 | 141 Miscellaneous options: |
2458 | 142 --cc=COMPILER use this C compiler to build MPlayer [gcc] |
2435 | 143 --target=PLATFORM target platform (i386-linux, arm-linux, etc) |
2916
5ecae3e4db37
optional parameters can be added after --enable-static .
gabucino
parents:
2908
diff
changeset
|
144 --enable-static build a statically linked binary. If more linking |
5ecae3e4db37
optional parameters can be added after --enable-static .
gabucino
parents:
2908
diff
changeset
|
145 options needed : --enable-static="-lslang -lncurses" |
2435 | 146 --language=xx select a language [en] |
147 (Available: $LANGUAGES) | |
148 --disable-select disable audio select() support (for example, required | |
149 for ALSA or Vortex2 driver) [enable] | |
2190 | 150 --size-x=SIZE default screen width |
151 --size-y=SIZE default screen height | |
2435 | 152 |
153 Advanced options: | |
154 --enable-mmx build with mmx support [autodetect] | |
155 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] | |
156 --enable-3dnow build with 3dnow! support [autodetect] | |
157 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect] | |
158 --enable-sse build with sse support [autodetect] | |
159 --disable-fastmemcpy disable 3dnow/sse/mmx optimized memcpy() [enable] | |
160 --enable-debug[=1-3] compile debugging information into mplayer [disable] | |
161 --enable-profile compile profiling information into mplayer [disable] | |
162 | |
2943 | 163 Hazardous options a.k.a. "DO NOT BUGREPORT ANYTHING !" |
2435 | 164 --disable-gcc-checking disable gcc version checking |
165 | |
166 Use these options if autodetection fails: | |
2943 | 167 --with-extraincdir=DIR extra headers (png, dvb, mad, sdl, css, ...) in DIR |
168 --with-extralibdir=DIR extra library files (png, SDL, ...) in DIR | |
169 --with-x11incdir=DIR X headers in DIR | |
2435 | 170 --with-x11libdir=DIR X library files in DIR |
2988 | 171 --with-csslibdir=DIR libcss in DIR |
172 --with-madlibdir=DIR libmad (libmad shared lib.) in DIR | |
2435 | 173 --with-win32libdir=DIR W*ndows DLL files in DIR |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
174 --with-xanimlibdir=DIR XAnim DLL files in DIR |
2700 | 175 --with-sdl-config=PATH path to sdl*-config (e.g.: /opt/bin/sdl-config) |
176 --with-gtk-config=PATH path to gtk*-config (e.g.: /opt/bin/gtk-config) | |
177 --with-glib-config=PATH path to glib*-config (e.g.: /opt/bin/glib-config) | |
2435 | 178 |
1 | 179 EOF |
2435 | 180 exit 0 |
181 fi | |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
182 done # for parm in ... |
1 | 183 |
2943 | 184 |
185 # 1st pass checking for vital options | |
2435 | 186 _cc=gcc |
187 test "$CC" && _cc="$CC" | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
188 _as=auto |
1424
2fcccb831d72
Solaris /bin/sh does not like the extra ; in a "for var do ... done" loop
jkeil
parents:
1422
diff
changeset
|
189 for ac_option do |
2943 | 190 case "$ac_option" in |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
191 --target=*) |
2943 | 192 _target=`echo $ac_option | cut -d '=' -f 2` |
193 ;; | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
194 --cc=*) |
2943 | 195 _cc=`echo $ac_option | cut -d '=' -f 2` |
196 ;; | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
197 --as=*) |
2943 | 198 _as=`echo $ac_option | cut -d '=' -f 2` |
199 ;; | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
200 --disable-gcc-checking) |
2943 | 201 _skip_cc_check=yes |
202 ;; | |
2988 | 203 --enable-static) |
204 _ld_static='-static' | |
205 ;; | |
206 --disable-static) | |
207 _ld_static='' | |
208 ;; | |
209 --enable-static=*) | |
210 _ld_static="-static `echo $ac_option | cut -d '=' -f 2`" | |
211 ;; | |
2943 | 212 --with-extraincdir=*) |
213 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
214 ;; | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
215 --with-extralibdir=*) |
2943 | 216 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
217 ;; | |
218 esac | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
219 done |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
220 |
1 | 221 |
1323 | 222 # Determine our OS name and CPU architecture |
2171 | 223 if test -z "$_target" ; then |
2943 | 224 # OS name |
225 system_name=`( uname -s ) 2>&1` | |
226 case "$system_name" in | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
227 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX) |
2943 | 228 ;; |
229 IRIX*) | |
230 system_name=IRIX | |
231 ;; | |
232 [cC][yY][gG][wW][iI][nN]*) | |
233 system_name=CYGWIN | |
234 ;; | |
235 *) | |
236 system_name="$system_name-UNKNOWN" | |
237 ;; | |
238 esac | |
2594 | 239 |
240 | |
2943 | 241 # host's CPU/instruction set |
2594 | 242 host_arch=`( uname -p ) 2>&1` |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
243 case "$host_arch" in |
2594 | 244 i386|sparc|ppc|alpha|arm|mips) |
2943 | 245 ;; |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
246 |
2943 | 247 *) # uname -p on Linux returns 'unknown' for the processor type, |
248 # OpenBSD returns 'Intel Pentium/MMX ("Genuine Intel" 586-class)' | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
249 |
2943 | 250 # Maybe uname -m (machine hardware name) returns something we |
251 # recognize. | |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
252 |
2943 | 253 case "`( uname -m ) 2>&1`" in |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
254 i[3-9]86|x86*) host_arch=i386 ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
255 ppc) host_arch=ppc ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
256 alpha) host_arch=alpha ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
257 sparc*) host_arch=sparc ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
258 arm*) host_arch=arm ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
259 *) host_arch=UNKNOWN ;; |
2943 | 260 esac |
261 ;; | |
262 esac | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
263 else |
2943 | 264 system_name=`echo $_target | cut -d '-' -f 2` |
265 host_arch=`echo $_target | cut -d '-' -f 1` | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
266 fi |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
267 |
1412 | 268 echo "Detected operating system: $system_name" |
269 echo "Detected host architecture: $host_arch" | |
270 | |
1 | 271 # LGB: temporary files |
2190 | 272 for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do |
2943 | 273 test "$I" && break |
2190 | 274 done |
1 | 275 |
2983 | 276 TMPLOG="configure.log" |
277 rm -f "$TMPLOG" | |
2943 | 278 TMPC="$I/mplayer-conf-$RANDOM-$$.c" |
279 TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" | |
280 TMPO="$I/mplayer-conf-$RANDOM-$$.o" | |
281 TMPS="$I/mplayer-conf-$RANDOM-$$.S" | |
1 | 282 |
283 # config files | |
196 | 284 |
2943 | 285 # FIXME: A lot of stuff is installed under /usr/local |
286 # NK: But we should never use this stuff implicitly since we call compiler | |
287 # from /usr we should be sure that there no effects from other compilers | |
288 # (libraries) which might be installed into /usr/local. Let users use this | |
289 # stuff explicitly as command line argument. In other words: It would be | |
290 # resonable have or only /usr/include or only /usr/local/include. | |
291 | |
292 if freebsd ; then | |
293 _ld_extra="$_ld_extra -L/usr/local/lib" | |
294 _inc_extra="$_inc_extra -I/usr/local/include" | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
295 fi |
196 | 296 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
297 |
1023 | 298 # Checking CC version... |
2435 | 299 # gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ... |
2171 | 300 if test "$_skip_cc_check" != yes ; then |
2943 | 301 echocheck "$_cc version" |
302 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` | |
303 case $cc_version in | |
304 '') | |
305 cc_version="v. ?.??, bad" | |
306 cc_verc_fail=yes | |
307 ;; | |
1388 | 308 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) |
2943 | 309 cc_version="$cc_version, ok" |
310 ;; | |
311 *) | |
312 cc_version="$cc_version, bad" | |
313 cc_verc_fail=yes | |
314 ;; | |
315 esac | |
316 echores "$cc_version" | |
317 if test "$cc_verc_fail" ; then | |
318 cat <<EOF | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
319 |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
320 *** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! *** |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
321 |
2943 | 322 You are using a different compiler than ours. We do not have the time to make |
323 sure everything works with compilers than the one we use. Use either use the | |
324 same compiler as ours, or use --disable-gcc-checking but DO *NOT* REPORT BUGS | |
325 unless you can reproduce them after recompiling with 2.95.x or 3.0.x version! | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
326 |
2943 | 327 Note for gcc 2.96 users: some versions of this compiler are known to miscompile |
328 mplayer and lame (which is used for mencoder). If you get compile errors, | |
329 first upgrade to the latest 2.96 release (but minimum 2.96-85) and try again. | |
330 If the problem still exists, try with gcc 3.0.x (or 2.95.x) *BEFORE* reporting | |
331 bugs! | |
332 | |
333 GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US ! | |
334 | |
335 *** For details please read DOCS/gcc-2.96-3.0.html *** | |
2443 | 336 |
1766 | 337 EOF |
2943 | 338 die "Bad gcc version" |
339 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
340 else |
2111 | 341 cat <<EOF |
342 | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
343 ****************************************************************************** |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
344 |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
345 Hmm. You really want to compile MPlayer with an *UNSUPPORTED* C compiler? |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
346 Ok. You know. Do it. But did you already read DOCS/gcc-2.96-3.0.html ??? |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
347 |
2943 | 348 DO NOT SEND BUGREPORTS OR COMPLAIN, it's *YOUR* compiler's fault! |
2442 | 349 Get ready for mysterious crashes, no-picture bugs, strange noises... REALLY! |
2943 | 350 Lame which is used by mencoder produces weird errors, too. |
2442 | 351 |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
352 If you have any problem, then install GCC 2.95.x or 3.x version and try again. |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
353 If the problem _still_ exists, then read DOCS/bugreports.html ! |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
354 |
2943 | 355 *** DO NOT SEND BUGREPORTS OR COMPLAIN it's *YOUR* compiler's fault! *** |
356 | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
357 ****************************************************************************** |
2111 | 358 |
359 EOF | |
360 | |
361 read _answer | |
362 | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
363 fi |
1 | 364 # --- |
365 | |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
366 # now that we know what compiler should be used for compilation, try to find |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
367 # out which assembler is used by the $_cc compiler |
2171 | 368 if test "$_as" = auto ; then |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
369 _as=`$_cc -print-prog-name=as` |
2943 | 370 test -z "$_as" && _as=as |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
371 fi |
1 | 372 |
2943 | 373 # Try to find the available options for the current CPU |
2990 | 374 if test "$host_arch" = i386 || test "$host_arch" = i486 || |
375 test "$host_arch" = i586 || test "$host_arch" = i686; then | |
2943 | 376 if test -r /proc/cpuinfo ; then |
377 # linux with /proc mounted, extract cpu information from it | |
378 _cpuinfo="cat /proc/cpuinfo" | |
379 elif test -r /compat/linux/proc/cpuinfo ; then | |
380 # FreeBSD with linux emulation /proc mounted, | |
381 # extract cpu information from it | |
382 _cpuinfo="cat /compat/linux/proc/cpuinfo" | |
383 else | |
384 # all other OS try to extract cpu information from a small helper | |
385 # program TOOLS/cpuinfo instead | |
386 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c | |
387 _cpuinfo="TOOLS/cpuinfo" | |
388 fi | |
525 | 389 |
2943 | 390 pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1` |
391 pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
392 pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
393 pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
394 pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
1 | 395 |
2943 | 396 pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1` |
397 if test -z "$pparam" ; then | |
398 pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1` | |
399 fi | |
1 | 400 |
2943 | 401 _mmx=no |
402 _3dnow=no | |
403 _3dnowex=no | |
404 _mmx2=no | |
405 _sse=no | |
406 _sse2=no | |
1 | 407 |
2943 | 408 for i in $pparam ; do |
409 case "$i" in | |
410 3dnow) _3dnow=yes ;; | |
411 3dnowext) _3dnow=yes _3dnowex=yes ;; | |
412 mmx) _mmx=yes ;; | |
413 mmxext) _mmx2=yes ;; | |
414 mtrr|k6_mtrr) _mtrr=yes ;; | |
415 xmm|sse|kni) _sse=yes _mmx2=yes ;; | |
416 esac | |
417 done | |
1 | 418 |
2943 | 419 echocheck "CPU vendor" |
420 echores "$pvendor ($pfamily:$pmodel:$pstepping)" | |
421 | |
422 echocheck "CPU type" | |
423 echores "$pname" | |
424 | |
425 fi | |
1 | 426 |
427 | |
2500 | 428 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
429 case "$host_arch" in |
2990 | 430 i386|i486|i586|i686) |
2943 | 431 _def_arch="#define ARCH_X86 1" |
432 _target_arch="TARGET_ARCH_X86 = yes" | |
433 _def_words_endian="#undef WORDS_BIGENDIAN" | |
434 iproc=586 | |
435 proc=pentium | |
1 | 436 |
2943 | 437 case "$pvendor" in |
438 AuthenticAMD) | |
439 case "$pfamily" in | |
440 3) proc=i386 iproc=386 ;; | |
441 4) proc=i486 iproc=486 ;; | |
442 5) proc=k5 iproc=586 # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 | |
443 test "$pmodel" -ge 6 && proc=k6 ;; | |
444 6|7) proc=k7 iproc=686 ;; | |
445 *) proc=pentium iproc=586 ;; | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
446 esac |
2943 | 447 ;; |
448 GenuineIntel) | |
449 case "$pfamily" in | |
450 3) proc=i386 iproc=386 ;; | |
451 4) proc=i486 iproc=486 ;; | |
452 5) proc=pentium iproc=586 ;; | |
453 6) proc=i686 iproc=686 ;; | |
454 *) proc=pentium iproc=586 ;; | |
455 esac | |
456 ;; | |
457 unknown) | |
458 case "$pfamily" in | |
459 3) proc=i386 iproc=386 ;; | |
460 4) proc=i486 iproc=486 ;; | |
461 *) proc=pentium iproc=586 ;; | |
462 esac | |
463 ;; | |
464 *) | |
465 proc=pentium iproc=586 ;; | |
466 esac | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
467 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
468 # check that gcc supports our cpu, if not, fallback to pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
469 # LGB: check -mcpu and -march swithing step by step with enabling |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
470 # to fall back till 386. |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
471 |
2943 | 472 echocheck "GCC & CPU optimization abilities" |
473 cat > $TMPC << EOF | |
474 int main(void) { return 0; } | |
475 EOF | |
476 | |
2171 | 477 if test "$proc" = "k7" ; then |
2943 | 478 cc_check -march=$proc -mcpu=$proc || proc=athlon |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
479 fi |
2171 | 480 if test "$proc" = "athlon" ; then |
2943 | 481 cc_check -march=$proc -mcpu=$proc || proc=pentiumpro |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
482 fi |
2171 | 483 if test "$proc" = "k6" ; then |
2943 | 484 cc_check -march=$proc -mcpu=$proc || proc=k5 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
485 fi |
2171 | 486 if test "$proc" = "k5" ; then |
2943 | 487 cc_check -march=$proc -mcpu=$proc || proc=pentium |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
488 fi |
2171 | 489 if test "$proc" = "i686" ; then |
2943 | 490 cc_check -march=$proc -mcpu=$proc || proc=pentiumpro |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
491 fi |
2171 | 492 if test "$proc" = "pentiumpro" ; then |
2943 | 493 cc_check -march=$proc -mcpu=$proc || proc=pentium |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
494 fi |
2171 | 495 if test "$proc" = "pentium" ; then |
2943 | 496 cc_check -march=$proc -mcpu=$proc || proc=i486 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
497 fi |
2171 | 498 if test "$proc" = "i486" ; then |
2943 | 499 cc_check -march=$proc -mcpu=$proc || proc=i386 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
500 fi |
2171 | 501 if test "$proc" = "i386" ; then |
2943 | 502 cc_check -march=$proc -mcpu=$proc || proc=error |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
503 fi |
2171 | 504 if test "$proc" = "error" ; then |
2943 | 505 die "Your $_cc does not support even \"i386\" for '-march' and '-mcpu'." |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
506 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
507 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
508 _march="-march=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
509 _mcpu="-mcpu=$proc" |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
510 |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
511 ## Gabucino : --target takes effect here (hopefully...) by overwriting |
2943 | 512 ## autodetected mcpu/march parameters |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
513 if test "$_target" ; then |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
514 _march="-march=$host_arch" |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
515 _mcpu="-mcpu=$host_arch" |
2943 | 516 proc="$_target" |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
517 fi |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
518 |
2943 | 519 echores "$proc" |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
520 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
521 |
2943 | 522 sparc) |
523 _def_arch='#define ARCH_SPARC 1' | |
524 _target_arch='TARGET_ARCH_SPARC = yes' | |
525 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
526 iproc='sparc' | |
527 proc='v8' | |
528 _march='' | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
529 _mcpu="-mcpu=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
530 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
531 |
2943 | 532 arm) |
533 _def_arch="#define ARCH_ARM 1" | |
534 _target_arch='TARGET_ARCH_ARM = yes' | |
535 _def_words_endian='#undef WORDS_BIGENDIAN' | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
536 iproc=arm |
2943 | 537 proc='' |
538 _march='' | |
539 _mcpu='' | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
540 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
541 |
2943 | 542 ppc) |
543 _def_arch='#define ARCH_PPC 1' | |
544 _target_arch='TARGET_ARCH_PPC = yes' | |
545 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
546 iproc='ppc' | |
547 proc='' | |
548 _march='' | |
549 _mcpu='' | |
1739
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
550 ;; |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
551 |
2943 | 552 alpha) |
553 _def_arch='#define ARCH_ALPHA 1' | |
554 _target_arch='TARGET_ARCH_ALPHA = yes' | |
555 _def_words_endian='#undef WORDS_BIGENDIAN' | |
556 iproc='alpha' | |
557 proc='' | |
558 _march='' | |
559 _mcpu='-mcpu=ev56' | |
1908 | 560 ;; |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
561 |
2943 | 562 mips) |
563 _def_arch="#define ARCH_SGI_MIPS 1" | |
564 _target_arch="TARGET_ARCH_SGI_MIPS = yes" | |
565 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
566 iproc='sgi-mips' | |
567 proc='' | |
568 _march='' | |
569 _mcpu='' | |
2450 | 570 ;; |
571 | |
2943 | 572 *) |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
573 echo "The architecture of your CPU ($host_arch) is not supported by this configure script" |
2190 | 574 echo "It seems noone has ported MPlayer to your OS or CPU type yet." |
575 die "unsupported architecture $host_arch" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
576 ;; |
1 | 577 esac |
578 | |
2943 | 579 |
580 echocheck "binutils" | |
581 _binutils=no | |
582 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes | |
583 echores "$_binutils" | |
584 | |
1 | 585 |
2943 | 586 if test "$host_arch" = i386 ; then |
587 extcheck() { | |
588 if test "$1" = yes ; then | |
589 echocheck "kernel support of $2" | |
590 cat > $TMPC <<EOF | |
591 int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);} | |
592 EOF | |
2467 | 593 |
2943 | 594 if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then |
595 echores "yes" | |
596 return 0 | |
597 else | |
598 echores "failed" | |
599 echo "It seems that your kernel does not correctly support $2." | |
600 echo "To use $2 extensions in MPlayer, you have to upgrade/recompile your kernel!" | |
601 return 1 | |
602 fi | |
603 fi | |
604 return 1 | |
605 } | |
1 | 606 |
2943 | 607 extcheck $_mmx "mmx" "emms" && _mmx=yes |
608 extcheck $_3dnow "3dnow" "femms" && _3dnow=yes | |
609 extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" && _3dnowex=yes | |
610 extcheck $_mmx2 "mmx2" "sfence" && _mmx2=yes | |
611 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" && _sse=yes | |
612 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" && _sse2=yes | |
613 echocheck "mtrr support" | |
614 echores "$_mtrr" | |
615 | |
616 fi | |
617 | |
1 | 618 |
2943 | 619 _prefix="/usr/local" |
620 | |
621 _libavcodec=auto | |
2945 | 622 _libavcodecso=auto |
2943 | 623 |
624 _x11=auto | |
625 _dga=auto | |
626 _dga2=auto | |
627 _xv=auto | |
628 _sdl=auto | |
629 _png=auto | |
630 _gl=auto | |
631 _ggi=auto | |
632 _aa=auto | |
633 _svga=auto | |
634 _fbdev=no | |
635 _dvb=auto | |
636 _dxr3=auto | |
637 _iconv=auto | |
638 _ossaudio=auto | |
639 _mad=auto | |
640 _vorbis=auto | |
641 _css=auto | |
642 _dvdread=auto | |
643 _xanim=auto | |
644 _xinerama=auto | |
645 _mga=auto | |
646 _xmga=auto | |
647 _vm=auto | |
648 _mlib=auto | |
649 _sgiaudio=auto | |
650 _sunaudio=auto | |
651 _alsa=auto | |
652 _fastmemcpy=yes | |
653 _win32=auto | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
654 _dshow=auto |
2943 | 655 _def_select='#define HAVE_AUDIO_SELECT' |
656 _tv=no | |
657 _streaming=no | |
658 _divx4linux=auto | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
659 _lirc=auto |
2943 | 660 _gui=no |
2945 | 661 _termcap=auto |
2943 | 662 _3dfx=no |
663 _tdfxfb=no | |
2961 | 664 _largefiles=no |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
665 _vo2=no |
2943 | 666 _language=en |
667 | |
668 | |
669 for ac_option do | |
670 case "$ac_option" in | |
671 # Skip 1st pass | |
672 --target=*) ;; | |
673 --cc=*) ;; | |
674 --as=*) ;; | |
675 --disable-gcc-checking) ;; | |
2989 | 676 --enable-static*) ;; |
2988 | 677 --disable-static*) ;; |
2943 | 678 --with-extraincdir=*) ;; |
679 --with-extralibdir=*) ;; | |
680 | |
2988 | 681 |
2943 | 682 # Real 2nd pass |
683 --enable-x11) _x11=yes ;; | |
684 --disable-x11) _x11=no ;; | |
685 --enable-dga) _dga=yes ;; | |
686 --disable-dga) _dga=no ;; | |
687 --enable-dga2) _dga2=yes ;; | |
688 --disable-dga2) _dga2=no ;; | |
689 --enable-xv) _xv=yes ;; | |
690 --disable-xv) _xv=no ;; | |
691 --enable-sdl) _sdl=yes ;; | |
692 --disable-sdl) _sdl=no ;; | |
693 --enable-png) _png=yes ;; | |
694 --disable-png) _png=no ;; | |
695 --enable-gl) _gl=yes ;; | |
696 --disable-gl) _gl=no ;; | |
697 --enable-ggi) _ggi=yes ;; | |
698 --disable-ggi) _ggi=no ;; | |
699 --enable-aa) _aa=yes ;; | |
700 --disable-aa) _aa=no ;; | |
701 --enable-svga) _svga=yes ;; | |
702 --disable-svga) _svga=no ;; | |
703 --enable-fbdev) _fbdev=yes ;; | |
704 --disable-fbdev) _fbdev=no ;; | |
705 --enable-dvb) _dvb=yes ;; | |
706 --disable-dvb) _dvb=no ;; | |
707 --enable-dxr3) _dxr3=yes ;; | |
708 --disable-dxr3) _dxr3=no ;; | |
709 --enable-iconv) _iconv=yes ;; | |
710 --disable-iconv) _iconv=no ;; | |
711 --enable-ossaudio) _ossaudio=yes ;; | |
712 --disable-ossaudio) _ossaudio=no ;; | |
713 --enable-mad) _mad=yes ;; | |
714 --disable-mad) _mad=no ;; | |
715 --enable-vorbis) _vorbis=yes ;; | |
716 --disable-vorbis) _vorbis=no ;; | |
717 --enable-css) _css=yes ;; | |
718 --disable-css) _css=no ;; | |
719 --enable-dvdread) _dvdread=yes ;; | |
720 --disable-dvdread) _dvdread=no ;; | |
721 --enable-xanim) _xanim=yes ;; | |
722 --disable-xanim) _xanim=no ;; | |
723 --enable-xinerama) _xinerama=yes ;; | |
724 --disable-xinerama) _xinerama=no ;; | |
725 --enable-mga) _mga=yes ;; | |
726 --disable-mga) _mga=no ;; | |
727 --enable-xmga) _xmga=yes ;; | |
728 --disable-xmga) _xmga=no ;; | |
729 --enable-vm) _vm=yes ;; | |
730 --disable-vm) _vm=no ;; | |
731 --enable-mlib) _mlib=yes ;; | |
732 --disable-mlib) _mlib=no ;; | |
733 --enable-sunaudio) _sunaudio=yes ;; | |
734 --disable-sunaudio) _sunaudio=no ;; | |
735 --enable-sgiaudio) _sgiaudio=yes ;; | |
736 --disable-sgiaudio) _sgiaudio=no ;; | |
737 --enable-alsa) _alsa=yes ;; | |
738 --disable-alsa) _alsa=no ;; | |
739 --enable-tv) _tv=yes ;; | |
740 --disable-tv) _tv=no ;; | |
741 --enable-fastmemcpy) _fastmemcpy=yes ;; | |
742 --disable-fastmemcpy) _fastmemcpy=no ;; | |
743 --enable-streaming) _streaming=yes ;; | |
744 --disable-streaming) _streaming=no ;; | |
745 --enable-divx4linux) _divx4linux=yes ;; | |
746 --disable-divx4linux) _divx4linux=no ;; | |
747 --enable-lirc) _lirc=yes ;; | |
748 --disable-lirc) _lirc=no ;; | |
749 --enable-gui) _gui=yes ;; | |
750 --disable-gui) _gui=no ;; | |
751 --enable-termcap) _termcap=yes ;; | |
752 --disable-termcap) _termcap=no ;; | |
753 --enable-3dfx) _3dfx=yes ;; | |
754 --disable-3dfx) _3dfx=no ;; | |
755 --enable-tdfxfb) _tdfxfb=yes ;; | |
756 --disable-tdfxfb) _tdfxfb=no ;; | |
757 --enable-mtrr) _mtrr=yes ;; | |
758 --disable-mtrr) _mtrr=no ;; | |
2961 | 759 --enable-largefiles) _largefiles=yes ;; |
2962 | 760 --disable-largefiles) _largefiles=no ;; |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
761 --enable-vo2) _vo2=yes ;; |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
762 --disable-vo2) _vo2=no ;; |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
763 |
2943 | 764 --enable-select) _def_select='#define HAVE_AUDIO_SELECT' ;; |
765 --disable-select) _def_select='#undef HAVE_AUDIO_SELECT' ;; | |
766 | |
767 | |
768 --language=*) | |
769 LINGUAS=`echo $ac_option | cut -d '=' -f 2` | |
770 ;; | |
771 | |
772 --with-win32libdir=*) | |
773 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
774 _win32=yes | |
775 ;; | |
776 --with-xanimlibdir=*) | |
777 _xanimlibdir=`echo $ac_option | cut -d '=' -f 2` | |
778 _xanim=yes | |
779 ;; | |
780 --with-csslibdir=*) | |
781 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
782 _css=yes | |
783 ;; | |
784 --with-mlibdir=*) | |
785 _mlibdir=`echo $ac_option | cut -d '=' -f 2` | |
786 _mlib=yes | |
787 ;; | |
788 | |
789 --enable-profile) | |
790 _profile='-p' | |
791 ;; | |
792 --enable-debug) | |
793 _debug='-g' | |
794 ;; | |
795 --enable-debug=*) | |
796 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` | |
797 ;; | |
798 | |
799 --enable-sse) _sse=yes ;; | |
800 --disable-sse) _sse=no ;; | |
801 --enable-mmx2) _mmx2=yes ;; | |
802 --disable-mmx2) _mmx2=no ;; | |
803 --enable-3dnow) _3dnow=yes ;; | |
804 --disable-3dnow) _3dnow=no _3dnowex=no ;; | |
805 --enable-3dnowex) _3dnow=yes _3dnowex=yes ;; | |
806 --disable-3dnowex) _3dnowex=no ;; | |
807 --enable-mmx) _mmx=yes ;; | |
808 --disable-mmx) # without mmx 3Dnow! and stuff is also not possible | |
809 _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;; | |
810 | |
811 --enable-win32) _win32=yes ;; | |
812 --disable-win32) _win32=no _dshow=no ;; | |
813 --enable-dshow) _win32=yes _dshow=yes ;; | |
814 --disable-dshow) _dshow=no ;; | |
815 | |
816 --with-x11incdir=*) | |
817 _inc_x11=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
818 ;; | |
819 --with-x11libdir=*) | |
820 _ld_x11=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
821 ;; | |
822 --with-sdl-config=*) | |
823 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` | |
824 ;; | |
825 --with-gtk-config=*) | |
826 _gtkconfig=`echo $ac_option | cut -d '=' -f 2` | |
827 ;; | |
828 --with-glib-config=*) | |
829 _glibconfig=`echo $ac_option | cut -d '=' -f 2` | |
830 ;; | |
831 --with-madlibdir=*) | |
832 _ld_mad=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
833 ;; | |
834 | |
835 --prefix=*) | |
836 _prefix=`echo $ac_option | cut -d '=' -f 2` | |
837 ;; | |
838 --datadir=*) | |
839 _datadir=`echo $ac_option | cut -d '=' -f 2` | |
840 ;; | |
841 | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
842 |
2943 | 843 *) |
844 echo "Unknown parameter: $ac_option" | |
845 ;; | |
846 | |
847 esac | |
848 done | |
849 | |
850 # Atmos: moved this here, to be correct, if --prefix is specified | |
851 test -z "$_datadir" && _datadir=$_prefix"/share/mplayer" | |
852 | |
853 | |
854 | |
855 if test "$host_arch" = i386 ; then | |
856 # Checking assembler (_as) compatibility... | |
857 # Added workaround for older as that reads from stdin by default - atmos | |
858 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` | |
859 echocheck "assembler ($_as $as_version)" | |
860 | |
861 _pref_as_version='2.9.1' | |
862 echo 'nop' > $TMPS | |
863 if test "$_mmx" = yes ; then | |
864 echo 'emms' >> $TMPS | |
865 fi | |
866 if test "$_3dnow" = yes ; then | |
867 _pref_as_version='2.10.1' | |
868 echo 'femms' >> $TMPS | |
869 fi | |
870 if test "$_3dnowex" = yes ; then | |
871 _pref_as_version='2.10.1' | |
872 echo 'pswapd %mm0, %mm0' >> $TMPS | |
873 fi | |
874 if test "$_mmx2" = yes ; then | |
875 _pref_as_version='2.10.1' | |
876 echo 'movntq %mm0, (%eax)' >> $TMPS | |
877 fi | |
878 if test "$_sse" = yes ; then | |
879 _pref_as_version='2.10.1' | |
880 echo 'xorps %xmm0, %xmm0' >> $TMPS | |
881 fi | |
882 #if test "$_sse2" = yes ; then | |
883 # _pref_as_version='2.11' | |
884 # echo 'xorpd %xmm0, %xmm0' >> $TMPS | |
885 #fi | |
886 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes | |
887 | |
888 if test "$as_verc_fail" != yes ; then | |
889 echores "ok" | |
890 else | |
891 echores "failed" | |
892 echo "Upgrade binutils to ${_pref_as_version} ..." | |
893 die "obsolete binutils version" | |
894 fi | |
895 fi | |
896 | |
897 _def_mmx='#undef HAVE_MMX' | |
898 test "$_mmx" = yes && _def_mmx='#define HAVE_MMX 1' | |
899 _def_mmx2='#undef HAVE_MMX2' | |
900 test "$_mmx2" = yes && _def_mmx2='#define HAVE_MMX2 1' | |
901 _def_3dnow='#undef HAVE_3DNOW' | |
902 test "$_3dnow" = yes && _def_3dnow='#define HAVE_3DNOW 1' | |
903 _def_3dnowex='#undef HAVE_3DNOWEX' | |
904 test "$_3dnowex" = yes && _def_3dnowex='#define HAVE_3DNOWEX 1' | |
905 _def_sse='#undef HAVE_SSE' | |
906 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' | |
907 | |
908 | |
909 # Checking kernel version... | |
910 if test "$host_arch" = i386 && linux ; then | |
911 _k_verc_problem=no | |
912 kernel_version=`uname -r 2>&1` | |
913 echocheck "$system_name kernel version" | |
914 case "$kernel_version" in | |
915 '') kernel_version="?.??"; _k_verc_fail=yes;; | |
916 [0-1].[0-9].[0-9]*|2.[0-3].[0-9]*) | |
917 _k_verc_problem=yes;; | |
918 esac | |
919 if test "$_k_verc_problem" = yes && test "$_sse" = yes ; then | |
920 _k_verc_fail=yes | |
921 fi | |
922 if test "$_k_verc_fail" ; then | |
923 echores "$kernel_version, fail" | |
924 echo "WARNING! If you want to run mplayer on this system, get prepared for problems!" | |
925 echo " 2.2.x has a limited (SSE support of 2.2.x series is limited. Upgrade kernel or use --disable-sse)" | |
926 echo "Older kernel won't work correctly with mplayer (in" | |
927 else | |
928 echores "$kernel_version, ok" | |
929 fi | |
930 fi | |
931 | |
932 | |
933 | |
934 ###################### | |
935 # MAIN TESTS GO HERE # | |
936 ###################### | |
937 | |
938 | |
939 echocheck "Extra headers" | |
940 echores "$_extraincdir" | |
941 | |
942 | |
943 echocheck "Extra libs" | |
944 echores "$_extralibdir" | |
945 | |
946 | |
947 echocheck "kstat" | |
948 cat > $TMPC << EOF | |
949 int main(void) { return 0; } | |
950 EOF | |
951 _kstat=no | |
952 cc_check -lkstat && _kstat=yes | |
953 if test "$_kstat" = yes ; then | |
954 _ld_arch="-lkstat ${_ld_arch}" | |
955 fi | |
956 if test "$_kstat" = yes ; then | |
957 _def_kstat="#define HAVE_LIBKSTAT 1" | |
958 else | |
959 _def_kstat="#undef HAVE_LIBKSTAT" | |
960 fi | |
961 echores "$_kstat" | |
962 | |
963 | |
964 echocheck "posix4" | |
2948 | 965 cat > $TMPC << EOF |
966 int main(void) { return 0; } | |
967 EOF | |
2943 | 968 _posix4=no |
969 cc_check -lposix4 && _posix4=yes | |
970 if test "$_posix4" = yes ; then | |
971 _ld_arch="-lposix4 ${_ld_arch}" | |
972 fi | |
973 echores "$_posix4" | |
974 | |
975 | |
976 echocheck "socklib" | |
977 # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl): | |
978 cat > $TMPC << EOF | |
979 int main(void) { return 0; } | |
980 EOF | |
981 cc_check $_ld_sock -lsocket && _ld_sock="$_ld_sock -lsocket" | |
982 cc_check $_ld_sock -lnsl && _ld_sock="$_ld_sock -lnsl" | |
2945 | 983 if test "$_ld_sock" ; then |
984 echores "$_ld_sock" | |
985 else | |
986 echores "not needed" | |
987 fi | |
2943 | 988 |
989 | |
990 echocheck "malloc.h" | |
991 cat > $TMPC << EOF | |
992 #include <malloc.h> | |
993 int main(void) { return 0; } | |
994 EOF | |
995 _malloc=no | |
996 cc_check && _malloc=yes | |
997 if test "$_malloc" = yes ; then | |
998 _def_malloc='#define HAVE_MALLOC_H 1' | |
999 else | |
1000 _def_malloc='#undef HAVE_MALLOC_H' | |
1001 fi | |
1002 # malloc.h emits a warning in FreeBSD | |
1003 freebsd && _def_malloc='#undef HAVE_MALLOC_H' | |
1004 echores "$_malloc" | |
1005 | |
1006 | |
1007 echocheck "memalign()" | |
1008 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? | |
1009 cat > $TMPC << EOF | |
1010 #include <malloc.h> | |
1011 int main (void) { | |
1012 char *string = memalign(64, sizeof(char)); | |
1013 return 0; | |
1014 } | |
1015 EOF | |
1016 _memalign=no | |
1017 cc_check && _memalign=yes | |
1018 if test "$_memalign" = yes ; then | |
1019 _def_memalign='#define HAVE_MEMALIGN 1' | |
1020 else | |
1021 _def_memalign='#undef HAVE_MEMALIGN' | |
1022 fi | |
1023 echores "$_memalign" | |
1024 | |
1025 | |
1026 echocheck "alloca.h" | |
1027 cat > $TMPC << EOF | |
1028 #include <alloca.h> | |
1029 int main(void) { return 0; } | |
1030 EOF | |
1031 _alloca=no | |
1032 cc_check && _alloca=yes | |
1033 if cc_check ; then | |
1034 _def_alloca='#define HAVE_ALLOCA_H 1' | |
1035 else | |
1036 _def_alloca='#undef HAVE_ALLOCA_H' | |
1037 fi | |
1038 echores "$_alloca" | |
1039 | |
1040 | |
1041 echocheck "mman.h" | |
1042 cat > $TMPC << EOF | |
1043 #include <sys/types.h> | |
1044 #include <sys/mman.h> | |
1045 int main(void) { return 0; } | |
1046 EOF | |
1047 _mman=no | |
1048 cc_check && _mman=yes | |
1049 if test "$_mman" = yes ; then | |
1050 _def_mman='#define HAVE_SYS_MMAN_H 1' | |
1051 else | |
1052 _def_mman='#undef HAVE_SYS_MMAN_H' | |
1053 fi | |
1054 echores "$_mman" | |
1055 | |
1056 | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1057 echocheck "dynamic loader" |
2943 | 1058 cat > $TMPC << EOF |
1059 #include <dlfcn.h> | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1060 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } |
2943 | 1061 EOF |
1062 _dl=no | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1063 if cc_check ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1064 _dl=yes |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1065 elif cc_check -ldl ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1066 _dl=yes |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1067 _ld_dl='-ldl' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1068 fi |
2943 | 1069 if test "$_dl" = yes ; then |
1070 _def_dl='#define HAVE_LIBDL 1' | |
1071 else | |
1072 _def_dl='#undef HAVE_LIBDL' | |
1073 fi | |
1074 echores "$_dl" | |
1075 | |
1076 | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1077 echocheck "pthread" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1078 cat > $TMPC << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1079 int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; } |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1080 EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1081 if cc_check -lpthread ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1082 _ld_pthread='-lpthread' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1083 elif cc_check -pthread ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1084 _ld_pthread='-pthread' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1085 else |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1086 die "Lib pthread not found." |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1087 fi |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1088 echores "using $_ld_pthread" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1089 |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1090 |
2943 | 1091 echocheck "sys/soundcard.h" |
1092 cat > $TMPC << EOF | |
1093 #include <sys/soundcard.h> | |
1094 int main(void) { return 0; } | |
1095 EOF | |
1096 _sys_soundcard=no | |
1097 cc_check && _sys_soundcard=yes | |
1098 if test "$_sys_soundcard" = yes ; then | |
1099 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1' | |
1100 else | |
1101 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H' | |
1102 fi | |
1103 echores "$_sys_soundcard" | |
1104 | |
1105 | |
1106 echocheck "termcap" | |
2948 | 1107 if test "$_termcap" = auto ; then |
2943 | 1108 _termcap=no |
1109 cat > $TMPC <<EOF | |
1110 int main(void) { return 0; } | |
1111 EOF | |
2948 | 1112 cc_check -ltermcap && _termcap=yes |
2943 | 1113 else |
1114 _termcap=no | |
1115 fi | |
1116 if test "$_termcap" = yes ; then | |
1117 _def_termcap='#define USE_TERMCAP 1' | |
1118 _ld_termcap='-ltermcap' | |
1119 else | |
1120 _def_termcap='#undef USE_TERMCAP' | |
1121 fi | |
1122 echores "$_termcap" | |
1123 | |
1124 | |
1125 echocheck "3dfx" | |
1126 if test "$_3dfx" = yes ; then | |
1127 _def_3dfx='#define HAVE_3DFX 1' | |
1128 _vosrc="$_vosrc vo_3dfx.c" | |
1129 else | |
1130 _def_3dfx='#undef HAVE_3DFX' | |
1131 fi | |
1132 echores "$_3dfx" | |
1133 | |
1134 | |
1135 echocheck "tdfxfb" | |
1136 if test "$_tdfxfb" = yes ; then | |
1137 _def_tdfxfb='#define HAVE_TDFXFB 1' | |
1138 _vosrc="$_vosrc vo_tdfxfb.c" | |
1139 else | |
1140 _def_tdfxfb='#undef HAVE_TDFXFB' | |
1141 fi | |
1142 echores "$_tdfxfb" | |
1143 | |
1144 | |
1145 # Checking for localization ... | |
1146 echocheck "language" | |
1147 test -z "$LINGUAS" && LINGUAS="en" | |
1148 if test -f "help_mp-${LINGUAS}.h" ; then | |
1149 echores "using ${LINGUAS}" | |
1150 else | |
1151 echores "${LINGUAS} not found, using en" | |
1152 LINGUAS="en" | |
1153 fi | |
1154 _mp_help="help_mp-${LINGUAS}.h" | |
1155 test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found" | |
1156 | |
1157 | |
1158 echocheck "vsscanf()" | |
1159 cat > $TMPC << EOF | |
1160 #include <stdarg.h> | |
1161 int main(void) { vsscanf(); return 0; } | |
1162 EOF | |
1163 _vsscanf=no | |
1164 cc_check && _vsscanf=yes | |
1165 if test "$_vsscanf" = yes ; then | |
1166 _def_vsscanf='#define HAVE_VSSCANF 1' | |
1167 else | |
1168 _def_vsscanf='#undef HAVE_VSSCANF' | |
1169 fi | |
1170 echores "$_vsscanf" | |
1171 | |
1172 | |
1173 echocheck "X11 headers" | |
1174 if test -z "$_x11incdir" ; then | |
1175 for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do | |
1176 if test -d "$I/X11" ; then | |
1177 _x11incdir="$I" | |
1178 echores "found $I" | |
1179 break | |
1180 fi | |
1181 done | |
1182 fi | |
1183 if test -z "$_x11incdir" ; then | |
1184 _x11=no | |
1185 echores "not found" | |
1186 elif test "$_x11incdir" != "/usr/include" ; then | |
1187 _inc_x11="-I$_x11incdir" | |
1188 fi | |
1189 | |
1190 | |
1191 echocheck "X11 libs" | |
1192 if test -z "$_x11libdir" ; then | |
1193 for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do | |
1194 if test -d "$I" ; then | |
1195 _x11libdir="$I" | |
1196 echores "found $I" | |
1197 break; | |
1198 fi | |
1199 done | |
1200 fi | |
1201 if test -z "$_x11libdir" ; then | |
1202 _x11=no | |
1203 echores "not found" | |
1204 fi | |
2988 | 1205 _ld_x11="-L$_x11libdir -lX11 -lXext $_ld_sock" |
2943 | 1206 |
1207 | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1208 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1209 # VIDEO # |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1210 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1211 |
2943 | 1212 echocheck "X11" |
1213 if test "$_x11" = auto ; then | |
1214 cat > $TMPC <<EOF | |
2988 | 1215 #include <X11/Xlib.h> |
1216 #include <X11/Xutil.h> | |
1217 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } | |
2943 | 1218 EOF |
1219 _x11=no | |
2988 | 1220 cc_check $_inc_x11 $_ld_x11 && _x11=yes |
2943 | 1221 fi |
1222 if test "$_x11" = yes ; then | |
1223 _def_x11='#define HAVE_X11 1' | |
1224 _vosrc="$_vosrc vo_x11.c" | |
1225 else | |
1226 _def_x11='#undef HAVE_X11' | |
1227 fi | |
1228 echores "$_x11" | |
1229 | |
1230 | |
2945 | 1231 echocheck "DPMS" |
2943 | 1232 _xdpms3=no |
1233 if test "$_x11" = yes ; then | |
1234 cat > $TMPC <<EOF | |
1235 #include <X11/Xmd.h> | |
1236 #include <X11/Xlib.h> | |
1237 #include <X11/Xutil.h> | |
1238 #include <X11/Xatom.h> | |
1239 #include <X11/extensions/dpms.h> | |
1240 int main(void) { return 0; } | |
1241 EOF | |
2988 | 1242 cc_check $_inc_x11 $_ld_x11 -lXdpms && _xdpms3=yes |
2943 | 1243 fi |
1244 _xdpms4=no | |
1245 if test "$_x11" = yes ; then | |
1246 cat > $TMPC <<EOF | |
1247 #include <X11/Xmd.h> | |
1248 #include <X11/Xlib.h> | |
1249 #include <X11/Xutil.h> | |
1250 #include <X11/Xatom.h> | |
1251 #include <X11/extensions/dpms.h> | |
1252 int main(void) { | |
1253 (void) DPMSQueryExtension(0, 0, 0); | |
1254 } | |
1255 EOF | |
2945 | 1256 cc_check $_inc_x11 $_ld_x11 && _xdpms4=yes |
2943 | 1257 fi |
1258 | |
1259 if test "$_xdpms4" = yes ; then | |
1260 _def_xdpms='#define HAVE_XDPMS 1' | |
1261 echores "using xdpms4" | |
1262 elif test "$_xdpms3" = yes ; then | |
1263 _def_xdpms='#define HAVE_XDPMS 1' | |
1264 _ld_x11='$_ld_x11 -lXdpms' | |
1265 echores "using xdpms3" | |
1266 else | |
1267 _def_xdpms='#undef HAVE_XDPMS' | |
1268 echores "no" | |
1269 fi | |
1270 | |
1271 | |
1272 echocheck "Xv" | |
1273 if test "$_x11" = yes && test "$_xv" = auto ; then | |
1274 cat > $TMPC <<EOF | |
1275 int main(void) { return 0; } | |
1276 EOF | |
1277 _xv=no | |
2988 | 1278 cc_check $_inc_x11 $_ld_x11 -lXv && _xv=yes |
2943 | 1279 else |
1280 _xv=no | |
1281 fi | |
1282 if test "$_xv" = yes ; then | |
1283 _def_xv='#define HAVE_XV 1' | |
1284 _ld_xv='-lXv' | |
1285 _vosrc="$_vosrc vo_xv.c" | |
1286 else | |
1287 _def_xv='#undef HAVE_XV' | |
1288 fi | |
1289 echores "$_xv" | |
1290 | |
1291 | |
1292 echocheck "Xinerama" | |
1293 if test "$_x11" = yes && test "$_xinerama" = auto ; then | |
1294 cat > $TMPC <<EOF | |
1295 int main(void) { return 0; } | |
1296 EOF | |
1297 _xinerama=no | |
2988 | 1298 cc_check $_inc_x11 $_ld_x11 -lXinerama && _xinerama=yes |
2943 | 1299 else |
1300 _xinerama=no | |
1301 fi | |
1302 if test "$_xinerama" = yes ; then | |
1303 _def_xinerama='#define HAVE_XINERAMA 1' | |
1304 _ld_xinerama='-lXinerama' | |
1305 else | |
1306 _def_xinerama='#undef HAVE_XINERAMA' | |
1307 fi | |
1308 echores "$_xinerama" | |
1309 | |
1310 | |
1311 # Note: the -lXxf86vm library is the VideoMode extension and though it's not | |
1312 # needed for DGA, AFAIK every distribution packages together with DGA stuffs | |
1313 # named 'X extensions' or something similar. | |
1314 # This check may be useful for future mplayer versions (to change resolution) | |
1315 # If you run into problems, remove '-lXxf86vm'. | |
1316 echocheck "Xxf86vm" | |
1317 if test "$_x11" = yes && test "$_vm" = auto ; then | |
1318 cat > $TMPC <<EOF | |
1319 int main(void) { return 0; } | |
1320 EOF | |
1321 _vm=no | |
2988 | 1322 cc_check $_inc_x11 $_ld_x11 -lXxf86vm && _vm=yes |
2943 | 1323 else |
1324 _vm=no | |
1325 fi | |
1326 if test "$_vm" = yes ; then | |
1327 _def_vm='#define HAVE_XF86VM 1' | |
1328 _ld_vm='-lXxf86vm' | |
1329 else | |
1330 _def_vm='#undef HAVE_XF86VM' | |
1331 fi | |
1332 echores "$_vm" | |
1333 | |
1334 | |
1335 echocheck "DGA" | |
1336 if test "$_x11" = yes && test "$_dga" = auto ; then | |
1337 cat > $TMPC << EOF | |
1338 #include <stdio.h> | |
1339 #include <X11/Xlib.h> | |
1340 #include <X11/extensions/xf86dga.h> | |
1341 int main (void) { return 0; } | |
1342 EOF | |
1343 _dga=no | |
1344 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga=yes | |
1345 else | |
1346 _dga=no | |
1347 fi | |
1348 if test "$_dga" = yes ; then | |
1349 _def_dga='#define HAVE_DGA 1' | |
1350 _ld_dga='-lXxf86dga' | |
1351 _vosrc="$_vosrc vo_dga.c" | |
1352 else | |
1353 _def_dga='#undef HAVE_DGA' | |
1354 fi | |
1355 echores "$_dga" | |
1356 | |
1357 | |
1358 echocheck "DGA 2.0" | |
1359 if test "$_x11" = yes && test "$_dga2" = auto ; then | |
1360 cat > $TMPC << EOF | |
1361 #include <stdio.h> | |
1362 #include <X11/Xlib.h> | |
1363 #include <X11/extensions/xf86dga.h> | |
1364 int main (void) { XDGAMode mode; XDGADevice device; return 0; } | |
1365 EOF | |
1366 _dga2=no | |
2988 | 1367 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga2=yes |
2943 | 1368 else |
1369 _dga2=no | |
1370 fi | |
1371 if test "$_dga2" = yes ; then | |
1372 _def_dga2='#define HAVE_DGA2 1' | |
1373 _vosrc="$_vosrc vo_dga.c" | |
1374 else | |
1375 _def_dga2='#undef HAVE_DGA2' | |
1376 fi | |
1377 echores "$_dga2" | |
1378 | |
1379 | |
1380 echocheck "OpenGL" | |
1381 if test "$_gl" = auto ; then | |
1382 cat > $TMPC << EOF | |
1383 #include <GL/gl.h> | |
1384 int main(void) { return 0; } | |
1385 EOF | |
1386 _gl=no | |
2988 | 1387 if cc_check $_inc_x11 $_ld_x11 -lGL -lm ; then |
1388 _gl=yes | |
1389 _ld_gl="-lGL -lm" | |
1390 elif cc_check $_inc_x11 $_ld_x11 -lGL -lm $_ld_pthread ; then | |
1391 _gl=yes | |
1392 _ld_gl="-lGL -lm $_ld_pthread" | |
2943 | 1393 else |
2988 | 1394 _gl=no |
1395 cc_check $_inc_x11 $_ld_x11 -lGL -lm && _gl=yes | |
2190 | 1396 fi |
2943 | 1397 fi |
1398 if test "$_gl" = yes ; then | |
2988 | 1399 #FIXME ?? : bsd && test -r /usr/X11R6/bin/XFree86 && _ld_gl="-lGL $_ld_pthread" |
2943 | 1400 _def_gl='#define HAVE_GL 1' |
1401 _vosrc="$_vosrc vo_gl.c vo_gl2.c" | |
1402 else | |
1403 _def_gl='#undef HAVE_GL' | |
1404 fi | |
1405 echores "$_gl" | |
1515
624c9d5dad20
Use the standard mplayer config test for finding libraries, so that it can
jkeil
parents:
1511
diff
changeset
|
1406 |
1 | 1407 |
2943 | 1408 echocheck "/dev/mga_vid" |
1409 if test "$_mga" = auto ; then | |
1410 _mga=no | |
1411 test -c /dev/mga_vid && _mga=yes | |
1412 fi | |
1413 if test "$_mga" = yes ; then | |
1414 _def_mga='#define HAVE_MGA 1' | |
1415 _vosrc="$_vosrc vo_mga.c" | |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
1416 else |
2943 | 1417 _def_mga='#undef HAVE_MGA' |
2463 | 1418 fi |
2943 | 1419 echores "$_mga" |
525 | 1420 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1421 |
2943 | 1422 echocheck "syncfb" |
1423 _syncfb=no | |
1424 test "$_mga" = yes && _syncfb=yes | |
1425 if test "$_syncfb" = yes ; then | |
1426 _def_syncfb='#define HAVE_SYNCFB 1' | |
1427 _vosrc="$_vosrc vo_syncfb.c" | |
1428 else | |
1429 _def_syncfb='#undef HAVE_SYNCFB' | |
1430 fi | |
1431 echores "$_syncfb" | |
1432 | |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1433 |
2943 | 1434 echocheck "xmga" |
1435 if test "$_xmga" = auto ; then | |
1436 _xmga=no | |
1437 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes | |
1438 fi | |
1439 if test "$_xmga" = yes ; then | |
1440 _def_xmga='#define HAVE_XMGA 1' | |
1441 _vosrc="$_vosrc vo_xmga.c" | |
1442 else | |
1443 _def_xmga='#undef HAVE_XMGA' | |
1444 fi | |
1445 echores "$_xmga" | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1446 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1447 |
2943 | 1448 echocheck "GGI" |
1449 if test "$_ggi" = auto ; then | |
1450 cat > $TMPC << EOF | |
1451 #include <ggi/ggi.h> | |
1452 int main(void) { return 0; } | |
1453 EOF | |
1454 _ggi=no | |
1455 cc_check -lggi && _ggi=yes | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1456 fi |
2943 | 1457 if test "$_ggi" = yes ; then |
1458 _def_ggi='#define HAVE_GGI 1' | |
1459 _ld_ggi='-lggi' | |
1460 _vosrc="$_vosrc vo_ggi.c" | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1461 else |
2943 | 1462 _def_ggi='#undef HAVE_GGI' |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1463 fi |
2943 | 1464 echores "$_ggi" |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1465 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1466 |
2943 | 1467 echocheck "AA" |
1468 if test "$_aa" = auto ; then | |
1469 cat > $TMPC << EOF | |
1470 #include <aalib.h> | |
1471 int main(void) { return 0; } | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1472 EOF |
2943 | 1473 _aa=no |
1474 cc_check -laa && _aa=yes | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1475 fi |
2943 | 1476 if test "$_aa" = yes ; then |
1477 _def_aa='#define HAVE_AA 1' | |
1478 _ld_aa='-laa' | |
1479 _vosrc="$_vosrc vo_aa.c" | |
1480 else | |
1481 _def_aa='#undef HAVE_AA' | |
1482 fi | |
1483 echores "$_aa" | |
59 | 1484 |
1694 | 1485 |
2943 | 1486 echocheck "SVGAlib" |
1487 if test "$_svga" = auto ; then | |
1488 cat > $TMPC << EOF | |
1489 #include <vga.h> | |
1490 #include <vgagl.h> | |
1491 int main(void) { return 0; } | |
1694 | 1492 EOF |
2943 | 1493 _svga=no |
1494 cc_check -lvgagl -lvga && _svga=yes | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1495 fi |
2943 | 1496 if test "$_svga" = yes ; then |
1497 _def_svga='#define HAVE_SVGALIB 1' | |
1498 _ld_svga='-lvgagl -lvga' | |
1499 _vosrc="$_vosrc vo_svga.c" | |
1500 else | |
1501 _def_svga='#undef HAVE_SVGALIB' | |
1502 fi | |
1503 echores "$_svga" | |
1596 | 1504 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1505 |
2943 | 1506 echocheck "FBDev" |
1507 if test "$_fbdev" = auto ; then | |
1508 _fbdev=no | |
1509 linux && _fbdev=yes | |
1510 fi | |
1511 if test "$_fbdev" = yes ; then | |
1512 _def_fbdev='#define HAVE_FBDEV 1' | |
1513 _vosrc="$_vosrc vo_fbdev.c" | |
1514 else | |
1515 _def_fbdev='#undef HAVE_FBDEV' | |
1516 fi | |
1517 echores "$_fbdev" | |
2774 | 1518 |
1519 | |
2943 | 1520 echocheck "DVB" |
1521 if test "$_dvb" != no ; then | |
1522 _dvb=no | |
1523 test -c /dev/ost/video && _dvb=yes | |
1524 fi | |
1525 if test "$_dvb" = yes ; then | |
1526 _def_dvb='#define HAVE_DVB 1' | |
1527 else | |
1528 _def_dvb='#undef HAVE_DVB' | |
1529 fi | |
1530 echores "$_dvb" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1531 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1532 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1533 echocheck "PNG support" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1534 if test "$_png" = auto ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1535 _png=no |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1536 if irix ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1537 # Don't check for -lpng on irix since it has its own libpng |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1538 # incompatible with the GNU libpng |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1539 echores "disabled on irix (not GNU libpng)" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1540 else |
2993 | 1541 cat > $TMPC << EOF |
1542 #include <png.h> | |
1543 int main(void) { return 0; } | |
1544 EOF | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1545 cc_check -lpng -lz -lm && _png=yes |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1546 echores yes |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1547 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1548 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1549 echores "$_png" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1550 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1551 if test "$_png" = yes ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1552 _def_png='#define HAVE_PNG 1' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1553 _ld_png='-lpng -lz' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1554 _vosrc="$_vosrc vo_png.c" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1555 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1556 _def_png='#undef HAVE_PNG' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1557 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1558 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1559 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1560 ################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1561 # VIDEO + AUDIO # |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1562 ################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1563 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1564 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1565 echocheck "SDL" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1566 if test -z "$_sdlconfig" ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1567 if ( sdl-config --version ) >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1568 _sdlconfig="sdl-config" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1569 elif ( sdl11-config --version ) >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1570 _sdlconfig="sdl11-config" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1571 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1572 _sdlconfig=false |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1573 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1574 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1575 if test "$_sdl" = auto || test "$_sdl" = yes ; then |
2948 | 1576 cat > $TMPC << EOF |
1577 #include <SDL.h> | |
1578 int main(void) { return 0; } | |
1579 EOF | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1580 _sdl=no |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1581 if "$_sdlconfig" --version >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1582 if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1583 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1584 if test "$_sdlversion" -gt 116 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1585 if test "$_sdlversion" -lt 121 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1586 _def_sdlbuggy='#define BUGGY_SDL' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1587 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1588 _def_sdlbuggy='#undef BUGGY_SDL' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1589 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1590 _sdl=yes |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1591 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1592 _sdl=outdated |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1593 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1594 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1595 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1596 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1597 if test "$_sdl" = yes ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1598 _def_sdl='#define HAVE_SDL 1' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1599 _ld_sdl=`$_sdlconfig --libs` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1600 _inc_sdl=`$_sdlconfig --cflags` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1601 _vosrc="$_vosrc vo_sdl.c" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1602 _aosrc="$_aosrc ao_sdl.c" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1603 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1604 _def_sdl='#undef HAVE_SDL' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1605 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1606 echores "$_sdl (with $_sdlconfig)" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1607 |
2943 | 1608 echocheck "DXR3/H+" |
1609 if test "$_dxr3" = auto ; then | |
1610 cat > $TMPC << EOF | |
1611 #include <libdxr3/api.h> | |
1612 int main(void) { return 0; } | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1613 EOF |
2943 | 1614 _dxr3=no |
1615 cc_check -ldxr3 && _dxr3=yes | |
1616 fi | |
1617 if test "$_dxr3" = yes ; then | |
1618 _def_dxr3='#define HAVE_DXR3 1' | |
1619 _ld_dxr3='-ldxr3' | |
1620 _vosrc="$_vosrc vo_dxr3.c" | |
1621 _aosrc="$_aosrc ao_dxr3.c" | |
1622 else | |
1623 _def_dxr3='#undef HAVE_DXR3' | |
1624 fi | |
1625 echores "$_dxr3" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1626 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1627 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1628 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1629 # AUDIO # |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1630 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1631 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1632 |
2943 | 1633 echocheck "OSS Audio" |
1634 if test "$_ossaudio" = auto ; then | |
1635 cat > $TMPC << EOF | |
1636 #include <sys/soundcard.h> | |
1637 int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; } | |
2482 | 1638 EOF |
2943 | 1639 _ossaudio=no |
1640 cc_check && _ossaudio=yes | |
1641 fi | |
1642 if test "$_ossaudio" = yes ; then | |
1643 _def_ossaudio='#define USE_OSS_AUDIO 1' | |
1644 _aosrc="$_aosrc ao_oss.c" | |
1645 else | |
1646 _def_ossaudio='#undef USE_OSS_AUDIO' | |
1647 fi | |
1648 echores "$_ossaudio" | |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
1649 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1650 |
2943 | 1651 echocheck "ALSA audio" |
1652 if test "$_alsa" = auto || test "$_alsa" = yes; then | |
1653 _alsa=no | |
2190 | 1654 cat > $TMPC << EOF |
1004 | 1655 #include <sys/asoundlib.h> |
1029 | 1656 #include <sys/soundcard.h> |
2943 | 1657 int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5)); } |
1004 | 1658 EOF |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1659 cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.5.x' |
1004 | 1660 |
2190 | 1661 cat > $TMPC << EOF |
1004 | 1662 #include <sys/asoundlib.h> |
1029 | 1663 #include <sys/soundcard.h> |
2943 | 1664 int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); } |
1004 | 1665 EOF |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1666 cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.9.x' |
2943 | 1667 if test "$_alsaver" ; then |
1668 _alsa=yes | |
1669 echores "yes ($_alsaver)" | |
1670 else | |
1671 echores "no" | |
1672 fi | |
1673 else | |
1674 echores "no" | |
2190 | 1675 fi |
2943 | 1676 _def_alsa5='#undef HAVE_ALSA5' |
1677 _def_alsa9='#undef HAVE_ALSA9' | |
1678 if test "$_alsa" = yes ; then | |
1679 if test "$_alsaver" = '0.5.x' ; then | |
1680 _aosrc="$_aosrc ao_alsa5.c" | |
1681 _def_alsa5='#define HAVE_ALSA5 1' | |
1682 elif test "$_alsaver" = '0.9.x' ; then | |
1683 _aosrc="$_aosrc ao_alsa9.c" | |
1684 _def_alsa9='#define HAVE_ALSA9 1' | |
1685 fi | |
1686 _ld_alsa='-lasound' | |
1687 fi | |
1004 | 1688 |
1689 | |
2943 | 1690 echocheck "Sun audio" |
1691 if test "$_sunaudio" = auto ; then | |
1692 cat > $TMPC << EOF | |
1693 #include <sys/types.h> | |
1694 #include <sys/audioio.h> | |
1695 int main(void) { audio_info_t info; AUDIO_INITINFO(&info); } | |
1696 EOF | |
1697 _sunaudio=no | |
1698 cc_check && _sunaudio=yes | |
1699 fi | |
1700 if test "$_sunaudio" = yes ; then | |
1701 _def_sunaudio='#define USE_SUN_AUDIO 1' | |
1702 _aosrc="$_aosrc ao_sun.c" | |
1703 else | |
1704 _def_sunaudio='#undef USE_SUN_AUDIO' | |
1705 fi | |
1706 echores "$_sunaudio" | |
1707 | |
1708 | |
1709 echocheck "Sun mediaLib" | |
1710 if test "$_mlib" = auto ; then | |
1711 _mlib=no | |
1712 test -z "$_mlibdir" && _mlibdir=/opt/SUNWmlib | |
1713 cat > $TMPC << EOF | |
1714 #include <mlib.h> | |
1715 int main(void) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; } | |
1029 | 1716 EOF |
2943 | 1717 cc_check -I${_mlibdir}/include -L${_mlibdir}/lib -lmlib && _mlib=yes |
1718 fi | |
1719 if test "$_mlib" = yes ; then | |
1720 _def_mlib='#define HAVE_MLIB 1' | |
1721 _inc_mlib=" -I${_mlibdir}/include " | |
1722 _ld_mlibl=" -L${_mlibdir}/lib -R${_mlibdir}/lib -lmlib " | |
1723 else | |
1724 _def_mlib='#undef HAVE_MLIB' | |
1725 fi | |
1726 echores "$_mlib" | |
1727 | |
1728 | |
1729 echocheck "SGI Audio" | |
1730 if test "$_sgiaudio" = auto ; then | |
1731 # check for SGI audio | |
1732 cat > $TMPC << EOF | |
1733 #include <dmedia/audio.h> | |
1734 int main(void) { return 0; } | |
1735 EOF | |
1736 _sgiaudio=no | |
1737 cc_check && _sgiaudio=yes | |
1738 fi | |
1739 if test "$_sgiaudio" = "yes" ; then | |
1740 _def_sgiaudio='#define USE_SGI_AUDIO 1' | |
1741 _ld_sgiaudio='-laudio' | |
1742 _aosrc="$_aosrc ao_sgi.c" | |
1743 else | |
1744 _def_sgiaudio='#undef USE_SGI_AUDIO' | |
1745 fi | |
1746 echores "$_sgiaudio" | |
1029 | 1747 |
2463 | 1748 |
2961 | 1749 echocheck "DVD support" |
2943 | 1750 if test "$_dvdread" = auto ; then |
1751 cat > $TMPC << EOF | |
1752 #include <dvdread/dvd_reader.h> | |
1753 #include <dvdread/ifo_types.h> | |
1754 #include <dvdread/ifo_read.h> | |
1755 #include <dvdread/nav_read.h> | |
1756 int main(void) { return 0; } | |
1757 EOF | |
1758 _dvdread=no | |
1759 cc_check \ | |
1760 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -ldvdread && \ | |
1761 _dvdread=yes | |
1762 fi | |
1763 if test "$_css" = auto ; then | |
1764 cat > $TMPC <<EOF | |
1765 #include <css.h> | |
1766 int main(void) { int i=CSSisEncrypted(0); return 0; } | |
2463 | 1767 EOF |
2943 | 1768 _css=no |
2961 | 1769 cc_check -lcss && _css=yes |
2943 | 1770 fi |
1771 # dvdread preferred to DeCSS | |
1772 if test "$_dvdread" = yes ; then | |
1773 _largefiles=yes | |
1774 _def_dvdread='#define USE_DVDREAD 1' | |
1775 _def_css='#undef HAVE_LIBCSS' | |
1776 _ld_css='-ldvdread' | |
2961 | 1777 echores "libdvdread" |
2943 | 1778 elif test "$_css" = yes ; then |
1779 _def_dvdread='#undef USE_DVDREAD' | |
1780 _def_css='#define HAVE_LIBCSS 1' | |
1781 test "$_csslibdir" && _ld_css="-L${_csslibdir} ${_ld_css}" | |
2961 | 1782 echores "libcss" |
2943 | 1783 else |
1784 _def_dvdread='#undef USE_DVDREAD' | |
1785 _def_css='#undef HAVE_LIBCSS' | |
2961 | 1786 echores "no" |
2943 | 1787 fi |
2463 | 1788 |
1789 | |
2943 | 1790 echocheck "zlib" |
2450 | 1791 cat > $TMPC << EOF |
2943 | 1792 #include <zlib.h> |
2983 | 1793 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } |
2450 | 1794 EOF |
2943 | 1795 _zlib=no |
1796 cc_check -lz && _zlib=yes | |
1797 if test "$_zlib" = yes ; then | |
1798 _def_zlib='#define HAVE_ZLIB 1' | |
1799 _ld_zlib='-lz' | |
1800 else | |
1801 _def_zlib='#undef HAVE_ZLIB' | |
1802 fi | |
1803 echores "$_zlib" | |
2463 | 1804 |
1029 | 1805 |
2943 | 1806 echocheck "mad support" |
1807 if test "$_mad" = auto ; then | |
1808 _mad=no | |
1809 cat > $TMPC << EOF | |
2435 | 1810 #include <mad.h> |
1811 int main(void) { return 0; } | |
1812 EOF | |
2988 | 1813 cc_check $_madlibdir -lmad && _mad=yes |
2943 | 1814 fi |
1815 if test "$_mad" = yes ; then | |
1816 _def_mad='#define USE_LIBMAD 1' | |
1817 _ld_mad='-lmad' | |
1818 else | |
1819 _def_mad='#undef USE_LIBMAD' | |
1820 fi | |
1821 echores "$_mad" | |
1822 | |
1823 | |
1824 echocheck "OggVorbis support" | |
1825 if test "$_vorbis" = auto ; then | |
1826 _vorbis=no | |
1827 cat > $TMPC << EOF | |
1828 #include <vorbis/codec.h> | |
1829 int main(void) { return 0; } | |
1830 EOF | |
2988 | 1831 cc_check -lvorbis -logg -lm && _vorbis=yes |
2943 | 1832 fi |
1833 if test "$_vorbis" = yes ; then | |
1834 _def_vorbis='#define HAVE_OGGVORBIS 1' | |
2988 | 1835 _ld_vorbis='-lvorbis -logg -lm' |
2943 | 1836 else |
1837 _def_vorbis='#undef HAVE_OGGVORBIS' | |
1838 fi | |
1839 echores "$_vorbis" | |
1840 | |
1841 | |
1842 echocheck "Win32 DLL support" | |
1843 if test "$_win32" = auto ; then | |
1844 _win32=no | |
1845 if test "$host_arch" = i386 ; then | |
1846 if test -z "$_win32libdir" ; then | |
1847 for I in /usr/local/lib/win32 /usr/lib/win32 ; do | |
1848 if test -d "$I" ; then | |
1849 _win32libdir="$I" | |
1850 break; | |
1851 fi; | |
1852 done | |
1853 fi | |
1854 test "$_win32libdir" && _win32=yes | |
1855 fi | |
1856 fi | |
1857 if test "$_win32" = yes ; then | |
1858 _def_win32='#define USE_WIN32DLL 1' | |
1859 _ld_win32='-Lloader -lloader' | |
1860 _dep_win32='loader/libloader.a' | |
1861 else | |
1862 _def_win32='#undef USE_WIN32DLL' | |
1863 fi | |
1864 echores "$_win32" | |
1865 | |
1866 | |
1867 echocheck "DirectShow" | |
1868 if test "$_win32" = yes && test "$_dshow" = auto ; then | |
1869 _dshow=no | |
1870 # check if compiler supports C++ and C++-libs are installed correctly | |
1871 cat > "$TMPCPP" << EOF | |
1872 #include <string> | |
1873 class myclass { | |
1874 private: int ret; | |
1875 public: int myreturn(void); | |
1876 }; | |
1877 int myclass::myreturn(void) { ret = 0; return ret ; } | |
1878 int main(void) { myclass myobject; return myobject.myreturn(); } | |
1879 EOF | |
1880 echo "------------------------------------------------" >> "$TMPLOG" | |
1881 cat "$TMPCPP" >> "$TMPLOG" | |
1882 if ( "$_cc" "$TMPCPP" -o "$TMPO" && "$TMPO" ) >> "$TMPLOG" 2>&1 ; then | |
1883 _dshow=yes | |
1884 echores "yes (C++ is ok)" | |
1885 else | |
1886 echores "no" | |
1887 cat << EOF | |
1888 | |
1889 Your C++ runtime environment is broken. | |
1890 | |
1891 Hints: Does $_cc support C++ ? Have you a C++ compiler installed ? | |
1892 Are the C++ libraries correctly installed ? | |
1893 Check for libstdc++ and in (/etc/)ld.so.conf | |
1894 | |
1895 If you don't need DirectShow support, you can also use: | |
1896 ./configure --disable-dshow <your-normal-configure-options> | |
1897 to disable building of the C++ based DirectShow code. | |
1898 | |
1899 EOF | |
1900 die "$_cc's C++ is broken" | |
1901 fi | |
1902 else | |
1903 _dshow=no | |
1904 echores "$_dshow" | |
1905 fi | |
1906 if test "$_dshow" = yes ; then | |
1907 _def_dshow='#define USE_DIRECTSHOW 1' | |
1908 _ld_dshow='-Lloader/DirectShow -lDS_Filter -lstdc++' | |
1909 _dep_dshow='loader/DirectShow/libDS_Filter.a' | |
1910 else | |
1911 _def_dshow='#undef USE_DIRECTSHOW' | |
1912 fi | |
2435 | 1913 |
1914 | |
2943 | 1915 echocheck "XAnim DLL" |
1916 if test "$_xanim" = auto ; then | |
1917 _xanim=no | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1918 if test "$_dl" = yes ; then |
2943 | 1919 if test "$host_arch" = i386 ; then |
1920 if test -z "$_xanimlibdir" ; then | |
1921 for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods ; do | |
1922 if test -d "$I" ; then | |
1923 _xanimlibdir="$I" | |
1924 break; | |
1925 fi; | |
1926 done | |
1927 fi | |
1928 test "$_xanimlibdir" && _xanim=yes | |
1929 echores "yes" | |
1930 else | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1931 echores "not supported on non x86" |
2943 | 1932 fi |
1933 else | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1934 echores "dl support needed" |
2943 | 1935 fi |
1936 else | |
1937 echores "$_xanim" | |
1938 fi | |
1939 if test "$_xanim" = yes ; then | |
1940 _def_xanim='#define USE_XANIM 1' | |
1941 _def_xanim_path="#define XACODEC_PATH \"$_xanimlibdir\"" | |
1942 else | |
1943 _def_xanim='#undef USE_XANIM' | |
1944 _def_xanim_path='#undef XACODEC_PATH' | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1945 fi |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1946 |
2943 | 1947 |
1948 echocheck "iconv" | |
1949 if test "$_iconv" = auto ; then | |
1950 if freebsd ; then | |
1951 _iconv_tmp='#include <giconv.h>' | |
1952 else | |
1953 _iconv_tmp='#include <iconv.h>' | |
1954 fi | |
1955 cat > $TMPC << EOF | |
1956 #include <stdio.h> | |
1957 #include <unistd.h> | |
1958 $_iconv_tmp | |
1959 #define INBUFSIZE 1024 | |
1960 #define OUTBUFSIZE 4096 | |
1961 | |
1962 char inbuffer[INBUFSIZE]; | |
1963 char outbuffer[OUTBUFSIZE]; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1964 |
2943 | 1965 int main(void) { |
1966 ssize_t numread; | |
1967 iconv_t icdsc; | |
1968 char *tocode="UTF-8"; | |
1969 char *fromcode="cp1250"; | |
1970 if ((icdsc = iconv_open (tocode, fromcode)) != (iconv_t)(-1)) { | |
1971 while ((numread = read (0, inbuffer, INBUFSIZE))) { | |
1972 char *iptr=inbuffer; | |
1973 char *optr=outbuffer; | |
1974 size_t inleft=numread; | |
1975 size_t outleft=OUTBUFSIZE; | |
1976 if (iconv(icdsc, (const char **)&iptr, &inleft, &optr, &outleft) | |
1977 != (size_t)(-1)) { | |
1978 write (1, outbuffer, OUTBUFSIZE - outleft); | |
1979 } | |
1980 } | |
1981 if (iconv_close(icdsc) == -1) | |
1982 ; | |
1983 } | |
1984 } | |
987 | 1985 EOF |
2943 | 1986 _iconv=no |
1987 if freebsd ; then | |
1988 cc_check -lm -lgiconv && _iconv=yes | |
1989 elif bsdos ; then | |
1990 cc_check -lm -liconv && _iconv=yes | |
1991 else | |
1992 cc_check -lm && _iconv=yes | |
1993 fi | |
987 | 1994 fi |
2943 | 1995 if test "$_iconv" = yes ; then |
1996 _def_iconv='#define USE_ICONV 1' | |
1997 freebsd && _ld_iconv='-lgiconv' | |
1998 bsdos && _ld_iconv='-liconv' | |
1999 else | |
2000 _def_iconv='#undef USE_ICONV' | |
2001 fi | |
2002 echores "$_iconv" | |
2003 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2004 |
2943 | 2005 echocheck "FFmpeg codec" |
2006 if test "$_libavcodec" = auto ; then | |
2007 # Note: static link is preferred to dynamic link | |
2008 _libavcodec=no | |
2009 test -d libavcodec && test -f libavcodec/Makefile && _libavcodec=yes | |
2010 fi | |
2945 | 2011 if test "$_libavcodecso" = auto ; then |
2012 _libavcodecso=no | |
2943 | 2013 cat > $TMPC << EOF |
2014 #include <libffmpeg/avcodec.h> | |
2015 int main(void) { return 0; } | |
987 | 2016 EOF |
2945 | 2017 cc_check -lffmpeg -lm && _libavcodecso=yes |
2943 | 2018 fi |
2019 _def_libavcodec='#undef USE_LIBAVCODEC' | |
2945 | 2020 _def_libavcodecso='#undef USE_LIBAVCODEC_SO' |
2943 | 2021 _def_ffpostprocess='#undef FF_POSTPROCESS' |
2022 if test "$_libavcodec" = yes ; then | |
2023 _def_libavcodec='#define USE_LIBAVCODEC 1' | |
2024 _ld_libavcodec='-Llibavcodec -lavcodec' | |
2025 _dep_libavcodec='libavcodec/libavcodec.a' | |
2026 _def_ffpostprocess='#define FF_POSTPROCESS 1' | |
2027 echores "static libavcodec" | |
2945 | 2028 elif test "$_libavcodecso" = yes ; then |
2029 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' | |
2943 | 2030 _ld_libavcodec='-lffmpeg' |
2031 _def_ffpostprocess='#define FF_POSTPROCESS 1' | |
2032 echores "dynamic libffmpeg.so" | |
2033 else | |
2034 echores "not found" | |
987 | 2035 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2036 |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2037 |
2943 | 2038 # FIXME : variables don't have a "standard" name so check this one day |
2039 if test "$_divx4linux" = auto ; then | |
2040 _divx4linux=no | |
2041 echocheck "Divx4linux decore" | |
2042 cat > $TMPC << EOF | |
2043 #include <decore.h> | |
2044 int main(void) { return DEC_OPT_FRAME_311; } | |
987 | 2045 EOF |
2943 | 2046 _divx4linux_decore=no |
2047 if cc_check -ldivxdecore -lm ; then | |
2048 _divx4linux_decore=yes | |
2049 else | |
2050 _divx4linux_decore='not found' | |
2051 fi | |
2052 echores "$_divx4linux_decore" | |
2053 test "$_divx4linux_decore" = yes && _divx4linux=yes | |
2054 echocheck "Divx4linux encore (for mencoder)" | |
2055 cat > $TMPC <<EOF | |
2056 #include <encore2.h> | |
2057 int main(void) { return 0; } | |
2058 EOF | |
2059 _divx4linux_encore=no | |
2060 cc_check -ldivxencore -lm && _divx4linux_encore=yes | |
2061 echores "$_divx4linux_encore" | |
1023 | 2062 fi |
2943 | 2063 _def_decore='#undef NEW_DECORE' |
2064 _ld_decore='-Lopendivx -ldecore' | |
2065 _def_encore='#undef NEW_ENCORE' | |
2066 if test "$_divx4linux_decore" = yes ; then | |
2067 _def_decore='#define NEW_DECORE 1' | |
2068 _ld_decore='-ldivxdecore opendivx/postprocess.o' | |
2069 if test "$_divx4linux_encore" = yes ; then | |
2070 _def_encore='#define NEW_ENCORE 1' | |
2071 _ld_encore='-ldivxencore' | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2072 fi |
987 | 2073 fi |
2074 | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
2075 |
2943 | 2076 echocheck "lirc" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2077 if test "$_lirc" = auto ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2078 _lirc=no |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2079 test -c /dev/lirc && _lirc=yes |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2080 fi |
2943 | 2081 if test "$_lirc" = yes ; then |
2082 _def_lirc='#define HAVE_LIRC 1' | |
2083 _ld_lirc='-llirc_client' | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
2084 else |
2943 | 2085 _def_lirc='#undef HAVE_LIRC' |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
2086 fi |
2943 | 2087 echores "$_lirc" |
2088 | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
2089 |
2943 | 2090 echocheck "fastmemcpy" |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2091 # fastmemcpy check is done earlier with tests of CPU & binutils features |
2943 | 2092 if test "$_fastmemcpy" = yes ; then |
2093 _def_fastmemcpy='#define USE_FASTMEMCPY 1' | |
2094 else | |
2095 _def_fastmemcpy='#undef USE_FASTMEMCPY' | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
2096 fi |
2943 | 2097 echores "$_fastmemcpy" |
987 | 2098 |
2943 | 2099 |
2100 echocheck "TV interface" | |
2101 # FIXME tv check | |
2102 if test "$_tv" = yes ; then | |
2103 _def_tv='#define USE_TV 1' | |
2104 else | |
2105 _def_tv='#undef USE_TV' | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
2106 fi |
2943 | 2107 echores "$_tv" |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
2108 |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
2109 |
2943 | 2110 echocheck "streaming" |
2111 # FIXME streaming check | |
2112 if test "$_streaming" = yes ; then | |
2113 _def_streaming='#define STREAMING 1' | |
2114 # FIXME _streamingsrcs='asf_streaming.c network.c url.c http.c' | |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
2115 else |
2943 | 2116 _def_streaming='#undef STREAMING' |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
2117 fi |
2943 | 2118 echores "$_streaming" |
2119 | |
2120 | |
2121 | |
2122 # --------------- GUI specific tests begin ------------------- | |
2123 echocheck "GUI" | |
2124 echo "$_gui" | |
2125 if test "$_gui" = yes ; then | |
1740 | 2126 |
2943 | 2127 echocheck "XShape extension" |
2128 _xshape=no | |
2129 if test "$_x11" = yes ; then | |
2130 cat > $TMPC << EOF | |
2131 #include <X11/Xlib.h> | |
2132 #include <X11/Xproto.h> | |
2133 #include <X11/Xutil.h> | |
2134 #include <X11/extensions/shape.h> | |
2135 #include <stdlib.h> | |
1740 | 2136 int main(void) { |
2943 | 2137 char *name = ":0.0"; |
2138 Display *wsDisplay; | |
2139 int exitvar = 0; | |
2140 int eventbase, errorbase; | |
2141 if (getenv("DISPLAY")) | |
2142 name=getenv("DISPLAY"); | |
2143 wsDisplay=XOpenDisplay(name); | |
2144 if (!XShapeQueryExtension(wsDisplay,&eventbase,&errorbase)) | |
2145 exitvar=1; | |
2146 XCloseDisplay(wsDisplay); | |
2147 return exitvar; | |
1740 | 2148 } |
2149 EOF | |
2988 | 2150 cc_check $_inc_x11 $_ld_x11 && _xshape=yes |
1740 | 2151 fi |
2943 | 2152 if test "$_xshape" = yes ; then |
2153 _def_xshape='#define HAVE_XSHAPE 1' | |
2700 | 2154 else |
2943 | 2155 die "the GUI requires the X11 extension XShape (which was not found)" |
2700 | 2156 fi |
2943 | 2157 echores "$_xshape" |
2594 | 2158 |
2159 | |
2943 | 2160 # Check for GTK: |
2161 echocheck "gtk version" | |
2162 if test -z "$_gtkconfig" ; then | |
2163 if ( gtk-config --version ) >/dev/null 2>&1 ; then | |
2164 _gtkconfig="gtk-config" | |
2165 elif ( gtk12-config --version ) >/dev/null 2>&1 ; then | |
2166 _gtkconfig="gtk12-config" | |
2167 else | |
2168 die "the GUI requires GTK (which was not found)" | |
2169 fi | |
2700 | 2170 fi |
2943 | 2171 _gtk=`$_gtkconfig --version 2>&1` |
2172 _inc_gtk=`$_gtkconfig --cflags 2>&1` | |
2173 _ld_gtk=`$_gtkconfig --libs 2>&1` | |
2174 echores "$_gtk (with $_gtkconfig)" | |
1694 | 2175 |
2943 | 2176 # Check for GLIB |
2177 echocheck "glib version" | |
2178 if test -z "$_glibconfig" ; then | |
2179 if ( glib-config --version ) >/dev/null 2>&1 ; then | |
2180 _glibconfig="glib-config" | |
2181 elif ( glib12-config --version ) >/dev/null 2>&1 ; then | |
2182 _glibconfig="glib12-config" | |
2183 else | |
2184 die "the GUI requires GLIB (which was not found)" | |
2185 fi | |
2186 fi | |
2187 _glib=`$_glibconfig --version 2>&1` | |
2188 _inc_glib=`$_glibconfig --cflags 2>&1` | |
2189 _ld_glib=`$_glibconfig --libs 2>&1` | |
2190 echores "$_glib (with $_glibconfig)" | |
1694 | 2191 |
2943 | 2192 _def_gui='#define HAVE_NEW_GUI 1' |
2193 _ld_gui='-LGui -lgui $(GTKLIB) $(GLIBLIB)' | |
2194 | |
2983 | 2195 echo |
2196 echo "Creating Gui/config.mak" | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2197 cat > Gui/config.mak << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2198 # -------- Generated by configure ----------- |
2943 | 2199 |
2200 GTKINC = $_inc_gtk | |
2201 GTKLIBS = $_ld_gtk | |
2202 GLIBINC = $_inc_glib | |
2203 GLIBLIBS = $_ld_glib | |
1694 | 2204 |
2205 EOF | |
2206 | |
2943 | 2207 else |
2208 _def_gui='#undef HAVE_NEW_GUI' | |
1 | 2209 fi |
2943 | 2210 # --------------- GUI specific tests end ------------------- |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
2211 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2212 |
1279 | 2213 |
2943 | 2214 ############################################################################# |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
2215 |
697 | 2216 # Checking for CFLAGS |
2171 | 2217 if test "$_profile" || test "$_debug" ; then |
2943 | 2218 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
2219 elif test -z "$CFLAGS" ; then | |
2220 if [ "$host_arch" != "mips" ]; then | |
2221 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" | |
2222 else | |
2223 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" | |
2224 fi | |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2225 else |
2943 | 2226 cat <<EOF |
2227 | |
2228 MPlayer compilation will use CFLAGS set by you, but: | |
2229 DO NOT BUGREPORT IF IT DOES NOT WORK | |
2230 | |
2231 It is strongly recommended you let MPlayer choose the correct CFLAGS! | |
2232 To do so, execute 'CFLAGS= ./configure <options>' | |
2233 | |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2234 EOF |
697 | 2235 fi |
2190 | 2236 |
2943 | 2237 # Thread support |
2190 | 2238 if linux ; then |
2239 CFLAGS="$CFLAGS -D_REENTRANT" | |
2240 elif bsd ; then | |
2943 | 2241 # FIXME bsd needs this so maybe other OS'es |
2190 | 2242 CFLAGS="$CFLAGS -D_THREAD_SAFE" |
1182 | 2243 fi |
2244 | |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2245 # 64 bit file offsets? |
2190 | 2246 if test "$_largefiles" = yes || freebsd ; then |
2247 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
2171 | 2248 if test "$_dvdread" = yes ; then |
2190 | 2249 # dvdread support requires this (for off64_t) |
2250 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | |
1596 | 2251 fi |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2252 fi |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2253 |
2943 | 2254 # Determine OS dependent libs |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2255 if cygwin ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2256 _confcygwin='TARGET_CYGWIN = yes' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2257 _def_confwin32='#define WIN32' |
2421 | 2258 else |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2259 _confcygwin="TARGET_CYGWIN = no" |
1 | 2260 fi |
2261 | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2262 _ld_arch="$_ld_pthread $_ld_dl" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2263 bsd && _ld_arch="-rdynamic $_ld_arch" |
2943 | 2264 bsdos && _ld_arch="$_ld_arch -ldvd" |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2265 |
2943 | 2266 _def_debug='#undef MP_DEBUG' |
2267 test "$_debug" && _def_debug='#define MP_DEBUG 1' | |
287 | 2268 |
2943 | 2269 _def_linux='#undef TARGET_LINUX' |
2270 linux && _def_linux='#define TARGET_LINUX 1' | |
11 | 2271 |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2272 |
2943 | 2273 ############################################################################# |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2274 echo "Creating config.mak" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2275 cat > config.mak << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2276 # -------- Generated by configure ----------- |
2727 | 2277 |
2943 | 2278 LANG = C |
2279 TARGET_OS = $system_name | |
2280 prefix = $_prefix | |
2281 AR = ar | |
2282 CC = $_cc | |
2283 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math | |
2284 OPTFLAGS = $CFLAGS | |
2285 EXTRA_INC = $_inc_extra $_inc_gtk | |
2286 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" | |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
2287 |
2943 | 2288 STREAMING = $_streaming |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
2289 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2290 VO2 = $_vo2 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2291 |
2943 | 2292 X11_INC = $_inc_x11 |
2988 | 2293 X11DIR = $_ld_static $_ld_x11 |
2294 X_LIBS = $_ld_static $_ld_x11 $_ld_extra $_ld_gl $_ld_ggi $_ld_dxr3 $_ld_sdl $_ld_dga $_ld_xv $_ld_vm $_ld_svga $_ld_png $_ld_sock $_ld_aa $_ld_vorbis $_ld_xinerama $_ld_mad $_ld_zlib | |
1258 | 2295 |
2988 | 2296 TERMCAP_LIB = $_ld_static $_ld_termcap |
2297 LIRC_LIBS = $_ld_static $_ld_lirc | |
2943 | 2298 CSS_USE = $_css |
2988 | 2299 CSS_LIB = $_ld_static $_ld_css |
2943 | 2300 SDL_INC = $_inc_sdl |
2301 W32_DEP = $_dep_win32 | |
2988 | 2302 W32_LIB = $_ld_static $_ld_win32 |
2943 | 2303 DS_DEP = $_dep_dshow |
2988 | 2304 DS_LIB = $_ld_static $_ld_dshow |
2949 | 2305 AV_DEP = $_dep_libavcodec |
2988 | 2306 AV_LIB = $_ld_static $_ld_libavcodec |
2943 | 2307 ALSA_LIB = $ld__alsa |
2308 SGI_AUDIO_LIB = $_ld_sgiaudio | |
2988 | 2309 ARCH_LIBS = $_ld_static $_ld_arch $_ld_iconv |
2310 DIVX4LINUX = $_ld_static $_divx4linux | |
2311 DECORE_LIBS = $_ld_static $_ld_decore | |
2312 ENCORE_LIBS = $_ld_static $_ld_encore | |
2943 | 2313 HAVE_MLIB = $_mlib |
2314 MLIB_INC = $_inc_mlib | |
2988 | 2315 MLIB_LIB = $_ld_static $_ld_mlib |
2421 | 2316 MADLIB_LIB = $_madlibdir |
2943 | 2317 STATIC = $_ld_static |
1258 | 2318 |
2319 # --- Some stuff for autoconfigure ---- | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2320 $_target_arch |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
2321 $_confcygwin |
1258 | 2322 TARGET_CPU=$iproc |
2943 | 2323 TARGET_MMX = $_mmx |
2324 TARGET_MMX2 = $_mmx2 | |
2325 TARGET_3DNOW = $_3dnow | |
2326 TARGET_3DNOWEX = $_3dnowex | |
2327 TARGET_SSE = $_sse | |
1258 | 2328 |
2943 | 2329 BINUTILS = $_binutils |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2330 |
1694 | 2331 # --- GUI stuff --- |
2988 | 2332 GTKLIB = $_ld_static $_ld_gtk |
2333 GLIBLIB = $_ld_static $_ld_glib | |
2334 GUI_LIBS = $_ld_static $_ld_gui | |
2943 | 2335 GUI = $_gui |
2336 DEBUG = -DDEBUG | |
1694 | 2337 |
1258 | 2338 EOF |
1 | 2339 |
2943 | 2340 ############################################################################# |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2341 echo "Creating config.h" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2342 cat > config.h << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2343 /* -------- Generated by configure ----------- */ |
1 | 2344 |
2992
ef58de7a942f
Make description for SIMPLE_IDCT better and make #define consisten with others.
atmos4
parents:
2991
diff
changeset
|
2345 /* define this to use simple idct with patched libavcodec */ |
ef58de7a942f
Make description for SIMPLE_IDCT better and make #define consisten with others.
atmos4
parents:
2991
diff
changeset
|
2346 #define SIMPLE_IDCT 1 |
2991
ad107e7bb843
small "make it easier to compile" addition, enable SIMPLE_IDCT by default
atmos4
parents:
2990
diff
changeset
|
2347 |
2943 | 2348 #define USE_OSD 1 |
2349 #define USE_SUB 1 | |
1422 | 2350 |
2943 | 2351 $_def_debug |
1565 | 2352 |
2943 | 2353 $_def_dvdread |
1596 | 2354 |
1353 | 2355 /* Common data directory (for fonts, etc) */ |
2356 #define DATADIR "$_datadir" | |
2357 | |
2525 | 2358 /* Define this to compile stream-caching support, it can be enabled via |
2359 -cache <kilobytes> */ | |
2943 | 2360 #define USE_STREAM_CACHE 1 |
2525 | 2361 |
1349 | 2362 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */ |
2363 /* You have to change DECORE_LIBS in config.mak too! */ | |
2943 | 2364 $_def_decore |
2365 $_def_encore | |
1349 | 2366 |
1 | 2367 /* Define this to enable avg. byte/sec-based AVI sync method by default: |
1599 | 2368 (use -bps or -nobps commandline option for run-time method selection) |
2369 -bps gives better sync for vbr mp3 audio, it is now default */ | |
2943 | 2370 #define AVI_SYNC_BPS 1 |
1 | 2371 |
2372 /* Undefine this if you want soundcard-only timing by default: | |
2373 You can still change this with the -alsa or -noalsa command-line option! | |
2374 (This function was originally impemented to solve ALSA driver's big | |
2375 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
2943 | 2376 #define ALSA_TIMER 1 |
1 | 2377 |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2378 /* 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
|
2379 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
|
2380 -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
|
2381 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2382 */ |
2943 | 2383 #define USE_FAKE_MONO 1 |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2384 |
1 | 2385 /* Undefine this if your soundcard driver has no working select(). |
2386 If you have kernel Oops, player hangups, or just no audio, you should | |
2387 try to recompile MPlayer with this option disabled! */ | |
2943 | 2388 $_def_select |
1 | 2389 |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
2390 /* define this to use iconv(3) function to codepage conversions */ |
2943 | 2391 $_def_iconv |
1 | 2392 |
755 | 2393 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
2394 #define MAX_OUTBURST 65536 | |
2395 | |
586 | 2396 /* set up audio OUTBURST. Do not change this! */ |
2397 #ifdef USE_XMMP_AUDIO | |
2398 #define OUTBURST 4096 | |
2399 #else | |
2400 //#define OUTBURST 1024 | |
2401 #define OUTBURST 512 | |
2402 #endif | |
2403 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2404 /* Define this if your system has the header file for the OSS sound interface */ |
2943 | 2405 $_def_sys_soundcard |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2406 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2407 /* Define this if your system has the "malloc.h" header file */ |
2943 | 2408 $_def_malloc |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2409 |
2774 | 2410 /* memalign is mapped to malloc if unsupported */ |
2943 | 2411 $_def_memalign |
2774 | 2412 #ifndef HAVE_MEMALIGN |
2413 # define memalign(a,b) malloc(b) | |
2414 #endif | |
1678 | 2415 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2416 /* Define this if your system has the "alloca.h" header file */ |
2943 | 2417 $_def_alloca |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2418 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2419 /* Define this if your system has the "sys/mman.h" header file */ |
2943 | 2420 $_def_mman |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2421 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2422 /* Define this if you have the elf dynamic linker -ldl library */ |
2943 | 2423 $_def_dl |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2424 |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
2425 /* Define this if you have the kstat kernel statistics library */ |
2943 | 2426 $_def_kstat |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
2427 |
2482 | 2428 /* Define this if you have zlib */ |
2943 | 2429 $_def_zlib |
2482 | 2430 |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
2431 /* Define this if your system has vsscanf */ |
2943 | 2432 $_def_vsscanf |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
2433 |
1 | 2434 /* LIRC (remote control, see www.lirc.org) support: */ |
2943 | 2435 $_def_lirc |
1 | 2436 |
492 | 2437 /* DeCSS support using libcss */ |
2943 | 2438 $_def_css |
492 | 2439 |
41 | 2440 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
2943 | 2441 #define MPEG12_POSTPROC 1 |
41 | 2442 |
2228 | 2443 /* Define this to enable image postprocessing in libavcodec (requires FAST cpu!) */ |
2943 | 2444 $_def_ffpostprocess |
2228 | 2445 |
2943 | 2446 #define HAVE_ODIVX_POSTPROCESS 1 |
2184 | 2447 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2448 /* Win32 DLL support */ |
2943 | 2449 $_def_win32 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2450 |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
2451 /* DirectShow support */ |
2943 | 2452 $_def_dshow |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
2453 |
1279 | 2454 /* ffmpeg's libavcodec support (requires libavcodec source) */ |
2943 | 2455 $_def_libavcodec |
2945 | 2456 $_def_libavcodecso |
2943 | 2457 |
1383
d15d60e12bd3
added #define CONFIG_DECODERS to support latest ffmpeg CVS
arpi
parents:
1353
diff
changeset
|
2458 /* use only decoders from libavcodec: */ |
2943 | 2459 #define CONFIG_DECODERS 1 |
1279 | 2460 |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
2461 /* XAnim DLL support */ |
2943 | 2462 $_def_xanim |
2463 $_def_xanim_path | |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
2464 |
642 | 2465 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
2943 | 2466 $_def_fastmemcpy |
642 | 2467 |
723 | 2468 /* gui support, please do not edit this option */ |
2943 | 2469 $_def_gui |
1004 | 2470 #define PREFIX "$_prefix" |
723 | 2471 |
1029 | 2472 /* Audio lib drivers */ |
2943 | 2473 $_def_ossaudio |
2474 $_def_alsa5 | |
2475 $_def_alsa9 | |
2476 $_def_sunaudio | |
2477 $_def_sgiaudio | |
1008 | 2478 |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2479 /* 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
|
2480 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2481 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2482 |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
2483 /* Enable TV Interface support */ |
2943 | 2484 $_def_tv |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
2485 |
1 | 2486 /* Define if your processor stores words with the most significant |
2487 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
2943 | 2488 $_def_words_endian |
1 | 2489 |
2943 | 2490 $_def_arch |
1 | 2491 |
2943 | 2492 /* Define this for Cygwin build for win32 */ |
2493 $_def_confwin32 | |
1441
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
2494 |
849 | 2495 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
2496 #define __CPU__ $iproc | |
2497 | |
2943 | 2498 $_def_linux |
2242 | 2499 |
1495 | 2500 #ifdef sun |
2501 #define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0" | |
1608
3005f75b82fd
Provide a better default for the DVD device on solaris.
jkeil
parents:
1601
diff
changeset
|
2502 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE |
1495 | 2503 #else |
2504 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" | |
1608
3005f75b82fd
Provide a better default for the DVD device on solaris.
jkeil
parents:
1601
diff
changeset
|
2505 #define DEFAULT_DVD_DEVICE "/dev/dvd" |
1495 | 2506 #endif |
2507 | |
1596 | 2508 |
849 | 2509 /*---------------------------------------------------------------------------- |
2510 ** | |
2511 ** NOTE: Instead of modifying these definitions here, use the | |
2512 ** --enable/--disable options of the ./configure script! | |
2513 ** See ./configure --help for details. | |
2514 ** | |
2515 *---------------------------------------------------------------------------*/ | |
1 | 2516 |
2517 /* termcap flag for getch2.c */ | |
2943 | 2518 $_def_termcap |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2519 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2520 /* enable PNG support */ |
2943 | 2521 $_def_png |
1 | 2522 |
2421 | 2523 /* libmad support */ |
2943 | 2524 $_def_mad |
2421 | 2525 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2526 /* enable OggVorbis support */ |
2943 | 2527 $_def_vorbis |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2528 |
2943 | 2529 $_def_streaming |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2530 |
1 | 2531 /* Extension defines */ |
2943 | 2532 $_def_3dnow // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) |
2533 $_def_3dnowex // only define if you have 3DNOWEX (AMD Athlon, etc.) | |
2534 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) | |
2535 $_def_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII) | |
2536 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) | |
1 | 2537 |
1438 | 2538 #ifdef HAVE_MMX |
2943 | 2539 #define USE_MMX_IDCT 1 |
1438 | 2540 #endif |
2541 | |
2943 | 2542 $_def_mlib // Sun mediaLib, available only on solaris |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2543 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2544 /* libmpeg2 uses a different feature test macro for mediaLib */ |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2545 #ifdef HAVE_MLIB |
2943 | 2546 #define LIBMPEG2_MLIB 1 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2547 #endif |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2548 |
1 | 2549 /* libvo options */ |
2961 | 2550 #define SCREEN_SIZE_X 1 |
2551 #define SCREEN_SIZE_Y 1 | |
2943 | 2552 $_def_x11 |
2553 $_def_xv | |
2554 $_def_vm | |
2555 $_def_xinerama | |
2556 $_def_gl | |
2557 $_def_dga | |
2558 $_def_dga2 | |
2559 $_def_sdl | |
704 | 2560 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
2943 | 2561 $_def_sdlbuggy |
2562 $_def_ggi | |
2563 $_def_3dfx | |
2564 $_def_tdfxfb | |
2565 $_def_mga | |
2566 $_def_xmga | |
2567 $_def_syncfb | |
2568 $_def_fbdev | |
2569 $_def_dxr3 | |
2570 $_def_dvb | |
2571 $_def_svga | |
2572 $_def_xdpms | |
2573 $_def_aa | |
1 | 2574 |
1694 | 2575 /* used by GUI: */ |
2943 | 2576 $_def_xshape |
1694 | 2577 |
2943 | 2578 #if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV) |
2579 #define X11_FULLSCREEN 1 | |
1 | 2580 #endif |
2581 | |
2582 EOF | |
2583 | |
2943 | 2584 ############################################################################# |
1 | 2585 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2586 echo "Creating libvo/config.mak" |
2943 | 2587 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2588 cat > libvo/config.mak << EOF |
1 | 2589 include ../config.mak |
2943 | 2590 OPTIONAL_SRCS = $_vosrc |
2591 OPTIONAL_OBJS = $_voobj | |
1 | 2592 EOF |
2593 | |
2943 | 2594 ############################################################################# |
965 | 2595 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2596 echo "Creating libvo2/config.mak" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2597 _vo2obj=`echo $_vo2src | sed -e 's/\.c/\.o/g'` |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2598 cat > libvo2/config.mak << EOF |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2599 include ../config.mak |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2600 OPTIONAL_SRCS = $_vo2src |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2601 OPTIONAL_OBJS = $_vo2obj |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2602 EOF |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2603 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2604 ############################################################################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2605 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2606 echo "Creating libao2/config.mak" |
2943 | 2607 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'` |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2608 cat > libao2/config.mak << EOF |
965 | 2609 include ../config.mak |
2943 | 2610 OPTIONAL_SRCS = $_aosrc |
2611 OPTIONAL_OBJS = $_aoobj | |
2612 EOF | |
965 | 2613 |
2943 | 2614 ############################################################################# |
965 | 2615 |
2943 | 2616 echo "Creating help_mp.h" |
2617 cat > help_mp.h << EOF | |
2618 #include "$_mp_help" | |
965 | 2619 EOF |
2620 | |
2943 | 2621 ############################################################################# |
2622 | |
1 | 2623 cat << EOF |
2624 | |
2625 Config files successfully generated by ./configure ! | |
2943 | 2626 |
2627 Install prefix: $_prefix | |
2628 Data directory: $_datadir | |
2190 | 2629 |
2943 | 2630 'config.h' and 'config.mak' contain your configuration options. |
2631 Note: if you alter theses files (for instance CFLAGS) MPlayer may no longer | |
2632 compile *** DON'T BUGREPORT if you tweak these files *** | |
2633 | |
2634 'make' will now compile MPlayer and 'make install' will install it. | |
2190 | 2635 Note: On non-Linux systems you might need to use 'gmake' instead of 'make'. |
1 | 2636 |
2637 EOF | |
2638 | |
1618 | 2639 |
2171 | 2640 if test "$_mtrr" = yes ; then |
2943 | 2641 echo "Please check mtrr settings at /proc/mtrr (see DOCS/video.html#2.2.1.1)" |
2642 echo | |
1 | 2643 fi |
2644 | |
2171 | 2645 if test "$_sdl" = "outdated" ; then |
2190 | 2646 cat <<EOF |
2647 You have an outdated version of libSDL installed (older than v1.1.7) and SDL | |
2648 support has therefore been disabled. | |
2649 | |
2650 Please upgrade to a more recent version (version 1.1.8 and above are known to | |
2651 work). You may get this library from: http://www.libsdl.org | |
2652 | |
2653 You need to re-run ./configure and recompile after updating SDL. If you are | |
2654 only interested in the libSDL audio drivers, then older version might work. | |
2655 | |
2656 Use --enable-sdl to force usage of libSDL. | |
2657 EOF | |
1 | 2658 fi |
2659 | |
2943 | 2660 if test "$host_arch" = "i386" ; then |
2425 | 2661 if test "$_win32" = no ; then |
2662 if test "$_win32libdir" ; then | |
2663 cat <<EOF | |
2190 | 2664 Failed to find a WIN32 codecs dir at $_win32libdir! |
2665 Create it and copy the DLL files there! (You can get them from your windows | |
2666 directory or download them from: | |
2225 | 2667 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip |
2190 | 2668 EOF |
2425 | 2669 fi |
2190 | 2670 else |
2943 | 2671 if test "$_win32libdir" ; then |
2427 | 2672 echo "Ok, found Win32 codecs directory at $_win32libdir." |
2673 else | |
2674 cat <<EOF | |
2594 | 2675 Failed to find a WIN32 codecs dir! |
2427 | 2676 Create it and copy the DLL files there! (You can get them from your windows |
2677 directory or download them from: | |
2678 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip | |
2679 EOF | |
2680 fi | |
2190 | 2681 fi |
1 | 2682 else |
2943 | 2683 cat <<EOF |
2190 | 2684 NOTE: WIN32 codec DLLs are not supported on your CPU ($host_arch). |
2685 You may encounter a few AVI files that cannot be played due to missing | |
2686 opensource video/audio codec support. | |
2687 EOF | |
1 | 2688 fi |
2689 | |
2943 | 2690 cat <<EOF |
2691 | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2692 If you cannot understand why a test failed please check $TMPLOG. |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2693 If you believe it is a bug in configure, please report it. |
2943 | 2694 |
2695 EOF | |
2696 | |
1021 | 2697 # Last move: |
2190 | 2698 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" |
1021 | 2699 |