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