* config.in: wxwindows -> wxwidgets. Added a HTTPD option
[vlc.git] / build-vlc
1 #!/bin/sh
2
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 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 CDIO libcdio
32 VCDX vcdx
33 CDDAX cddax
34 CDDB libcddb
35 X11 x11
36 XVIDEO xvideo
37 GLX glx
38 FB fb
39 MGA mga
40 SDL sdl
41 FREETYPE freetype
42 FRIBIDI fribidi
43 SVG svg
44 QTE qte
45 HD1000V hd1000v
46 DIRECTX directx
47 WINGDI wingdi
48 SVGALIB svgalib
49 GGI ggi
50 GLIDE glide
51 AA aa
52 CACA caca
53 OSS oss
54 ESD esd
55 ARTS arts
56 ALSA alsa
57 WAVEOUT waveout
58 COREAUDIO coreaudio
59 HD1000A hd1000a
60 MAD mad
61 FFMPEG ffmpeg
62 FAAD faad
63 QUICKTIME quicktime
64 A52 a52
65 DTS dts
66 FLAC flac
67 LIBMPEG2 libmpeg2
68 VORBIS vorbis
69 TREMOR tremor
70 SPEEX speex
71 TARKIN tarkin
72 THEORA theora
73 CMML cmml
74 UTF8 utf8
75 PTH pth
76 ST st
77 GPROF gprof
78 CPROF cprof
79 MOZILLA mozilla
80 TESTSUITE testsuite
81 OPTIMIZATIONS optimizations
82 ALTIVEC altivec
83 DEBUG debug
84 RELEASE release
85 SOUT sout
86 WITHFFMPEGMP3LAME ffmpeg-mp3lame
87 WITHFFMPEGFAAC ffmpeg-faac
88 GALAKTOS galaktos
89 HTTPD httpd
90 "
91 PATHS="
92 WITHXML2CONFIGPATH xml2-config-path
93 WITHWXCONFIGPATH wx-config-path
94 WITHQTE qte
95 WITHGOOMTREE goom-tree
96 WITHSLP slp
97 WITHLIVEDOTCOMTREE livedotcom-tree
98 WITHDVDREAD dvdread
99 WITHDVDREADTREEE dvdread-tree
100 WITHDVDNAVCONFIGPATH dvdnav-config-path
101 WITHDVBPSI dvbpsi
102 WITHDVBPSITREE dvbpsi-tree
103 WITHV4L v4l
104 WITHDVB dvb
105 WITHSDLCONFIGPATH sdl-config-path
106 WITHSDLPREFIX sdl-prefix
107 WITHFREETYPECONFIGPATH freetype-config-path
108 WITHFRIBIDICONFIGPATH fribidi-config-path
109 WITHQTE qte
110 WITHDIRECTX directx
111 WITHGGI ggi
112 WITHGLIDE glide
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
125 "
126 if [ ! -e .config ]
127 then
128    ./menuconfig
129 fi
130
131 if [ -e .cmd ]
132 then
133    echo ".cmd still exist. Removing it."
134    rm -f .cmd
135 fi
136
137 echo -n "./configure " > .cmd
138 source .config
139
140 check_features () {
141 while [ -n "$1" ]
142 do
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
151       fi
152    else
153       if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
154       then
155          echo -n "--disable-$2 " >> .cmd
156       fi
157    fi
158    shift; shift
159 done
160 }
161
162 check_paths () {
163 while [ -n "$1" ]
164 do
165    if [ -n $1 ]
166    then
167       eval x="\$CONFIG_$1"
168       if [ "$x" != "" ]
169       then
170          echo -n "--with-$2=$x " >> .cmd
171       fi
172    fi
173    shift; shift
174 done
175 }
176
177 check_features $FEATURES
178 check_paths $PATHS
179
180 if [ ! -e configure ]
181 then
182    ./bootstrap
183 fi
184
185 source .cmd
186 make
187 rm -f .cmd