Mercurial > mplayer.hg
annotate configure @ 5777:578a48174545
add libmpdvdkit lib
author | pontscho |
---|---|
date | Sun, 21 Apr 2002 21:18:28 +0000 |
parents | 4593e6189c20 |
children | 6c453e75e78f |
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 # |
4543 | 18 # In this file, a tab is 8 chars and indentation shift is 2 characters |
19 # | |
2943 | 20 # GOTCHAS: |
21 # - config files are currently: | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
22 # 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
|
23 # Gui/config.mak libvo2/config.mak |
1 | 24 # |
2943 | 25 ############################################################################# |
1 | 26 |
2943 | 27 # Prefer these macros to full length text ! |
28 # These macros only return an error code - NO display is done | |
2193 | 29 cc_check() { |
2988 | 30 echo >> "$TMPLOG" |
2943 | 31 cat "$TMPC" >> "$TMPLOG" |
32 echo >> "$TMPLOG" | |
2988 | 33 echo "$_cc $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG" |
3022
95dc79ab9f0d
_ld_x11 patch by Anders Johansson <ajh@atri.curtin.edu.au>
pl
parents:
3021
diff
changeset
|
34 > "$TMPO" |
2988 | 35 ( "$_cc" $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 |
36 TMP="$?" | |
37 echo >> "$TMPLOG" | |
38 echo "ldd $TMPO" >> "$TMPLOG" | |
39 ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1 | |
40 echo >> "$TMPLOG" | |
41 return "$TMP" | |
2190 | 42 } |
43 | |
2943 | 44 # Display error message, flushes tempfile, exit |
2193 | 45 die () { |
2943 | 46 echo |
47 echo "Error: $@" >&2 | |
48 echo >&2 | |
49 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" | |
3161 | 50 echo "Check "$TMPLOG" if you do not understand why it failed." |
2943 | 51 exit 1 |
2190 | 52 } |
53 | |
2943 | 54 # OS test booleans functions |
3248 | 55 issystem() { |
56 test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`" | |
57 } | |
58 linux() { issystem "Linux" ; return "$?" ; } | |
59 sunos() { issystem "SunOS" ; return "$?" ; } | |
60 irix() { issystem "IRIX" ; return "$?" ; } | |
61 cygwin() { issystem "CYGWIN" ; return "$?" ; } | |
62 freebsd() { issystem "FreeBSD" ; return "$?" ; } | |
63 netbsd() { issystem "NetBSD" ; return "$?" ; } | |
64 bsdos() { issystem "BSD/OS" ; return "$?" ; } | |
65 openbsd() { issystem "OpenBSD" ; return "$?" ; } | |
2594 | 66 bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; } |
3248 | 67 qnx() { issystem "QNX" ; return "$?" ; } |
2190 | 68 |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
69 # arch test boolean functions |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
70 x86() { |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
71 case "$host_arch" in |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
72 i[3-9]86|x86*) return 0 ;; |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
73 *) return 1 ;; |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
74 esac |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
75 } |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
76 |
2943 | 77 # Use this before starting a check |
78 echocheck() { | |
79 echo "============ Checking for $@ ============" >> "$TMPLOG" | |
4543 | 80 echo ${_echo_n} "Checking for $@ ... ${_echo_c}" |
2943 | 81 } |
82 | |
83 # Use this to echo the results of a check | |
84 echores() { | |
2961 | 85 echo "Result is: $@" >> "$TMPLOG" |
2943 | 86 echo "##########################################" >> "$TMPLOG" |
87 echo "" >> "$TMPLOG" | |
88 echo "$@" | |
89 } | |
90 ############################################################################# | |
1 | 91 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
92 # 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
|
93 case `echo -n` in |
4543 | 94 -n) _echo_n= _echo_c='\c' ;; # SysV echo |
95 *) _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
|
96 esac |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
97 |
2435 | 98 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
|
99 |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
100 for parm in "$@" ; do |
2435 | 101 if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then |
102 cat << EOF | |
103 | |
2943 | 104 Usage: $0 [OPTIONS]... |
1 | 105 |
2435 | 106 Configuration: |
107 -h, --help display this help and exit | |
1 | 108 |
2435 | 109 Installation directories: |
2190 | 110 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
111 --datadir=DIR use this prefix for installing machine independent | |
3747 | 112 data files (fonts, skins) [PREFIX/share/mplayer] |
113 --confdir=DIR use this prefix for installing configuration files | |
114 [same as datadir] | |
2435 | 115 |
116 Optional features: | |
3079 | 117 --disable-mencoder disable mencoder [autodetect] |
2435 | 118 --enable-largefiles enable support for files >2^32 bytes long [disable] |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
119 --enable-linux-devfs set default devices to devfs ones [disable] |
2945 | 120 --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
|
121 --enable-lirc enable LIRC (remote control) support [autodetect] |
2435 | 122 --enable-gui enable GUI [disable] |
5029 | 123 --enable-png enable png support [autodetect] |
124 --enable-jpeg enable jpeg support [autodetect] | |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
125 --disable-tv disable TV Interface (tv/dvb grabbers) [enable] |
3695 | 126 --disable-tv-v4l disable Video 4 Linux TV Interface support [autodetect] |
2435 | 127 --disable-win32 disable Win32 DLL support [autodetect] |
3895
7df4a1460e3a
dshow help changed - it doesn't depend on c++ compiler/libs
arpi
parents:
3893
diff
changeset
|
128 --disable-dshow disable DirectShow support [autodetect] |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
129 --disable-xanim disable XAnim DLL support [autodetect] |
4678 | 130 --disable-xvid disable XviD codec [autodetect] |
131 --disable-divx4linux disable DivX4linux codec [autodetect] | |
5599 | 132 --enable-opendivx enable _old_ OpenDivx codec [disable] |
2435 | 133 --enable-vorbis build with OggVorbis support [autodetect] |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
134 --enable-faad build with FAAD (AAC) support [autodetect] |
2435 | 135 --disable-iconv do not use iconv(3) function [autodetect] |
3015 | 136 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] |
5599 | 137 --enable-mp1e enable libmp1e support |
138 (use this option if it does not compile) [disable] | |
5598 | 139 --disable-libdv disable libdv 0.9.5 support [autodetect] |
3695 | 140 --disable-streaming disable network streaming support |
141 (support for: http/mms/rtp) [enable] | |
4543 | 142 --disable-vidix disable VIDIX stuff [enable] |
4824
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
143 --disable-new-input disable new input system [enable] |
4507
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
144 --enable-joystick enable joystick support in new input [disable] |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
145 --enable-i18n GNU internationalisation [disable] |
5128 | 146 --disable-runtime-cpudetection disable runtime CPU detection [enable] |
5650 | 147 --disable-dvdnav Disable dvdnav support [autodetect] |
5777 | 148 --disable-dvdread Disable libdvdread support [autodetect] |
149 --disable-mpdvdkit Disable mpdvdkit support [autodetect] | |
5650 | 150 |
2435 | 151 Video: |
2190 | 152 --enable-gl build with OpenGL render support [autodetect] |
3206 | 153 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] |
4560 | 154 --enable-vesa build with VESA support [autodetect] |
2190 | 155 --enable-svga build with SVGAlib support [autodetect] |
156 --enable-sdl build with SDL render support [autodetect] | |
157 --enable-aa build with AAlib render support [autodetect] | |
158 --enable-ggi build with GGI render support [autodetect] | |
3695 | 159 --enable-dxr3 build with DXR3/H+ render support [autodetect] |
160 --enable-dvb build with support for output via DVB-Card [autodetect] | |
2943 | 161 --enable-mga build with mga_vid support |
2435 | 162 (check for /dev/mga_vid) [autodetect] |
163 --enable-xmga build with mga_vid X Window support | |
164 (check for X & /dev/mga_vid) [autodetect] | |
2190 | 165 --enable-xv build with Xv render support for X 4.x [autodetect] |
3695 | 166 --enable-vm build with XF86VidMode support for X11 [autodetect] |
167 --enable-xinerama build with Xinerama support for X11 [autodetect] | |
2190 | 168 --enable-x11 build with X11 render support [autodetect] |
4019
079177a400cb
fbdev autodetection enabled (requires linux && /dev/fb0)
pl
parents:
4003
diff
changeset
|
169 --enable-fbdev build with FBDev render support [autodetect] |
4543 | 170 --enable-fbdev=nocopy yuv12 converts directly into framebuffer |
3083
79b3ce698c15
typo (1st found by Andr¸«± Dahlqvist <andre.dahlqvist@telia.com>)
pl
parents:
3079
diff
changeset
|
171 --enable-mlib build with MLIB support (Solaris only) [autodetect] |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
172 --enable-3dfx build with 3dfx support [disable] |
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
173 --enable-tdfxfb build with tdfxfb support [disable] |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
174 --enable-directfb build with DirectFB support [autodetect] |
4211
2c1ca684ff04
zr en/disable, libjpeg detection - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4209
diff
changeset
|
175 --enable-zr build with ZR36067/ZR36060 support [disable] |
1 | 176 |
2435 | 177 Audio: |
2190 | 178 --disable-ossaudio disable OSS sound support [autodetect] |
179 --disable-alsa disable alsa sound support [autodetect] | |
180 --disable-sunaudio disable Sun sound support [autodetect] | |
2435 | 181 --disable-mad disable mad audio support [autodetect] |
3015 | 182 --disable-select disable using select() on OSS audio device [enable] |
642 | 183 |
2594 | 184 Miscellaneous options: |
2458 | 185 --cc=COMPILER use this C compiler to build MPlayer [gcc] |
2435 | 186 --target=PLATFORM target platform (i386-linux, arm-linux, etc) |
2916
5ecae3e4db37
optional parameters can be added after --enable-static .
gabucino
parents:
2908
diff
changeset
|
187 --enable-static build a statically linked binary. If more linking |
5ecae3e4db37
optional parameters can be added after --enable-static .
gabucino
parents:
2908
diff
changeset
|
188 options needed : --enable-static="-lslang -lncurses" |
2435 | 189 --language=xx select a language [en] |
190 (Available: $LANGUAGES) | |
191 | |
192 Advanced options: | |
193 --enable-mmx build with mmx support [autodetect] | |
194 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] | |
195 --enable-3dnow build with 3dnow! support [autodetect] | |
196 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect] | |
197 --enable-sse build with sse support [autodetect] | |
3841 | 198 --enable-sse2 build with sse2 support [autodetect] |
2435 | 199 --disable-fastmemcpy disable 3dnow/sse/mmx optimized memcpy() [enable] |
200 --enable-debug[=1-3] compile debugging information into mplayer [disable] | |
201 --enable-profile compile profiling information into mplayer [disable] | |
5367
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
202 --disable-sighandler disable sighandler for crashes [enable] |
2435 | 203 |
2943 | 204 Hazardous options a.k.a. "DO NOT BUGREPORT ANYTHING !" |
4637
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
205 --disable-gcc-checking disable gcc version checking [enable] |
2435 | 206 |
207 Use these options if autodetection fails: | |
2943 | 208 --with-extraincdir=DIR extra headers (png, dvb, mad, sdl, css, ...) in DIR |
209 --with-extralibdir=DIR extra library files (png, SDL, ...) in DIR | |
210 --with-x11incdir=DIR X headers in DIR | |
2435 | 211 --with-x11libdir=DIR X library files in DIR |
2988 | 212 --with-csslibdir=DIR libcss in DIR |
213 --with-madlibdir=DIR libmad (libmad shared lib.) in DIR | |
4543 | 214 --with-mlibdir=DIR libmlib (MLIB support) in DIR (Solaris only) |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
215 --with-libdvdnav=DIR libdvdnav in DIR |
2435 | 216 --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
|
217 --with-xanimlibdir=DIR XAnim DLL files in DIR |
4678 | 218 --with-xvidcore=PATH path to XviD libcore.a (e.g: /opt/lib/libcore.a) |
2700 | 219 --with-sdl-config=PATH path to sdl*-config (e.g.: /opt/bin/sdl-config) |
220 --with-gtk-config=PATH path to gtk*-config (e.g.: /opt/bin/gtk-config) | |
221 --with-glib-config=PATH path to glib*-config (e.g.: /opt/bin/glib-config) | |
2435 | 222 |
1 | 223 EOF |
2435 | 224 exit 0 |
225 fi | |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
226 done # for parm in ... |
1 | 227 |
2943 | 228 |
229 # 1st pass checking for vital options | |
2435 | 230 _cc=gcc |
231 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
|
232 _as=auto |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
233 _runtime_cpudetection=yes |
1424
2fcccb831d72
Solaris /bin/sh does not like the extra ; in a "for var do ... done" loop
jkeil
parents:
1422
diff
changeset
|
234 for ac_option do |
2943 | 235 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
|
236 --target=*) |
2943 | 237 _target=`echo $ac_option | cut -d '=' -f 2` |
238 ;; | |
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
|
239 --cc=*) |
2943 | 240 _cc=`echo $ac_option | cut -d '=' -f 2` |
241 ;; | |
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
|
242 --as=*) |
2943 | 243 _as=`echo $ac_option | cut -d '=' -f 2` |
244 ;; | |
4637
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
245 --enable-gcc-checking) |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
246 _skip_cc_check=no |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
247 ;; |
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
|
248 --disable-gcc-checking) |
2943 | 249 _skip_cc_check=yes |
250 ;; | |
2988 | 251 --enable-static) |
252 _ld_static='-static' | |
253 ;; | |
254 --disable-static) | |
255 _ld_static='' | |
256 ;; | |
257 --enable-static=*) | |
258 _ld_static="-static `echo $ac_option | cut -d '=' -f 2`" | |
259 ;; | |
2943 | 260 --with-extraincdir=*) |
261 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
262 ;; | |
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 --with-extralibdir=*) |
2943 | 264 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
265 ;; | |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
266 --enable-runtime-cpudetection) |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
267 _runtime_cpudetection=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
268 ;; |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
269 --disable-runtime-cpudetection) |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
270 _runtime_cpudetection=no |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
271 ;; |
2943 | 272 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
|
273 done |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
274 |
1323 | 275 # Determine our OS name and CPU architecture |
2171 | 276 if test -z "$_target" ; then |
2943 | 277 # OS name |
278 system_name=`( uname -s ) 2>&1` | |
279 case "$system_name" in | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
280 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX) |
2943 | 281 ;; |
282 IRIX*) | |
283 system_name=IRIX | |
284 ;; | |
285 [cC][yY][gG][wW][iI][nN]*) | |
286 system_name=CYGWIN | |
287 ;; | |
288 *) | |
289 system_name="$system_name-UNKNOWN" | |
290 ;; | |
291 esac | |
2594 | 292 |
293 | |
2943 | 294 # host's CPU/instruction set |
2594 | 295 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
|
296 case "$host_arch" in |
2594 | 297 i386|sparc|ppc|alpha|arm|mips) |
2943 | 298 ;; |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
299 |
2943 | 300 *) # uname -p on Linux returns 'unknown' for the processor type, |
301 # 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
|
302 |
2943 | 303 # Maybe uname -m (machine hardware name) returns something we |
304 # recognize. | |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
305 |
2943 | 306 case "`( uname -m ) 2>&1`" in |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
307 i[3-9]86|x86*) host_arch=i386 ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
308 ppc) host_arch=ppc ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
309 alpha) host_arch=alpha ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
310 sparc*) host_arch=sparc ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
311 arm*) host_arch=arm ;; |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
312 *) host_arch=UNKNOWN ;; |
2943 | 313 esac |
314 ;; | |
315 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
|
316 else |
2943 | 317 system_name=`echo $_target | cut -d '-' -f 2` |
318 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
|
319 fi |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
320 |
1412 | 321 echo "Detected operating system: $system_name" |
322 echo "Detected host architecture: $host_arch" | |
323 | |
1 | 324 # LGB: temporary files |
2190 | 325 for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do |
2943 | 326 test "$I" && break |
2190 | 327 done |
1 | 328 |
2983 | 329 TMPLOG="configure.log" |
330 rm -f "$TMPLOG" | |
2943 | 331 TMPC="$I/mplayer-conf-$RANDOM-$$.c" |
332 TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" | |
333 TMPO="$I/mplayer-conf-$RANDOM-$$.o" | |
334 TMPS="$I/mplayer-conf-$RANDOM-$$.S" | |
1 | 335 |
336 # config files | |
196 | 337 |
2943 | 338 # FIXME: A lot of stuff is installed under /usr/local |
339 # NK: But we should never use this stuff implicitly since we call compiler | |
340 # from /usr we should be sure that there no effects from other compilers | |
341 # (libraries) which might be installed into /usr/local. Let users use this | |
342 # stuff explicitly as command line argument. In other words: It would be | |
343 # resonable have or only /usr/include or only /usr/local/include. | |
344 | |
345 if freebsd ; then | |
346 _ld_extra="$_ld_extra -L/usr/local/lib" | |
347 _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
|
348 fi |
196 | 349 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
350 |
1023 | 351 # Checking CC version... |
2435 | 352 # gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ... |
2171 | 353 if test "$_skip_cc_check" != yes ; then |
2943 | 354 echocheck "$_cc version" |
3089 | 355 # also check for name (the version checking is only for _gcc_ up for now) |
356 # FIXME implement this in ver. check. | |
3159
b8e7c71f4fcb
Use "tail -1" instead of "tail -n 1" to print the last line, the "-n" option
jkeil
parents:
3127
diff
changeset
|
357 cc_name=`$_cc -v 2>&1 | tail -1 | cut -d ' ' -f 1` |
2943 | 358 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
359 case $cc_version in | |
360 '') | |
361 cc_version="v. ?.??, bad" | |
362 cc_verc_fail=yes | |
363 ;; | |
1388 | 364 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) |
2943 | 365 cc_version="$cc_version, ok" |
4345 | 366 cc_verc_fail=no |
2943 | 367 ;; |
368 *) | |
369 cc_version="$cc_version, bad" | |
370 cc_verc_fail=yes | |
371 ;; | |
372 esac | |
373 echores "$cc_version" | |
3876
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
374 # If gcc version is crappy RH one, then check if the user has installed the optional |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
375 # (at least in Rh7.2) gcc3 packages to save them some pain - malc@tmbg.co.uk |
4345 | 376 if test "$cc_verc_fail" = yes ; then |
3876
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
377 echocheck "gcc3 version" |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
378 _cc=gcc3 |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
379 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
380 case $cc_version in |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
381 '') |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
382 cc_version="v. ?.??, bad" |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
383 cc_verc_fail=yes |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
384 ;; |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
385 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
386 cc_version="$cc_version, ok" |
4345 | 387 cc_verc_fail=no |
3876
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
388 ;; |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
389 *) |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
390 cc_version="$cc_version, bad" |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
391 cc_verc_fail=yes |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
392 ;; |
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
393 esac |
4345 | 394 echores "$cc_version" |
3876
d619260dc756
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
alex
parents:
3873
diff
changeset
|
395 fi |
4345 | 396 if test "$cc_verc_fail" = yes ; then |
2943 | 397 cat <<EOF |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
398 |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
399 *** 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
|
400 |
2943 | 401 You are using a different compiler than ours. We do not have the time to make |
402 sure everything works with compilers than the one we use. Use either use the | |
403 same compiler as ours, or use --disable-gcc-checking but DO *NOT* REPORT BUGS | |
404 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
|
405 |
2943 | 406 Note for gcc 2.96 users: some versions of this compiler are known to miscompile |
407 mplayer and lame (which is used for mencoder). If you get compile errors, | |
408 first upgrade to the latest 2.96 release (but minimum 2.96-85) and try again. | |
409 If the problem still exists, try with gcc 3.0.x (or 2.95.x) *BEFORE* reporting | |
410 bugs! | |
411 | |
412 GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US ! | |
413 | |
414 *** For details please read DOCS/gcc-2.96-3.0.html *** | |
2443 | 415 |
1766 | 416 EOF |
2943 | 417 die "Bad gcc version" |
418 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
419 else |
2111 | 420 cat <<EOF |
421 | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
422 ****************************************************************************** |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
423 |
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
424 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
|
425 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
|
426 |
2943 | 427 DO NOT SEND BUGREPORTS OR COMPLAIN, it's *YOUR* compiler's fault! |
2442 | 428 Get ready for mysterious crashes, no-picture bugs, strange noises... REALLY! |
2943 | 429 Lame which is used by mencoder produces weird errors, too. |
2442 | 430 |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
431 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
|
432 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
|
433 |
2943 | 434 *** DO NOT SEND BUGREPORTS OR COMPLAIN it's *YOUR* compiler's fault! *** |
435 | |
2908
220e6c728747
gcc version messages updated. let's flame us again...
arpi
parents:
2905
diff
changeset
|
436 ****************************************************************************** |
2111 | 437 |
438 EOF | |
439 | |
440 read _answer | |
441 | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
442 fi |
1 | 443 # --- |
444 | |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
445 # 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
|
446 # out which assembler is used by the $_cc compiler |
2171 | 447 if test "$_as" = auto ; then |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
448 _as=`$_cc -print-prog-name=as` |
2943 | 449 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
|
450 fi |
1 | 451 |
2943 | 452 # Try to find the available options for the current CPU |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
453 if x86 ; then |
2943 | 454 if test -r /proc/cpuinfo ; then |
455 # linux with /proc mounted, extract cpu information from it | |
456 _cpuinfo="cat /proc/cpuinfo" | |
457 elif test -r /compat/linux/proc/cpuinfo ; then | |
458 # FreeBSD with linux emulation /proc mounted, | |
459 # extract cpu information from it | |
460 _cpuinfo="cat /compat/linux/proc/cpuinfo" | |
461 else | |
462 # all other OS try to extract cpu information from a small helper | |
463 # program TOOLS/cpuinfo instead | |
464 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c | |
465 _cpuinfo="TOOLS/cpuinfo" | |
466 fi | |
525 | 467 |
2943 | 468 pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1` |
469 pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
470 pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
471 pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
472 pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` | |
1 | 473 |
2943 | 474 pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1` |
475 if test -z "$pparam" ; then | |
476 pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1` | |
477 fi | |
1 | 478 |
2943 | 479 _mmx=no |
480 _3dnow=no | |
481 _3dnowex=no | |
482 _mmx2=no | |
483 _sse=no | |
484 _sse2=no | |
3520 | 485 _mtrr=no |
1 | 486 |
2943 | 487 for i in $pparam ; do |
488 case "$i" in | |
489 3dnow) _3dnow=yes ;; | |
490 3dnowext) _3dnow=yes _3dnowex=yes ;; | |
491 mmx) _mmx=yes ;; | |
492 mmxext) _mmx2=yes ;; | |
493 mtrr|k6_mtrr) _mtrr=yes ;; | |
494 xmm|sse|kni) _sse=yes _mmx2=yes ;; | |
3836 | 495 sse2) _sse2=yes ;; |
2943 | 496 esac |
497 done | |
1 | 498 |
2943 | 499 echocheck "CPU vendor" |
500 echores "$pvendor ($pfamily:$pmodel:$pstepping)" | |
501 | |
502 echocheck "CPU type" | |
503 echores "$pname" | |
504 | |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
505 if test "$_runtime_cpudetection" = yes ; then |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
506 _mmx=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
507 _3dnow=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
508 _3dnowex=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
509 _mmx2=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
510 _sse=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
511 _sse2=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
512 _mtrr=yes |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
513 fi |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
514 |
2943 | 515 fi |
1 | 516 |
517 | |
4217
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
518 if [ "$host_arch" = alpha ]; then |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
519 echocheck "CPU type" |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
520 cat > $TMPC << EOF |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
521 int main() { |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
522 unsigned long ver, mask; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
523 asm ("implver %0" : "=r" (ver)); |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
524 asm ("amask %1, %0" : "=r" (mask) : "r" (-1)); |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
525 printf("%ld-%x\n", ver, ~mask); |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
526 return 0; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
527 } |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
528 EOF |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
529 $_cc -o "$TMPO" "$TMPC" |
4874 | 530 case `"$TMPO"` in |
4217
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
531 0-0) proc="ev4" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
532 1-0) proc="ev5" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
533 1-1) proc="ev56" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
534 1-101) proc="pca56" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
535 2-303) proc="ev6" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
536 2-307) proc="ev67" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
537 2-1307) proc="ev68" ;; |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
538 esac |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
539 echores "$proc" |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
540 fi |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
541 |
2500 | 542 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
543 case "$host_arch" in |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
544 i[3-9]86|x86*) |
2943 | 545 _def_arch="#define ARCH_X86 1" |
546 _target_arch="TARGET_ARCH_X86 = yes" | |
547 _def_words_endian="#undef WORDS_BIGENDIAN" | |
548 iproc=586 | |
549 proc=pentium | |
1 | 550 |
2943 | 551 case "$pvendor" in |
552 AuthenticAMD) | |
553 case "$pfamily" in | |
554 3) proc=i386 iproc=386 ;; | |
555 4) proc=i486 iproc=486 ;; | |
556 5) proc=k5 iproc=586 # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 | |
557 test "$pmodel" -ge 6 && proc=k6 ;; | |
558 6|7) proc=k7 iproc=686 ;; | |
559 *) proc=pentium iproc=586 ;; | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
560 esac |
2943 | 561 ;; |
562 GenuineIntel) | |
563 case "$pfamily" in | |
564 3) proc=i386 iproc=386 ;; | |
565 4) proc=i486 iproc=486 ;; | |
566 5) proc=pentium iproc=586 ;; | |
3836 | 567 6|15) proc=i686 iproc=686 ;; |
2943 | 568 *) proc=pentium iproc=586 ;; |
569 esac | |
570 ;; | |
571 unknown) | |
572 case "$pfamily" in | |
573 3) proc=i386 iproc=386 ;; | |
574 4) proc=i486 iproc=486 ;; | |
575 *) proc=pentium iproc=586 ;; | |
576 esac | |
577 ;; | |
578 *) | |
579 proc=pentium iproc=586 ;; | |
580 esac | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
581 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
582 # 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
|
583 # 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
|
584 # to fall back till 386. |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
585 |
2943 | 586 echocheck "GCC & CPU optimization abilities" |
587 cat > $TMPC << EOF | |
588 int main(void) { return 0; } | |
589 EOF | |
5222 | 590 if test "$_runtime_cpudetection" = no ; then |
2171 | 591 if test "$proc" = "k7" ; then |
2943 | 592 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
|
593 fi |
2171 | 594 if test "$proc" = "athlon" ; then |
2943 | 595 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
|
596 fi |
2171 | 597 if test "$proc" = "k6" ; then |
2943 | 598 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
|
599 fi |
2171 | 600 if test "$proc" = "k5" ; then |
2943 | 601 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
|
602 fi |
2171 | 603 if test "$proc" = "i686" ; then |
2943 | 604 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
|
605 fi |
2171 | 606 if test "$proc" = "pentiumpro" ; then |
2943 | 607 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
|
608 fi |
2171 | 609 if test "$proc" = "pentium" ; then |
2943 | 610 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
|
611 fi |
2171 | 612 if test "$proc" = "i486" ; then |
2943 | 613 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
|
614 fi |
2171 | 615 if test "$proc" = "i386" ; then |
2943 | 616 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
|
617 fi |
2171 | 618 if test "$proc" = "error" ; then |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
619 echores "Your $_cc does not support even \"i386\" for '-march' and '-mcpu'." |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
620 _mcpu="" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
621 _march="" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
622 else |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
623 _march="-march=$proc" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
624 _mcpu="-mcpu=$proc" |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
625 fi |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
626 else |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
627 # i686 is probably the most common cpu - optimize to it |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
628 _mcpu="-mcpu=i686" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
629 # at least i486 required, for bswap instruction |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
630 _march="-march=i486" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
631 cc_check $_mcpu || _mcpu="" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
632 cc_check $_march $_mcpu || _march="" |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
633 fi |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
634 |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
635 ## Gabucino : --target takes effect here (hopefully...) by overwriting |
2943 | 636 ## autodetected mcpu/march parameters |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
637 if test "$_target" ; then |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
638 _march="-march=$host_arch" |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
639 _mcpu="-mcpu=$host_arch" |
2943 | 640 proc="$_target" |
4637
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
641 # Note: this has to be extended |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
642 case "$proc" in |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
643 i386*) iproc=386 ;; |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
644 i486*) iproc=486 ;; |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
645 i586*) iproc=586 ;; |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
646 i686*) iproc=686 ;; |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
647 *) iproc=586 ;; |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
648 esac |
2890
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
649 fi |
1db780ee8117
hmm this is probably a better place for the check, as only the
gabucino
parents:
2888
diff
changeset
|
650 |
2943 | 651 echores "$proc" |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
652 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
653 |
2943 | 654 sparc) |
655 _def_arch='#define ARCH_SPARC 1' | |
656 _target_arch='TARGET_ARCH_SPARC = yes' | |
657 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
658 iproc='sparc' | |
659 proc='v8' | |
660 _march='' | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
661 _mcpu="-mcpu=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
662 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
663 |
2943 | 664 arm) |
665 _def_arch="#define ARCH_ARM 1" | |
666 _target_arch='TARGET_ARCH_ARM = yes' | |
667 _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
|
668 iproc=arm |
2943 | 669 proc='' |
670 _march='' | |
671 _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
|
672 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
673 |
2943 | 674 ppc) |
675 _def_arch='#define ARCH_PPC 1' | |
676 _target_arch='TARGET_ARCH_PPC = yes' | |
677 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
678 iproc='ppc' | |
679 proc='' | |
680 _march='' | |
681 _mcpu='' | |
1739
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
682 ;; |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
683 |
2943 | 684 alpha) |
685 _def_arch='#define ARCH_ALPHA 1' | |
686 _target_arch='TARGET_ARCH_ALPHA = yes' | |
687 _def_words_endian='#undef WORDS_BIGENDIAN' | |
688 iproc='alpha' | |
689 _march='' | |
4217
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
690 echocheck "GCC & CPU optimization abilities" |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
691 if test "$proc" = "ev68" ; then |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
692 cc_check -mcpu=$proc || proc=ev67 |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
693 fi |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
694 if test "$proc" = "ev67" ; then |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
695 cc_check -mcpu=$proc || proc=ev6 |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
696 fi |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
697 _mcpu="-mcpu=$proc" |
2b141fcd69dd
Patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
pl
parents:
4211
diff
changeset
|
698 echores "$proc" |
1908 | 699 ;; |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
700 |
2943 | 701 mips) |
702 _def_arch="#define ARCH_SGI_MIPS 1" | |
703 _target_arch="TARGET_ARCH_SGI_MIPS = yes" | |
704 _def_words_endian='#define WORDS_BIGENDIAN 1' | |
705 iproc='sgi-mips' | |
706 proc='' | |
707 _march='' | |
708 _mcpu='' | |
2450 | 709 ;; |
710 | |
2943 | 711 *) |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
712 echo "The architecture of your CPU ($host_arch) is not supported by this configure script" |
2190 | 713 echo "It seems noone has ported MPlayer to your OS or CPU type yet." |
714 die "unsupported architecture $host_arch" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
715 ;; |
1 | 716 esac |
717 | |
2943 | 718 |
719 echocheck "binutils" | |
720 _binutils=no | |
721 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes | |
722 echores "$_binutils" | |
723 | |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
724 if x86 && test "$_runtime_cpudetection" = no ; then |
2943 | 725 extcheck() { |
726 if test "$1" = yes ; then | |
727 echocheck "kernel support of $2" | |
728 cat > $TMPC <<EOF | |
729 int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);} | |
730 EOF | |
2467 | 731 |
2943 | 732 if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then |
733 echores "yes" | |
734 return 0 | |
735 else | |
736 echores "failed" | |
737 echo "It seems that your kernel does not correctly support $2." | |
738 echo "To use $2 extensions in MPlayer, you have to upgrade/recompile your kernel!" | |
739 return 1 | |
740 fi | |
741 fi | |
742 return 1 | |
743 } | |
1 | 744 |
3051 | 745 extcheck $_mmx "mmx" "emms" || _mmx=no |
746 extcheck $_3dnow "3dnow" "femms" || _3dnow=no | |
747 extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" || _3dnowex=no | |
748 extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no | |
749 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _sse=no | |
750 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _sse2=no | |
2943 | 751 echocheck "mtrr support" |
752 echores "$_mtrr" | |
753 | |
754 fi | |
755 | |
1 | 756 |
2943 | 757 _prefix="/usr/local" |
758 | |
3206 | 759 # GOTCHA: the variables below defines the default behavior for autodetection |
760 # and have - unless stated otherwise - at least 2 states : yes no | |
761 # If autodetection is available then the third state is: auto | |
2943 | 762 _libavcodec=auto |
3127
59ac428ae68d
Disable problematic ffmpeg.so support by default and remove die on 2.2.x
atmos4
parents:
3089
diff
changeset
|
763 _libavcodecso=no # changed default to no as it causes problems - atmos |
5599 | 764 _mp1e=no |
3896 | 765 _mencoder=yes |
2943 | 766 _x11=auto |
3206 | 767 _dga=auto # 1 2 no auto |
2943 | 768 _xv=auto |
769 _sdl=auto | |
3276 | 770 _nas=auto |
2943 | 771 _png=auto |
5029 | 772 _jpg=auto |
2943 | 773 _gl=auto |
774 _ggi=auto | |
775 _aa=auto | |
776 _svga=auto | |
4560 | 777 _vesa=auto |
4019
079177a400cb
fbdev autodetection enabled (requires linux && /dev/fb0)
pl
parents:
4003
diff
changeset
|
778 _fbdev=auto |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
779 _fbdev_nocopy=no |
2943 | 780 _dvb=auto |
781 _dxr3=auto | |
782 _iconv=auto | |
3015 | 783 _rtc=auto |
2943 | 784 _ossaudio=auto |
785 _mad=auto | |
786 _vorbis=auto | |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
787 _faad=auto |
2943 | 788 _css=auto |
5650 | 789 _dvdnav=yes |
2943 | 790 _dvdread=auto |
5777 | 791 _dvdkit=auto |
2943 | 792 _xanim=auto |
793 _xinerama=auto | |
794 _mga=auto | |
795 _xmga=auto | |
796 _vm=auto | |
797 _mlib=auto | |
798 _sgiaudio=auto | |
799 _sunaudio=auto | |
800 _alsa=auto | |
801 _fastmemcpy=yes | |
802 _win32=auto | |
3451 | 803 _dshow=yes |
3206 | 804 _select=yes |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
805 _tv=yes |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
806 _tv_v4l=auto |
5090 | 807 _tv_bsdbt848=auto |
3690
c42f1e391c5f
10l? streaming must be yes, auto is not enough because of Makefile
arpi
parents:
3689
diff
changeset
|
808 _streaming=yes |
4089 | 809 _vidix=yes |
4785 | 810 _new_input=yes |
4507
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
811 _joystick=no |
4678 | 812 _xvid=auto |
2943 | 813 _divx4linux=auto |
5545
0869f86ac983
a temporary disable for opendivx - please remove or fix
jaf
parents:
5486
diff
changeset
|
814 _opendivx=no |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
815 _lirc=auto |
2943 | 816 _gui=no |
2945 | 817 _termcap=auto |
3007 | 818 _termios=auto |
2943 | 819 _3dfx=no |
820 _tdfxfb=no | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
821 _directfb=auto |
4211
2c1ca684ff04
zr en/disable, libjpeg detection - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4209
diff
changeset
|
822 _zr=no |
2961 | 823 _largefiles=no |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
824 _vo2=no |
2943 | 825 _language=en |
3004 | 826 _shm=auto |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
827 _linux_devfs=no |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
828 _i18n=no |
5367
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
829 _sighandler=yes |
5598 | 830 _libdv=auto |
2943 | 831 |
832 for ac_option do | |
833 case "$ac_option" in | |
834 # Skip 1st pass | |
835 --target=*) ;; | |
836 --cc=*) ;; | |
837 --as=*) ;; | |
4637
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
838 --enable-gcc-checking) ;; |
2943 | 839 --disable-gcc-checking) ;; |
2989 | 840 --enable-static*) ;; |
2988 | 841 --disable-static*) ;; |
2943 | 842 --with-extraincdir=*) ;; |
843 --with-extralibdir=*) ;; | |
5201
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
844 --enable-runtime-cpudetection) ;; |
40c6df15c3df
a bit modified runtime fix patch by Fredrik Kuivinen <freku045@student.liu.se>
arpi
parents:
5190
diff
changeset
|
845 --disable-runtime-cpudetection) ;; |
2988 | 846 |
2943 | 847 # Real 2nd pass |
3079 | 848 --enable-mencoder) _mencoder=yes ;; |
849 --disable-mencoder) _mencoder=no ;; | |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
850 --enable-i18n) _i18n=yes ;; |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
851 --disable-i18n) _i18n=no ;; |
2943 | 852 --enable-x11) _x11=yes ;; |
853 --disable-x11) _x11=no ;; | |
854 --enable-xv) _xv=yes ;; | |
855 --disable-xv) _xv=no ;; | |
856 --enable-sdl) _sdl=yes ;; | |
857 --disable-sdl) _sdl=no ;; | |
3276 | 858 --enable-nas) _nas=yes ;; |
859 --disable-nas) _nas=no ;; | |
2943 | 860 --enable-png) _png=yes ;; |
861 --disable-png) _png=no ;; | |
5029 | 862 --enable-jpeg) _jpg=yes ;; |
863 --disable-jpeg) _jpg=no ;; | |
2943 | 864 --enable-gl) _gl=yes ;; |
865 --disable-gl) _gl=no ;; | |
866 --enable-ggi) _ggi=yes ;; | |
867 --disable-ggi) _ggi=no ;; | |
868 --enable-aa) _aa=yes ;; | |
869 --disable-aa) _aa=no ;; | |
870 --enable-svga) _svga=yes ;; | |
871 --disable-svga) _svga=no ;; | |
4560 | 872 --enable-vesa) _vesa=yes ;; |
873 --disable-vesa) _vesa=no ;; | |
2943 | 874 --enable-fbdev) _fbdev=yes ;; |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
875 --enable-fbdev=nocopy) _fbdev=yes; _fbdev_nocopy=yes ;; |
2943 | 876 --disable-fbdev) _fbdev=no ;; |
877 --enable-dvb) _dvb=yes ;; | |
878 --disable-dvb) _dvb=no ;; | |
879 --enable-dxr3) _dxr3=yes ;; | |
880 --disable-dxr3) _dxr3=no ;; | |
881 --enable-iconv) _iconv=yes ;; | |
882 --disable-iconv) _iconv=no ;; | |
3015 | 883 --enable-rtc) _rtc=yes ;; |
884 --disable-rtc) _rtc=no ;; | |
3853 | 885 --enable-mp1e) _mp1e=yes ;; |
3432 | 886 --disable-mp1e) _mp1e=no ;; |
5598 | 887 --enable-libdv) _libdv=yes ;; |
888 --disable-libdv) _libdv=no ;; | |
2943 | 889 --enable-ossaudio) _ossaudio=yes ;; |
890 --disable-ossaudio) _ossaudio=no ;; | |
891 --enable-mad) _mad=yes ;; | |
892 --disable-mad) _mad=no ;; | |
893 --enable-vorbis) _vorbis=yes ;; | |
894 --disable-vorbis) _vorbis=no ;; | |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
895 --enable-faad) _faad=yes ;; |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
896 --disable-faad) _faad=no ;; |
2943 | 897 --enable-css) _css=yes ;; |
898 --disable-css) _css=no ;; | |
899 --enable-dvdread) _dvdread=yes ;; | |
900 --disable-dvdread) _dvdread=no ;; | |
5777 | 901 --enable-mpdvdkit) _dvdkit=yes ;; |
902 --disable-mpdvdkit) _dvdkit=no ;; | |
5650 | 903 --enable-dvdnav) _dvdnav=yes ;; |
904 --disable-dvdnav) _dvdnav=no ;; | |
2943 | 905 --enable-xanim) _xanim=yes ;; |
906 --disable-xanim) _xanim=no ;; | |
907 --enable-xinerama) _xinerama=yes ;; | |
908 --disable-xinerama) _xinerama=no ;; | |
909 --enable-mga) _mga=yes ;; | |
910 --disable-mga) _mga=no ;; | |
911 --enable-xmga) _xmga=yes ;; | |
912 --disable-xmga) _xmga=no ;; | |
913 --enable-vm) _vm=yes ;; | |
914 --disable-vm) _vm=no ;; | |
915 --enable-mlib) _mlib=yes ;; | |
916 --disable-mlib) _mlib=no ;; | |
917 --enable-sunaudio) _sunaudio=yes ;; | |
918 --disable-sunaudio) _sunaudio=no ;; | |
919 --enable-sgiaudio) _sgiaudio=yes ;; | |
920 --disable-sgiaudio) _sgiaudio=no ;; | |
921 --enable-alsa) _alsa=yes ;; | |
922 --disable-alsa) _alsa=no ;; | |
923 --enable-tv) _tv=yes ;; | |
924 --disable-tv) _tv=no ;; | |
5090 | 925 --enable-tv-bsdbt848) _tv_bsdbt848=yes ;; |
926 --disable-tv-bsdbt848) _tv_bsdbt848=no ;; | |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
927 --enable-tv-v4l) _tv_v4l=yes ;; |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
928 --disable-tv-v4l) _tv_v4l=no ;; |
2943 | 929 --enable-fastmemcpy) _fastmemcpy=yes ;; |
930 --disable-fastmemcpy) _fastmemcpy=no ;; | |
931 --enable-streaming) _streaming=yes ;; | |
932 --disable-streaming) _streaming=no ;; | |
4089 | 933 --enable-vidix) _vidix=yes ;; |
934 --disable-vidix) _vidix=no ;; | |
4543 | 935 --enable-new-input) _new_input=yes ;; |
936 --disable-new-input) _new_input=no ;; | |
937 --enable-joystick) _joystick=yes ;; | |
938 --disable-joystick) _joystick=no ;; | |
4678 | 939 --enable-xvid) _xvid=yes ;; |
940 --disable-xvid) _xvid=no ;; | |
2943 | 941 --enable-divx4linux) _divx4linux=yes ;; |
942 --disable-divx4linux) _divx4linux=no ;; | |
4489 | 943 --enable-opendivx) _opendivx=yes ;; |
944 --disable-opendivx) _opendivx=no ;; | |
2943 | 945 --enable-lirc) _lirc=yes ;; |
946 --disable-lirc) _lirc=no ;; | |
947 --enable-gui) _gui=yes ;; | |
948 --disable-gui) _gui=no ;; | |
949 --enable-termcap) _termcap=yes ;; | |
950 --disable-termcap) _termcap=no ;; | |
3007 | 951 --enable-termios) _termios=yes ;; |
952 --disable-termios) _termios=no ;; | |
2943 | 953 --enable-3dfx) _3dfx=yes ;; |
954 --disable-3dfx) _3dfx=no ;; | |
955 --enable-tdfxfb) _tdfxfb=yes ;; | |
956 --disable-tdfxfb) _tdfxfb=no ;; | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
957 --enable-directfb) _directfb=yes ;; |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
958 --disable-directfb) _directfb=no ;; |
4211
2c1ca684ff04
zr en/disable, libjpeg detection - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4209
diff
changeset
|
959 --enable-zr) _zr=yes ;; |
4543 | 960 --disable-zr) _zr=no ;; |
2943 | 961 --enable-mtrr) _mtrr=yes ;; |
962 --disable-mtrr) _mtrr=no ;; | |
2961 | 963 --enable-largefiles) _largefiles=yes ;; |
2962 | 964 --disable-largefiles) _largefiles=no ;; |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
965 --enable-vo2) _vo2=yes ;; |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
966 --disable-vo2) _vo2=no ;; |
3004 | 967 --enable-shm) _shm=yes ;; |
968 --disable-shm) _shm=no ;; | |
3206 | 969 --enable-select) _select=yes ;; |
970 --disable-select) _select=no ;; | |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
971 --enable-linux-devfs) _linux_devfs=yes ;; |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
972 --disable-linux-devfs) _linux_devfs=no ;; |
3206 | 973 |
974 --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2 | |
975 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;; | |
976 --disable-dga) _dga=no ;; | |
2943 | 977 |
978 --language=*) | |
979 LINGUAS=`echo $ac_option | cut -d '=' -f 2` | |
980 ;; | |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
981 --with-libdvdnav=*) |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
982 _dvdnavdir=`echo $ac_option | cut -d '=' -f 2` |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
983 _dvdnav=yes |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
984 ;; |
2943 | 985 |
986 --with-win32libdir=*) | |
987 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
988 _win32=yes | |
989 ;; | |
990 --with-xanimlibdir=*) | |
991 _xanimlibdir=`echo $ac_option | cut -d '=' -f 2` | |
992 _xanim=yes | |
993 ;; | |
994 --with-csslibdir=*) | |
995 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
996 _css=yes | |
997 ;; | |
998 --with-mlibdir=*) | |
999 _mlibdir=`echo $ac_option | cut -d '=' -f 2` | |
1000 _mlib=yes | |
1001 ;; | |
1002 | |
4637
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
1003 --disable-profile) |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
1004 _profile= |
bdb95c9fd709
added options for completeness: --enable-gcc-checking, --disable-profile
pl
parents:
4562
diff
changeset
|
1005 ;; |
2943 | 1006 --enable-profile) |
1007 _profile='-p' | |
1008 ;; | |
1009 --enable-debug) | |
1010 _debug='-g' | |
1011 ;; | |
1012 --enable-debug=*) | |
1013 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` | |
1014 ;; | |
5367
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1015 --disable-sighandler) |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1016 _sighandler=no |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1017 ;; |
2943 | 1018 |
1019 --enable-sse) _sse=yes ;; | |
1020 --disable-sse) _sse=no ;; | |
3841 | 1021 --enable-sse2) _sse2=yes ;; |
1022 --disable-sse2) _sse2=no ;; | |
2943 | 1023 --enable-mmx2) _mmx2=yes ;; |
1024 --disable-mmx2) _mmx2=no ;; | |
1025 --enable-3dnow) _3dnow=yes ;; | |
1026 --disable-3dnow) _3dnow=no _3dnowex=no ;; | |
1027 --enable-3dnowex) _3dnow=yes _3dnowex=yes ;; | |
1028 --disable-3dnowex) _3dnowex=no ;; | |
1029 --enable-mmx) _mmx=yes ;; | |
1030 --disable-mmx) # without mmx 3Dnow! and stuff is also not possible | |
1031 _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;; | |
1032 | |
1033 --enable-win32) _win32=yes ;; | |
1034 --disable-win32) _win32=no _dshow=no ;; | |
1035 --enable-dshow) _win32=yes _dshow=yes ;; | |
1036 --disable-dshow) _dshow=no ;; | |
1037 | |
1038 --with-x11incdir=*) | |
1039 _inc_x11=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
1040 ;; | |
1041 --with-x11libdir=*) | |
1042 _ld_x11=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
1043 ;; | |
4678 | 1044 --with-xvidcore=*) |
1045 _xvidcore=`echo $ac_option | cut -d '=' -f 2` | |
1046 ;; | |
2943 | 1047 --with-sdl-config=*) |
1048 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` | |
1049 ;; | |
1050 --with-gtk-config=*) | |
1051 _gtkconfig=`echo $ac_option | cut -d '=' -f 2` | |
1052 ;; | |
1053 --with-glib-config=*) | |
1054 _glibconfig=`echo $ac_option | cut -d '=' -f 2` | |
1055 ;; | |
1056 --with-madlibdir=*) | |
1057 _ld_mad=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
1058 ;; | |
1059 | |
1060 --prefix=*) | |
1061 _prefix=`echo $ac_option | cut -d '=' -f 2` | |
1062 ;; | |
1063 --datadir=*) | |
1064 _datadir=`echo $ac_option | cut -d '=' -f 2` | |
1065 ;; | |
3747 | 1066 --confdir=*) |
1067 _confdir=`echo $ac_option | cut -d '=' -f 2` | |
1068 ;; | |
2943 | 1069 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
1070 |
2943 | 1071 *) |
1072 echo "Unknown parameter: $ac_option" | |
1073 ;; | |
1074 | |
1075 esac | |
1076 done | |
1077 | |
1078 # Atmos: moved this here, to be correct, if --prefix is specified | |
4543 | 1079 test -z "$_datadir" && _datadir="$_prefix/share/mplayer" |
1080 test -z "$_confdir" && _confdir="$_datadir" | |
1081 test -z "$_libdir" && _libdir="$_prefix/lib/mplayer" | |
1082 test -z "$_mlibdir" && _mlibdir="$MLIBHOME" | |
2943 | 1083 |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
1084 if x86 ; then |
2943 | 1085 # Checking assembler (_as) compatibility... |
1086 # Added workaround for older as that reads from stdin by default - atmos | |
1087 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` | |
1088 echocheck "assembler ($_as $as_version)" | |
1089 | |
1090 _pref_as_version='2.9.1' | |
1091 echo 'nop' > $TMPS | |
1092 if test "$_mmx" = yes ; then | |
1093 echo 'emms' >> $TMPS | |
1094 fi | |
1095 if test "$_3dnow" = yes ; then | |
1096 _pref_as_version='2.10.1' | |
1097 echo 'femms' >> $TMPS | |
1098 fi | |
1099 if test "$_3dnowex" = yes ; then | |
1100 _pref_as_version='2.10.1' | |
1101 echo 'pswapd %mm0, %mm0' >> $TMPS | |
1102 fi | |
1103 if test "$_mmx2" = yes ; then | |
1104 _pref_as_version='2.10.1' | |
1105 echo 'movntq %mm0, (%eax)' >> $TMPS | |
1106 fi | |
1107 if test "$_sse" = yes ; then | |
1108 _pref_as_version='2.10.1' | |
1109 echo 'xorps %xmm0, %xmm0' >> $TMPS | |
1110 fi | |
1111 #if test "$_sse2" = yes ; then | |
1112 # _pref_as_version='2.11' | |
1113 # echo 'xorpd %xmm0, %xmm0' >> $TMPS | |
1114 #fi | |
1115 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes | |
1116 | |
1117 if test "$as_verc_fail" != yes ; then | |
1118 echores "ok" | |
1119 else | |
1120 echores "failed" | |
1121 echo "Upgrade binutils to ${_pref_as_version} ..." | |
1122 die "obsolete binutils version" | |
1123 fi | |
1124 fi | |
1125 | |
1126 _def_mmx='#undef HAVE_MMX' | |
1127 test "$_mmx" = yes && _def_mmx='#define HAVE_MMX 1' | |
1128 _def_mmx2='#undef HAVE_MMX2' | |
1129 test "$_mmx2" = yes && _def_mmx2='#define HAVE_MMX2 1' | |
1130 _def_3dnow='#undef HAVE_3DNOW' | |
1131 test "$_3dnow" = yes && _def_3dnow='#define HAVE_3DNOW 1' | |
1132 _def_3dnowex='#undef HAVE_3DNOWEX' | |
1133 test "$_3dnowex" = yes && _def_3dnowex='#define HAVE_3DNOWEX 1' | |
1134 _def_sse='#undef HAVE_SSE' | |
1135 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' | |
3841 | 1136 _def_sse2='#undef HAVE_SSE2' |
1137 test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1' | |
2943 | 1138 |
1139 | |
1140 # Checking kernel version... | |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
1141 if x86 && linux ; then |
2943 | 1142 _k_verc_problem=no |
1143 kernel_version=`uname -r 2>&1` | |
1144 echocheck "$system_name kernel version" | |
1145 case "$kernel_version" in | |
1146 '') kernel_version="?.??"; _k_verc_fail=yes;; | |
1147 [0-1].[0-9].[0-9]*|2.[0-3].[0-9]*) | |
1148 _k_verc_problem=yes;; | |
1149 esac | |
1150 if test "$_k_verc_problem" = yes && test "$_sse" = yes ; then | |
1151 _k_verc_fail=yes | |
1152 fi | |
1153 if test "$_k_verc_fail" ; then | |
1154 echores "$kernel_version, fail" | |
1155 echo "WARNING! If you want to run mplayer on this system, get prepared for problems!" | |
3127
59ac428ae68d
Disable problematic ffmpeg.so support by default and remove die on 2.2.x
atmos4
parents:
3089
diff
changeset
|
1156 echo "2.2.x has limited SSE support. Upgrade kernel or use --disable-sse if you" |
59ac428ae68d
Disable problematic ffmpeg.so support by default and remove die on 2.2.x
atmos4
parents:
3089
diff
changeset
|
1157 echo "experience crashes. MPlayer tries to autodetect if your kernel correctly supports" |
5734 | 1158 echo "SSE, but you have been warned! If you are using kernel older than 2.2.x you must" |
3127
59ac428ae68d
Disable problematic ffmpeg.so support by default and remove die on 2.2.x
atmos4
parents:
3089
diff
changeset
|
1159 echo "upgrade it to get SSE support!" |
59ac428ae68d
Disable problematic ffmpeg.so support by default and remove die on 2.2.x
atmos4
parents:
3089
diff
changeset
|
1160 # die "old kernel for this cpu" # works fine on some 2.2.x so don't die (later check will test) |
2943 | 1161 else |
1162 echores "$kernel_version, ok" | |
1163 fi | |
1164 fi | |
1165 | |
4172 | 1166 # checking for a working awk, I'm using mawk first, because it's fastest - atmos |
1167 _awk= | |
4108 | 1168 if test "$_vidix" = yes ; then |
4182 | 1169 _awk_verc_fail=yes |
1170 echocheck "awk" | |
4172 | 1171 for _awk in mawk gawk nawk awk; do |
4183 | 1172 if ( $_awk 'BEGIN{testme();}function testme(){print"";}' ) >> "$TMPLOG" 2>&1; then |
4182 | 1173 _awk_verc_fail=no |
4172 | 1174 break |
1175 fi | |
1176 done | |
4182 | 1177 test "$_awk_verc_fail" = yes && _awk=no |
1178 echores "$_awk" | |
1179 if test "$_awk_verc_fail" = yes; then | |
4172 | 1180 echo "VIDIX needs Awk, but there was no working implementation found!" |
1181 echo "Try the GNU implementation, which can be downloaded from:" | |
4120 | 1182 echo "ftp://ftp.gnu.org/gnu/gawk/" |
4172 | 1183 echo "If you don't need vidix, you can use configure --disable-vidix instead." |
4108 | 1184 exit |
1185 fi | |
1186 fi | |
2943 | 1187 |
1188 | |
1189 ###################### | |
1190 # MAIN TESTS GO HERE # | |
1191 ###################### | |
1192 | |
1193 | |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1194 echocheck "extra headers" |
5348
9588988197f1
I wonder noone noticed this, wrong output of extra[inc|lib]
atmos4
parents:
5226
diff
changeset
|
1195 if test "$_inc_extra" ; then |
9588988197f1
I wonder noone noticed this, wrong output of extra[inc|lib]
atmos4
parents:
5226
diff
changeset
|
1196 echores "$_inc_extra" |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1197 else |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1198 echores "none" |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1199 fi |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1200 |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1201 |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1202 echocheck "extra libs" |
5348
9588988197f1
I wonder noone noticed this, wrong output of extra[inc|lib]
atmos4
parents:
5226
diff
changeset
|
1203 if test "$_ld_extra" ; then |
9588988197f1
I wonder noone noticed this, wrong output of extra[inc|lib]
atmos4
parents:
5226
diff
changeset
|
1204 echores "$_ld_extra" |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1205 else |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1206 echores "none" |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
1207 fi |
2943 | 1208 |
1209 | |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1210 # Checking for localization ... |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1211 # CSAK EGY MARADHAT - A HEGYLAKO |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1212 echocheck "i18n" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1213 if test "$_i18n" = auto ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1214 cat > $TMPC <<EOF |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1215 #include <libintl.h> |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1216 int main(void) { gettext("test"); return 0; } |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1217 EOF |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1218 _i18n=no |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1219 cc_check && _i18n=yes |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1220 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1221 if test "$_i18n" = yes ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1222 _def_i18n='#define USE_I18N 1' |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1223 LINGUAS='en' # force help_mp-en.h |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1224 else |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1225 _def_i18n='#undef USE_I18N' |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1226 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1227 echores "$_i18n" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1228 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1229 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1230 echocheck "language" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1231 test -z "$LINGUAS" && LINGUAS="en" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1232 if test -f "help_mp-${LINGUAS}.h" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1233 echores "using ${LINGUAS}" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1234 else |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1235 echores "${LINGUAS} not found, using en" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1236 LINGUAS="en" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1237 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1238 _mp_help="help_mp-${LINGUAS}.h" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1239 test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1240 |
5367
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1241 echocheck "enable sighandler" |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1242 if test "$_sighandler" = yes ; then |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1243 _def_sighandler='#define ENABLE_SIGHANDLER 1' |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1244 else |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1245 _def_sighandler='#undef ENABLE_SIGHANDLER' |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1246 fi |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
1247 echores "$_sighandler" |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1248 |
5110 | 1249 echocheck "runtime cpudetection" |
1250 if test "$_runtime_cpudetection" = yes ; then | |
1251 _def_runtime_cpudetection='#define RUNTIME_CPUDETECT 1' | |
1252 else | |
1253 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' | |
1254 fi | |
1255 echores "$_runtime_cpudetection" | |
1256 | |
1257 | |
2943 | 1258 echocheck "kstat" |
1259 cat > $TMPC << EOF | |
3029 | 1260 #include <kstat.h> |
1261 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } | |
2943 | 1262 EOF |
1263 _kstat=no | |
1264 cc_check -lkstat && _kstat=yes | |
1265 if test "$_kstat" = yes ; then | |
3065 | 1266 _ld_arch="-lkstat $_ld_arch" |
2943 | 1267 fi |
1268 if test "$_kstat" = yes ; then | |
1269 _def_kstat="#define HAVE_LIBKSTAT 1" | |
1270 else | |
1271 _def_kstat="#undef HAVE_LIBKSTAT" | |
1272 fi | |
1273 echores "$_kstat" | |
1274 | |
1275 | |
3029 | 1276 echocheck "posix4" |
3028
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1277 # required for nanosleep on some systems |
2948 | 1278 cat > $TMPC << EOF |
3029 | 1279 #include <time.h> |
1280 int main(void) { (void) nanosleep(0, 0); return 0; } | |
2948 | 1281 EOF |
2943 | 1282 _posix4=no |
1283 cc_check -lposix4 && _posix4=yes | |
1284 if test "$_posix4" = yes ; then | |
3065 | 1285 _ld_arch="-lposix4 $_ld_arch" |
2943 | 1286 fi |
1287 echores "$_posix4" | |
1288 | |
1289 | |
3089 | 1290 echocheck "nanosleep" |
1291 # also check for nanosleep | |
1292 cat > $TMPC << EOF | |
1293 #include <time.h> | |
1294 int main(void) { (void) nanosleep(0, 0); return 0; } | |
1295 EOF | |
1296 _nanosleep=no | |
1297 cc_check $_ld_arch && _nanosleep=yes | |
1298 if test "$_nanosleep" = yes ; then | |
1299 _def_nanosleep='#define HAVE_NANOSLEEP 1' | |
1300 else | |
1301 _def_nanosleep='#undef HAVE_NANOSLEEP' | |
1302 fi | |
1303 echores "$_nanosleep" | |
1304 | |
1305 | |
2943 | 1306 echocheck "socklib" |
1307 # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl): | |
1308 cat > $TMPC << EOF | |
3029 | 1309 #include <netdb.h> |
1310 int main(void) { (void) gethostbyname(0); return 0; } | |
2943 | 1311 EOF |
3869 | 1312 cc_check -lsocket && _ld_sock="-lsocket" |
1313 cc_check -lnsl && _ld_sock="-lnsl" | |
1314 cc_check -lsocket -lnsl && _ld_sock="-lsocket -lnsl" | |
2945 | 1315 if test "$_ld_sock" ; then |
3248 | 1316 echores "yes (using $_ld_sock)" |
2945 | 1317 else |
3248 | 1318 echores "no" |
2945 | 1319 fi |
2943 | 1320 |
1321 | |
3903 | 1322 echocheck "inet_pton()" |
1323 cat > $TMPC << EOF | |
1324 #include <sys/types.h> | |
1325 #include <sys/socket.h> | |
1326 #include <arpa/inet.h> | |
1327 int main(void) { (void) inet_pton(0, 0, 0); return 0; } | |
1328 EOF | |
1329 if cc_check $_ld_sock ; then | |
1330 # NOTE: Linux has libresolv but does not need it | |
1331 : | |
1332 echores "yes (using $_ld_sock)" | |
1333 elif cc_check $_ld_sock -lresolv ; then | |
1334 # NOTE: needed for SunOS at least | |
1335 _ld_sock="$_ld_sock -lresolv" | |
1336 echores "yes (using $_ld_sock)" | |
1337 else | |
1338 echores "no (=> streaming support disabled)" | |
1339 _streaming=no | |
1340 fi | |
1341 | |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1342 |
4003
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1343 echocheck "inttypes.h (required)" |
3919 | 1344 cat > $TMPC << EOF |
4003
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1345 #include <inttypes.h> |
3919 | 1346 int main(void) { return 0; } |
1347 EOF | |
4003
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1348 _inttypes=no |
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1349 cc_check && _inttypes=yes |
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1350 if test "$_inttypes" = yes ; then |
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1351 # nothing to do |
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1352 : |
3919 | 1353 else |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1354 die "cannot find header inttypes.h (see in DOCS/faq.html)" |
3919 | 1355 fi |
4003
92c59012249d
stdint.h replaced by inttypes.h (used more frequently in the sources)
pl
parents:
3993
diff
changeset
|
1356 echores "$_inttypes" |
3919 | 1357 |
1358 | |
2943 | 1359 echocheck "malloc.h" |
1360 cat > $TMPC << EOF | |
1361 #include <malloc.h> | |
3029 | 1362 int main(void) { (void) malloc(0); return 0; } |
2943 | 1363 EOF |
1364 _malloc=no | |
1365 cc_check && _malloc=yes | |
1366 if test "$_malloc" = yes ; then | |
1367 _def_malloc='#define HAVE_MALLOC_H 1' | |
1368 else | |
1369 _def_malloc='#undef HAVE_MALLOC_H' | |
1370 fi | |
1371 # malloc.h emits a warning in FreeBSD | |
1372 freebsd && _def_malloc='#undef HAVE_MALLOC_H' | |
1373 echores "$_malloc" | |
1374 | |
1375 | |
1376 echocheck "memalign()" | |
1377 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? | |
1378 cat > $TMPC << EOF | |
1379 #include <malloc.h> | |
3029 | 1380 int main (void) { (void) memalign(64, sizeof(char)); return 0; } |
2943 | 1381 EOF |
1382 _memalign=no | |
1383 cc_check && _memalign=yes | |
1384 if test "$_memalign" = yes ; then | |
1385 _def_memalign='#define HAVE_MEMALIGN 1' | |
1386 else | |
1387 _def_memalign='#undef HAVE_MEMALIGN' | |
1388 fi | |
1389 echores "$_memalign" | |
1390 | |
1391 | |
1392 echocheck "alloca.h" | |
1393 cat > $TMPC << EOF | |
1394 #include <alloca.h> | |
3029 | 1395 int main(void) { (void) alloca(0); return 0; } |
2943 | 1396 EOF |
1397 _alloca=no | |
1398 cc_check && _alloca=yes | |
1399 if cc_check ; then | |
1400 _def_alloca='#define HAVE_ALLOCA_H 1' | |
1401 else | |
1402 _def_alloca='#undef HAVE_ALLOCA_H' | |
1403 fi | |
1404 echores "$_alloca" | |
1405 | |
1406 | |
1407 echocheck "mman.h" | |
1408 cat > $TMPC << EOF | |
1409 #include <sys/types.h> | |
1410 #include <sys/mman.h> | |
3029 | 1411 int main(void) { (void) mmap(0, 0, 0, 0, 0, 0); return 0; } |
2943 | 1412 EOF |
1413 _mman=no | |
1414 cc_check && _mman=yes | |
1415 if test "$_mman" = yes ; then | |
1416 _def_mman='#define HAVE_SYS_MMAN_H 1' | |
1417 else | |
1418 _def_mman='#undef HAVE_SYS_MMAN_H' | |
1419 fi | |
1420 echores "$_mman" | |
1421 | |
1422 | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1423 echocheck "dynamic loader" |
2943 | 1424 cat > $TMPC << EOF |
1425 #include <dlfcn.h> | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1426 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } |
2943 | 1427 EOF |
1428 _dl=no | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1429 if cc_check ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1430 _dl=yes |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1431 elif cc_check -ldl ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1432 _dl=yes |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1433 _ld_dl='-ldl' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1434 fi |
2943 | 1435 if test "$_dl" = yes ; then |
1436 _def_dl='#define HAVE_LIBDL 1' | |
1437 else | |
1438 _def_dl='#undef HAVE_LIBDL' | |
1439 fi | |
1440 echores "$_dl" | |
1441 | |
3004 | 1442 |
3061
6d8116bbf3b2
-rdynamic is only needed on bsd's (well... it was the case in C1)
pl
parents:
3057
diff
changeset
|
1443 #echocheck "dynamic linking" |
3065 | 1444 # FIXME !! make this dynamic detection to work and modify at the end (search _ld_dl_dynamic) |
3028
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1445 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic) |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1446 #cat > $TMPC << EOF |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1447 #int main(void) { return 0; } |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1448 #EOF |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1449 #if cc_check -rdynamic ; then |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1450 # _ld_dl_dynamic='-rdynamic' |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1451 #elif cc_check -Bdynamic ; then |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1452 # _ld_dl_dynamic='-Bdynamic' |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1453 #elif cc_check ; then |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1454 # _ld_dl_dynamic='' |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1455 #fi |
3061
6d8116bbf3b2
-rdynamic is only needed on bsd's (well... it was the case in C1)
pl
parents:
3057
diff
changeset
|
1456 #echores "using $_ld_dl_dynamic" |
3028
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1457 |
3bcd9ad27b6d
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
alex
parents:
3022
diff
changeset
|
1458 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1459 echocheck "pthread" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1460 cat > $TMPC << EOF |
3001 | 1461 #include <pthread.h> |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
1462 void* func(void *arg) { return arg; } |
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
1463 int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1464 EOF |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
1465 if ( cc_check && $TMPO ) ; then # QNX |
3010 | 1466 _ld_pthread='' |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
1467 elif ( cc_check -lpthread && $TMPO ) ; then |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1468 _ld_pthread='-lpthread' |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
1469 elif ( cc_check -pthread && $TMPO ) ; then |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1470 _ld_pthread='-pthread' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1471 else |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1472 if test "$_ld_static" ; then |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1473 # for crosscompilation, we cannot execute the program, be happy if we can link statically |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1474 if ( cc_check -lpthread ) ; then |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1475 _ld_pthread='-lpthread' |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1476 elif ( cc_check -pthread ) ; then |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1477 _ld_pthread='-pthread' |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1478 else |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1479 die "Static lib pthread not found. (needed by windows and networking stuff)" |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1480 fi |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1481 else |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1482 die "Lib pthread not found. (needed by windows and networking stuff)" |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
1483 fi |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1484 fi |
3248 | 1485 echores "yes (using $_ld_pthread)" |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1486 |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
1487 |
2943 | 1488 echocheck "sys/soundcard.h" |
1489 cat > $TMPC << EOF | |
1490 #include <sys/soundcard.h> | |
1491 int main(void) { return 0; } | |
1492 EOF | |
1493 _sys_soundcard=no | |
1494 cc_check && _sys_soundcard=yes | |
1495 if test "$_sys_soundcard" = yes ; then | |
1496 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1' | |
1497 else | |
1498 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H' | |
1499 fi | |
1500 echores "$_sys_soundcard" | |
1501 | |
1502 | |
1503 echocheck "termcap" | |
2948 | 1504 if test "$_termcap" = auto ; then |
2943 | 1505 cat > $TMPC <<EOF |
1506 int main(void) { return 0; } | |
1507 EOF | |
3161 | 1508 _termcap=no |
2948 | 1509 cc_check -ltermcap && _termcap=yes |
2943 | 1510 fi |
1511 if test "$_termcap" = yes ; then | |
1512 _def_termcap='#define USE_TERMCAP 1' | |
1513 _ld_termcap='-ltermcap' | |
1514 else | |
1515 _def_termcap='#undef USE_TERMCAP' | |
1516 fi | |
1517 echores "$_termcap" | |
1518 | |
1519 | |
3007 | 1520 echocheck "termios" |
1521 if test "$_termios" = auto ; then | |
1522 cat > $TMPC <<EOF | |
1523 #include <sys/termios.h> | |
1524 int main(void) { return 0; } | |
1525 EOF | |
3161 | 1526 _termios=no |
3007 | 1527 cc_check && _termios=yes |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1528 _def_termios_h_name='sys/termios.h' |
3007 | 1529 fi |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1530 # second test: |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1531 if test "$_termios" = no ; then |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1532 cat > $TMPC <<EOF |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1533 #include <termios.h> |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1534 int main(void) { return 0; } |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1535 EOF |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1536 _termios=no |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1537 cc_check && _termios=yes |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1538 _def_termios_h_name='termios.h' |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1539 fi |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1540 |
3007 | 1541 if test "$_termios" = yes ; then |
3035 | 1542 _def_termios='#define HAVE_TERMIOS 1' |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1543 _def_termios_h='#undef HAVE_TERMIOS_H' |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1544 _def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1545 |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1546 if test "$_def_termios_h_name" = 'sys/termios.h' ; then |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1547 _def_termios_sys_h='#define HAVE_SYS_TERMIOS_H 1' |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1548 elif test "$_def_termios_h_name" = 'termios.h' ; then |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1549 _def_termios_h='#define HAVE_TERMIOS_H 1' |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1550 fi |
3902 | 1551 echores "yes (using $_def_termios_h_name)" |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1552 else |
3035 | 1553 _def_termios='#undef HAVE_TERMIOS' |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
1554 _def_termios_h_name='' |
3902 | 1555 echores "no" |
3007 | 1556 fi |
1557 | |
1558 | |
3004 | 1559 echocheck "shm" |
3005 | 1560 if test "$_shm" = auto ; then |
1561 cat > $TMPC << EOF | |
3007 | 1562 #include <sys/types.h> |
3004 | 1563 #include <sys/shm.h> |
1564 int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } | |
1565 EOF | |
3161 | 1566 _shm=no |
3005 | 1567 cc_check && _shm=yes |
1568 fi | |
3004 | 1569 if test "$_shm" = yes ; then |
1570 _def_shm='#define HAVE_SHM 1' | |
1571 else | |
1572 _def_shm='#undef HAVE_SHM' | |
1573 fi | |
1574 echores "$_shm" | |
1575 | |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1576 |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
1577 # XXX: FIXME, add runtime checking |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
1578 echocheck "linux devfs" |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
1579 echores "$_linux_devfs" |
3004 | 1580 |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1581 |
5393
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1582 echocheck "strsep()" |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1583 cat > $TMPC << EOF |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1584 #include <string.h> |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1585 int main (void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; } |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1586 EOF |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1587 _strsep=no |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1588 cc_check && _strsep=yes |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1589 if test "$_strsep" = yes ; then |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1590 _def_strsep='#define HAVE_STRSEP 1' |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1591 else |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1592 _def_strsep='#undef HAVE_STRSEP' |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1593 fi |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1594 echores "$_strsep" |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1595 |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
1596 |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1597 echocheck "vsscanf()" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1598 cat > $TMPC << EOF |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1599 #include <stdarg.h> |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1600 int main(void) { vsscanf(); return 0; } |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1601 EOF |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1602 _vsscanf=no |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1603 cc_check && _vsscanf=yes |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1604 if test "$_vsscanf" = yes ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1605 _def_vsscanf='#define HAVE_VSSCANF 1' |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1606 else |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1607 _def_vsscanf='#undef HAVE_VSSCANF' |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1608 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1609 echores "$_vsscanf" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1610 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1611 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1612 echocheck "X11 headers" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1613 if test -z "$_inc_x11" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1614 for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1615 if test -d "$I/X11" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1616 _inc_x11="-I$I" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1617 echores "yes (using $I)" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1618 break |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1619 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1620 done |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1621 if test -z "$_inc_x11" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1622 _x11=no |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1623 echores "not found" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1624 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1625 else |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1626 echores "yes (using $_inc_x11)" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1627 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1628 if test "$_inc_x11" = "-I/usr/include" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1629 _inc_x11="" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1630 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1631 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1632 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1633 echocheck "X11 libs" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1634 if test -z "$_ld_x11" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1635 for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1636 if test -d "$I" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1637 _ld_x11="-L$I" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1638 echores "yes (using $I)" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1639 break; |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1640 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1641 done |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1642 if test -z "$_ld_x11" ; then |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1643 _x11=no |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1644 echores "not found" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1645 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1646 else |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1647 echores "yes (using $_ld_x11)" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1648 fi |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1649 _ld_x11="$_ld_x11 -lX11 -lXext $_ld_sock" |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1650 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1651 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1652 ######### |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1653 # VIDEO # |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1654 ######### |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1655 |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
1656 |
2943 | 1657 echocheck "3dfx" |
1658 if test "$_3dfx" = yes ; then | |
1659 _def_3dfx='#define HAVE_3DFX 1' | |
1660 _vosrc="$_vosrc vo_3dfx.c" | |
3161 | 1661 _vomodules="3dfx $_vomodules" |
2943 | 1662 else |
1663 _def_3dfx='#undef HAVE_3DFX' | |
5051 | 1664 _novomodules="3dfx $_novomodules" |
2943 | 1665 fi |
1666 echores "$_3dfx" | |
1667 | |
1668 | |
1669 echocheck "tdfxfb" | |
1670 if test "$_tdfxfb" = yes ; then | |
1671 _def_tdfxfb='#define HAVE_TDFXFB 1' | |
1672 _vosrc="$_vosrc vo_tdfxfb.c" | |
3161 | 1673 _vomodules="tdfxfb $_vomodules" |
2943 | 1674 else |
1675 _def_tdfxfb='#undef HAVE_TDFXFB' | |
5090 | 1676 _novomodules="tdfxfb $_novomodules" |
2943 | 1677 fi |
1678 echores "$_tdfxfb" | |
1679 | |
1680 | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1681 echocheck "DirectFB" |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1682 if test "$_directfb" = auto ; then |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1683 _directfb=no |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1684 cat > $TMPC <<EOF |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1685 #include <directfb.h> |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1686 int main(void) { IDirectFB *foo; return 0; } |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1687 EOF |
4019
079177a400cb
fbdev autodetection enabled (requires linux && /dev/fb0)
pl
parents:
4003
diff
changeset
|
1688 linux && test -c /dev/fb0 && cc_check -ldirectfb && _directfb=yes |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1689 fi |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1690 if test "$_directfb" = yes ; then |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1691 _def_directfb='#define HAVE_DIRECTFB 1' |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1692 _vosrc="$_vosrc vo_directfb.c" |
3337 | 1693 _vomodules="directfb $_vomodules" |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1694 _ld_directfb='-ldirectfb' |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1695 else |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1696 _def_directfb='#undef HAVE_DIRECTFB' |
5051 | 1697 _novomodules="directfb $_novomodules" |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1698 fi |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1699 echores "$_directfb" |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
1700 |
5034 | 1701 if test "$_directfb" = yes; then |
5026
693b917ac916
DirectFB 0.9.9 support - patch by Aubin Paul <aubin@punknews.org>
arpi
parents:
4944
diff
changeset
|
1702 echocheck "DirectFB >= 0.9.9" |
5034 | 1703 _directfb099=no |
1704 cat > $TMPC <<EOF | |
5026
693b917ac916
DirectFB 0.9.9 support - patch by Aubin Paul <aubin@punknews.org>
arpi
parents:
4944
diff
changeset
|
1705 #include <directfb.h> |
5034 | 1706 int main(void) { IDirectFBEventBuffer *foo; return 0; } |
5026
693b917ac916
DirectFB 0.9.9 support - patch by Aubin Paul <aubin@punknews.org>
arpi
parents:
4944
diff
changeset
|
1707 EOF |
5034 | 1708 cc_check -ldirectfb && _directfb099=yes |
1709 if test "$_directfb099" = yes ; then | |
1710 _def_directfb099='#define HAVE_DIRECTFB099 1' | |
1711 else | |
1712 _def_directfb099='#undef HAVE_DIRECTFB099' | |
5026
693b917ac916
DirectFB 0.9.9 support - patch by Aubin Paul <aubin@punknews.org>
arpi
parents:
4944
diff
changeset
|
1713 fi |
5034 | 1714 echores "$_directfb099" |
5026
693b917ac916
DirectFB 0.9.9 support - patch by Aubin Paul <aubin@punknews.org>
arpi
parents:
4944
diff
changeset
|
1715 fi |
2943 | 1716 echocheck "X11" |
2998
535930d5a8ac
fix x11 linking when --disable-x11 used (btw sdl may still require it)
pl
parents:
2997
diff
changeset
|
1717 if test "$_x11" = auto || test "$_x11" = yes ; then |
2943 | 1718 cat > $TMPC <<EOF |
2988 | 1719 #include <X11/Xlib.h> |
1720 #include <X11/Xutil.h> | |
1721 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } | |
2943 | 1722 EOF |
1723 _x11=no | |
2988 | 1724 cc_check $_inc_x11 $_ld_x11 && _x11=yes |
2943 | 1725 fi |
1726 if test "$_x11" = yes ; then | |
1727 _def_x11='#define HAVE_X11 1' | |
1728 _vosrc="$_vosrc vo_x11.c" | |
3161 | 1729 _vomodules="x11 $_vomodules" |
2943 | 1730 else |
1731 _def_x11='#undef HAVE_X11' | |
2998
535930d5a8ac
fix x11 linking when --disable-x11 used (btw sdl may still require it)
pl
parents:
2997
diff
changeset
|
1732 _inc_x11='' |
535930d5a8ac
fix x11 linking when --disable-x11 used (btw sdl may still require it)
pl
parents:
2997
diff
changeset
|
1733 _ld_x11='' |
5051 | 1734 _novomodules="x11 $_novomodules" |
2943 | 1735 fi |
1736 echores "$_x11" | |
1737 | |
1738 | |
2945 | 1739 echocheck "DPMS" |
2943 | 1740 _xdpms3=no |
1741 if test "$_x11" = yes ; then | |
1742 cat > $TMPC <<EOF | |
1743 #include <X11/Xmd.h> | |
1744 #include <X11/Xlib.h> | |
1745 #include <X11/Xutil.h> | |
1746 #include <X11/Xatom.h> | |
1747 #include <X11/extensions/dpms.h> | |
3010 | 1748 int main(void) { |
1749 (void) DPMSQueryExtension(0, 0, 0); | |
1750 } | |
2943 | 1751 EOF |
2988 | 1752 cc_check $_inc_x11 $_ld_x11 -lXdpms && _xdpms3=yes |
2943 | 1753 fi |
1754 _xdpms4=no | |
1755 if test "$_x11" = yes ; then | |
1756 cat > $TMPC <<EOF | |
1757 #include <X11/Xlib.h> | |
1758 #include <X11/extensions/dpms.h> | |
1759 int main(void) { | |
1760 (void) DPMSQueryExtension(0, 0, 0); | |
1761 } | |
1762 EOF | |
2945 | 1763 cc_check $_inc_x11 $_ld_x11 && _xdpms4=yes |
2943 | 1764 fi |
1765 if test "$_xdpms4" = yes ; then | |
1766 _def_xdpms='#define HAVE_XDPMS 1' | |
3248 | 1767 echores "yes (using Xdpms 4)" |
2943 | 1768 elif test "$_xdpms3" = yes ; then |
1769 _def_xdpms='#define HAVE_XDPMS 1' | |
3022
95dc79ab9f0d
_ld_x11 patch by Anders Johansson <ajh@atri.curtin.edu.au>
pl
parents:
3021
diff
changeset
|
1770 _ld_x11="$_ld_x11 -lXdpms" |
3248 | 1771 echores "yes (using Xdpms 3)" |
2943 | 1772 else |
1773 _def_xdpms='#undef HAVE_XDPMS' | |
1774 echores "no" | |
1775 fi | |
1776 | |
1777 | |
1778 echocheck "Xv" | |
3057
a78b90991320
fixes for bugs found by Ivan Kalvatchev <iive@yahoo.com>
pl
parents:
3052
diff
changeset
|
1779 if test "$_x11" = yes && test "$_xv" != no ; then |
2943 | 1780 cat > $TMPC <<EOF |
3029 | 1781 #include <X11/Xlib.h> |
1782 #include <X11/extensions/Xvlib.h> | |
1783 int main(void) { (void) XvGetPortAttribute(0, 0, 0, 0); return 0; } | |
2943 | 1784 EOF |
1785 _xv=no | |
2988 | 1786 cc_check $_inc_x11 $_ld_x11 -lXv && _xv=yes |
2943 | 1787 else |
1788 _xv=no | |
1789 fi | |
1790 if test "$_xv" = yes ; then | |
1791 _def_xv='#define HAVE_XV 1' | |
1792 _ld_xv='-lXv' | |
1793 _vosrc="$_vosrc vo_xv.c" | |
3161 | 1794 _vomodules="xv $_vomodules" |
2943 | 1795 else |
1796 _def_xv='#undef HAVE_XV' | |
5051 | 1797 _novomodules="xv $_novomodules" |
2943 | 1798 fi |
1799 echores "$_xv" | |
1800 | |
1801 | |
1802 echocheck "Xinerama" | |
3057
a78b90991320
fixes for bugs found by Ivan Kalvatchev <iive@yahoo.com>
pl
parents:
3052
diff
changeset
|
1803 if test "$_x11" = yes && test "$_xinerama" != no ; then |
2943 | 1804 cat > $TMPC <<EOF |
3029 | 1805 #include <X11/Xlib.h> |
1806 #include <X11/extensions/Xinerama.h> | |
1807 int main(void) { (void) XineramaIsActive(0); return 0; } | |
2943 | 1808 EOF |
1809 _xinerama=no | |
2988 | 1810 cc_check $_inc_x11 $_ld_x11 -lXinerama && _xinerama=yes |
2943 | 1811 else |
1812 _xinerama=no | |
1813 fi | |
1814 if test "$_xinerama" = yes ; then | |
1815 _def_xinerama='#define HAVE_XINERAMA 1' | |
1816 _ld_xinerama='-lXinerama' | |
1817 else | |
1818 _def_xinerama='#undef HAVE_XINERAMA' | |
1819 fi | |
1820 echores "$_xinerama" | |
1821 | |
1822 | |
1823 # Note: the -lXxf86vm library is the VideoMode extension and though it's not | |
1824 # needed for DGA, AFAIK every distribution packages together with DGA stuffs | |
1825 # named 'X extensions' or something similar. | |
1826 # This check may be useful for future mplayer versions (to change resolution) | |
1827 # If you run into problems, remove '-lXxf86vm'. | |
1828 echocheck "Xxf86vm" | |
3057
a78b90991320
fixes for bugs found by Ivan Kalvatchev <iive@yahoo.com>
pl
parents:
3052
diff
changeset
|
1829 if test "$_x11" = yes && test "$_vm" != no ; then |
2943 | 1830 cat > $TMPC <<EOF |
3029 | 1831 #include <X11/Xlib.h> |
1832 #include <X11/extensions/xf86vmode.h> | |
1833 int main(void) { (void) XF86VidModeQueryExtension(0, 0, 0); return 0; } | |
2943 | 1834 EOF |
1835 _vm=no | |
2988 | 1836 cc_check $_inc_x11 $_ld_x11 -lXxf86vm && _vm=yes |
2943 | 1837 else |
1838 _vm=no | |
1839 fi | |
1840 if test "$_vm" = yes ; then | |
1841 _def_vm='#define HAVE_XF86VM 1' | |
1842 _ld_vm='-lXxf86vm' | |
1843 else | |
1844 _def_vm='#undef HAVE_XF86VM' | |
1845 fi | |
1846 echores "$_vm" | |
1847 | |
1848 | |
1849 echocheck "DGA" | |
3206 | 1850 # Version 2 is preferred to version 1 if available |
1851 if test "$_dga" = auto ; then | |
2943 | 1852 cat > $TMPC << EOF |
1853 #include <X11/Xlib.h> | |
1854 #include <X11/extensions/xf86dga.h> | |
3206 | 1855 int main (void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; } |
2943 | 1856 EOF |
1857 _dga=no | |
3206 | 1858 cc_check $_inc_x11 $_ld_x11 -lXxf86dga -lXxf86vm && _dga=1 |
1859 | |
1860 cat > $TMPC << EOF | |
1861 #include <X11/Xlib.h> | |
1862 #include <X11/extensions/xf86dga.h> | |
1863 int main (void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; } | |
1864 EOF | |
1865 cc_check $_inc_x11 $_ld_x11 -lXxf86dga && _dga=2 | |
2943 | 1866 fi |
3206 | 1867 |
1868 _def_dga='#undef HAVE_DGA' | |
1869 _def_dga2='#undef HAVE_DGA2' | |
1870 if test "$_dga" = 1 ; then | |
2943 | 1871 _def_dga='#define HAVE_DGA 1' |
3217 | 1872 _ld_dga='-lXxf86dga' |
2943 | 1873 _vosrc="$_vosrc vo_dga.c" |
3161 | 1874 _vomodules="dga $_vomodules" |
3248 | 1875 echores "yes (using DGA 1.0)" |
3206 | 1876 elif test "$_dga" = 2 ; then |
3217 | 1877 _def_dga='#define HAVE_DGA 1' |
3206 | 1878 _def_dga2='#define HAVE_DGA2 1' |
1879 _ld_dga='-lXxf86dga' | |
1880 _vosrc="$_vosrc vo_dga.c" | |
1881 _vomodules="dga $_vomodules" | |
3248 | 1882 echores "yes (using DGA 2.0)" |
3206 | 1883 elif test "$_dga" = no ; then |
1884 echores "no" | |
5051 | 1885 _novomodules="dga $_novomodules" |
2943 | 1886 else |
3206 | 1887 die "DGA version must be 1 or 2" |
2943 | 1888 fi |
1889 | |
1890 | |
1891 echocheck "OpenGL" | |
3018
9eb1cae56cae
when --enable-gl was used, linker flags (_ld_gl) were not set (found by Nick K)
pl
parents:
3015
diff
changeset
|
1892 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl |
9eb1cae56cae
when --enable-gl was used, linker flags (_ld_gl) were not set (found by Nick K)
pl
parents:
3015
diff
changeset
|
1893 if test "$_x11" = yes && test "$_gl" != no ; then |
2943 | 1894 cat > $TMPC << EOF |
1895 #include <GL/gl.h> | |
1896 int main(void) { return 0; } | |
1897 EOF | |
1898 _gl=no | |
2988 | 1899 if cc_check $_inc_x11 $_ld_x11 -lGL -lm ; then |
1900 _gl=yes | |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
1901 _ld_gl="-lGL" |
2988 | 1902 elif cc_check $_inc_x11 $_ld_x11 -lGL -lm $_ld_pthread ; then |
1903 _gl=yes | |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
1904 _ld_gl="-lGL $_ld_pthread" |
2190 | 1905 fi |
2998
535930d5a8ac
fix x11 linking when --disable-x11 used (btw sdl may still require it)
pl
parents:
2997
diff
changeset
|
1906 else |
535930d5a8ac
fix x11 linking when --disable-x11 used (btw sdl may still require it)
pl
parents:
2997
diff
changeset
|
1907 _gl=no |
2943 | 1908 fi |
1909 if test "$_gl" = yes ; then | |
1910 _def_gl='#define HAVE_GL 1' | |
1911 _vosrc="$_vosrc vo_gl.c vo_gl2.c" | |
3161 | 1912 _vomodules="opengl $_vomodules" |
2943 | 1913 else |
1914 _def_gl='#undef HAVE_GL' | |
5051 | 1915 _novomodules="opengl $_novomodules" |
2943 | 1916 fi |
1917 echores "$_gl" | |
1515
624c9d5dad20
Use the standard mplayer config test for finding libraries, so that it can
jkeil
parents:
1511
diff
changeset
|
1918 |
1 | 1919 |
2943 | 1920 echocheck "/dev/mga_vid" |
1921 if test "$_mga" = auto ; then | |
1922 _mga=no | |
1923 test -c /dev/mga_vid && _mga=yes | |
1924 fi | |
1925 if test "$_mga" = yes ; then | |
1926 _def_mga='#define HAVE_MGA 1' | |
1927 _vosrc="$_vosrc vo_mga.c" | |
3161 | 1928 _vomodules="mga $_vomodules" |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
1929 else |
2943 | 1930 _def_mga='#undef HAVE_MGA' |
5051 | 1931 _novomodules="mga $_novomodules" |
2463 | 1932 fi |
2943 | 1933 echores "$_mga" |
525 | 1934 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1935 |
5599 | 1936 # echocheck "syncfb" |
1937 # _syncfb=no | |
1938 # test "$_mga" = yes && _syncfb=yes | |
1939 # if test "$_syncfb" = yes ; then | |
1940 # _def_syncfb='#define HAVE_SYNCFB 1' | |
1941 # _vosrc="$_vosrc vo_syncfb.c" | |
1942 # else | |
1943 # _def_syncfb='#undef HAVE_SYNCFB' | |
1944 # fi | |
1945 # echores "$_syncfb" | |
2943 | 1946 |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1947 |
2943 | 1948 echocheck "xmga" |
1949 if test "$_xmga" = auto ; then | |
1950 _xmga=no | |
1951 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes | |
1952 fi | |
1953 if test "$_xmga" = yes ; then | |
1954 _def_xmga='#define HAVE_XMGA 1' | |
1955 _vosrc="$_vosrc vo_xmga.c" | |
3161 | 1956 _vomodules="xmga $_vomodules" |
2943 | 1957 else |
1958 _def_xmga='#undef HAVE_XMGA' | |
5051 | 1959 _novomodules="xmga $_novomodules" |
2943 | 1960 fi |
1961 echores "$_xmga" | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1962 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1963 |
2943 | 1964 echocheck "GGI" |
1965 if test "$_ggi" = auto ; then | |
1966 cat > $TMPC << EOF | |
1967 #include <ggi/ggi.h> | |
1968 int main(void) { return 0; } | |
1969 EOF | |
1970 _ggi=no | |
3057
a78b90991320
fixes for bugs found by Ivan Kalvatchev <iive@yahoo.com>
pl
parents:
3052
diff
changeset
|
1971 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
|
1972 fi |
2943 | 1973 if test "$_ggi" = yes ; then |
1974 _def_ggi='#define HAVE_GGI 1' | |
1975 _ld_ggi='-lggi' | |
1976 _vosrc="$_vosrc vo_ggi.c" | |
3161 | 1977 _vomodules="ggi $_vomodules" |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1978 else |
2943 | 1979 _def_ggi='#undef HAVE_GGI' |
5051 | 1980 _novomodules="ggi $_novomodules" |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1981 fi |
2943 | 1982 echores "$_ggi" |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1983 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1984 |
2943 | 1985 echocheck "AA" |
1986 if test "$_aa" = auto ; then | |
1987 cat > $TMPC << EOF | |
1988 #include <aalib.h> | |
3029 | 1989 int main(void) { (void) aa_init(0, 0, 0); return 0; } |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1990 EOF |
2943 | 1991 _aa=no |
1992 cc_check -laa && _aa=yes | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1993 fi |
2943 | 1994 if test "$_aa" = yes ; then |
1995 _def_aa='#define HAVE_AA 1' | |
1996 _ld_aa='-laa' | |
1997 _vosrc="$_vosrc vo_aa.c" | |
3161 | 1998 _vomodules="aa $_vomodules" |
2943 | 1999 else |
2000 _def_aa='#undef HAVE_AA' | |
5051 | 2001 _novomodules="aa $_novomodules" |
2943 | 2002 fi |
2003 echores "$_aa" | |
59 | 2004 |
1694 | 2005 |
2943 | 2006 echocheck "SVGAlib" |
2007 if test "$_svga" = auto ; then | |
2008 cat > $TMPC << EOF | |
2009 #include <vga.h> | |
2010 #include <vgagl.h> | |
2011 int main(void) { return 0; } | |
1694 | 2012 EOF |
2943 | 2013 _svga=no |
2014 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
|
2015 fi |
2943 | 2016 if test "$_svga" = yes ; then |
2017 _def_svga='#define HAVE_SVGALIB 1' | |
2018 _ld_svga='-lvgagl -lvga' | |
2019 _vosrc="$_vosrc vo_svga.c" | |
3161 | 2020 _vomodules="svga $_vomodules" |
2943 | 2021 else |
2022 _def_svga='#undef HAVE_SVGALIB' | |
5051 | 2023 _novomodules="svga $_novomodules" |
2943 | 2024 fi |
2025 echores "$_svga" | |
1596 | 2026 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2027 |
2943 | 2028 echocheck "FBDev" |
2029 if test "$_fbdev" = auto ; then | |
2030 _fbdev=no | |
4019
079177a400cb
fbdev autodetection enabled (requires linux && /dev/fb0)
pl
parents:
4003
diff
changeset
|
2031 linux && test -c /dev/fb0 && _fbdev=yes |
2943 | 2032 fi |
2033 if test "$_fbdev" = yes ; then | |
2034 _def_fbdev='#define HAVE_FBDEV 1' | |
2035 _vosrc="$_vosrc vo_fbdev.c" | |
3161 | 2036 _vomodules="fbdev $_vomodules" |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2037 |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2038 if test "$_fbdev_nocopy" = yes ; then |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2039 _def_fbdev_nocopy='#define USE_CONVERT2FB 1' |
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2040 fi |
2943 | 2041 else |
2042 _def_fbdev='#undef HAVE_FBDEV' | |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2043 _def_fbdev_nocopy='#undef USE_CONVERT2FB' |
5051 | 2044 _novomodules="fbdev $_novomodules" |
2943 | 2045 fi |
2046 echores "$_fbdev" | |
2774 | 2047 |
2048 | |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
2049 |
2943 | 2050 echocheck "DVB" |
2051 if test "$_dvb" != no ; then | |
2052 _dvb=no | |
2053 test -c /dev/ost/video && _dvb=yes | |
5486 | 2054 cat >$TMPC << EOF |
2055 #include <sys/poll.h> | |
2056 #include <sys/ioctl.h> | |
2057 #include <stdio.h> | |
2058 #include <time.h> | |
2059 #include <unistd.h> | |
2060 | |
2061 #include <ost/dmx.h> | |
2062 #include <ost/frontend.h> | |
2063 #include <ost/sec.h> | |
2064 #include <ost/video.h> | |
2065 #include <ost/audio.h> | |
2066 int main(void) {return 0;} | |
2067 EOF | |
2068 if cc_check ; then | |
2069 _dvb=yes | |
2070 echores "yes" | |
2071 else | |
2072 if cc_check -I/usr/src/DVB/ost/include ; then | |
2073 _dvb=yes | |
2074 echores "yes (using source from /usr/src/DVB/ost/include)" | |
2075 _inc_dvb="-I/usr/src/DVB/ost/include" | |
2076 else | |
2077 if cc_check $_inc_extra/ost/include ; then | |
2078 _dvb=yes | |
2079 echores "yes (using source from $_inc_extra/ost/include)" | |
2080 _inc_dvb="$_inc_extra/ost/include" | |
2081 else | |
2082 _dvb=no | |
2083 echores "no (driver source not in /usr/src/DVB/ost/include, please add path with --with-extraincdir=DIR)" | |
2084 fi | |
2085 fi | |
2086 fi | |
2087 else | |
2088 echores "no" | |
2943 | 2089 fi |
2090 if test "$_dvb" = yes ; then | |
2091 _def_dvb='#define HAVE_DVB 1' | |
3325 | 2092 _vomodules="mpegpes(dvb) $_vomodules" |
2943 | 2093 else |
2094 _def_dvb='#undef HAVE_DVB' | |
3325 | 2095 _vomodules="mpegpes(file) $_vomodules" |
2943 | 2096 fi |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2097 |
4463
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2098 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2099 echocheck "PNG support" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2100 if test "$_png" = auto ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2101 _png=no |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2102 if irix ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2103 # 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
|
2104 # incompatible with the GNU libpng |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2105 echores "disabled on irix (not GNU libpng)" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2106 else |
2993 | 2107 cat > $TMPC << EOF |
2108 #include <png.h> | |
4463
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2109 #include <string.h> |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2110 int main(void) { |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2111 printf("png.h : %s\n", PNG_LIBPNG_VER_STRING); |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2112 printf("libpng: %s\n", png_get_libpng_ver(NULL)); |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2113 return (strcmp(PNG_LIBPNG_VER_STRING, png_get_libpng_ver(NULL))); |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2114 } |
2993 | 2115 EOF |
4463
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2116 if cc_check -lpng -lz -lm ; then |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2117 if "$TMPO" >> "$TMPLOG" ; then |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2118 _png=yes |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2119 echores yes |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2120 else |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2121 echores "no (mismatch of library and header versions)" |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2122 fi |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2123 else |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2124 echores no |
2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
pl
parents:
4346
diff
changeset
|
2125 fi |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2126 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2127 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2128 echores "$_png" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2129 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2130 if test "$_png" = yes ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2131 _def_png='#define HAVE_PNG 1' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2132 _ld_png='-lpng -lz' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2133 _vosrc="$_vosrc vo_png.c" |
3161 | 2134 _vomodules="png $_vomodules" |
4656 | 2135 _mkf_png="yes" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2136 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2137 _def_png='#undef HAVE_PNG' |
5051 | 2138 _novomodules="png $_novomodules" |
4656 | 2139 _mkf_png="no" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2140 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2141 |
5029 | 2142 echocheck "JPEG support" |
2143 if test "$_jpg" = auto ; then | |
2144 _jpg=no | |
2145 cat > $TMPC << EOF | |
2146 #include <stdio.h> | |
2147 #include <stdlib.h> | |
2148 #include <setjmp.h> | |
2149 #include <string.h> | |
2150 #include <jpeglib.h> | |
2151 int main(void) { | |
2152 return 0; | |
2153 } | |
2154 EOF | |
2155 if cc_check -ljpeg -lm ; then | |
2156 if "$TMPO" >> "$TMPLOG" ; then | |
2157 _jpg=yes | |
2158 fi | |
2159 fi | |
2160 fi | |
5035 | 2161 echores "$_jpg" |
2162 | |
5029 | 2163 if test "$_jpg" = yes ; then |
2164 _def_jpg='#define HAVE_JPEG 1' | |
5648 | 2165 _vosrc="$_vosrc vo_jpeg.c" |
2166 _vomodules="jpeg $_vomodules" | |
5035 | 2167 _ld_jpg="-ljpeg" |
5029 | 2168 _mkf_jpg="yes" |
2169 else | |
2170 _def_jpg='#undef HAVE_JPEG' | |
5648 | 2171 _novomodules="jpeg $_novomodules" |
5029 | 2172 _mkf_jpg="no" |
2173 fi | |
2174 | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2175 |
4560 | 2176 if test "$_vesa" != no ; then |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2177 echocheck "VESA support" |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2178 if x86 && linux ; then |
4561 | 2179 _def_vesa='#define HAVE_VESA 1' |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2180 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c" |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2181 _vomodules="vesa $_vomodules" |
3248 | 2182 echores "yes" |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2183 else |
4561 | 2184 _def_vesa='#undef HAVE_VESA' |
5051 | 2185 _novomodules="vesa $_novomodules" |
3360 | 2186 echores "no (not supported on this OS/architecture)" |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2187 fi |
4562 | 2188 else |
4561 | 2189 _def_vesa='#undef HAVE_VESA' |
4560 | 2190 fi |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2191 |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2192 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2193 ################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2194 # VIDEO + AUDIO # |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2195 ################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2196 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2197 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2198 echocheck "SDL" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2199 if test -z "$_sdlconfig" ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2200 if ( sdl-config --version ) >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2201 _sdlconfig="sdl-config" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2202 elif ( sdl11-config --version ) >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2203 _sdlconfig="sdl11-config" |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2204 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2205 _sdlconfig=false |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2206 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2207 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2208 if test "$_sdl" = auto || test "$_sdl" = yes ; then |
2948 | 2209 cat > $TMPC << EOF |
2210 #include <SDL.h> | |
2211 int main(void) { return 0; } | |
2212 EOF | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2213 _sdl=no |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2214 if "$_sdlconfig" --version >/dev/null 2>&1 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2215 if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2216 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2217 if test "$_sdlversion" -gt 116 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2218 if test "$_sdlversion" -lt 121 ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2219 _def_sdlbuggy='#define BUGGY_SDL' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2220 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2221 _def_sdlbuggy='#undef BUGGY_SDL' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2222 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2223 _sdl=yes |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2224 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2225 _sdl=outdated |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2226 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2227 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2228 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2229 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2230 if test "$_sdl" = yes ; then |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2231 _def_sdl='#define HAVE_SDL 1' |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2232 _ld_sdl=`$_sdlconfig --libs` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2233 _inc_sdl=`$_sdlconfig --cflags` |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2234 _vosrc="$_vosrc vo_sdl.c" |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
2235 _vomodules="sdl $_vomodules" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2236 _aosrc="$_aosrc ao_sdl.c" |
3161 | 2237 _aomodules="sdl $_aomodules" |
3902 | 2238 echores "yes (using $_sdlconfig)" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2239 else |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2240 _def_sdl='#undef HAVE_SDL' |
5051 | 2241 _novomodules="sdl $_novomodules" |
2242 _noaomodules="sdl $_noaomodules" | |
3902 | 2243 echores "no" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2244 fi |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2245 |
3276 | 2246 echocheck "NAS" |
2247 if test "$_nas" = auto || test "$_nas" = yes ; then | |
2248 cat > $TMPC << EOF | |
2249 #include <audio/audiolib.h> | |
2250 int main(void) { return 0; } | |
2251 EOF | |
2252 _nas=no | |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
2253 cc_check -laudio $_inc_x11 $_ld_x11 -lXt -lm && _nas=yes |
3276 | 2254 fi |
2255 if test "$_nas" = yes ; then | |
2256 _def_nas='#define HAVE_NAS 1' | |
3506
3d906972dafd
--with-x11{inc,lib}dir configure option broken, can't select a specific X11
jkeil
parents:
3451
diff
changeset
|
2257 _ld_nas="-laudio $_ld_x11 -lXt" |
3276 | 2258 _aosrc="$_aosrc ao_nas.c" |
2259 _aomodules="nas $_aomodules" | |
2260 else | |
5051 | 2261 _noaomodules="nas $_noaomodules" |
3276 | 2262 _def_nas='#undef HAVE_NAS' |
2263 fi | |
2264 echores "$_nas" | |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
2265 |
2943 | 2266 echocheck "DXR3/H+" |
2267 if test "$_dxr3" = auto ; then | |
2268 cat > $TMPC << EOF | |
3327
e4f0723d3108
Added support for the libmp1e ultrafast mpeg1 realtime encoder. This makes rte obsolete.
mswitch
parents:
3325
diff
changeset
|
2269 #include <linux/em8300.h> |
2943 | 2270 int main(void) { return 0; } |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2271 EOF |
2943 | 2272 _dxr3=no |
3327
e4f0723d3108
Added support for the libmp1e ultrafast mpeg1 realtime encoder. This makes rte obsolete.
mswitch
parents:
3325
diff
changeset
|
2273 cc_check && _dxr3=yes |
2943 | 2274 fi |
2275 if test "$_dxr3" = yes ; then | |
2276 _def_dxr3='#define HAVE_DXR3 1' | |
2277 _vosrc="$_vosrc vo_dxr3.c" | |
3208 | 2278 _vomodules="dxr3 $_vomodules" |
2943 | 2279 else |
2280 _def_dxr3='#undef HAVE_DXR3' | |
5051 | 2281 _novomodules="dxr3 $_novomodules" |
3853 | 2282 if test "$_mp1e" = auto ; then |
2283 # we don't need mp1e | |
2284 _mp1e=no | |
2285 fi | |
2943 | 2286 fi |
2287 echores "$_dxr3" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2288 |
3853 | 2289 echocheck "libmp1e" |
2290 if test "$_mmx" = no ; then | |
2291 # mp1e REQUIRES mmx! | |
2292 _mp1e=no | |
2293 fi | |
2294 if test "$_mp1e" != no ; then | |
2295 _mp1e=yes | |
2296 _def_mp1e='#define USE_MP1E' | |
2297 _ld_mp1e="-Llibmp1e -lmp1e" | |
2298 _dep_mp1e='libmp1e/libmp1e.a' | |
2299 else | |
2300 _mp1e=no | |
2301 _def_mp1e='#undef USE_MP1E' | |
2302 _ld_mp1e="" | |
2303 _dep_mp1e='' | |
2304 fi | |
2305 echores "$_mp1e" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2306 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2307 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2308 # AUDIO # |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2309 ######### |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2310 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
2311 |
2943 | 2312 echocheck "OSS Audio" |
2313 if test "$_ossaudio" = auto ; then | |
2314 cat > $TMPC << EOF | |
2315 #include <sys/soundcard.h> | |
2316 int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; } | |
2482 | 2317 EOF |
2943 | 2318 _ossaudio=no |
2319 cc_check && _ossaudio=yes | |
2320 fi | |
2321 if test "$_ossaudio" = yes ; then | |
3161 | 2322 _def_ossaudio='#define USE_OSS_AUDIO 1' |
2323 _aosrc="$_aosrc ao_oss.c" | |
2324 _aomodules="oss $_aomodules" | |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2325 if test "$_linux_devfs" = yes; then |
5407 | 2326 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2327 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2328 else |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2329 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2330 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2331 fi |
2943 | 2332 else |
3161 | 2333 _def_ossaudio='#undef USE_OSS_AUDIO' |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2334 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""' |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
2335 _def_ossaudio_devmixer='#define PATH_DEV_MIXER ""' |
5051 | 2336 _noaomodules="oss $_noaomodules" |
2943 | 2337 fi |
2338 echores "$_ossaudio" | |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
2339 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2340 |
2943 | 2341 echocheck "ALSA audio" |
2342 if test "$_alsa" = auto || test "$_alsa" = yes; then | |
2343 _alsa=no | |
2190 | 2344 cat > $TMPC << EOF |
1004 | 2345 #include <sys/asoundlib.h> |
2943 | 2346 int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5)); } |
1004 | 2347 EOF |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2348 cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.5.x' |
1004 | 2349 |
2190 | 2350 cat > $TMPC << EOF |
1004 | 2351 #include <sys/asoundlib.h> |
2943 | 2352 int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); } |
1004 | 2353 EOF |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2354 cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.9.x' |
2943 | 2355 if test "$_alsaver" ; then |
2356 _alsa=yes | |
3902 | 2357 echores "yes (using alsa $_alsaver)" |
2943 | 2358 else |
2359 echores "no" | |
2360 fi | |
2361 else | |
2362 echores "no" | |
2190 | 2363 fi |
2943 | 2364 _def_alsa5='#undef HAVE_ALSA5' |
2365 _def_alsa9='#undef HAVE_ALSA9' | |
2366 if test "$_alsa" = yes ; then | |
2367 if test "$_alsaver" = '0.5.x' ; then | |
2368 _aosrc="$_aosrc ao_alsa5.c" | |
3161 | 2369 _aomodules="alsa5 $_aomodules" |
2943 | 2370 _def_alsa5='#define HAVE_ALSA5 1' |
2371 elif test "$_alsaver" = '0.9.x' ; then | |
2372 _aosrc="$_aosrc ao_alsa9.c" | |
3161 | 2373 _aomodules="alsa9 $_aomodules" |
2943 | 2374 _def_alsa9='#define HAVE_ALSA9 1' |
2375 fi | |
2376 _ld_alsa='-lasound' | |
5051 | 2377 else |
2378 _noaomodules="alsa $_noaomodules" | |
2943 | 2379 fi |
1004 | 2380 |
2381 | |
2943 | 2382 echocheck "Sun audio" |
2383 if test "$_sunaudio" = auto ; then | |
2384 cat > $TMPC << EOF | |
2385 #include <sys/types.h> | |
2386 #include <sys/audioio.h> | |
3029 | 2387 int main(void) { audio_info_t info; AUDIO_INITINFO(&info); return 0; } |
2943 | 2388 EOF |
2389 _sunaudio=no | |
2390 cc_check && _sunaudio=yes | |
2391 fi | |
2392 if test "$_sunaudio" = yes ; then | |
2393 _def_sunaudio='#define USE_SUN_AUDIO 1' | |
2394 _aosrc="$_aosrc ao_sun.c" | |
3161 | 2395 _aomodules="sun $_aomodules" |
2943 | 2396 else |
2397 _def_sunaudio='#undef USE_SUN_AUDIO' | |
5051 | 2398 _noaomodules="sun $_noaomodules" |
2943 | 2399 fi |
2400 echores "$_sunaudio" | |
2401 | |
2402 | |
2403 echocheck "Sun mediaLib" | |
2404 if test "$_mlib" = auto ; then | |
2405 _mlib=no | |
2406 test -z "$_mlibdir" && _mlibdir=/opt/SUNWmlib | |
2407 cat > $TMPC << EOF | |
2408 #include <mlib.h> | |
2409 int main(void) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; } | |
1029 | 2410 EOF |
2943 | 2411 cc_check -I${_mlibdir}/include -L${_mlibdir}/lib -lmlib && _mlib=yes |
2412 fi | |
2413 if test "$_mlib" = yes ; then | |
2414 _def_mlib='#define HAVE_MLIB 1' | |
2415 _inc_mlib=" -I${_mlibdir}/include " | |
3036
8f689566ac85
typo in _ld_mlib shell variable, mplayer didn't link any more against medialib
jkeil
parents:
3035
diff
changeset
|
2416 _ld_mlib=" -L${_mlibdir}/lib -R${_mlibdir}/lib -lmlib " |
2943 | 2417 else |
2418 _def_mlib='#undef HAVE_MLIB' | |
2419 fi | |
2420 echores "$_mlib" | |
2421 | |
2422 | |
2423 echocheck "SGI Audio" | |
2424 if test "$_sgiaudio" = auto ; then | |
2425 # check for SGI audio | |
2426 cat > $TMPC << EOF | |
2427 #include <dmedia/audio.h> | |
2428 int main(void) { return 0; } | |
2429 EOF | |
2430 _sgiaudio=no | |
2431 cc_check && _sgiaudio=yes | |
2432 fi | |
2433 if test "$_sgiaudio" = "yes" ; then | |
2434 _def_sgiaudio='#define USE_SGI_AUDIO 1' | |
2435 _ld_sgiaudio='-laudio' | |
2436 _aosrc="$_aosrc ao_sgi.c" | |
3161 | 2437 _aomodules="sgi $_aomodules" |
2943 | 2438 else |
2439 _def_sgiaudio='#undef USE_SGI_AUDIO' | |
5051 | 2440 _noaomodules="sgi $_noaomodules" |
2943 | 2441 fi |
2442 echores "$_sgiaudio" | |
1029 | 2443 |
2463 | 2444 |
3170
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2445 echocheck "VCD support" |
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2446 if linux || bsdos || freebsd || sunos ; then |
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2447 _inputmodules="vcd $_inputmodules" |
3259 | 2448 _def_vcd='#define HAVE_VCD 1' |
3170
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2449 echores "ok" |
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2450 else |
3259 | 2451 _def_vcd='#undef HAVE_VCD' |
5051 | 2452 _noinputmodules="vcd $_noinputmodules" |
3170
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2453 echores "not supported on this OS" |
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2454 fi |
59d8aea76341
vcd status in summary was sometimes wrong (found by atmos)
pl
parents:
3169
diff
changeset
|
2455 |
5777 | 2456 echocheck "DVD support (libmpdvdkit)" |
2457 if test "$_dvdkit" = auto ; then | |
2458 _dvdkit=no | |
2459 test -f "./libmpdvdkit/Makefile" && _dvdkit=yes | |
2460 fi | |
2461 if test "$_dvdkit" = yes ; then | |
2462 echores "yes" | |
2463 _inputmodules="mpdvdkit $_inputmodules" | |
2464 _dvdread=included | |
2465 else | |
2466 echores "no" | |
2467 _noinputmodules="mpdvdkit $_noinputmodules" | |
2468 fi | |
3975
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2469 |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2470 echocheck "DVD support (libcss - old style)" |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2471 if test "$_css" = auto ; then |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2472 cat > $TMPC <<EOF |
3993 | 2473 #include <sys/types.h> |
3975
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2474 #include <css.h> |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2475 int main(void) { (void) CSSisEncrypted(0); return 0; } |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2476 EOF |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2477 _css=no |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2478 cc_check -lcss $_ld_dl && _css=yes |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2479 fi |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2480 if test "$_css" = yes ; then |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2481 _def_css='#define HAVE_LIBCSS 1' |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2482 test "$_csslibdir" && _ld_css="-L${_csslibdir} $_ld_css" |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2483 _inputmodules="dvdcss $_inputmodules" |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2484 _largefiles=yes |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2485 echores "yes" |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2486 else |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2487 _def_css='#undef HAVE_LIBCSS' |
5051 | 2488 _noinputmodules="dvdcss $_noinputmodules" |
3975
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2489 echores "no" |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2490 fi |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2491 |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3919
diff
changeset
|
2492 echocheck "DVD support (libdvdread - new style)" |
2943 | 2493 if test "$_dvdread" = auto ; then |
2494 cat > $TMPC << EOF | |
2495 #include <dvdread/dvd_reader.h> | |
2496 #include <dvdread/ifo_types.h> | |
2497 #include <dvdread/ifo_read.h> | |
2498 #include <dvdread/nav_read.h> | |
2499 int main(void) { return 0; } | |
2500 EOF | |
2501 _dvdread=no | |
3557 | 2502 if test "$_dl" = yes; then |
2503 cc_check \ | |
2504 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -ldvdread $_ld_dl && \ | |
2505 _dvdread=yes | |
2506 fi | |
2943 | 2507 fi |
5777 | 2508 case "$_dvdread" in |
2509 yes) | |
2510 _largefiles=yes | |
2511 _def_dvdread='#define USE_DVDREAD 1' | |
2512 _ld_css='-ldvdread' | |
2513 _inputmodules="dvdread $_inputmodules" | |
2514 echores "yes" | |
2515 ;; | |
2516 no) | |
2517 _def_dvdread='#undef USE_DVDREAD' | |
2518 _noinputmodules="dvdread $_noinputmodules" | |
2519 echores "no" | |
2520 ;; | |
2521 included) | |
2522 _largefiles=yes | |
2523 _def_dvdread='#define USE_DVDREAD 1' | |
2524 _ld_css='-Llibmpdvdkit -lmpdvdkit' | |
2525 _noinputmodules="dvdread $_noinputmodules" | |
2526 echores "disabled by libmpdvdkit" | |
2527 ;; | |
2528 esac | |
2463 | 2529 |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2530 echocheck "libdvdnav" |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2531 if test "$_dvdnav" = yes ; then |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2532 cat > $TMPC <<EOF |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2533 #include <dvdnav.h> |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2534 int main(void) { dvdnav_t *dvd=0; return 0; } |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2535 EOF |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2536 _dvdnav=no |
5777 | 2537 test -n "$_dvdnavdir" && _legal_dvdnavdir=-L$_dvdnavdir/.libs |
2538 _used_css= | |
2539 test "$_dvdkit" = no && _used_css=$_ld_css | |
2540 cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_used_css $_ld_dl && _dvdnav=yes | |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2541 fi |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2542 if test "$_dvdnav" = yes ; then |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2543 _largefiles=yes |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2544 _def_dvdnav='#define USE_DVDNAV 1' |
5650 | 2545 _ld_css="$_ld_css $_legal_dvdnavdir -ldvdnav" |
2546 if test -n "$_dvdnavdir" ; then | |
2547 _inc_extra="$_inc_extra -I$_dvdnavdir" | |
2548 fi | |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2549 _inputmodules="dvdnav $_inputmodules" |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2550 echores "yes" |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2551 else |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2552 _def_dvdnav='#undef USE_DVDNAV' |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2553 _noinputmodules="dvdnav $_noinputmodules" |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2554 echores "no" |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2555 fi |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
2556 |
2943 | 2557 echocheck "zlib" |
2450 | 2558 cat > $TMPC << EOF |
2943 | 2559 #include <zlib.h> |
2983 | 2560 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } |
2450 | 2561 EOF |
2943 | 2562 _zlib=no |
2563 cc_check -lz && _zlib=yes | |
2564 if test "$_zlib" = yes ; then | |
2565 _def_zlib='#define HAVE_ZLIB 1' | |
2566 _ld_zlib='-lz' | |
2567 else | |
2568 _def_zlib='#undef HAVE_ZLIB' | |
2569 fi | |
2570 echores "$_zlib" | |
2463 | 2571 |
1029 | 2572 |
3015 | 2573 echocheck "RTC" |
2574 if linux ; then | |
2575 if test "$_rtc" = auto ; then | |
2576 cat > $TMPC << EOF | |
2577 #include <sys/ioctl.h> | |
2578 #include <linux/rtc.h> | |
2579 int main(void) { return RTC_IRQP_READ; } | |
2580 EOF | |
2581 _rtc=no | |
2582 cc_check && _rtc=yes | |
2583 fi | |
2584 echores "$_rtc" | |
2585 else | |
2586 _rtc=no | |
3902 | 2587 echores "no (Linux specific feature)" |
3015 | 2588 fi |
2589 if test "$_rtc" = yes ; then | |
2590 _def_rtc='#define HAVE_RTC 1' | |
2591 else | |
2592 _def_rtc='#undef HAVE_RTC' | |
2593 fi | |
2594 | |
3018
9eb1cae56cae
when --enable-gl was used, linker flags (_ld_gl) were not set (found by Nick K)
pl
parents:
3015
diff
changeset
|
2595 |
2943 | 2596 echocheck "mad support" |
2597 if test "$_mad" = auto ; then | |
2598 _mad=no | |
2599 cat > $TMPC << EOF | |
2435 | 2600 #include <mad.h> |
2601 int main(void) { return 0; } | |
2602 EOF | |
2988 | 2603 cc_check $_madlibdir -lmad && _mad=yes |
2943 | 2604 fi |
2605 if test "$_mad" = yes ; then | |
2606 _def_mad='#define USE_LIBMAD 1' | |
2607 _ld_mad='-lmad' | |
5755 | 2608 _codecmodules="libmad $_codecmodules" |
2943 | 2609 else |
2610 _def_mad='#undef USE_LIBMAD' | |
5755 | 2611 _nocodecmodules="libmad $_codecmodules" |
2943 | 2612 fi |
2613 echores "$_mad" | |
2614 | |
2615 | |
2616 echocheck "OggVorbis support" | |
2617 if test "$_vorbis" = auto ; then | |
2618 _vorbis=no | |
2619 cat > $TMPC << EOF | |
2620 #include <vorbis/codec.h> | |
5355 | 2621 int main(void) { vorbis_packet_blocksize(0,0); return 0; } |
2943 | 2622 EOF |
2988 | 2623 cc_check -lvorbis -logg -lm && _vorbis=yes |
2943 | 2624 fi |
2625 if test "$_vorbis" = yes ; then | |
2626 _def_vorbis='#define HAVE_OGGVORBIS 1' | |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
2627 _ld_vorbis='-lvorbis -logg' |
5755 | 2628 _codecmodules="libvorbis $_codecmodules" |
2943 | 2629 else |
2630 _def_vorbis='#undef HAVE_OGGVORBIS' | |
5755 | 2631 _nocodecmodules="libvorbis $_codecmodules" |
2943 | 2632 fi |
2633 echores "$_vorbis" | |
2634 | |
2635 | |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2636 echocheck "FAAD (AAC) support" |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2637 if test "$_faad" = auto ; then |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2638 _faad=no |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2639 cat > $TMPC << EOF |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2640 #include <faad.h> |
5226 | 2641 int main(void) { faacDecHandle testhand; testhand = faacDecOpen(); return 0; } |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2642 EOF |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2643 cc_check -lfaad -lm && _faad=yes |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2644 fi |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2645 if test "$_faad" = yes ; then |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2646 _def_faad='#define HAVE_FAAD 1' |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2647 _ld_faad='-lfaad' |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2648 else |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2649 _def_faad='#undef HAVE_FAAD' |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2650 fi |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2651 echores "$_faad" |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2652 |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
2653 |
2943 | 2654 echocheck "Win32 DLL support" |
3869 | 2655 qnx && _win32=no |
3865
a0c8079d2711
fixed syntax error bug reported by Steven M. Schultz. btw, pl, please fix this
alex
parents:
3853
diff
changeset
|
2656 if test "$_win32" = auto ; then |
2943 | 2657 _win32=no |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
2658 if x86 ; then |
2943 | 2659 if test -z "$_win32libdir" ; then |
2660 for I in /usr/local/lib/win32 /usr/lib/win32 ; do | |
2661 if test -d "$I" ; then | |
2662 _win32libdir="$I" | |
2663 break; | |
2664 fi; | |
2665 done | |
2666 fi | |
2667 test "$_win32libdir" && _win32=yes | |
2668 fi | |
2669 fi | |
2670 if test "$_win32" = yes ; then | |
2671 _def_win32='#define USE_WIN32DLL 1' | |
2672 _ld_win32='-Lloader -lloader' | |
2673 _dep_win32='loader/libloader.a' | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2674 _codecmodules="win32 $_codecmodules" |
3902 | 2675 echores "yes (using $_win32libdir)" |
2943 | 2676 else |
2677 _def_win32='#undef USE_WIN32DLL' | |
5051 | 2678 _nocodecmodules="win32 $_nocodecmodules" |
3451 | 2679 _dshow=no |
3902 | 2680 echores "no" |
2943 | 2681 fi |
2682 | |
3902 | 2683 |
2943 | 2684 echocheck "DirectShow" |
3451 | 2685 if false ; then |
2686 | |
2687 if test "$_dshow" != no ; then | |
2943 | 2688 _dshow=no |
2689 # check if compiler supports C++ and C++-libs are installed correctly | |
2690 cat > "$TMPCPP" << EOF | |
2691 #include <string> | |
2692 class myclass { | |
2693 private: int ret; | |
2694 public: int myreturn(void); | |
2695 }; | |
2696 int myclass::myreturn(void) { ret = 0; return ret ; } | |
2697 int main(void) { myclass myobject; return myobject.myreturn(); } | |
2698 EOF | |
2699 echo "------------------------------------------------" >> "$TMPLOG" | |
2700 cat "$TMPCPP" >> "$TMPLOG" | |
2701 if ( "$_cc" "$TMPCPP" -o "$TMPO" && "$TMPO" ) >> "$TMPLOG" 2>&1 ; then | |
2702 _dshow=yes | |
2703 echores "yes (C++ is ok)" | |
2704 else | |
2705 echores "no" | |
2706 cat << EOF | |
2707 | |
2708 Your C++ runtime environment is broken. | |
2709 | |
2710 Hints: Does $_cc support C++ ? Have you a C++ compiler installed ? | |
2711 Are the C++ libraries correctly installed ? | |
2712 Check for libstdc++ and in (/etc/)ld.so.conf | |
2713 | |
3161 | 2714 If you do not need DirectShow support, you can also use: |
2943 | 2715 ./configure --disable-dshow <your-normal-configure-options> |
2716 to disable building of the C++ based DirectShow code. | |
2717 | |
2718 EOF | |
2719 die "$_cc's C++ is broken" | |
2720 fi | |
3451 | 2721 fi |
2722 | |
2943 | 2723 fi |
3451 | 2724 |
2725 echores "$_dshow" | |
2726 | |
2943 | 2727 if test "$_dshow" = yes ; then |
2728 _def_dshow='#define USE_DIRECTSHOW 1' | |
3451 | 2729 _ld_dshow='-Lloader/dshow -lDS_Filter' |
2730 _dep_dshow='loader/dshow/libDS_Filter.a' | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2731 _codecmodules="directshow $_codecmodules" |
2943 | 2732 else |
2733 _def_dshow='#undef USE_DIRECTSHOW' | |
5051 | 2734 _nocodecmodules="directshow $_nocodecmodules" |
2943 | 2735 fi |
2435 | 2736 |
2737 | |
2943 | 2738 echocheck "XAnim DLL" |
2739 if test "$_xanim" = auto ; then | |
2740 _xanim=no | |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
2741 if test "$_dl" = yes ; then |
3241
71075e783b04
fixed xanim detection (also present on non-x86 too - look at xanim homepage) and added tv into _inputmodules
alex
parents:
3237
diff
changeset
|
2742 if test -z "$_xanimlibdir" ; then |
5110 | 2743 for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods /usr/lib/xanim $XANIM_MOD_DIR ; do |
2943 | 2744 if test -d "$I" ; then |
2745 _xanimlibdir="$I" | |
2746 break; | |
2747 fi; | |
2748 done | |
2749 fi | |
3241
71075e783b04
fixed xanim detection (also present on non-x86 too - look at xanim homepage) and added tv into _inputmodules
alex
parents:
3237
diff
changeset
|
2750 test "$_xanimlibdir" && _xanim=yes |
3359 | 2751 if test "$_xanim" = yes ; then |
3902 | 2752 echores "yes (using $_xanimlibdir)" |
3337 | 2753 else |
3902 | 2754 echores "no (no suitable directory found - see DOCS/codecs.html)" |
3337 | 2755 fi |
2943 | 2756 else |
3902 | 2757 echores "no (dynamic loader support needed)" |
2943 | 2758 fi |
2759 else | |
2760 echores "$_xanim" | |
2761 fi | |
2762 if test "$_xanim" = yes ; then | |
2763 _def_xanim='#define USE_XANIM 1' | |
2764 _def_xanim_path="#define XACODEC_PATH \"$_xanimlibdir\"" | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2765 _codecmodules="xanim $_codecmodules" |
2943 | 2766 else |
2767 _def_xanim='#undef USE_XANIM' | |
2768 _def_xanim_path='#undef XACODEC_PATH' | |
5051 | 2769 _nocodecmodules="xanim $_nocodecmodules" |
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
|
2770 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
|
2771 |
2943 | 2772 |
2773 echocheck "iconv" | |
2774 if test "$_iconv" = auto ; then | |
2775 if freebsd ; then | |
2776 _iconv_tmp='#include <giconv.h>' | |
2777 else | |
2778 _iconv_tmp='#include <iconv.h>' | |
2779 fi | |
2780 cat > $TMPC << EOF | |
2781 #include <stdio.h> | |
2782 #include <unistd.h> | |
2783 $_iconv_tmp | |
2784 #define INBUFSIZE 1024 | |
2785 #define OUTBUFSIZE 4096 | |
2786 | |
2787 char inbuffer[INBUFSIZE]; | |
2788 char outbuffer[OUTBUFSIZE]; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2789 |
2943 | 2790 int main(void) { |
2791 ssize_t numread; | |
2792 iconv_t icdsc; | |
2793 char *tocode="UTF-8"; | |
2794 char *fromcode="cp1250"; | |
2795 if ((icdsc = iconv_open (tocode, fromcode)) != (iconv_t)(-1)) { | |
2796 while ((numread = read (0, inbuffer, INBUFSIZE))) { | |
2797 char *iptr=inbuffer; | |
2798 char *optr=outbuffer; | |
2799 size_t inleft=numread; | |
2800 size_t outleft=OUTBUFSIZE; | |
2801 if (iconv(icdsc, (const char **)&iptr, &inleft, &optr, &outleft) | |
2802 != (size_t)(-1)) { | |
2803 write (1, outbuffer, OUTBUFSIZE - outleft); | |
2804 } | |
2805 } | |
2806 if (iconv_close(icdsc) == -1) | |
2807 ; | |
2808 } | |
2809 } | |
987 | 2810 EOF |
2943 | 2811 _iconv=no |
2812 if freebsd ; then | |
2813 cc_check -lm -lgiconv && _iconv=yes | |
2814 elif bsdos ; then | |
2815 cc_check -lm -liconv && _iconv=yes | |
2816 else | |
2817 cc_check -lm && _iconv=yes | |
2818 fi | |
987 | 2819 fi |
2943 | 2820 if test "$_iconv" = yes ; then |
2821 _def_iconv='#define USE_ICONV 1' | |
2822 freebsd && _ld_iconv='-lgiconv' | |
2823 bsdos && _ld_iconv='-liconv' | |
2824 else | |
2825 _def_iconv='#undef USE_ICONV' | |
2826 fi | |
2827 echores "$_iconv" | |
2828 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2829 |
3873 | 2830 echocheck "FFmpeg libavcodec (static)" |
3881 | 2831 if test "$_libavcodec" = auto ; then |
3065 | 2832 # Note: static linking is preferred to dynamic linking |
2943 | 2833 _libavcodec=no |
3888 | 2834 if test -d libavcodec && test -f libavcodec/utils.c ; then |
2835 if grep avcodec_find_encoder_by_name libavcodec/utils.c > /dev/null 2>&1 ; then | |
3873 | 2836 _libavcodec=yes |
2837 echores "yes" | |
2838 else | |
3902 | 2839 echores "no (old ffmpeg version, use CVS !)" |
3873 | 2840 fi |
2841 else | |
3902 | 2842 echores "no (see DOCS/codecs.html)" |
3873 | 2843 fi |
2844 else | |
3881 | 2845 echores "$_libavcodec" |
2943 | 2846 fi |
3881 | 2847 |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2848 if test "$_libavcodec" != yes ; then |
3873 | 2849 echocheck "FFmpeg libavcodec (dynamic)" |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2850 if test "$_libavcodecso" = auto ; then |
2945 | 2851 _libavcodecso=no |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2852 # FIXME : check for avcodec_find_encoder_by_name() for mencoder |
2943 | 2853 cat > $TMPC << EOF |
3873 | 2854 #define FF_POSTPROCESS 1 |
2943 | 2855 #include <libffmpeg/avcodec.h> |
3873 | 2856 int quant_store[MBR+1][MBC+1]; |
2943 | 2857 int main(void) { return 0; } |
987 | 2858 EOF |
3873 | 2859 if cc_check -lffmpeg -lm ; then |
2860 _libavcodecso=yes | |
3902 | 2861 echores "yes (using libffmpeg.so)" |
3873 | 2862 else |
3902 | 2863 echores "no (libffmpeg.so is broken/obsolete)" |
3873 | 2864 fi |
2865 else | |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2866 echores "$_libavcodecso" |
2943 | 2867 fi |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2868 fi |
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
2869 |
2943 | 2870 _def_libavcodec='#undef USE_LIBAVCODEC' |
2945 | 2871 _def_libavcodecso='#undef USE_LIBAVCODEC_SO' |
2943 | 2872 _def_ffpostprocess='#undef FF_POSTPROCESS' |
2873 if test "$_libavcodec" = yes ; then | |
2874 _def_libavcodec='#define USE_LIBAVCODEC 1' | |
2875 _ld_libavcodec='-Llibavcodec -lavcodec' | |
2876 _dep_libavcodec='libavcodec/libavcodec.a' | |
2877 _def_ffpostprocess='#define FF_POSTPROCESS 1' | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2878 _codecmodules="libavcodec $_codecmodules" |
2945 | 2879 elif test "$_libavcodecso" = yes ; then |
2880 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' | |
2943 | 2881 _ld_libavcodec='-lffmpeg' |
2882 _def_ffpostprocess='#define FF_POSTPROCESS 1' | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2883 _codecmodules="libavcodec.so $_codecmodules" |
5051 | 2884 else |
2885 _nocodecmodules="libavcodec $_nocodecmodules" | |
987 | 2886 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2887 |
5598 | 2888 echocheck "libdv-0.9.5 (for mencoder)" |
2889 if test "$_libdv" = auto ; then | |
2890 _libdv=no | |
2891 cat > $TMPC <<EOF | |
2892 #include <libdv/dv.h> | |
2893 int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; } | |
2894 EOF | |
2895 cc_check -ldv -lm && _libdv=yes | |
2896 fi | |
2897 if test "$_libdv" = yes ; then | |
2898 _def_libdv='#define HAVE_LIBDV095 1' | |
2899 _ld_libdv="-ldv" | |
2900 else | |
2901 _def_libdv='#undef HAVE_LIBDV095' | |
2902 fi | |
2903 echores "$_libdv" | |
4678 | 2904 |
4346
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2905 echocheck "zr" |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2906 if test "$_zr" = yes ; then |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2907 if test "$_libavcodec" = yes ; then |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2908 _def_zr='#define HAVE_ZR 1' |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2909 _vosrc="$_vosrc vo_zr.c jpeg_enc.c" |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2910 _vomodules="zr $_vomodules" |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2911 echores "$_zr" |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2912 else |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2913 echores "libavcodec (static) is required by zr, sorry" |
5051 | 2914 _novomodules="zr $_novomodules" |
4346
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2915 _def_zr='#undef HAVE_ZR' |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2916 fi |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2917 else |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2918 _def_zr='#undef HAVE_ZR' |
5051 | 2919 _novomodules="zr $_novomodules" |
4346
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2920 echores "$_zr" |
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
2921 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
2922 |
4678 | 2923 |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2924 echocheck "XviD/DivX4linux/DivX5linux/OpenDivX decore" |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2925 # DivX5: DEC_OPT_MEMORY_REQS - DivX4: DEC_OPT_FRAME_311 |
4678 | 2926 cat > $TMPC << EOF |
2943 | 2927 #include <decore.h> |
3029 | 2928 int main(void) { (void) decore(0, 0, 0, 0); return DEC_OPT_FRAME_311; } |
987 | 2929 EOF |
4678 | 2930 if test "$_xvidcore" && cc_check -lm "$_xvidcore" ; then |
2931 _xvid=yes | |
2932 _divx4linux=no | |
2933 _opendivx=no | |
2934 _ld_decore="$_xvidcore" | |
2943 | 2935 _def_decore='#define NEW_DECORE 1' |
4678 | 2936 _def_divx='#define USE_DIVX' |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2937 _def_divx5='#undef DECORE_DIVX5' |
4678 | 2938 _def_odivx_postprocess='#undef HAVE_ODIVX_POSTPROCESS' |
2939 _codecmodules="xvid $_codecmodules" | |
2940 echores "XviD (with $_xvidcore)" | |
2941 elif test "$_xvid" != no && cc_check -lm -lxvidcore ; then | |
2942 _xvid=yes | |
2943 _divx4linux=no | |
2944 _opendivx=no | |
2945 _ld_decore='-lxvidcore' | |
2946 _def_decore='#define NEW_DECORE 1' | |
2947 _def_divx='#define USE_DIVX' | |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2948 _def_divx5='#undef DECORE_DIVX5' |
4678 | 2949 _def_odivx_postprocess='#undef HAVE_ODIVX_POSTPROCESS' |
2950 _codecmodules="xvid $_codecmodules" | |
2951 echores "XviD (with libxvidcore.so)" | |
2952 elif test "$_divx4linux" != no && cc_check -lm -ldivxdecore -lm ; then | |
2953 _xvid=no | |
2954 _divx4linux=yes | |
2955 _opendivx=no | |
5601 | 2956 _ld_decore='-ldivxdecore' |
4678 | 2957 _def_decore='#define NEW_DECORE 1' |
4489 | 2958 _def_divx='#define USE_DIVX' |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2959 _def_divx5='#undef DECORE_DIVX5' |
5601 | 2960 _def_odivx_postprocess='#undef HAVE_ODIVX_POSTPROCESS' |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
2961 _codecmodules="divx4linux $_codecmodules" |
5051 | 2962 _nocodecmodules="xvid $_nocodecmodules" |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2963 echores "DivX4linux (with libdivxdecore.so)" |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2964 elif test "$_divx4linux" != no ; then |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2965 # DivX5 check |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2966 # OdivxPP disabled because of: |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2967 # ld: Warning: type of symbol `dering' changed from 1 to 2 in opendivx/postprocess.o |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2968 cat > $TMPC << EOF |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2969 #include <decore.h> |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2970 int main(void) { (void) decore(0, 0, 0, 0); return DEC_OPT_MEMORY_REQS; } |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2971 EOF |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2972 if cc_check -lm -ldivxdecore -lm ; then |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2973 _xvid=no |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2974 _divx4linux=yes |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2975 _opendivx=no |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2976 # _ld_decore='-ldivxdecore opendivx/postprocess.o' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2977 _ld_decore='-ldivxdecore' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2978 _def_decore='#define NEW_DECORE 1' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2979 _def_divx='#define USE_DIVX' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2980 _def_divx5='#define DECORE_DIVX5 1' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2981 # _def_odivx_postprocess='#define HAVE_ODIVX_POSTPROCESS 1' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2982 _def_odivx_postprocess='#undef HAVE_ODIVX_POSTPROCESS' |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2983 _codecmodules="divx5linux $_codecmodules" |
5051 | 2984 _nocodecmodules="divx4linux $_nocodecmodules" |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2985 echores "DivX5linux (with libdivxdecore.so)" |
4678 | 2986 elif test "$_opendivx" != no ; then |
2987 _xvid=no | |
2988 _divx4linux=no | |
2989 _opendivx=yes | |
2990 _ld_decore='-Lopendivx -ldecore' | |
2991 _def_decore='#undef NEW_DECORE' | |
2992 _def_divx='#define USE_DIVX' | |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
2993 _def_divx5='#undef DECORE_DIVX5' |
4678 | 2994 _def_odivx_postprocess='#define HAVE_ODIVX_POSTPROCESS 1' |
2995 _codecmodules="opendivx $_codecmodules" | |
5051 | 2996 _nocodecmodules="divx5linux $_nocodecmodules" |
4678 | 2997 echores "OpenDivX" |
3868
8a4ef002bb89
opendivx listed at codecs, libvo2/config.mak is optional
arpi
parents:
3865
diff
changeset
|
2998 else |
4678 | 2999 _xvid=no |
3000 _divx4linux=no | |
3001 _opendivx=no | |
3002 _ld_decore='' | |
3003 _def_decore='#undef NEW_DECORE' | |
3004 _def_divx='#undef USE_DIVX' | |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
3005 _def_divx5='#undef DECORE_DIVX5' |
4678 | 3006 _def_odivx_postprocess='#undef HAVE_ODIVX_POSTPROCESS' |
5051 | 3007 _nocodecmodules="opendivx $_nocodecmodules" |
4678 | 3008 echores "no" |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
3009 fi # DivX5 check |
3079 | 3010 fi |
3011 | |
4678 | 3012 |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
3013 # mencoder requires (optional) those libs: libmp3lame and divx4linux encore |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3014 if test "$_mencoder" != no ; then |
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3015 |
3901 | 3016 echocheck "libmp3lame (for mencoder)" |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3017 _mp3lame=no |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3018 cat > $TMPC <<EOF |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3019 #include <lame/lame.h> |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3020 int main(void) { (void) lame_init(); return 0; } |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3021 EOF |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3022 # Note: libmp3lame usually depends on vorbis |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3023 cc_check -lmp3lame $_ld_vorbis -lm && _mp3lame=yes |
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3024 if test "$_mp3lame" = yes ; then |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3025 _def_mp3lame='#define HAVE_MP3LAME 1' |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3026 _ld_mp3lame="-lmp3lame $_ld_vorbis" |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3027 else |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3028 _def_mp3lame='#undef HAVE_MP3LAME' |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3029 fi |
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3030 echores "$_mp3lame" |
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3031 |
4678 | 3032 |
3033 echocheck "XviD/DivX4linux encore (for mencoder)" | |
3034 cat > $TMPC << EOF | |
3079 | 3035 #include <encore2.h> |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3036 int main(void) { (void) encore(0, 0, 0, 0); return 0; } |
3079 | 3037 EOF |
4678 | 3038 if test "$_xvid" != no && test "$_xvidcore" && cc_check -lm "$_xvidcore" ; then |
3039 _def_encore='#define HAVE_DIVX4ENCORE 1' | |
5598 | 3040 _ld_encore="$_xvidcore" |
4678 | 3041 echores "XviD (with $_xvidcore)" |
3042 elif test "$_xvid" != no && cc_check -lm -lxvidcore ; then | |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
3043 _def_encore='#define HAVE_DIVX4ENCORE 1' |
5598 | 3044 _ld_encore='-lxvidcore' |
4678 | 3045 echores "XviD (with libxvidcore.so)" |
3046 elif test "$_divx4linux" != no && cc_check -lm -ldivxencore ; then | |
3047 _def_encore='#define HAVE_DIVX4ENCORE 1' | |
5598 | 3048 _ld_encore='-ldivxencore' |
4678 | 3049 echores "DivX4linux (with libdivxencore.so)" |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3050 else |
3893
38ddef4a863b
divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
arpi
parents:
3888
diff
changeset
|
3051 _def_encore='#undef HAVE_DIVX4ENCORE' |
4678 | 3052 echores "no" |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3053 fi |
987 | 3054 fi |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3055 |
4176
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3056 echocheck "mencoder" |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3057 _mencoder_flag='#undef HAVE_MENCODER' |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3058 if test "$_mencoder" = yes ; then |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3059 _mencoder_flag='#define HAVE_MENCODER' |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3060 fi |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3061 echores "$_mencoder" |
987 | 3062 |
2943 | 3063 echocheck "fastmemcpy" |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3064 # fastmemcpy check is done earlier with tests of CPU & binutils features |
2943 | 3065 if test "$_fastmemcpy" = yes ; then |
3066 _def_fastmemcpy='#define USE_FASTMEMCPY 1' | |
3067 else | |
3068 _def_fastmemcpy='#undef USE_FASTMEMCPY' | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
3069 fi |
2943 | 3070 echores "$_fastmemcpy" |
987 | 3071 |
2943 | 3072 |
3073 echocheck "TV interface" | |
3074 if test "$_tv" = yes ; then | |
3075 _def_tv='#define USE_TV 1' | |
3241
71075e783b04
fixed xanim detection (also present on non-x86 too - look at xanim homepage) and added tv into _inputmodules
alex
parents:
3237
diff
changeset
|
3076 _inputmodules="tv $_inputmodules" |
2943 | 3077 else |
5051 | 3078 _noinputmodules="tv $_noinputmodules" |
2943 | 3079 _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
|
3080 fi |
2943 | 3081 echores "$_tv" |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
3082 |
5090 | 3083 echocheck "*BSD BrookTree 848 TV interface" |
3084 if test "$_tv_bsdbt848" = auto ; then | |
3085 _tv_bsdbt848=no | |
3086 if test "$_tv" = yes ; then | |
3087 cat > $TMPC <<EOF | |
3088 #include <sys/types.h> | |
3089 #include <machine/ioctl_bt848.h> | |
3090 int main(void) { return 0; } | |
3091 EOF | |
3092 cc_check && _tv_bsdbt848=yes | |
3093 fi | |
3094 fi | |
3095 if test "$_tv_bsdbt848" = yes ; then | |
3096 _def_tv_bsdbt848='#define HAVE_TV_BSDBT848 1' | |
3097 _inputmodules="tv-bsdbt848 $_inputmodules" | |
3098 else | |
3099 _def_tv_bsdbt848='#undef HAVE_TV_BSDBT848' | |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
3100 _noinputmodules="tv-bsdbt848 $_noinputmodules" |
5090 | 3101 fi |
3102 echores "$_tv_bsdbt848" | |
3103 | |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3104 echocheck "Video 4 Linux TV interface" |
3750 | 3105 if test "$_tv_v4l" = auto ; then |
3106 _tv_v4l=no | |
3107 if test "$_tv" = yes && linux ; then | |
3108 if test -c /dev/video0 || test -c /dev/video ; then | |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3109 cat > $TMPC <<EOF |
3838 | 3110 #include <stdlib.h> |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3111 #include <linux/videodev.h> |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3112 int main(void) { return 0; } |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3113 EOF |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3114 cc_check && _tv_v4l=yes |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3115 fi |
3750 | 3116 fi |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3117 fi |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3118 if test "$_tv_v4l" = yes ; then |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3119 _def_tv_v4l='#define HAVE_TV_V4L 1' |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3120 _inputmodules="tv-v4l $_inputmodules" |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3121 else |
5051 | 3122 _noinputmodules="tv-v4l $_noinputmodules" |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3123 _def_tv_v4l='#undef HAVE_TV_V4L' |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3124 fi |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3125 echores "$_tv_v4l" |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3126 |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
3127 |
3206 | 3128 echocheck "select" |
3129 if test "$_select" = no ; then | |
3130 _def_select='#undef HAVE_AUDIO_SELECT' | |
3131 elif test "$_select" = yes ; then | |
3132 _def_select='#define HAVE_AUDIO_SELECT 1' | |
3133 fi | |
3134 echores "$_select" | |
3135 | |
3136 | |
2943 | 3137 echocheck "streaming" |
3138 # FIXME streaming check | |
3689 | 3139 if test "$_streaming" != no ; then |
2943 | 3140 _def_streaming='#define STREAMING 1' |
3919 | 3141 _ld_streaming="$_ld_sock" |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
3142 _inputmodules="network $_inputmodules" |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
3143 else |
5051 | 3144 _noinputmodules="network $_noinputmodules" |
2943 | 3145 _def_streaming='#undef STREAMING' |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
3146 fi |
2943 | 3147 echores "$_streaming" |
3148 | |
3149 | |
3150 | |
3151 # --------------- GUI specific tests begin ------------------- | |
3152 echocheck "GUI" | |
3153 echo "$_gui" | |
3154 if test "$_gui" = yes ; then | |
1740 | 3155 |
3196
ca4aaadbfb0a
extrachecks for weird configs GUI (--enable-gui --disable-png for instance)
pl
parents:
3193
diff
changeset
|
3156 # Required libraries |
5654 | 3157 test "$_png" != yes && die "PNG support required for GUI compilation, please install libpng or libpng-dev packages." |
3196
ca4aaadbfb0a
extrachecks for weird configs GUI (--enable-gui --disable-png for instance)
pl
parents:
3193
diff
changeset
|
3158 test "$_x11" != yes && die "X11 support required for GUI compilation" |
ca4aaadbfb0a
extrachecks for weird configs GUI (--enable-gui --disable-png for instance)
pl
parents:
3193
diff
changeset
|
3159 |
2943 | 3160 echocheck "XShape extension" |
3161 _xshape=no | |
3162 if test "$_x11" = yes ; then | |
3163 cat > $TMPC << EOF | |
3164 #include <X11/Xlib.h> | |
3165 #include <X11/Xproto.h> | |
3166 #include <X11/Xutil.h> | |
3167 #include <X11/extensions/shape.h> | |
3168 #include <stdlib.h> | |
1740 | 3169 int main(void) { |
2943 | 3170 char *name = ":0.0"; |
3171 Display *wsDisplay; | |
3172 int exitvar = 0; | |
3173 int eventbase, errorbase; | |
3174 if (getenv("DISPLAY")) | |
3175 name=getenv("DISPLAY"); | |
3176 wsDisplay=XOpenDisplay(name); | |
3177 if (!XShapeQueryExtension(wsDisplay,&eventbase,&errorbase)) | |
3178 exitvar=1; | |
3179 XCloseDisplay(wsDisplay); | |
3180 return exitvar; | |
1740 | 3181 } |
3182 EOF | |
2988 | 3183 cc_check $_inc_x11 $_ld_x11 && _xshape=yes |
1740 | 3184 fi |
2943 | 3185 if test "$_xshape" = yes ; then |
3186 _def_xshape='#define HAVE_XSHAPE 1' | |
2700 | 3187 else |
2943 | 3188 die "the GUI requires the X11 extension XShape (which was not found)" |
2700 | 3189 fi |
2943 | 3190 echores "$_xshape" |
2594 | 3191 |
3192 | |
2943 | 3193 # Check for GTK: |
3194 echocheck "gtk version" | |
3195 if test -z "$_gtkconfig" ; then | |
3196 if ( gtk-config --version ) >/dev/null 2>&1 ; then | |
3197 _gtkconfig="gtk-config" | |
3198 elif ( gtk12-config --version ) >/dev/null 2>&1 ; then | |
3199 _gtkconfig="gtk12-config" | |
3200 else | |
3201 die "the GUI requires GTK (which was not found)" | |
3202 fi | |
2700 | 3203 fi |
2943 | 3204 _gtk=`$_gtkconfig --version 2>&1` |
3205 _inc_gtk=`$_gtkconfig --cflags 2>&1` | |
3206 _ld_gtk=`$_gtkconfig --libs 2>&1` | |
3902 | 3207 echores "$_gtk (using $_gtkconfig)" |
1694 | 3208 |
2943 | 3209 # Check for GLIB |
3210 echocheck "glib version" | |
3211 if test -z "$_glibconfig" ; then | |
3212 if ( glib-config --version ) >/dev/null 2>&1 ; then | |
3213 _glibconfig="glib-config" | |
3214 elif ( glib12-config --version ) >/dev/null 2>&1 ; then | |
3215 _glibconfig="glib12-config" | |
3216 else | |
3217 die "the GUI requires GLIB (which was not found)" | |
3218 fi | |
3219 fi | |
3220 _glib=`$_glibconfig --version 2>&1` | |
3221 _inc_glib=`$_glibconfig --cflags 2>&1` | |
3222 _ld_glib=`$_glibconfig --libs 2>&1` | |
3902 | 3223 echores "$_glib (using $_glibconfig)" |
1694 | 3224 |
2943 | 3225 _def_gui='#define HAVE_NEW_GUI 1' |
3422 | 3226 _ld_gui='$(GTKLIB) $(GLIBLIB)' |
2943 | 3227 |
2983 | 3228 echo "Creating Gui/config.mak" |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3229 cat > Gui/config.mak << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3230 # -------- Generated by configure ----------- |
2943 | 3231 |
3232 GTKINC = $_inc_gtk | |
3233 GTKLIBS = $_ld_gtk | |
3234 GLIBINC = $_inc_glib | |
3235 GLIBLIBS = $_ld_glib | |
1694 | 3236 |
3237 EOF | |
3238 | |
2943 | 3239 else |
3240 _def_gui='#undef HAVE_NEW_GUI' | |
1 | 3241 fi |
2943 | 3242 # --------------- GUI specific tests end ------------------- |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
3243 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
3244 |
1279 | 3245 |
2943 | 3246 ############################################################################# |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
3247 |
697 | 3248 # Checking for CFLAGS |
2171 | 3249 if test "$_profile" || test "$_debug" ; then |
2943 | 3250 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
3251 elif test -z "$CFLAGS" ; then | |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
3252 if test "$host_arch" != "mips" ; then |
2943 | 3253 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" |
3254 else | |
3255 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" | |
3256 fi | |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
3257 else |
2943 | 3258 cat <<EOF |
3259 | |
3260 MPlayer compilation will use CFLAGS set by you, but: | |
3261 DO NOT BUGREPORT IF IT DOES NOT WORK | |
3262 | |
3263 It is strongly recommended you let MPlayer choose the correct CFLAGS! | |
3264 To do so, execute 'CFLAGS= ./configure <options>' | |
3265 | |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
3266 EOF |
697 | 3267 fi |
2190 | 3268 |
2943 | 3269 # Thread support |
2190 | 3270 if linux ; then |
3271 CFLAGS="$CFLAGS -D_REENTRANT" | |
3272 elif bsd ; then | |
2943 | 3273 # FIXME bsd needs this so maybe other OS'es |
2190 | 3274 CFLAGS="$CFLAGS -D_THREAD_SAFE" |
1182 | 3275 fi |
3276 | |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
3277 # 64 bit file offsets? |
3327
e4f0723d3108
Added support for the libmp1e ultrafast mpeg1 realtime encoder. This makes rte obsolete.
mswitch
parents:
3325
diff
changeset
|
3278 if test "$_largefiles" = yes || freebsd ; then |
2190 | 3279 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
3327
e4f0723d3108
Added support for the libmp1e ultrafast mpeg1 realtime encoder. This makes rte obsolete.
mswitch
parents:
3325
diff
changeset
|
3280 if test "$_dvdread" = yes ; then |
2190 | 3281 # dvdread support requires this (for off64_t) |
3282 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | |
1596 | 3283 fi |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
3284 fi |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
3285 |
5572
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3286 echocheck "ftello()" |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3287 # if we dont have ftello map it to ftell |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3288 cat > $TMPC << EOF |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3289 #include <stdio.h> |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3290 int main (void) { ftello(stdin); return 0; } |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3291 EOF |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3292 _ftello=no |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3293 cc_check && _ftello=yes |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3294 if test "$_ftello" = yes ; then |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3295 _def_ftello='#define HAVE_FTELLO 1' |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3296 else |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3297 _def_ftello='#undef HAVE_FTELLO' |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3298 fi |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3299 echores "$_ftello" |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3300 |
2943 | 3301 # Determine OS dependent libs |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3302 if cygwin ; then |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3303 _confcygwin='TARGET_CYGWIN = yes' |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3304 _def_confwin32='#define WIN32' |
2421 | 3305 else |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3306 _confcygwin="TARGET_CYGWIN = no" |
1 | 3307 fi |
3308 | |
3065 | 3309 # Dynamic linking flags |
3310 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) | |
3311 _ld_dl_dynamic='' | |
3312 bsd && _ld_dl_dynamic='-rdynamic' | |
3313 test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic' | |
3314 | |
3315 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic" | |
2943 | 3316 bsdos && _ld_arch="$_ld_arch -ldvd" |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
3317 |
2943 | 3318 _def_debug='#undef MP_DEBUG' |
3319 test "$_debug" && _def_debug='#define MP_DEBUG 1' | |
287 | 3320 |
2943 | 3321 _def_linux='#undef TARGET_LINUX' |
3322 linux && _def_linux='#define TARGET_LINUX 1' | |
11 | 3323 |
4168 | 3324 # TODO cleanup the vidix stuff here |
4089 | 3325 _def_vidix='#define CONFIG_VIDIX 1' |
3326 test "$_vidix" = no && _def_vidix='#undef CONFIG_VIDIX' | |
4168 | 3327 if test "$_vidix" = yes && test "$_x11" = yes; then |
4170 | 3328 _vosrc="$_vosrc vo_xvidix.c" |
4168 | 3329 _vomodules="xvidix $_vomodules" |
5051 | 3330 else |
3331 _novomodules="xvidix $_novomodules" | |
4168 | 3332 fi |
4089 | 3333 echo Checking for vidix ... "$_vidix" |
4507
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3334 |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3335 _def_new_input='#undef HAVE_NEW_INPUT' |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3336 _def_joystick='#undef HAVE_JOYSTICK' |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3337 echo Checking for new input ... "$_new_input" |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3338 if test "$_new_input" = yes ; then |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3339 _def_new_input='#define HAVE_NEW_INPUT 1' |
4824
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3340 _ld_new_input="-Linput -linput" |
4507
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3341 if test "$_joystick" = yes ; then |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3342 if linux ; then |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3343 # TODO add some check |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3344 _def_joystick='#define HAVE_JOYSTICK 1' |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3345 else |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3346 _joystick="no (unsupported under $system_name)" |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3347 fi |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3348 fi |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3349 echo Checking for joystick ... "$_joystick" |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3350 fi |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3351 |
4824
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3352 echocheck "lirc" |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3353 if test "$_lirc" = auto ; then |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3354 _lirc=no |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3355 if test -c /dev/lirc ; then |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3356 cat > $TMPC <<EOF |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3357 #include <lirc/lirc_client.h> |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3358 int main(void) { return 0; } |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3359 EOF |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3360 cc_check -llirc_client && _lirc=yes |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3361 fi |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3362 fi |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3363 if test "$_lirc" = yes ; then |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3364 _def_lirc='#define HAVE_LIRC 1' |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3365 if test "$_new_input" = yes ; then |
5167 | 3366 _ld_new_input="$_ld_new_input -llirc_client" |
4824
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3367 else |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3368 _ld_lirc='-llirc_client' |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3369 fi |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3370 else |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3371 _def_lirc='#undef HAVE_LIRC' |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3372 fi |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3373 echores "$_lirc" |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3374 |
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3375 |
2943 | 3376 ############################################################################# |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3377 echo "Creating config.mak" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3378 cat > config.mak << EOF |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3379 # -------- Generated by configure ----------- |
2727 | 3380 |
2943 | 3381 LANG = C |
3382 TARGET_OS = $system_name | |
3383 prefix = $_prefix | |
3747 | 3384 DATADIR = $_datadir |
3385 CONFDIR = $_confdir | |
5147
ed2e841e863d
writing LIBDIR to config.mak and removed USR_PREFIX from config.h as it was the same as PREFIX
alex
parents:
5128
diff
changeset
|
3386 LIBDIR = $_libdir |
2943 | 3387 AR = ar |
3388 CC = $_cc | |
4172 | 3389 AWK = $_awk |
2943 | 3390 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math |
4346
d45744794581
vo_zr no more depends on libjpeg - it requires libavcodec now. patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4345
diff
changeset
|
3391 OPTFLAGS = $CFLAGS |
2943 | 3392 EXTRA_INC = $_inc_extra $_inc_gtk |
3393 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" | |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
3394 |
2943 | 3395 STREAMING = $_streaming |
3919 | 3396 STREAMING_LIB = $_ld_streaming |
4089 | 3397 VIDIX = $_vidix |
2896
3a44575edc30
Added --enable-libvo2, NOTE: it doesn't compile with libvo2 yet!
mswitch
parents:
2894
diff
changeset
|
3398 |
4489 | 3399 OPENDIVX = $_opendivx |
3400 | |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3401 VO2 = $_vo2 |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3402 |
4656 | 3403 PNG = $_mkf_png |
5029 | 3404 JPEG = $_mkf_jpg |
4656 | 3405 |
3161 | 3406 EXTRA_LIB = $_ld_extra |
3407 Z_LIB = $_ld_static $_ld_zlib | |
3207
6ea45643506c
new configure didn't build mplayer with mediaLib on solaris any more.
jkeil
parents:
3206
diff
changeset
|
3408 HAVE_MLIB = $_mlib |
3161 | 3409 STATIC_LIB = $_ld_static |
3410 | |
2943 | 3411 X11_INC = $_inc_x11 |
3161 | 3412 X11DIR = $_ld_x11 |
3413 | |
3414 # video output | |
3337 | 3415 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock |
3161 | 3416 GGI_LIB = $_ld_ggi |
3417 MLIB_LIB = $_ld_mlib | |
3207
6ea45643506c
new configure didn't build mplayer with mediaLib on solaris any more.
jkeil
parents:
3206
diff
changeset
|
3418 MLIB_INC = $_inc_mlib |
5486 | 3419 DVB_INC = $_inc_dvb |
3161 | 3420 PNG_LIB = $_ld_png |
5029 | 3421 JPEG_LIB = $_ld_jpg |
3161 | 3422 SDL_LIB = $_ld_sdl |
3423 SVGA_LIB = $_ld_svga | |
3424 AA_LIB = $_ld_aa | |
3425 | |
3426 # audio output | |
3427 ALSA_LIB = $_ld_alsa | |
3276 | 3428 NAS_LIB = $_ld_nas |
3161 | 3429 MAD_LIB = $_ld_mad |
3430 VORBIS_LIB = $_ld_vorbis | |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
3431 FAAD_LIB = $_ld_faad |
3161 | 3432 SGIAUDIO_LIB = $_ld_sgiaudio |
3433 | |
3434 # input | |
3435 TERMCAP_LIB = $_ld_termcap | |
3436 LIRC_LIB = $_ld_lirc | |
2943 | 3437 CSS_USE = $_css |
3161 | 3438 CSS_LIB = $_ld_css |
5777 | 3439 DVDKIT = $_dvdkit |
2943 | 3440 SDL_INC = $_inc_sdl |
3441 W32_DEP = $_dep_win32 | |
3161 | 3442 W32_LIB = $_ld_win32 |
2943 | 3443 DS_DEP = $_dep_dshow |
3161 | 3444 DS_LIB = $_ld_dshow |
2949 | 3445 AV_DEP = $_dep_libavcodec |
3161 | 3446 AV_LIB = $_ld_libavcodec |
3432 | 3447 MP1E_DEP = $_dep_mp1e |
3448 MP1E_LIB = $_ld_mp1e | |
3161 | 3449 ARCH_LIB = $_ld_arch $_ld_iconv |
3450 DIVX4LINUX = $_divx4linux | |
4678 | 3451 XVID = $_xvid |
3161 | 3452 DECORE_LIB = $_ld_decore |
3079 | 3453 MENCODER = $_mencoder |
5598 | 3454 ENCORE_LIB = $_ld_encore $_ld_mp3lame $_ld_libdv |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
3455 DIRECTFB_LIB = $_ld_directfb |
4824
e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
albeu
parents:
4801
diff
changeset
|
3456 NEW_INPUT_LIB = $_ld_new_input |
1258 | 3457 |
3458 # --- Some stuff for autoconfigure ---- | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3459 $_target_arch |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
3460 $_confcygwin |
1258 | 3461 TARGET_CPU=$iproc |
2943 | 3462 TARGET_MMX = $_mmx |
3463 TARGET_MMX2 = $_mmx2 | |
3464 TARGET_3DNOW = $_3dnow | |
3465 TARGET_3DNOWEX = $_3dnowex | |
3466 TARGET_SSE = $_sse | |
1258 | 3467 |
2943 | 3468 BINUTILS = $_binutils |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
3469 |
1694 | 3470 # --- GUI stuff --- |
2988 | 3471 GTKLIB = $_ld_static $_ld_gtk |
3472 GLIBLIB = $_ld_static $_ld_glib | |
3422 | 3473 GTK_LIBS = $_ld_static $_ld_gui |
2943 | 3474 GUI = $_gui |
3475 DEBUG = -DDEBUG | |
1694 | 3476 |
1258 | 3477 EOF |
1 | 3478 |
2943 | 3479 ############################################################################# |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3480 echo "Creating config.h" |
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3481 cat > config.h << EOF |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3482 /* -------- This file has been automatically generated by configure --------- |
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3483 Note: Any changes in it will be lost when you run configure again. */ |
1 | 3484 |
5100
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
3485 /* use GNU internationalisation */ |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
3486 $_def_i18n |
c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
alex
parents:
5090
diff
changeset
|
3487 |
5110 | 3488 /* Runtime Cpudetection */ |
3489 $_def_runtime_cpudetection | |
3490 | |
5147
ed2e841e863d
writing LIBDIR to config.mak and removed USR_PREFIX from config.h as it was the same as PREFIX
alex
parents:
5128
diff
changeset
|
3491 #define PREFIX "$_prefix" |
4137 | 3492 |
2992
ef58de7a942f
Make description for SIMPLE_IDCT better and make #define consisten with others.
atmos4
parents:
2991
diff
changeset
|
3493 /* 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
|
3494 #define SIMPLE_IDCT 1 |
2991
ad107e7bb843
small "make it easier to compile" addition, enable SIMPLE_IDCT by default
atmos4
parents:
2990
diff
changeset
|
3495 |
2943 | 3496 #define USE_OSD 1 |
3497 #define USE_SUB 1 | |
1422 | 3498 |
5367
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
3499 /* enable/disable SIGHANDLER */ |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
3500 $_def_sighandler |
658ea5d7316a
Allow to disable crasj sighandler to enable creation of coredump files.
atmos4
parents:
5355
diff
changeset
|
3501 |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3502 /* Toggles debugging informations */ |
2943 | 3503 $_def_debug |
1565 | 3504 |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3505 /* Indicates is Ogle's libdvdread is available for DVD playback */ |
2943 | 3506 $_def_dvdread |
1596 | 3507 |
1353 | 3508 /* Common data directory (for fonts, etc) */ |
3509 #define DATADIR "$_datadir" | |
3747 | 3510 #define CONFDIR "$_confdir" |
4137 | 3511 #define LIBDIR "$_libdir" |
1353 | 3512 |
2525 | 3513 /* Define this to compile stream-caching support, it can be enabled via |
3514 -cache <kilobytes> */ | |
2943 | 3515 #define USE_STREAM_CACHE 1 |
2525 | 3516 |
4678 | 3517 /* Define to include support for XviD/Divx4Linux/OpenDivx */ |
4489 | 3518 $_def_divx |
3519 | |
4678 | 3520 /* Define for using new XviD/DivX4Linux library, instead of open-source OpenDivX */ |
1349 | 3521 /* You have to change DECORE_LIBS in config.mak too! */ |
2943 | 3522 $_def_decore |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3523 |
4944
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
3524 /* Define if you are using DivX5Linux Decore library */ |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
3525 $_def_divx5 |
f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
atmos4
parents:
4912
diff
changeset
|
3526 |
5598 | 3527 /* Define to include support for libdv-0.9.5 */ |
3528 $_def_libdv | |
3529 | |
4176
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3530 /* If build mencoder */ |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3531 $_mencoder_flag |
116abdd0aed1
small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and remove gui dependencie in mencoder
pontscho
parents:
4172
diff
changeset
|
3532 |
4678 | 3533 /* Indicates if XviD/Divx4linux encore is available |
3901 | 3534 Note: for mencoder */ |
2943 | 3535 $_def_encore |
1349 | 3536 |
3430
d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
pl
parents:
3422
diff
changeset
|
3537 /* Indicates if libmp3lame is available |
3901 | 3538 Note: for mencoder */ |
3356
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3539 $_def_mp3lame |
2ef511fe1f57
mp3lame detection separated, some unneeded -lm removed
arpi
parents:
3337
diff
changeset
|
3540 |
4120 | 3541 /* Define libmp1e for realtime mpeg encoding (for DXR3 and DVB cards) */ |
3432 | 3542 $_def_mp1e |
3543 | |
1 | 3544 /* Define this to enable avg. byte/sec-based AVI sync method by default: |
1599 | 3545 (use -bps or -nobps commandline option for run-time method selection) |
3546 -bps gives better sync for vbr mp3 audio, it is now default */ | |
2943 | 3547 #define AVI_SYNC_BPS 1 |
1 | 3548 |
3161 | 3549 /* Undefine this if you do not want to select mono audio (left or right) |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
3550 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
|
3551 -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
|
3552 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
3553 */ |
2943 | 3554 #define USE_FAKE_MONO 1 |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
3555 |
1 | 3556 /* Undefine this if your soundcard driver has no working select(). |
3557 If you have kernel Oops, player hangups, or just no audio, you should | |
3558 try to recompile MPlayer with this option disabled! */ | |
2943 | 3559 $_def_select |
1 | 3560 |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
3561 /* define this to use iconv(3) function to codepage conversions */ |
2943 | 3562 $_def_iconv |
1 | 3563 |
3015 | 3564 /* define this to use RTC (/dev/rtc) for video timers (LINUX only) */ |
3565 $_def_rtc | |
3566 | |
755 | 3567 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
3568 #define MAX_OUTBURST 65536 | |
3569 | |
586 | 3570 /* set up audio OUTBURST. Do not change this! */ |
3571 #define OUTBURST 512 | |
3572 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3573 /* Define this if your system has the header file for the OSS sound interface */ |
2943 | 3574 $_def_sys_soundcard |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3575 |
5572
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3576 /* Define this if your system uses ftello() for off_t seeking */ |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3577 |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3578 $_def_ftello |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3579 #ifndef HAVE_FTELLO |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3580 # define ftello(a) ftell(a) |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3581 #endif |
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5545
diff
changeset
|
3582 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3583 /* Define this if your system has the "malloc.h" header file */ |
2943 | 3584 $_def_malloc |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3585 |
2774 | 3586 /* memalign is mapped to malloc if unsupported */ |
2943 | 3587 $_def_memalign |
2774 | 3588 #ifndef HAVE_MEMALIGN |
3589 # define memalign(a,b) malloc(b) | |
3590 #endif | |
1678 | 3591 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3592 /* Define this if your system has the "alloca.h" header file */ |
2943 | 3593 $_def_alloca |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3594 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3595 /* Define this if your system has the "sys/mman.h" header file */ |
2943 | 3596 $_def_mman |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3597 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
3598 /* Define this if you have the elf dynamic linker -ldl library */ |
2943 | 3599 $_def_dl |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3600 |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
3601 /* Define this if you have the kstat kernel statistics library */ |
2943 | 3602 $_def_kstat |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
3603 |
2482 | 3604 /* Define this if you have zlib */ |
2943 | 3605 $_def_zlib |
2482 | 3606 |
3004 | 3607 /* Define this if you have shm support */ |
3608 $_def_shm | |
3609 | |
5393
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
3610 /* Define this if your system has strsep */ |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
3611 $_def_strsep |
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5380
diff
changeset
|
3612 |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
3613 /* Define this if your system has vsscanf */ |
2943 | 3614 $_def_vsscanf |
2905
8927ef5c4870
Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems)
jkeil
parents:
2898
diff
changeset
|
3615 |
1 | 3616 /* LIRC (remote control, see www.lirc.org) support: */ |
2943 | 3617 $_def_lirc |
1 | 3618 |
492 | 3619 /* DeCSS support using libcss */ |
2943 | 3620 $_def_css |
492 | 3621 |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
3622 /* DVD navigation support using libdvdnav */ |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
3623 $_def_dvdnav |
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
5367
diff
changeset
|
3624 |
41 | 3625 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
2943 | 3626 #define MPEG12_POSTPROC 1 |
41 | 3627 |
2228 | 3628 /* Define this to enable image postprocessing in libavcodec (requires FAST cpu!) */ |
2943 | 3629 $_def_ffpostprocess |
2228 | 3630 |
4489 | 3631 /* Define to include support for OpenDivx postprocessing */ |
3632 $_def_odivx_postprocess | |
2184 | 3633 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
3634 /* Win32 DLL support */ |
2943 | 3635 $_def_win32 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
3636 |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
3637 /* DirectShow support */ |
2943 | 3638 $_def_dshow |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
3639 |
1279 | 3640 /* ffmpeg's libavcodec support (requires libavcodec source) */ |
2943 | 3641 $_def_libavcodec |
2945 | 3642 $_def_libavcodecso |
2943 | 3643 |
4120 | 3644 /* Use libavcodec's decoders */ |
2943 | 3645 #define CONFIG_DECODERS 1 |
4120 | 3646 /* Use libavcodec's encoders */ |
3659 | 3647 #define CONFIG_ENCODERS 1 |
1279 | 3648 |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
3649 /* XAnim DLL support */ |
2943 | 3650 $_def_xanim |
4120 | 3651 /* Default search path */ |
2943 | 3652 $_def_xanim_path |
2657
7f92b286575e
checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
alex
parents:
2644
diff
changeset
|
3653 |
642 | 3654 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
2943 | 3655 $_def_fastmemcpy |
642 | 3656 |
723 | 3657 /* gui support, please do not edit this option */ |
2943 | 3658 $_def_gui |
723 | 3659 |
4120 | 3660 /* Audio output drivers */ |
2943 | 3661 $_def_ossaudio |
4801
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
3662 $_def_ossaudio_devdsp |
3e011ae799fa
added linux devfs support (for oss), original patch by Olaf Kohler <thorin@yifan.net>
alex
parents:
4785
diff
changeset
|
3663 $_def_ossaudio_devmixer |
2943 | 3664 $_def_alsa5 |
3665 $_def_alsa9 | |
3666 $_def_sunaudio | |
3667 $_def_sgiaudio | |
3276 | 3668 $_def_nas |
3669 | |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
3670 /* 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
|
3671 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
3672 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
3673 |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
3674 /* Enable TV Interface support */ |
2943 | 3675 $_def_tv |
2821
7f2acef8a3b2
added --enable-tv and --disable-tv (default is disabled)
alex
parents:
2811
diff
changeset
|
3676 |
3242
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3677 /* Enable Video 4 Linux TV interface support */ |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3678 $_def_tv_v4l |
a5f693377e23
added auto detection of tv v4l and changed tv to enabled
alex
parents:
3241
diff
changeset
|
3679 |
5090 | 3680 /* Enable *BSD BrookTree TV interface support */ |
3681 $_def_tv_bsdbt848 | |
3682 | |
1 | 3683 /* Define if your processor stores words with the most significant |
3684 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
2943 | 3685 $_def_words_endian |
1 | 3686 |
2943 | 3687 $_def_arch |
1 | 3688 |
2943 | 3689 /* Define this for Cygwin build for win32 */ |
3690 $_def_confwin32 | |
1441
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
3691 |
849 | 3692 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
3693 #define __CPU__ $iproc | |
3694 | |
2943 | 3695 $_def_linux |
2242 | 3696 |
3259 | 3697 $_def_vcd |
3698 | |
1495 | 3699 #ifdef sun |
3700 #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
|
3701 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE |
1495 | 3702 #else |
3703 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" | |
1608
3005f75b82fd
Provide a better default for the DVD device on solaris.
jkeil
parents:
1601
diff
changeset
|
3704 #define DEFAULT_DVD_DEVICE "/dev/dvd" |
1495 | 3705 #endif |
3706 | |
1596 | 3707 |
849 | 3708 /*---------------------------------------------------------------------------- |
3709 ** | |
3710 ** NOTE: Instead of modifying these definitions here, use the | |
3711 ** --enable/--disable options of the ./configure script! | |
3712 ** See ./configure --help for details. | |
3713 ** | |
3714 *---------------------------------------------------------------------------*/ | |
1 | 3715 |
3089 | 3716 /* nanosleep support */ |
3717 $_def_nanosleep | |
3718 | |
1 | 3719 /* termcap flag for getch2.c */ |
2943 | 3720 $_def_termcap |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3721 |
3007 | 3722 /* termios flag for getch2.c */ |
3723 $_def_termios | |
3281
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
3724 $_def_termios_h |
310c0b9bea21
detect termios.h if no sys/termios.h (qnx getch2 support working)
alex
parents:
3276
diff
changeset
|
3725 $_def_termios_sys_h |
3007 | 3726 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
3727 /* enable PNG support */ |
2943 | 3728 $_def_png |
1 | 3729 |
5029 | 3730 /* enable JPEG support */ |
3731 $_def_jpg | |
3732 | |
2421 | 3733 /* libmad support */ |
2943 | 3734 $_def_mad |
2421 | 3735 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
3736 /* enable OggVorbis support */ |
2943 | 3737 $_def_vorbis |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
3738 |
5190
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
3739 /* enable FAAD (AAC) support */ |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
3740 $_def_faad |
59df6b778d78
Beta AAC decoding support, seeking totally broken yet, add philipps mpeg4 video in qt to ffmpeg4 although it's still buggy in decoding
atmos4
parents:
5167
diff
changeset
|
3741 |
4120 | 3742 /* enable streaming */ |
2943 | 3743 $_def_streaming |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
3744 |
4089 | 3745 /* enables / disables vidix usage */ |
3746 $_def_vidix | |
3747 | |
4507
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3748 /* enables / disables new input */ |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3749 $_def_new_input |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3750 |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3751 /* enables / disables new input joystick support */ |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3752 $_def_joystick |
dcf46e65bd29
Added options to enable new input and joystick support
albeu
parents:
4489
diff
changeset
|
3753 |
1 | 3754 /* Extension defines */ |
2943 | 3755 $_def_3dnow // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) |
3756 $_def_3dnowex // only define if you have 3DNOWEX (AMD Athlon, etc.) | |
3757 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) | |
3758 $_def_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII) | |
3759 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) | |
3841 | 3760 $_def_sse2 // only define if you have SSE2 (Intel Pentium 4) |
1 | 3761 |
1438 | 3762 #ifdef HAVE_MMX |
2943 | 3763 #define USE_MMX_IDCT 1 |
1438 | 3764 #endif |
3765 | |
2943 | 3766 $_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
|
3767 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
3768 /* libmpeg2 uses a different feature test macro for mediaLib */ |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
3769 #ifdef HAVE_MLIB |
2943 | 3770 #define LIBMPEG2_MLIB 1 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
3771 #endif |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
3772 |
1 | 3773 /* libvo options */ |
2961 | 3774 #define SCREEN_SIZE_X 1 |
3775 #define SCREEN_SIZE_Y 1 | |
2943 | 3776 $_def_x11 |
3777 $_def_xv | |
3778 $_def_vm | |
3779 $_def_xinerama | |
3780 $_def_gl | |
3781 $_def_dga | |
3782 $_def_dga2 | |
3783 $_def_sdl | |
704 | 3784 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
2943 | 3785 $_def_sdlbuggy |
3786 $_def_ggi | |
3787 $_def_3dfx | |
3788 $_def_tdfxfb | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3259
diff
changeset
|
3789 $_def_directfb |
5034 | 3790 $_def_directfb099 |
4211
2c1ca684ff04
zr en/disable, libjpeg detection - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4209
diff
changeset
|
3791 $_def_zr |
2943 | 3792 $_def_mga |
3793 $_def_xmga | |
3794 $_def_syncfb | |
3795 $_def_fbdev | |
4209
b47f7697541d
fbdev nocopy option, and static pthread fixes - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
arpi
parents:
4183
diff
changeset
|
3796 $_def_fbdev_nocopy |
2943 | 3797 $_def_dxr3 |
3798 $_def_dvb | |
3799 $_def_svga | |
4561 | 3800 $_def_vesa |
2943 | 3801 $_def_xdpms |
3802 $_def_aa | |
1 | 3803 |
1694 | 3804 /* used by GUI: */ |
2943 | 3805 $_def_xshape |
1694 | 3806 |
2943 | 3807 #if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV) |
3808 #define X11_FULLSCREEN 1 | |
1 | 3809 #endif |
3810 | |
3811 EOF | |
3812 | |
2943 | 3813 ############################################################################# |
1 | 3814 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3815 echo "Creating libvo/config.mak" |
2943 | 3816 _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
|
3817 cat > libvo/config.mak << EOF |
1 | 3818 include ../config.mak |
2943 | 3819 OPTIONAL_SRCS = $_vosrc |
3820 OPTIONAL_OBJS = $_voobj | |
1 | 3821 EOF |
3822 | |
2943 | 3823 ############################################################################# |
965 | 3824 |
3868
8a4ef002bb89
opendivx listed at codecs, libvo2/config.mak is optional
arpi
parents:
3865
diff
changeset
|
3825 if test -d "libvo2" ; then |
8a4ef002bb89
opendivx listed at codecs, libvo2/config.mak is optional
arpi
parents:
3865
diff
changeset
|
3826 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3827 echo "Creating libvo2/config.mak" |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3828 _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
|
3829 cat > libvo2/config.mak << EOF |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3830 include ../config.mak |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3831 OPTIONAL_SRCS = $_vo2src |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3832 OPTIONAL_OBJS = $_vo2obj |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3833 EOF |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3834 |
3868
8a4ef002bb89
opendivx listed at codecs, libvo2/config.mak is optional
arpi
parents:
3865
diff
changeset
|
3835 fi |
8a4ef002bb89
opendivx listed at codecs, libvo2/config.mak is optional
arpi
parents:
3865
diff
changeset
|
3836 |
2947
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3837 ############################################################################# |
987c77cbb4de
last part of changes since around configure 230 applied
pl
parents:
2945
diff
changeset
|
3838 |
2973
82943d529c69
merge of latest commits to configure1 (alex's qnx support)
pl
parents:
2962
diff
changeset
|
3839 echo "Creating libao2/config.mak" |
2943 | 3840 _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
|
3841 cat > libao2/config.mak << EOF |
965 | 3842 include ../config.mak |
2943 | 3843 OPTIONAL_SRCS = $_aosrc |
3844 OPTIONAL_OBJS = $_aoobj | |
3845 EOF | |
965 | 3846 |
2943 | 3847 ############################################################################# |
965 | 3848 |
2943 | 3849 echo "Creating help_mp.h" |
3850 cat > help_mp.h << EOF | |
3851 #include "$_mp_help" | |
965 | 3852 EOF |
3853 | |
2943 | 3854 ############################################################################# |
3855 | |
3169
b6bb21d686cd
completed the summary displayed after running configure
pl
parents:
3161
diff
changeset
|
3856 #FIXME: add something like "Optimizing for: i686 mmx mmx2 sse" |
1 | 3857 cat << EOF |
3858 | |
3859 Config files successfully generated by ./configure ! | |
2943 | 3860 |
3861 Install prefix: $_prefix | |
3862 Data directory: $_datadir | |
3747 | 3863 Config direct.: $_confdir |
3193
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3864 |
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3865 Enabled optional drivers: |
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3866 Input: $_inputmodules |
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3867 Codecs: $_codecmodules |
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3868 Audio output: $_aomodules |
53a6d2fc1498
cosmetical change of driver summary - do not print always enabled stuff
arpi
parents:
3189
diff
changeset
|
3869 Video output: $_vomodules |
5051 | 3870 Disabled optional drivers: |
3871 Input: $_noinputmodules | |
3872 Codecs: $_nocodecmodules | |
3873 Audio output: $_noaomodules | |
3874 Video output: $_novomodules | |
2190 | 3875 |
2943 | 3876 'config.h' and 'config.mak' contain your configuration options. |
3877 Note: if you alter theses files (for instance CFLAGS) MPlayer may no longer | |
3878 compile *** DON'T BUGREPORT if you tweak these files *** | |
3879 | |
3880 'make' will now compile MPlayer and 'make install' will install it. | |
2190 | 3881 Note: On non-Linux systems you might need to use 'gmake' instead of 'make'. |
1 | 3882 |
3883 EOF | |
3884 | |
1618 | 3885 |
2171 | 3886 if test "$_mtrr" = yes ; then |
2943 | 3887 echo "Please check mtrr settings at /proc/mtrr (see DOCS/video.html#2.2.1.1)" |
3888 echo | |
1 | 3889 fi |
3890 | |
2171 | 3891 if test "$_sdl" = "outdated" ; then |
2190 | 3892 cat <<EOF |
3893 You have an outdated version of libSDL installed (older than v1.1.7) and SDL | |
3894 support has therefore been disabled. | |
3895 | |
3896 Please upgrade to a more recent version (version 1.1.8 and above are known to | |
3897 work). You may get this library from: http://www.libsdl.org | |
3898 | |
3899 You need to re-run ./configure and recompile after updating SDL. If you are | |
3900 only interested in the libSDL audio drivers, then older version might work. | |
3901 | |
3902 Use --enable-sdl to force usage of libSDL. | |
3903 EOF | |
1 | 3904 fi |
3905 | |
2997
49b34fdc48bb
better support for --target: new boolean function x86()
pl
parents:
2996
diff
changeset
|
3906 if x86 ; then |
2425 | 3907 if test "$_win32" = no ; then |
3908 if test "$_win32libdir" ; then | |
3909 cat <<EOF | |
2190 | 3910 Failed to find a WIN32 codecs dir at $_win32libdir! |
3911 Create it and copy the DLL files there! (You can get them from your windows | |
3912 directory or download them from: | |
2225 | 3913 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip |
2190 | 3914 EOF |
2425 | 3915 fi |
2190 | 3916 else |
2943 | 3917 if test "$_win32libdir" ; then |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
3918 # echo "Ok, found Win32 codecs directory at $_win32libdir." |
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
3919 : |
2427 | 3920 else |
3921 cat <<EOF | |
2594 | 3922 Failed to find a WIN32 codecs dir! |
2427 | 3923 Create it and copy the DLL files there! (You can get them from your windows |
3924 directory or download them from: | |
3925 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip | |
3926 EOF | |
3927 fi | |
2190 | 3928 fi |
1 | 3929 else |
2943 | 3930 cat <<EOF |
2190 | 3931 NOTE: WIN32 codec DLLs are not supported on your CPU ($host_arch). |
3932 You may encounter a few AVI files that cannot be played due to missing | |
3933 opensource video/audio codec support. | |
3934 EOF | |
1 | 3935 fi |
3936 | |
3189
217f564f29ff
summary handling was not correct (bugs found by Nilmoni Deb and Tibcu)
pl
parents:
3187
diff
changeset
|
3937 |
2943 | 3938 cat <<EOF |
3939 | |
4034 | 3940 Check $TMPLOG if you wonder why an autodetection failed (check whether the |
3941 development headers/packages are installed). | |
3942 | |
3943 If you suspect a bug, please read DOCS/bugreports.html. | |
2943 | 3944 |
3945 EOF | |
3946 | |
4089 | 3947 if test "$_vidix" = no ; then |
3948 cat <<EOF | |
3949 You've disabled VIDIX. Although it would be better to PORT it instead. | |
3950 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4120 | 3951 Also currently the only driver in VIDIX is for ATI Radeon and Rage128. |
3952 Matrox G200/400 needs to be ported. | |
4089 | 3953 EOF |
3954 fi | |
3955 | |
1021 | 3956 # Last move: |
2190 | 3957 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" |
1021 | 3958 |