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