Fix some Sout dialog resizing issues.
[vlc/davidf-public.git] / build-vlc
blob1e47799156e07f8767261e17772d64fa7c7e3eab
1 #!/bin/sh
3 FEATURES="
4 SKINS skins2
5 PDA pda
6 WXWIDGETS wxwidgets
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 LIVEDOTCOM livedotcom
18 DVDREAD dvdread
19 DVDNAV dvdnav
20 DSHOW dshow
21 DVBPSI dvbpsi
22 V4L v4l
23 PVR pvr
24 VCD vcd
25 SATELLITE satellite
26 DVB dvb
27 OGG ogg
28 MKV mkv
29 MOD mod
30 CDIO libcdio
31 VCDX vcdx
32 CDDAX cddax
33 CDDB libcddb
34 X11 x11
35 XVIDEO xvideo
36 GLX glx
37 FB fb
38 MGA mga
39 SDL sdl
40 FREETYPE freetype
41 FRIBIDI fribidi
42 SVG svg
43 QTE qte
44 HD1000V hd1000v
45 DIRECTX directx
46 WINGDI wingdi
47 SVGALIB svgalib
48 GGI ggi
49 AA aa
50 CACA caca
51 OSS oss
52 ESD esd
53 ARTS arts
54 ALSA alsa
55 WAVEOUT waveout
56 COREAUDIO coreaudio
57 HD1000A hd1000a
58 MAD mad
59 FFMPEG ffmpeg
60 FAAD faad
61 QUICKTIME quicktime
62 A52 a52
63 DTS dts
64 FLAC flac
65 LIBMPEG2 libmpeg2
66 VORBIS vorbis
67 TREMOR tremor
68 SPEEX speex
69 TARKIN tarkin
70 THEORA theora
71 CMML cmml
72 UTF8 utf8
73 PTH pth
74 ST st
75 GPROF gprof
76 CPROF cprof
77 MOZILLA mozilla
78 TESTSUITE testsuite
79 OPTIMIZATIONS optimizations
80 ALTIVEC altivec
81 DEBUG debug
82 RELEASE release
83 SOUT sout
84 WITHFFMPEGMP3LAME ffmpeg-mp3lame
85 WITHFFMPEGFAAC ffmpeg-faac
86 GALAKTOS galaktos
87 HTTPD httpd
88 JACK jack
89 QT4 qt4
91 PATHS="
92 WITHXML2CONFIGPATH xml2-config-path
93 WITHWXCONFIGPATH wx-config-path
94 WITHWXCONFIG wx-config
95 WITHQTE qte
96 WITHGOOMTREE goom-tree
97 WITHSLP slp
98 WITHLIVEDOTCOMTREE livedotcom-tree
99 WITHDVDREAD dvdread
100 WITHDVDREADTREEE dvdread-tree
101 WITHDVDNAVCONFIGPATH dvdnav-config-path
102 WITHDVBPSI dvbpsi
103 WITHDVBPSITREE dvbpsi-tree
104 WITHV4L v4l
105 WITHDVB dvb
106 WITHSDLCONFIGPATH sdl-config-path
107 WITHSDLPREFIX sdl-prefix
108 WITHFREETYPECONFIGPATH freetype-config-path
109 WITHFRIBIDICONFIGPATH fribidi-config-path
110 WITHQTE qte
111 WITHDIRECTX directx
112 WITHGGI ggi
113 WITHCACACONFIGPATH caca-config-path
114 WITHMAD mad
115 WITHMADTREE mad-tree
116 WITHFFMPEGTREE ffmpeg-tree
117 WITHFAADTREE faad-tree
118 WITHA52 a52
119 WITHA52TREE a52-tree
120 WITHDTSTREE dts-tree
121 WITHLIBMPEG2TREE libmpeg2-tree
122 WITHTARKINTREE tarkin-tree
123 WITHMOZILLASDKPATH mozilla-sdk-path
124 ENDIANNESS words
126 if [ ! -e .config ]
127 then
128 ./menuconfig
131 if [ -e .cmd ]
132 then
133 echo ".cmd still exist. Removing it."
134 rm -f .cmd
137 echo -n "./configure " > .cmd
138 . ./.config
140 check_features () {
141 while [ -n "$1" ]
143 eval x="\$CONFIG_$1"
144 if [ "$x" = "y" ]
145 then
146 if [ "$1" = "WITHFFMPEGMP3LAME" ] || [ "$1" = "WITHFFMPEGFAAC" ]
147 then
148 echo -n "--with-$2 " >> .cmd
149 else
150 echo -n "--enable-$2 " >> .cmd
152 else
153 if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
154 then
155 echo -n "--disable-$2 " >> .cmd
158 shift; shift
159 done
162 check_paths () {
163 while [ -n "$1" ]
165 if [ -n $1 ]
166 then
167 eval x="\$CONFIG_$1"
168 if [ "$x" != "" ]
169 then
170 echo -n "--with-$2=$x " >> .cmd
173 shift; shift
174 done
177 check_features $FEATURES
178 check_paths $PATHS
180 #XXX
181 echo "--enable-maintainer-mode " >> .cmd
183 if [ ! -e configure ]
184 then
185 ./bootstrap
188 . ./.cmd
189 make
190 rm -f .cmd