* modules/control/rc.c: reverted last commit and only print an additional '\r' in...
[vlc.git] / build-vlc
blob0971fe5263db5825db79edd8f38af5a1b99d0389
1 #!/bin/sh
3 FEATURES="
4 SKINS skins2
5 FAMILIAR familiar
6 WXWINDOWS wxwindows
7 OPIE opie
8 MACOSX macosx
9 QNX qnx
10 NCURSES ncurses
11 XOSD xosd
12 VISUAL visual
13 GOOM goom
14 SLP slp
15 LIRC lirc
16 JOYSTICK joystick
17 CORBA corba
18 LIVEDOTCOM livedotcom
19 DVDREAD dvdread
20 DVDNAV dvdnav
21 DSHOW dshow
22 DVBPSI dvbpsi
23 V4L v4l
24 PVR pvr
25 VCD vcd
26 SATELLITE satellite
27 DVB dvb
28 OGG ogg
29 MKV mkv
30 MOD mod
31 X11 x11
32 XVIDEO xvideo
33 GLX glx
34 FB fb
35 MGA mga
36 SDL sdl
37 FREETYPE freetype
38 FRIBIDI fribidi
39 SVG svg
40 QTE qte
41 HD1000V hd1000v
42 DIRECTX directx
43 WINGDI wingdi
44 SVGALIB svgalib
45 GGI ggi
46 GLIDE glide
47 AA aa
48 CACA caca
49 OSS oss
50 ESD esd
51 ARTS arts
52 ALSA alsa
53 WAVEOUT waveout
54 COREAUDIO coreaudio
55 HD1000A hd1000a
56 MAD mad
57 FFMPEG ffmpeg
58 FAAD faad
59 QUICKTIME quicktime
60 A52 a52
61 DTS dts
62 FLAC flac
63 LIBMPEG2 libmpeg2
64 VORBIS vorbis
65 TREMOR tremor
66 SPEEX speex
67 TARKIN tarkin
68 THEORA theora
69 CMML cmml
70 UTF8 utf8
71 PTH pth
72 ST st
73 GPROF gprof
74 CPROF cprof
75 MOZILLA mozilla
76 TESTSUITE testsuite
77 OPTIMIZATIONS optimizations
78 ALTIVEC altivec
79 DEBUG debug
80 RELEASE release
81 SOUT sout
82 WITHFFMPEGMP3LAME ffmpeg-mp3lame
83 WITHFFMPEGFAAC ffmpeg-faac
84 GALAKTOS galaktos
86 PATHS="
87 WITHXML2CONFIGPATH xml2-config-path
88 WITHWXCONFIGPATH wx-config-path
89 WITHQTE qte
90 WITHGOOMTREE goom-tree
91 WITHSLP slp
92 WITHLIVEDOTCOMTREE livedotcom-tree
93 WITHDVDREAD dvdread
94 WITHDVDREADTREEE dvdread-tree
95 WITHDVDNAVCONFIGPATH dvdnav-config-path
96 WITHDVBPSI dvbpsi
97 WITHDVBPSITREE dvbpsi-tree
98 WITHV4L v4l
99 WITHDVB dvb
100 WITHSDLCONFIGPATH sdl-config-path
101 WITHSDLPREFIX sdl-prefix
102 WITHFREETYPECONFIGPATH freetype-config-path
103 WITHFRIBIDICONFIGPATH fribidi-config-path
104 WITHQTE qte
105 WITHDIRECTX directx
106 WITHGGI ggi
107 WITHGLIDE glide
108 WITHCACACONFIGPATH caca-config-path
109 WITHMAD mad
110 WITHMADTREE mad-tree
111 WITHFFMPEGTREE ffmpeg-tree
112 WITHFAADTREE faad-tree
113 WITHA52 a52
114 WITHA52TREE a52-tree
115 WITHDTSTREE dts-tree
116 WITHLIBMPEG2TREE libmpeg2-tree
117 WITHTARKINTREE tarkin-tree
118 WITHMOZILLASDKPATH mozilla-sdk-path
119 ENDIANNESS words
121 if [ ! -e .config ]
122 then
123 ./menuconfig
126 if [ -e .cmd ]
127 then
128 echo ".cmd still exist. Removing it."
129 rm -f .cmd
132 echo -n "./configure " > .cmd
133 source .config
135 check_features () {
136 while [ -n "$1" ]
138 eval x="\$CONFIG_$1"
139 if [ "$x" == "y" ]
140 then
141 if [ "$1" == "WITHFFMPEGMP3LAME" ] || [ "$1" == "WITHFFMPEGFAAC" ]
142 then
143 echo -n "--with-$2 " >> .cmd
144 else
145 echo -n "--enable-$2 " >> .cmd
147 else
148 if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
149 then
150 echo -n "--disable-$2 " >> .cmd
153 shift; shift
154 done
157 check_paths () {
158 while [ -n "$1" ]
160 if [ -n $1 ]
161 then
162 eval x="\$CONFIG_$1"
163 if [ "$x" != "" ]
164 then
165 echo -n "--with-$2=$x " >> .cmd
168 shift; shift
169 done
172 check_features $FEATURES
173 check_paths $PATHS
175 if [ ! -e configure ]
176 then
177 ./bootstrap
180 source .cmd
181 make
182 rm -f .cmd