Statistics
| Branch: | Revision:

ffmpeg / configure @ 146ea952

History | View | Annotate | Download (33.5 KB)

1 de6d9b64 Fabrice Bellard
#!/bin/sh
2 0f3cb305 Fabrice Bellard
#
3 5cbcf02c Fabrice Bellard
# ffmpeg configure script (c) 2000, 2001, 2002 Fabrice Bellard
4 0f3cb305 Fabrice Bellard
#
5 cf9d24ad Dan Christiansen
6
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
7
cat << EOF
8
9
Usage: configure [options]
10
Options: [defaults in brackets after descriptions]
11
12
EOF
13
echo "Standard options:"
14
echo "  --help                   print this message"
15
echo "  --prefix=PREFIX          install in PREFIX [$prefix]"
16
echo "  --mandir=DIR             man documentation in DIR [PREFIX/man]"
17
echo "  --enable-mp3lame         enable mp3 encoding via libmp3lame [default=no]"
18
echo "  --enable-vorbis          enable vorbis support via libvorbisenc [default=no]"
19
echo "  --enable-faad            enable faad support via libfaad [default=no]"
20
echo "  --enable-faadbin         build faad support with runtime linking [default=no]"
21
echo "  --enable-faac            enable faac support via libfaac [default=no]"
22
echo "  --enable-mingw32         enable mingw32 native/cross windows compile"
23
echo "  --enable-a52             enable GPL'ed A52 support [default=no]"
24
echo "  --enable-a52bin          open liba52.so.0 at runtime [default=no]"
25
echo "  --enable-pp              enable GPL'ed post processing support [default=no]"
26
echo "  --enable-shared-pp       use libpostproc.so [default=no]"
27
echo "  --enable-shared          build shared libraries [default=no]"
28
echo "  --enable-amr_nb          enable amr_nb float audio codec"
29
echo "  --enable-amr_nb-fixed    use fixed point for amr-nb codec"
30 64cba748 Michael Niedermayer
echo "  --enable-amr_wb          enable amr_wb float audio codec"
31 cf9d24ad Dan Christiansen
echo "  --enable-sunmlib         use Sun medialib [default=no]"
32 9c3d33d6 Michael Niedermayer
echo "  --enable-pthreads        use pthreads [default=no]"
33 b2e3c528 Michael Niedermayer
echo "  --enable-gpl             allow use of gpl code, the resulting libav* and ffmpeg will be under gpl [default=no]"
34 cf9d24ad Dan Christiansen
echo ""
35
echo "Advanced options (experts only):"
36
echo "  --source-path=PATH       path of source code [$source_path]"
37
echo "  --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]"
38
echo "  --cc=CC                  use C compiler CC [$cc]"
39
echo "  --make=MAKE              use specified make [$make]"
40
echo "  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS [$CFLAGS]"
41
echo "  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
42
echo "  --extra-libs=ELIBS       add ELIBS [$ELIBS]"
43
echo "  --cpu=CPU                force cpu to CPU  [$cpu]"
44
echo "  --tune=PROCESSOR         tune code for a particular CPU (may fails or misperforms on other CPUs)"
45
echo "  --powerpc-perf-enable    enable performance report on PPC (requires enabling PMC)"
46
echo "  --disable-mmx            disable mmx usage"
47
echo "  --disable-altivec        disable AltiVec usage"
48
echo "  --disable-audio-oss      disable OSS audio support [default=no]"
49
echo "  --disable-audio-beos     disable BeOS audio support [default=no]"
50
echo "  --disable-v4l            disable video4linux grabbing [default=no]"
51
echo "  --disable-dv1394         disable DV1394 grabbing [default=no]"
52
echo "  --disable-network        disable network support [default=no]"
53
echo "  --disable-zlib           disable zlib [default=no]"
54
echo "  --disable-simple_idct    disable simple IDCT routines [default=no]"
55
echo "  --disable-vhook          disable video hooking support"
56
echo "  --enable-gprof           enable profiling with gprof [$gprof]"
57
echo "  --disable-debug          disable debugging symbols"
58
echo "  --disable-opts           disable compiler optimizations"
59
echo "  --disable-mpegaudio-hp   faster (but less accurate)"
60
echo "                           mpegaudio decoding [default=no]"
61
echo "  --disable-ffserver       disable ffserver build"
62
echo "  --disable-ffplay         disable ffplay build"
63
echo "  --disable-risky          disables patent encumbered codecs"
64
echo "  --enable-small           optimize for size instead of speed"
65 da9b170c Michael Niedermayer
echo "  --enable-memalign-hack   emulate memalign, interferes with memory debuggers"
66 cf9d24ad Dan Christiansen
echo ""
67
echo "NOTE: The object files are build at the place where configure is launched"
68
exit 1
69
fi
70
71 0f3cb305 Fabrice Bellard
# set temporary file name
72 57514323 Zdenek Kabelac
if test ! -z "$TMPDIR" ; then
73 0f3cb305 Fabrice Bellard
    TMPDIR1="${TMPDIR}"
74 57514323 Zdenek Kabelac
elif test ! -z "$TEMPDIR" ; then
75 0f3cb305 Fabrice Bellard
    TMPDIR1="${TEMPDIR}"
76 3d204385 Nick Kurshev
else
77 0f3cb305 Fabrice Bellard
    TMPDIR1="/tmp"
78 3d204385 Nick Kurshev
fi
79
80 0f3cb305 Fabrice Bellard
TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"
81
TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"
82 f3ec2d46 Slavik Gnatenko
TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}"
83 0f3cb305 Fabrice Bellard
TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
84
TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
85
86 de6d9b64 Fabrice Bellard
# default parameters
87
prefix="/usr/local"
88 23a65308 Fabrice Bellard
mandir=""
89 951bf3e6 Fabrice Bellard
bindir=""
90 0f3cb305 Fabrice Bellard
cross_prefix=""
91 de6d9b64 Fabrice Bellard
cc="gcc"
92
ar="ar"
93 be7109c1 Michael Niedermayer
ranlib="ranlib"
94 4a908fbc Alex Beregszaszi
make="make"
95 0f3cb305 Fabrice Bellard
strip="strip"
96 de6d9b64 Fabrice Bellard
cpu=`uname -m`
97 a4adb608 Michael Niedermayer
tune="generic"
98 e45a2872 Romain Dolbeau
powerpc_perf="no"
99 0f3cb305 Fabrice Bellard
mmx="default"
100 ab6c65f6 Brian Foley
altivec="default"
101 d46aba26 Leon van Stuivenberg
mmi="default"
102 de6d9b64 Fabrice Bellard
case "$cpu" in
103 ef0bc4c9 François Revol
  i386|i486|i586|i686|i86pc|BePC)
104 de6d9b64 Fabrice Bellard
    cpu="x86"
105
  ;;
106 93caefc7 Alex Beregszaszi
  # armv4l is a subset of armv5tel
107
  armv4l|armv5tel)
108 6ed7422a Fabrice Bellard
    cpu="armv4l"
109
  ;;
110 91d1f1a4 Nick Kurshev
  alpha)
111
    cpu="alpha"
112
  ;;
113 a43bd1d7 Heliodoro Tammaro
  "Power Macintosh"|ppc)
114 90cee0c3 Michael Niedermayer
    cpu="powerpc"
115
  ;;
116 d46aba26 Leon van Stuivenberg
  mips)
117
    cpu="mips"
118
  ;;
119 bb476ff3 James Morrison
  sun4u|sparc64)
120 a7beab73 Roman Shaposhnik
    cpu="sparc64"
121
  ;;
122 bb476ff3 James Morrison
  sparc)
123
    cpu="sparc"
124
  ;;
125 bdb2e37c Alex Beregszaszi
  sh4)
126
    cpu="sh4"
127
  ;;
128 de6d9b64 Fabrice Bellard
  *)
129 0f3cb305 Fabrice Bellard
    cpu="unknown"
130 de6d9b64 Fabrice Bellard
  ;;
131
esac
132
gprof="no"
133 5cbcf02c Fabrice Bellard
v4l="yes"
134
audio_oss="yes"
135 dfdfa47c François Revol
audio_beos="no"
136 8aa3ee32 Max Krasnyansky
dv1394="yes"
137 5cbcf02c Fabrice Bellard
network="yes"
138 0147f198 François Revol
zlib="yes"
139 a6741398 Juanjo
mp3lame="no"
140 81e0d0b4 Mark Hills
vorbis="no"
141 0fc50e58 Zdenek Kabelac
faad="no"
142
faadbin="no"
143 29d48296 Michael Niedermayer
faac="no"
144 ba9261e5 Michael Niedermayer
a52="no"
145 57514323 Zdenek Kabelac
a52bin="no"
146 ba9261e5 Michael Niedermayer
pp="no"
147 bba9b16c Michael Niedermayer
shared_pp="no"
148 732d9245 Bill Eldridge
mingw32="no"
149 3f027ca7 Felix Bünemann
cygwin="no"
150 f3ec2d46 Slavik Gnatenko
os2="no"
151 83286d2a Zdenek Kabelac
lshared="no"
152 cddf3f45 Glenn Maynard
optimize="yes"
153
debug="yes"
154 ef0bc4c9 François Revol
extralibs="-lm"
155 c02dbee1 Michael Niedermayer
simpleidct="yes"
156 0f3cb305 Fabrice Bellard
bigendian="no"
157 7f965c1c Chris Flerackers
inttypes="yes"
158 b5c950c4 Michael Niedermayer
emu_fast_int="no"
159 a8721c09 Fabrice Bellard
vhook="default"
160 adbc0510 Philip Gladstone
dlfcn="no"
161
dlopen="no"
162 1eb2212e Fabrice Bellard
mpegaudio_hp="yes"
163 e1707f52 Michael Niedermayer
SHFLAGS=-shared
164 26b35efb François Revol
netserver="no"
165 4baca069 Philip Gladstone
need_inet_aton="no"
166 8154d2e0 Fabrice Bellard
ffserver="yes"
167 a86b921c Fabrice Bellard
ffplay="yes"
168 4baca069 Philip Gladstone
LDFLAGS=-Wl,--warn-common
169
FFSLDFLAGS=-Wl,-E
170 f3ec2d46 Slavik Gnatenko
LIBPREF="lib"
171
LIBSUF=".a"
172
SLIBPREF="lib"
173
SLIBSUF=".so"
174 951bf3e6 Fabrice Bellard
EXESUF=""
175 1d0d55da Michael Niedermayer
risky="yes"
176 891f64b3 joca@rixmail.se
amr_nb="no"
177 d663a1fd Michael Niedermayer
amr_wb="no"
178 bc634f6f Zdenek Kabelac
amr_nb_fixed="no"
179 f80f7964 Roman Shaposhnik
sunmlib="no"
180 9c3d33d6 Michael Niedermayer
pthreads="no"
181 b2e3c528 Michael Niedermayer
gpl="no"
182 da9b170c Michael Niedermayer
memalignhack="no"
183 ef0bc4c9 François Revol
184
# OS specific
185
targetos=`uname -s`
186
case $targetos in
187
BeOS)
188
prefix="/boot/home/config"
189
# helps building libavcodec
190 cddf3f45 Glenn Maynard
CFLAGS="-DPIC -fomit-frame-pointer"
191 31ba0b4d François Revol
# 3 gcc releases known for BeOS, each with ugly bugs
192 b2924696 Roman Shaposhnik
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
193 31ba0b4d François Revol
case "$gcc_version" in
194
2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
195
mmx="no"
196
;;
197
*20010315*) echo "BeBits gcc"
198
CFLAGS="$CFLAGS -fno-expensive-optimizations"
199
;;
200
esac
201 e1707f52 Michael Niedermayer
SHFLAGS=-nostart
202
# disable linux things
203
audio_oss="no"
204 5cbcf02c Fabrice Bellard
v4l="no"
205 8aa3ee32 Max Krasnyansky
dv1394="no"
206 dfdfa47c François Revol
# enable beos things
207
audio_beos="yes"
208 ef0bc4c9 François Revol
# no need for libm, but the inet stuff
209
# Check for BONE
210
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
211
extralibs="-lbind -lsocket"
212
else
213 26b35efb François Revol
netserver="yes"
214 4baca069 Philip Gladstone
need_inet_aton="yes"
215 26b35efb François Revol
extralibs="-lnet"
216 ef0bc4c9 François Revol
fi ;;
217 4baca069 Philip Gladstone
SunOS)
218
v4l="no"
219
audio_oss="no"
220 8aa3ee32 Max Krasnyansky
dv1394="no"
221 4baca069 Philip Gladstone
make="gmake"
222
LDFLAGS=""
223
FFSLDFLAGS=""
224
need_inet_aton="yes"
225
extralibs="$extralibs -lsocket -lnsl"
226
;;
227 9c938e77 Philip Gladstone
FreeBSD)
228
v4l="no"
229
audio_oss="yes"
230 8aa3ee32 Max Krasnyansky
dv1394="no"
231 9c938e77 Philip Gladstone
make="gmake"
232 12043e1d Steven M. Schultz
CFLAGS="-pthread"
233
LDFLAGS="$LDFLAGS -export-dynamic -pthread"
234 9c938e77 Philip Gladstone
;;
235 4a908fbc Alex Beregszaszi
BSD/OS)
236 5cbcf02c Fabrice Bellard
v4l="no"
237 6063bce7 Fabrice Bellard
audio_oss="yes"
238 8aa3ee32 Max Krasnyansky
dv1394="no"
239 4a908fbc Alex Beregszaszi
extralibs="-lpoll -lgnugetopt -lm"
240
make="gmake"
241
;;
242 90cee0c3 Michael Niedermayer
Darwin)
243 a43bd1d7 Heliodoro Tammaro
cc="cc"
244 90cee0c3 Michael Niedermayer
v4l="no"
245
audio_oss="no"
246 8aa3ee32 Max Krasnyansky
dv1394="no"
247 d3b15036 Steven M. Schultz
ffserver="no"
248 a43bd1d7 Heliodoro Tammaro
SHFLAGS="-dynamiclib"
249 90cee0c3 Michael Niedermayer
extralibs=""
250 a43bd1d7 Heliodoro Tammaro
darwin="yes"
251 47930f09 Philip Gladstone
strip="strip -x"
252 4850b2d2 Michael Niedermayer
LDFLAGS="-Wl,-d"
253 4baca069 Philip Gladstone
FFSLDFLAGS=-Wl,-bind_at_load
254 90cee0c3 Michael Niedermayer
;;
255 732d9245 Bill Eldridge
MINGW32*)
256 951bf3e6 Fabrice Bellard
# Note: the rest of the mingw32 config is done afterwards as mingw32
257
# can be forced on command line for linux cross compilation
258 732d9245 Bill Eldridge
mingw32="yes"
259
;;
260 3f027ca7 Felix Bünemann
CYGWIN*)
261
v4l="no"
262
audio_oss="yes"
263 8aa3ee32 Max Krasnyansky
dv1394="no"
264 3f027ca7 Felix Bünemann
extralibs=""
265
cygwin="yes"
266
test -f /usr/include/inttypes.h || \
267
test -f /usr/local/include/inttypes.h || \
268
echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
269
     "/usr/include/inttypes.h !!!"
270
;;
271 b55e4ef4 Philip Gladstone
Linux)
272 4baca069 Philip Gladstone
LDFLAGS="$LDFLAGS -rdynamic"
273 b55e4ef4 Philip Gladstone
;;
274 99614dd4 Michel Bardiaux
IRIX*)
275
ranlib="echo ignoring ranlib"
276
v4l="no"
277
audio_oss="no"
278
make="gmake"
279
;;
280 f3ec2d46 Slavik Gnatenko
OS/2)
281
TMPE=$TMPE".exe"
282 69db4e10 Slavik Gnatenko
ar="emxomfar -p64"
283
ranlib="echo ignoring ranlib"
284
strip="echo ignoring strip"
285 cddf3f45 Glenn Maynard
CFLAGS="-Zomf"
286 69db4e10 Slavik Gnatenko
LDFLAGS="-Zomf -Zstack 16384 -s"
287 f3ec2d46 Slavik Gnatenko
SHFLAGS=""
288
FFSLDFLAGS=""
289
LIBPREF=""
290
LIBSUF=".lib"
291
SLIBPREF=""
292
SLIBSUF=".dll"
293 951bf3e6 Fabrice Bellard
EXESUF=".exe"
294 f3ec2d46 Slavik Gnatenko
extralibs=""
295
v4l="no"
296
audio_oss="no"
297 8aa3ee32 Max Krasnyansky
dv1394="no"
298 f3ec2d46 Slavik Gnatenko
network="no"
299
ffserver="no"
300
os2="yes"
301
;;
302 ef0bc4c9 François Revol
*) ;;
303
esac
304 de6d9b64 Fabrice Bellard
305 6852ac95 Romain Dolbeau
# From mplayer configure. We need TARGET_OS available
306
# to the Makefile, so it can distinguish between flavors
307
# of AltiVec on PowerPC
308
TARGET_OS=`( uname -s ) 2>&1`
309
  case "$TARGET_OS" in
310
  Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU)
311
    ;;
312
  IRIX*)
313
    TARGET_OS=IRIX
314
    ;;
315
  HP-UX*)
316
    TARGET_OS=HP-UX
317
    ;;
318
  [cC][yY][gG][wW][iI][nN]*)
319
    TARGET_OS=CYGWIN
320
    ;;
321
  *)
322
    TARGET_OS="$TARGET_OS-UNKNOWN"
323
    ;;
324
  esac
325
326 0f3cb305 Fabrice Bellard
# find source path
327
# XXX: we assume an absolute path is given when launching configure, 
328
# except in './configure' case.
329 586bc755 Roman Shaposhnik
source_path="`echo $0 | sed -e 's#/configure##'`"
330 0f3cb305 Fabrice Bellard
source_path_used="yes"
331
if test -z "$source_path" -o "$source_path" = "." ; then
332
    source_path=`pwd`
333
    source_path_used="no"
334 de6d9b64 Fabrice Bellard
fi
335
336
for opt do
337
  case "$opt" in
338
  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
339
  ;;
340 23a65308 Fabrice Bellard
  --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
341
  ;;
342 0f3cb305 Fabrice Bellard
  --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
343
  ;;
344
  --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2`
345
  ;;
346 de6d9b64 Fabrice Bellard
  --cc=*) cc=`echo $opt | cut -d '=' -f 2`
347
  ;;
348 4a908fbc Alex Beregszaszi
  --make=*) make=`echo $opt | cut -d '=' -f 2`
349
  ;;
350 0f3cb305 Fabrice Bellard
  --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
351
  ;;
352
  --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
353
  ;;
354
  --extra-libs=*) extralibs=${opt#--extra-libs=}
355
  ;;
356 de6d9b64 Fabrice Bellard
  --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
357
  ;;
358 a4adb608 Michael Niedermayer
  --tune=*) tune=`echo $opt | cut -d '=' -f 2`
359
  ;;
360 e45a2872 Romain Dolbeau
  --powerpc-perf-enable) powerpc_perf="yes"
361
  ;;
362 de6d9b64 Fabrice Bellard
  --disable-mmx) mmx="no"
363
  ;;
364 ab6c65f6 Brian Foley
  --disable-altivec) altivec="no"
365
  ;;
366 de6d9b64 Fabrice Bellard
  --enable-gprof) gprof="yes"
367
  ;;
368 5cbcf02c Fabrice Bellard
  --disable-v4l) v4l="no"
369
  ;;
370
  --disable-audio-oss) audio_oss="no"
371
  ;;
372 dfdfa47c François Revol
  --disable-audio-beos) audio_beos="no"
373
  ;;
374 8aa3ee32 Max Krasnyansky
  --disable-dv1394) dv1394="no"
375
  ;;
376 ffc0ef96 Luca Abeni
  --disable-network) network="no"; ffserver="no"
377 5cbcf02c Fabrice Bellard
  ;;
378 0147f198 François Revol
  --disable-zlib) zlib="no"
379
  ;;
380 ba9261e5 Michael Niedermayer
  --enable-a52) a52="yes"
381 6ed7422a Fabrice Bellard
  ;;
382 9c938e77 Philip Gladstone
  --enable-a52bin) a52bin="yes" ; extralibs="$ldl $extralibs"
383 57514323 Zdenek Kabelac
  ;;
384 ba9261e5 Michael Niedermayer
  --enable-pp) pp="yes"
385 bba9b16c Michael Niedermayer
  ;;
386
  --enable-shared-pp) shared_pp="yes"
387
  ;;
388 a6741398 Juanjo
  --enable-mp3lame) mp3lame="yes"
389
  ;;
390 81e0d0b4 Mark Hills
  --enable-vorbis) vorbis="yes"
391
  ;;
392 445ad18d Zdenek Kabelac
  --enable-faad) faad="yes"
393
  ;;
394
  --enable-faadbin) faadbin="yes"
395
  ;;
396 29d48296 Michael Niedermayer
  --enable-faac) faac="yes"
397
  ;;
398 68892110 Philip Gladstone
  --disable-vhook) vhook="no"
399
  ;;
400 c02dbee1 Michael Niedermayer
  --disable-simple_idct) simpleidct="no"
401 045ed63f Zdenek Kabelac
  ;;
402 732d9245 Bill Eldridge
  --enable-mingw32) mingw32="yes"
403
  ;;
404 83286d2a Zdenek Kabelac
  --enable-shared) lshared="yes"
405 0319c531 Nick Kurshev
  ;;
406 cddf3f45 Glenn Maynard
  --disable-debug) debug="no"
407
  ;;
408
  --disable-opts) optimize="no"
409
  ;;
410 1eb2212e Fabrice Bellard
  --disable-mpegaudio-hp) mpegaudio_hp="no"
411
  ;;
412 8154d2e0 Fabrice Bellard
  --disable-ffserver) ffserver="no"
413
  ;;
414 a86b921c Fabrice Bellard
  --disable-ffplay) ffplay="no"
415
  ;;
416 1d0d55da Michael Niedermayer
  --disable-risky) risky="no"
417
  ;;
418 cddf3f45 Glenn Maynard
  --enable-small) optimize="small"
419 553a6284 Michael Niedermayer
  ;;
420 891f64b3 joca@rixmail.se
  --enable-amr_nb) amr_nb="yes"
421
  ;;
422 bc634f6f Zdenek Kabelac
  --enable-amr_nb-fixed) amr_nb_fixed="yes"
423
  ;;
424 64cba748 Michael Niedermayer
  --enable-amr_wb) amr_wb="yes"
425
  ;; 
426 f80f7964 Roman Shaposhnik
  --enable-sunmlib) sunmlib="yes"
427
  ;;
428 9c3d33d6 Michael Niedermayer
  --enable-pthreads) pthreads="yes"
429
  ;;
430 b2e3c528 Michael Niedermayer
  --enable-gpl) gpl="yes"
431
  ;;
432 da9b170c Michael Niedermayer
  --enable-memalign-hack) memalignhack="yes"
433
  ;;
434 de6d9b64 Fabrice Bellard
  esac
435
done
436
437 b2e3c528 Michael Niedermayer
if test "$gpl" != "yes"; then
438
    if test "$pp" != "no" -o "$shared_pp" != "no"; then
439
        echo "The Postprocessing code is under GPL and --enable-gpl is not specified"
440
        fail="yes"
441
    fi
442
443
    if test "$a52" != "no" -o "$a52bin" != "no"; then
444
        echo "liba52 is under GPL and --enable-gpl is not specified"
445
        fail="yes"
446
    fi
447
    
448
    if test "$faad" != "no" -o "$faadbin" != "no"; then
449
        cat > $TMPC << EOF
450
            #include <faad.h>
451
            int main( void ) { return 0; }
452
EOF
453
    
454
        if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
455
            cat > $TMPC << EOF
456
                #include <faad.h>
457
                #ifndef FAAD2_VERSION
458
                ok faad1
459
                #endif
460
                int main( void ) { return 0; }
461
EOF
462
            if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
463
                echo "faad2 is under GPL and --enable-gpl is not specified"
464
                fail="yes"
465
            fi
466
        else
467
            faad="no"
468
            faadbin="no"
469
            echo "faad test failed"
470
        fi
471
    fi
472
   
473
474 a18b5183 Michael Niedermayer
    if test "$fail" = "yes"; then
475 b2e3c528 Michael Niedermayer
        exit 1
476
    fi
477
fi
478
479 0f3cb305 Fabrice Bellard
# compute mmx state
480
if test $mmx = "default"; then
481
    if test $cpu = "x86"; then
482
        mmx="yes"
483
    else
484
        mmx="no"
485
    fi
486
fi
487
488 cf9d24ad Dan Christiansen
#Darwin CC versions
489 75388c74 Michael Niedermayer
needmdynamicnopic="no"
490 cf9d24ad Dan Christiansen
if test $targetos = Darwin; then
491 b2924696 Roman Shaposhnik
    if test -n "`$cc -v 2>&1 | grep xlc`"; then
492 747a0554 Tinic Uro
	CFLAGS="$CFLAGS -qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
493 cf9d24ad Dan Christiansen
    else
494 b2924696 Roman Shaposhnik
	gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
495 cf9d24ad Dan Christiansen
	case "$gcc_version" in
496
	    *2.95*) 
497 747a0554 Tinic Uro
		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
498 cf9d24ad Dan Christiansen
		;;
499 75388c74 Michael Niedermayer
	    *3.*)
500 747a0554 Tinic Uro
		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare"
501 75388c74 Michael Niedermayer
		if test "$lshared" = no; then
502
		   needmdynamicnopic="yes"
503
		fi
504 cf9d24ad Dan Christiansen
		;;
505
	    *)
506 747a0554 Tinic Uro
		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
507 75388c74 Michael Niedermayer
		if test "$lshared" = no; then
508
		   needmdynamicnopic="yes"
509
		fi
510 cf9d24ad Dan Christiansen
		;;
511
	esac
512
    fi
513
fi
514
515 ab6c65f6 Brian Foley
# Can only do AltiVec on PowerPC
516
if test $altivec = "default"; then
517
    if test $cpu = "powerpc"; then
518
        altivec="yes"
519
    else
520
        altivec="no"
521
    fi
522
fi
523
524 a4adb608 Michael Niedermayer
# Add processor-specific flags
525
TUNECPU="generic"
526 9007f514 Romain Dolbeau
POWERPCMODE="32bits"
527 a4adb608 Michael Niedermayer
if test $tune != "generic"; then
528
    case $tune in
529
	601|ppc601|PowerPC601)
530
	    CFLAGS="$CFLAGS -mcpu=601"
531
	    if test $altivec = "yes"; then
532
		echo "WARNING: tuning for PPC601 but altivec enabled !";
533
	    fi
534
	    TUNECPU=ppc601
535
	;;
536
	603*|ppc603*|PowerPC603*)
537
	    CFLAGS="$CFLAGS -mcpu=603"
538
	    if test $altivec = "yes"; then
539
		echo "WARNING: tuning for PPC603 but altivec enabled !";
540
	    fi
541
	    TUNECPU=ppc603
542
	;;
543
	604*|ppc604*|PowerPC604*)
544
	    CFLAGS="$CFLAGS -mcpu=604"
545
	    if test $altivec = "yes"; then
546
		echo "WARNING: tuning for PPC604 but altivec enabled !";
547
	    fi
548
	    TUNECPU=ppc604
549
	;;
550 8d6625b6 Dan Christiansen
	G3|g3|75*|ppc75*|PowerPC75*)
551 fe0f2a97 Dan Christiansen
	    CFLAGS="$CFLAGS -mcpu=750 -mtune=750 -mpowerpc-gfxopt"
552 a4adb608 Michael Niedermayer
	    if test $altivec = "yes"; then
553
		echo "WARNING: tuning for PPC75x but altivec enabled !";
554
	    fi
555
	    TUNECPU=ppc750
556
	;;
557 8d6625b6 Dan Christiansen
	G4|g4|745*|ppc745*|PowerPC745*)
558 fe0f2a97 Dan Christiansen
	    CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450 -mpowerpc-gfxopt"
559 3efd4952 Romain Dolbeau
	    if test $altivec = "no"; then
560
		echo "WARNING: tuning for PPC745x but altivec disabled !";
561
	    fi
562
	    TUNECPU=ppc7450
563
	;;
564
	74*|ppc74*|PowerPC74*)
565 fe0f2a97 Dan Christiansen
	    CFLAGS="$CFLAGS -mcpu=7400 -mtune=7400 -mpowerpc-gfxopt"
566 a4adb608 Michael Niedermayer
	    if test $altivec = "no"; then
567
		echo "WARNING: tuning for PPC74xx but altivec disabled !";
568
	    fi
569 e45a2872 Romain Dolbeau
	    TUNECPU=ppc7400
570 a4adb608 Michael Niedermayer
	;;
571 8d6625b6 Dan Christiansen
	G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
572 9007f514 Romain Dolbeau
	    CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
573 a4adb608 Michael Niedermayer
	    if test $altivec = "no"; then
574
		echo "WARNING: tuning for PPC970 but altivec disabled !";
575
	    fi
576
	    TUNECPU=ppc970
577 9007f514 Romain Dolbeau
            POWERPCMODE="64bits"
578 a4adb608 Michael Niedermayer
	;;
579
	*)
580
	echo "WARNING: unknown CPU "$tune", ignored"
581
	;;
582
    esac
583
fi
584
585 cf9d24ad Dan Christiansen
# AltiVec flags: The FSF version of GCC differs from the Apple version 
586 b6e52719 Magnus Damm
if test $cpu = "powerpc"; then
587
    if test $altivec = "yes"; then
588 b2924696 Roman Shaposhnik
        if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
589 b6e52719 Magnus Damm
            CFLAGS="$CFLAGS -faltivec"
590
        else
591
            CFLAGS="$CFLAGS -maltivec -mabi=altivec"
592
        fi
593
    fi
594
fi
595
596 a9a07762 Michael Niedermayer
# See if we have <altivec.h>
597
cat > $TMPC << EOF
598
#include <altivec.h>
599
int main( void ) { return 0; }
600
EOF
601
602
_altivec_h="no"
603 b6e52719 Magnus Damm
if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
604 a9a07762 Michael Niedermayer
_altivec_h="yes"
605
fi
606
607 ab6c65f6 Brian Foley
# See does our compiler support Motorola AltiVec C API
608
if test $altivec = "yes"; then
609 a9a07762 Michael Niedermayer
if test $_altivec_h = "yes"; then
610 ab6c65f6 Brian Foley
cat > $TMPC << EOF
611 a9a07762 Michael Niedermayer
#include <altivec.h>
612 ab6c65f6 Brian Foley
int main(void) {
613
    vector signed int v1, v2, v3;
614
    v1 = vec_add(v2,v3);
615
    return 0;
616
}
617
EOF
618 a9a07762 Michael Niedermayer
else
619
cat > $TMPC << EOF
620
int main(void) {
621
    vector signed int v1, v2, v3;
622
    v1 = vec_add(v2,v3);
623
    return 0;
624
}
625
EOF
626
fi
627 b6e52719 Magnus Damm
$cc $CFLAGS -o $TMPE $TMPC 2> /dev/null || altivec="no"
628 ab6c65f6 Brian Foley
fi
629
630 d46aba26 Leon van Stuivenberg
# Can only do mmi on mips
631
if test $mmi = "default"; then
632
    if test $cpu = "mips"; then
633
        mmi="yes"
634
    else
635
        mmi="no"
636
    fi
637
fi
638
639
# See does our compiler support mmi
640
if test $mmi = "yes"; then
641
cat > $TMPC << EOF
642
int main(void) {
643
    __asm__ ("lq \$2, 0(\$2)");
644
    return 0;
645
}
646
EOF
647 f3ec2d46 Slavik Gnatenko
$cc -o $TMPE $TMPC 2> /dev/null || mmi="no"
648 d46aba26 Leon van Stuivenberg
fi
649
650 732d9245 Bill Eldridge
if test "$mingw32" = "yes" ; then
651
    v4l="no"
652
    audio_oss="no"
653 8aa3ee32 Max Krasnyansky
    dv1394="no"
654 951bf3e6 Fabrice Bellard
    ffserver="no"
655 732d9245 Bill Eldridge
    network="no"
656 951bf3e6 Fabrice Bellard
    LIBPREF=""
657
    LIBSUF=".lib"
658
    SLIBPREF=""
659
    SLIBSUF=".dll"
660
    EXESUF=".exe"
661
    prefix="/c/Program Files/FFmpeg"
662
    bindir="$prefix"
663 732d9245 Bill Eldridge
fi
664
665 0f3cb305 Fabrice Bellard
cc="${cross_prefix}${cc}"
666
ar="${cross_prefix}${ar}"
667 be7109c1 Michael Niedermayer
ranlib="${cross_prefix}${ranlib}"
668 0f3cb305 Fabrice Bellard
strip="${cross_prefix}${strip}"
669
670 487a54d7 Fabrice Bellard
if test -z "$cross_prefix" ; then
671
672 3d204385 Nick Kurshev
# ---
673 a3999908 Michael Niedermayer
# big/little endian test
674
cat > $TMPC << EOF
675
#include <inttypes.h>
676
int main(int argc, char ** argv){
677
	volatile uint32_t i=0x01234567;
678
	return (*((uint8_t*)(&i))) == 0x67;
679
}
680
EOF
681
682 f3ec2d46 Slavik Gnatenko
if $cc -o $TMPE $TMPC 2>/dev/null ; then
683
$TMPE && bigendian="yes"
684 a3999908 Michael Niedermayer
else
685
echo big/little test failed
686
fi
687
688 487a54d7 Fabrice Bellard
else
689
690
# if cross compiling, cannot launch a program, so make a static guess
691
if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
692
    bigendian="yes"
693
fi
694
695
fi
696
697 a3999908 Michael Niedermayer
# ---
698 7f965c1c Chris Flerackers
# *inttypes.h* test
699
cat > $TMPC << EOF
700
#include <inttypes.h>
701
int main(int argc, char ** argv){
702
    return 0;
703
}
704
EOF
705
706
$cc -o $TMPE $TMPC 2>/dev/null || inttypes="no"
707
708
# ---
709 b5c950c4 Michael Niedermayer
# *int_fast* test
710
cat > $TMPC << EOF
711
#include <inttypes.h>
712
int main(int argc, char ** argv){
713
	volatile uint_fast64_t i=0x01234567;
714
	return 0;
715
}
716
EOF
717
718
$cc -o $TMPE $TMPC 2>/dev/null || emu_fast_int="yes"
719
720
# ---
721 3d204385 Nick Kurshev
# check availability of some header files
722
723
cat > $TMPC << EOF
724
#include <malloc.h>
725
int main( void ) { return 0; }
726
EOF
727
728
_memalign=no
729
_malloc_h=no
730 f3ec2d46 Slavik Gnatenko
if $cc -o $TMPE $TMPC 2> /dev/null ; then
731 3d204385 Nick Kurshev
_malloc_h=yes
732
_memalign=yes
733
# check for memalign - atmos
734
cat > $TMPC << EOF
735
#include <malloc.h>
736
int main ( void ) {
737
char *string = NULL;
738
string = memalign(64, sizeof(char));
739
return 0;
740
}
741
EOF
742 f3ec2d46 Slavik Gnatenko
$cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
743 3d204385 Nick Kurshev
fi
744
745 68892110 Philip Gladstone
cat > $TMPC << EOF
746 5e4639e2 Glenn Maynard
#include <time.h>
747
int main( void ) { localtime_r(NULL, NULL); }
748
EOF
749
750
localtime_r=no
751
if $cc -o $TMPE $TMPC 2> /dev/null ; then
752
  localtime_r=yes
753
fi
754
755 0147f198 François Revol
if test "$zlib" = "yes"; then
756
# check for zlib - mmu_man
757
cat > $TMPC << EOF
758
#include <zlib.h>
759
int main ( void ) {
760
if (zlibVersion() != ZLIB_VERSION)
761
   puts("zlib version differs !!!");
762
   return 1;
763
return 0;
764
}
765
EOF
766 16806499 Michael Niedermayer
$cc $CFLAGS -o $TMPE $TMPC -lz 2> /dev/null || zlib="no"
767 f3ec2d46 Slavik Gnatenko
# $TMPE 2> /dev/null > /dev/null || zlib="no"
768 0147f198 François Revol
# XXX: more tests needed - runtime test
769
fi
770
if test "$zlib" = "yes"; then
771
extralibs="$extralibs -lz"
772
fi
773
774 95e2ce4a Michael Niedermayer
# test for lrintf in math.h
775
cat > $TMPC << EOF
776
#define _ISOC9X_SOURCE  1
777
#include <math.h>
778
int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
779
EOF
780
781
have_lrintf="no"
782 f3ec2d46 Slavik Gnatenko
if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
783 95e2ce4a Michael Niedermayer
  have_lrintf="yes"
784 f3ec2d46 Slavik Gnatenko
  $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
785 95e2ce4a Michael Niedermayer
fi
786
787 c13e1abd Falk Hüffner
_restrict=
788
for restrict_keyword in restrict __restrict__ __restrict; do
789
  echo "void foo(char * $restrict_keyword p);" > $TMPC
790
  if $cc -c -o $TMPO $TMPC 2> /dev/null; then
791
    _restrict=$restrict_keyword
792
    break;
793
  fi
794
done
795
796 52b41d7f Fabrice Bellard
# test gcc version to see if vector builtins can be used
797
# currently only used on i386 for MMX builtins
798
cat > $TMPC << EOF
799
int main(void) { 
800
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
801
return 0;
802
#else
803
#error no vector builtins
804
#endif
805
}
806
EOF
807
808
builtin_vector=no
809
if $cc -o $TMPO $TMPC 2> /dev/null ; then
810
  builtin_vector=yes
811 a8721c09 Fabrice Bellard
fi
812
813
# dlopen/dlfcn.h probing
814
815
cat > $TMPC << EOF
816
#include <dlfcn.h>
817
int main( void ) { return (int) dlopen("foo", 0); }
818
EOF
819
820
ldl=-ldl
821
822 cf9d24ad Dan Christiansen
if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
823 a8721c09 Fabrice Bellard
dlfcn=yes
824
dlopen=yes
825
fi
826
827 cf9d24ad Dan Christiansen
if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
828 a8721c09 Fabrice Bellard
dlfcn=yes
829
dlopen=yes
830
ldl=""
831
fi
832
833
cat > $TMPC << EOF
834
int main( void ) { return (int) dlopen("foo", 0); }
835
EOF
836
837 cf9d24ad Dan Christiansen
if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1  ; then
838 a8721c09 Fabrice Bellard
dlopen=yes
839
fi
840
841 cf9d24ad Dan Christiansen
if $cc -o $TMPE $TMPC > /dev/null 2>&1  ; then
842 a8721c09 Fabrice Bellard
dlopen=yes
843
ldl=""
844
fi
845
846
if test "$vhook" = "default" ; then
847
  vhook="$dlopen"
848
fi
849
850 a86b921c Fabrice Bellard
##########################################
851
# imlib probe
852
853 a8721c09 Fabrice Bellard
cat > $TMPC << EOF
854
#include <X11/Xlib.h>
855
#include <Imlib2.h>
856
int main( void ) { return (int) imlib_load_font("foo"); }
857
EOF
858
859
imlib2=no
860 7802d373 Michael Niedermayer
if $cc -o $TMPE $TMPC -lImlib2 -lm > /dev/null 2>&1  ; then
861 a8721c09 Fabrice Bellard
imlib2=yes
862 52b41d7f Fabrice Bellard
fi
863
864 a86b921c Fabrice Bellard
##########################################
865
# freetype probe
866
867 04511d53 Philip Gladstone
cat > $TMPC << EOF
868
#include <ft2build.h>
869
int main( void ) { return (int) FT_Init_FreeType(0); }
870
EOF
871
872
freetype2=no
873 69db4e10 Slavik Gnatenko
if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
874 c3f6b472 Michael Niedermayer
  if freetype-config --version >/dev/null 2>&1 ; then
875 cf9d24ad Dan Christiansen
    if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs`  > /dev/null 2>&1 ; then
876 dee076fc François Revol
      freetype2=yes
877 04511d53 Philip Gladstone
    fi
878 dee076fc François Revol
  fi
879 04511d53 Philip Gladstone
fi
880
881 a86b921c Fabrice Bellard
##########################################
882
# SDL probe
883
884
cat > $TMPC << EOF
885
#include <SDL.h>
886 31319a8c Fabrice Bellard
#undef main /* We don't want SDL to override our main() */
887 a86b921c Fabrice Bellard
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
888
EOF
889
890
sdl_too_old=no
891
sdl=no
892 c3f6b472 Michael Niedermayer
if sdl-config --version >/dev/null 2>&1 ; then
893 cf9d24ad Dan Christiansen
if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs`  > /dev/null 2>&1  ; then
894 a86b921c Fabrice Bellard
_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
895
if test "$_sdlversion" -lt 121 ; then
896
sdl_too_old=yes
897
else
898
sdl=yes
899
fi
900
fi
901 c3f6b472 Michael Niedermayer
fi
902 a86b921c Fabrice Bellard
903 146ea952 Nicolas Boos
##########################################
904
# texi2html probe
905
906
texi2html=no
907
if texi2html -version >/dev/null 2>&1; then
908
texi2html=yes
909
fi
910
911 b2924696 Roman Shaposhnik
case "`$cc -v 2>&1 | grep version`" in
912 cf9d24ad Dan Christiansen
    *gcc*)
913
	CFLAGS="-Wall $CFLAGS"
914
	;;
915
    *)
916
	;;
917
esac
918
919 94a3401e Fabrice Bellard
if test "$sdl" = "no" ; then
920
   ffplay=no
921
fi
922
923 cddf3f45 Glenn Maynard
if test "$debug" = "yes"; then
924 7906085f Falk Hüffner
	CFLAGS="-g $CFLAGS"
925 cddf3f45 Glenn Maynard
fi
926
927
if test "$optimize" = "small"; then
928 98ca7790 Michael Niedermayer
#  CFLAGS=${CFLAGS//-O3/-Os}
929 553a6284 Michael Niedermayer
  CFLAGS="$CFLAGS -Os"
930
fi
931
932 cddf3f45 Glenn Maynard
if test "$optimize" = "yes"; then
933 b2924696 Roman Shaposhnik
    if test -n "`$cc -v 2>&1 | grep xlc`"; then
934 cf9d24ad Dan Christiansen
	CFLAGS="$CFLAGS -O5"
935
	LDFLAGS="$LDFLAGS -O5"
936
    else
937 7906085f Falk Hüffner
	CFLAGS="-O3 $CFLAGS"
938 cf9d24ad Dan Christiansen
    fi
939 cddf3f45 Glenn Maynard
fi
940
941 951bf3e6 Fabrice Bellard
if test x"$bindir" = x""; then
942
bindir="${prefix}/bin"
943
fi
944
945 23a65308 Fabrice Bellard
if test x"$mandir" = x""; then
946
mandir="${prefix}/man"
947
fi
948
949 de6d9b64 Fabrice Bellard
echo "Install prefix   $prefix"
950 0f3cb305 Fabrice Bellard
echo "Source path      $source_path"
951 de6d9b64 Fabrice Bellard
echo "C compiler       $cc"
952 4a908fbc Alex Beregszaszi
echo "make             $make"
953 a4adb608 Michael Niedermayer
echo "CPU              $cpu ($tune)"
954 0f3cb305 Fabrice Bellard
echo "Big Endian       $bigendian"
955 7f965c1c Chris Flerackers
echo "inttypes.h       $inttypes"
956 b5c950c4 Michael Niedermayer
echo "broken inttypes.h $emu_fast_int"
957 e41e8342 Fabrice Bellard
if test $cpu = "x86"; then
958 de6d9b64 Fabrice Bellard
echo "MMX enabled      $mmx"
959 52b41d7f Fabrice Bellard
echo "Vector Builtins  $builtin_vector"
960 e41e8342 Fabrice Bellard
fi
961
if test $cpu = "mips"; then
962 d46aba26 Leon van Stuivenberg
echo "MMI enabled      $mmi"
963 e41e8342 Fabrice Bellard
fi
964
if test $cpu = "powerpc"; then
965 ab6c65f6 Brian Foley
echo "AltiVec enabled  $altivec"
966 e41e8342 Fabrice Bellard
fi
967 de6d9b64 Fabrice Bellard
echo "gprof enabled    $gprof"
968 0147f198 François Revol
echo "zlib enabled     $zlib"
969 a6741398 Juanjo
echo "mp3lame enabled  $mp3lame"
970 81e0d0b4 Mark Hills
echo "vorbis enabled   $vorbis"
971 445ad18d Zdenek Kabelac
echo "faad enabled     $faad"
972
echo "faadbin enabled  $faadbin"
973 29d48296 Michael Niedermayer
echo "faac enabled     $faac"
974 5cbcf02c Fabrice Bellard
echo "a52 support      $a52"
975 57514323 Zdenek Kabelac
echo "a52 dlopened     $a52bin"
976 bba9b16c Michael Niedermayer
echo "pp support       $pp"
977 cddf3f45 Glenn Maynard
echo "debug symbols    $debug"
978
echo "optimize         $optimize"
979 bba9b16c Michael Niedermayer
echo "shared pp        $shared_pp"
980 47930f09 Philip Gladstone
echo "Video hooking    $vhook"
981 a86b921c Fabrice Bellard
echo "SDL support      $sdl"
982
if test $sdl_too_old = "yes"; then
983
echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support"
984
fi
985 1d0d55da Michael Niedermayer
echo "risky / patent encumbered codecs $risky"
986 68892110 Philip Gladstone
987
if test "$vhook" = "yes" ; then
988 47930f09 Philip Gladstone
echo "Imlib2 support   $imlib2"
989 04511d53 Philip Gladstone
echo "freetype support $freetype2"
990 68892110 Philip Gladstone
fi
991 f80f7964 Roman Shaposhnik
echo "Sun medialib support"  $sunmlib
992 9c3d33d6 Michael Niedermayer
echo "pthreads support"      $pthreads
993 bc634f6f Zdenek Kabelac
echo "AMR-NB float support"  $amr_nb
994
echo "AMR-NB fixed support"  $amr_nb_fixed
995 d663a1fd Michael Niedermayer
echo "AMR-WB float support"  $amr_wb
996 b2e3c528 Michael Niedermayer
if test "$gpl" = "no" ; then
997
echo "License: LGPL"
998
else
999
echo "License: GPL"
1000
fi
1001 de6d9b64 Fabrice Bellard
1002 980fc7b8 Fabrice Bellard
echo "Creating config.mak and config.h"
1003 de6d9b64 Fabrice Bellard
1004 980fc7b8 Fabrice Bellard
echo "# Automatically generated by configure - do not modify" > config.mak
1005 045ed63f Zdenek Kabelac
echo "/* Automatically generated by configure - do not modify */" > $TMPH
1006 de6d9b64 Fabrice Bellard
1007 980fc7b8 Fabrice Bellard
echo "prefix=$prefix" >> config.mak
1008 951bf3e6 Fabrice Bellard
echo "bindir=$bindir" >> config.mak
1009 23a65308 Fabrice Bellard
echo "mandir=$mandir" >> config.mak
1010 4a908fbc Alex Beregszaszi
echo "MAKE=$make" >> config.mak
1011 980fc7b8 Fabrice Bellard
echo "CC=$cc" >> config.mak
1012
echo "AR=$ar" >> config.mak
1013 be7109c1 Michael Niedermayer
echo "RANLIB=$ranlib" >> config.mak
1014 0f3cb305 Fabrice Bellard
echo "STRIP=$strip" >> config.mak
1015 75388c74 Michael Niedermayer
1016
# SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic.  Used when building 
1017
# shared modules on OS/X (vhook/Makefile).
1018
SHCFLAGS=$CFLAGS
1019
if test "$needmdynamicnopic" = yes; then
1020
   CFLAGS="$CFLAGS -mdynamic-no-pic"
1021
fi
1022
1023 a9b3f630 Nick Kurshev
echo "OPTFLAGS=$CFLAGS" >> config.mak
1024 75388c74 Michael Niedermayer
echo "SHCFLAGS=$SHCFLAGS">>config.mak
1025 0f3cb305 Fabrice Bellard
echo "LDFLAGS=$LDFLAGS" >> config.mak
1026 4baca069 Philip Gladstone
echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
1027 e1707f52 Michael Niedermayer
echo "SHFLAGS=$SHFLAGS" >> config.mak
1028 f3ec2d46 Slavik Gnatenko
echo "LIBPREF=$LIBPREF" >> config.mak
1029
echo "LIBSUF=$LIBSUF" >> config.mak
1030
echo "SLIBPREF=$SLIBPREF" >> config.mak
1031
echo "SLIBSUF=$SLIBSUF" >> config.mak
1032 951bf3e6 Fabrice Bellard
echo "EXESUF=$EXESUF" >> config.mak
1033 6852ac95 Romain Dolbeau
echo "TARGET_OS=$TARGET_OS" >> config.mak
1034 57514323 Zdenek Kabelac
if test "$cpu" = "x86" ; then
1035 980fc7b8 Fabrice Bellard
  echo "TARGET_ARCH_X86=yes" >> config.mak
1036 045ed63f Zdenek Kabelac
  echo "#define ARCH_X86 1" >> $TMPH
1037 0f3cb305 Fabrice Bellard
elif test "$cpu" = "armv4l" ; then
1038 6ed7422a Fabrice Bellard
  echo "TARGET_ARCH_ARMV4L=yes" >> config.mak
1039 045ed63f Zdenek Kabelac
  echo "#define ARCH_ARMV4L 1" >> $TMPH
1040 0f3cb305 Fabrice Bellard
elif test "$cpu" = "alpha" ; then
1041 91d1f1a4 Nick Kurshev
  echo "TARGET_ARCH_ALPHA=yes" >> config.mak
1042 045ed63f Zdenek Kabelac
  echo "#define ARCH_ALPHA 1" >> $TMPH
1043 35fedfc3 Philip Gladstone
elif test "$cpu" = "sparc64" ; then
1044
  echo "TARGET_ARCH_SPARC64=yes" >> config.mak
1045
  echo "#define ARCH_SPARC64 1" >> $TMPH
1046 bb476ff3 James Morrison
  echo "TARGET_ARCH_SPARC=yes" >> config.mak
1047
  echo "#define ARCH_SPARC 1" >> $TMPH
1048
elif test "$cpu" = "sparc" ; then
1049
  echo "TARGET_ARCH_SPARC=yes" >> config.mak
1050
  echo "#define ARCH_SPARC 1" >> $TMPH
1051 0f3cb305 Fabrice Bellard
elif test "$cpu" = "powerpc" ; then
1052
  echo "TARGET_ARCH_POWERPC=yes" >> config.mak
1053
  echo "#define ARCH_POWERPC 1" >> $TMPH
1054 9007f514 Romain Dolbeau
  if test $POWERPCMODE = "32bits"; then
1055
    echo "#define POWERPC_MODE_32BITS 1" >> $TMPH
1056
  else
1057
    echo "#define POWERPC_MODE_64BITS 1" >> $TMPH
1058
  fi
1059 e45a2872 Romain Dolbeau
  if test "$powerpc_perf" = "yes"; then
1060
    echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH
1061
  fi
1062 d46aba26 Leon van Stuivenberg
elif test "$cpu" = "mips" ; then
1063
  echo "TARGET_ARCH_MIPS=yes" >> config.mak
1064
  echo "#define ARCH_MIPS 1" >> $TMPH
1065 bdb2e37c Alex Beregszaszi
elif test "$cpu" = "sh4" ; then
1066
  echo "TARGET_ARCH_SH4=yes" >> config.mak
1067
  echo "#define ARCH_SH4 1" >> $TMPH
1068
fi
1069 a4adb608 Michael Niedermayer
echo "#define TUNECPU $TUNECPU" >> $TMPH
1070 0f3cb305 Fabrice Bellard
if test "$bigendian" = "yes" ; then
1071
  echo "WORDS_BIGENDIAN=yes" >> config.mak
1072
  echo "#define WORDS_BIGENDIAN 1" >> $TMPH
1073 91d1f1a4 Nick Kurshev
fi
1074 d2a9bddd Michael Niedermayer
if test "$inttypes" != "yes" ; then
1075
  echo "#define EMULATE_INTTYPES 1" >> $TMPH
1076 7f965c1c Chris Flerackers
fi
1077 b5c950c4 Michael Niedermayer
if test "$emu_fast_int" = "yes" ; then
1078 19d053c5 Roman Shaposhnik
  echo "#define EMULATE_FAST_INT 1" >> $TMPH
1079 b5c950c4 Michael Niedermayer
fi
1080 57514323 Zdenek Kabelac
if test "$mmx" = "yes" ; then
1081 980fc7b8 Fabrice Bellard
  echo "TARGET_MMX=yes" >> config.mak
1082 045ed63f Zdenek Kabelac
  echo "#define HAVE_MMX 1" >> $TMPH
1083 e82c5a8c Michael Niedermayer
  echo "#define __CPU__ 586" >> $TMPH
1084 de6d9b64 Fabrice Bellard
fi
1085 52b41d7f Fabrice Bellard
if test "$builtin_vector" = "yes" ; then
1086
  echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak
1087
  echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH
1088
fi
1089 d46aba26 Leon van Stuivenberg
if test "$mmi" = "yes" ; then
1090
  echo "TARGET_MMI=yes" >> config.mak
1091
  echo "#define HAVE_MMI 1" >> $TMPH
1092
fi
1093 ab6c65f6 Brian Foley
if test "$altivec" = "yes" ; then
1094
  echo "TARGET_ALTIVEC=yes" >> config.mak
1095
  echo "#define HAVE_ALTIVEC 1" >> $TMPH
1096 db40a39a Michael Niedermayer
  echo "// Enable the next line to use the reference C code instead of AltiVec" >> $TMPH
1097
  echo "// #define ALTIVEC_USE_REFERENCE_C_CODE 1" >> $TMPH
1098 a9a07762 Michael Niedermayer
  if test "$_altivec_h" = "yes" ; then
1099
    echo "#define HAVE_ALTIVEC_H 1" >> $TMPH
1100
  else
1101 e67e14d5 Alex Beregszaszi
    echo "#undef HAVE_ALTIVEC_H" >> $TMPH
1102 a9a07762 Michael Niedermayer
  fi
1103 ab6c65f6 Brian Foley
fi
1104 57514323 Zdenek Kabelac
if test "$gprof" = "yes" ; then
1105 980fc7b8 Fabrice Bellard
  echo "TARGET_GPROF=yes" >> config.mak
1106 045ed63f Zdenek Kabelac
  echo "#define HAVE_GPROF 1" >> $TMPH
1107 de6d9b64 Fabrice Bellard
fi
1108 5e4639e2 Glenn Maynard
if test "$localtime_r" = "yes" ; then
1109
  echo "#define HAVE_LOCALTIME_R 1" >> $TMPH
1110
fi
1111 68892110 Philip Gladstone
if test "$imlib2" = "yes" ; then
1112
  echo "HAVE_IMLIB2=yes" >> config.mak
1113
fi
1114 04511d53 Philip Gladstone
if test "$freetype2" = "yes" ; then
1115
  echo "HAVE_FREETYPE2=yes" >> config.mak
1116
fi
1117 f80f7964 Roman Shaposhnik
if test "$sunmlib" = "yes" ; then
1118
  echo "HAVE_MLIB=yes" >> config.mak
1119
  echo "#define HAVE_MLIB 1" >> $TMPH
1120
  extralibs="$extralibs -lmlib"
1121
fi
1122 9c3d33d6 Michael Niedermayer
if test "$pthreads" = "yes" ; then
1123
  echo "HAVE_PTHREADS=yes" >> config.mak
1124
  echo "#define HAVE_PTHREADS 1" >> $TMPH
1125 0abd6916 Michael Niedermayer
  if test $targetos != FreeBSD; then
1126 12043e1d Steven M. Schultz
     extralibs="$extralibs -lpthread"
1127
  fi
1128 9c3d33d6 Michael Niedermayer
fi
1129 a86b921c Fabrice Bellard
if test "$sdl" = "yes" ; then
1130
  echo "CONFIG_SDL=yes" >> config.mak
1131
  echo "SDL_LIBS=`sdl-config --libs`" >> config.mak
1132
  echo "SDL_CFLAGS=`sdl-config --cflags`" >> config.mak
1133
fi
1134 146ea952 Nicolas Boos
if test "$texi2html" = "yes"; then
1135
  echo "BUILD_DOC=yes" >> config.mak
1136
fi
1137 95e2ce4a Michael Niedermayer
if test "$have_lrintf" = "yes" ; then
1138
  echo "#define HAVE_LRINTF 1" >> $TMPH
1139
fi
1140 68892110 Philip Gladstone
if test "$vhook" = "yes" ; then
1141
  echo "BUILD_VHOOK=yes" >> config.mak
1142
  echo "#define HAVE_VHOOK 1" >> $TMPH
1143 9c938e77 Philip Gladstone
  extralibs="$extralibs $ldl"
1144 68892110 Philip Gladstone
fi
1145 57514323 Zdenek Kabelac
if test "$lshared" = "yes" ; then
1146 0319c531 Nick Kurshev
  echo "BUILD_SHARED=yes" >> config.mak
1147 5cbcf02c Fabrice Bellard
  echo "PIC=-fPIC" >> config.mak
1148 0319c531 Nick Kurshev
fi
1149 ef0bc4c9 François Revol
echo "EXTRALIBS=$extralibs" >> config.mak
1150 258207b7 Fabrice Bellard
version=`grep '#define FFMPEG_VERSION ' $source_path/libavcodec/avcodec.h |
1151
 cut -d '"' -f 2`
1152
echo "VERSION=$version" >>config.mak
1153 d771bcae Fabrice Bellard
# if you do not want to use encoders, disable that.
1154 045ed63f Zdenek Kabelac
echo "#define CONFIG_ENCODERS 1" >> $TMPH
1155 d771bcae Fabrice Bellard
echo "CONFIG_ENCODERS=yes" >> config.mak
1156
1157
# if you do not want to use decoders, disable that.
1158 045ed63f Zdenek Kabelac
echo "#define CONFIG_DECODERS 1" >> $TMPH
1159 d771bcae Fabrice Bellard
echo "CONFIG_DECODERS=yes" >> config.mak
1160
1161 5cbcf02c Fabrice Bellard
# AC3
1162
if test "$a52" = "yes" ; then
1163
  echo "#define CONFIG_AC3 1" >> $TMPH
1164
  echo "CONFIG_AC3=yes" >> config.mak
1165 d771bcae Fabrice Bellard
1166 5cbcf02c Fabrice Bellard
  if test "$a52bin" = "yes" ; then
1167
    echo "#define CONFIG_A52BIN 1" >> $TMPH
1168
    echo "CONFIG_A52BIN=yes" >> config.mak
1169
  fi
1170
fi
1171
1172 bba9b16c Michael Niedermayer
# PP
1173
if test "$pp" = "yes" ; then
1174
  echo "#define CONFIG_PP 1" >> $TMPH
1175
  echo "CONFIG_PP=yes" >> config.mak
1176
1177
  if test "$shared_pp" = "yes" ; then
1178
    echo "#define SHARED_PP 1" >> $TMPH
1179
    echo "SHARED_PP=yes" >> config.mak
1180
  fi
1181
fi
1182
1183 1eb2212e Fabrice Bellard
# mpeg audio high precision mode
1184
if test "$mpegaudio_hp" = "yes" ; then
1185
  echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPH
1186
fi
1187
1188 5cbcf02c Fabrice Bellard
if test "$v4l" = "yes" ; then
1189
  echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH
1190
  echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
1191
fi
1192
1193 8aa3ee32 Max Krasnyansky
if test "$dv1394" = "yes" ; then
1194
  echo "#define CONFIG_DV1394 1" >> $TMPH
1195
  echo "CONFIG_DV1394=yes" >> config.mak
1196
fi
1197
1198 adbc0510 Philip Gladstone
if test "$dlopen" = "yes" ; then
1199
  echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPH
1200
fi
1201
1202
if test "$dlfcn" = "yes" ; then
1203
  echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPH
1204
fi
1205
1206 5cbcf02c Fabrice Bellard
if test "$audio_oss" = "yes" ; then
1207
  echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
1208
  echo "CONFIG_AUDIO_OSS=yes" >> config.mak
1209 57514323 Zdenek Kabelac
fi
1210
1211 dfdfa47c François Revol
if test "$audio_beos" = "yes" ; then
1212
  echo "#define CONFIG_AUDIO_BEOS 1" >> $TMPH
1213
  echo "CONFIG_AUDIO_BEOS=yes" >> config.mak
1214
fi
1215
1216 5cbcf02c Fabrice Bellard
if test "$network" = "yes" ; then
1217
  echo "#define CONFIG_NETWORK 1" >> $TMPH
1218
  echo "CONFIG_NETWORK=yes" >> config.mak
1219 6ed7422a Fabrice Bellard
fi
1220 daf8e955 Fabrice Bellard
1221 0147f198 François Revol
if test "$zlib" = "yes" ; then
1222
  echo "#define CONFIG_ZLIB 1" >> $TMPH
1223
  echo "CONFIG_ZLIB=yes" >> config.mak
1224
fi
1225
1226 57514323 Zdenek Kabelac
if test "$mp3lame" = "yes" ; then
1227 045ed63f Zdenek Kabelac
  echo "#define CONFIG_MP3LAME 1" >> $TMPH
1228 a6741398 Juanjo
  echo "CONFIG_MP3LAME=yes" >> config.mak
1229
fi
1230
1231 81e0d0b4 Mark Hills
if test "$vorbis" = "yes" ; then
1232
  echo "#define CONFIG_VORBIS 1" >> $TMPH
1233
  echo "CONFIG_VORBIS=yes" >> config.mak
1234
fi
1235
1236 0fc50e58 Zdenek Kabelac
if test "$faad" = "yes" ; then
1237
  echo "#define CONFIG_FAAD 1" >> $TMPH
1238
  echo "CONFIG_FAAD=yes" >> config.mak
1239
fi
1240
1241
if test "$faadbin" = "yes" ; then
1242
  echo "#define CONFIG_FAADBIN 1" >> $TMPH
1243 445ad18d Zdenek Kabelac
  echo "CONFIG_FAADBIN=yes" >> config.mak
1244 0fc50e58 Zdenek Kabelac
fi
1245
1246 29d48296 Michael Niedermayer
if test "$faac" = "yes" ; then
1247
  echo "#define CONFIG_FAAC 1" >> $TMPH
1248
  echo "CONFIG_FAAC=yes" >> config.mak
1249
fi
1250
1251 732d9245 Bill Eldridge
if test "$mingw32" = "yes" ; then
1252
  echo "#define CONFIG_WIN32 1" >> $TMPH
1253
  echo "CONFIG_WIN32=yes" >> config.mak
1254 16806499 Michael Niedermayer
  echo "HAVE_W32THREADS=yes" >> config.mak
1255
  echo "#define HAVE_W32THREADS 1" >> $TMPH
1256 7eea5766 Fabrice Bellard
  echo "#ifndef __MINGW32__" >> $TMPH
1257 732d9245 Bill Eldridge
  echo "#define __MINGW32__ 1" >> $TMPH
1258 7eea5766 Fabrice Bellard
  echo "#endif" >> $TMPH
1259 3f027ca7 Felix Bünemann
fi
1260
1261 f3ec2d46 Slavik Gnatenko
if test "$os2" = "yes" ; then
1262
  echo "#define CONFIG_OS2 1" >> $TMPH
1263
  echo "CONFIG_OS2=yes" >> config.mak
1264
fi
1265
1266 6e023978 Roman Shaposhnik
if test "$TARGET_OS" = "SunOS" ; then
1267
  echo "#define CONFIG_SUNOS 1" >> $TMPH
1268
fi
1269
1270 90cee0c3 Michael Niedermayer
if test "$darwin" = "yes"; then
1271
  echo "#define CONFIG_DARWIN 1"  >> $TMPH
1272
  echo "CONFIG_DARWIN=yes" >> config.mak
1273
fi
1274
1275 57514323 Zdenek Kabelac
if test "$_malloc_h" = "yes" ; then
1276 045ed63f Zdenek Kabelac
  echo "#define HAVE_MALLOC_H 1" >> $TMPH
1277 3d204385 Nick Kurshev
else
1278 045ed63f Zdenek Kabelac
  echo "#undef  HAVE_MALLOC_H" >> $TMPH
1279 3d204385 Nick Kurshev
fi
1280
1281 57514323 Zdenek Kabelac
if test "$_memalign" = "yes" ; then
1282 045ed63f Zdenek Kabelac
  echo "#define HAVE_MEMALIGN 1" >> $TMPH
1283
else
1284
  echo "#undef  HAVE_MEMALIGN" >> $TMPH
1285
fi
1286
1287 da9b170c Michael Niedermayer
if test "$memalignhack" = "yes" ; then
1288
  echo "#define MEMALIGN_HACK 1" >> $TMPH
1289
fi
1290
1291
1292 26b35efb François Revol
if test "$netserver" = "yes" ; then
1293
  echo "#define CONFIG_BEOS_NETSERVER 1" >> $TMPH
1294
  echo "CONFIG_BEOS_NETSERVER=yes" >> config.mak
1295
fi
1296
1297 4baca069 Philip Gladstone
if test "$need_inet_aton" = "yes" ; then
1298
  echo "NEED_INET_ATON=yes" >> config.mak
1299
fi
1300
1301 57514323 Zdenek Kabelac
if test "$simpleidct" = "yes" ; then
1302 045ed63f Zdenek Kabelac
  echo "#define SIMPLE_IDCT 1" >> $TMPH
1303
fi
1304
1305 8154d2e0 Fabrice Bellard
if test "$ffserver" = "yes" ; then
1306
  echo "#define CONFIG_FFSERVER 1" >> $TMPH
1307
  echo "CONFIG_FFSERVER=yes" >> config.mak
1308
fi
1309
1310 a86b921c Fabrice Bellard
if test "$ffplay" = "yes" ; then
1311
  echo "CONFIG_FFPLAY=yes" >> config.mak
1312
fi
1313
1314 1d0d55da Michael Niedermayer
if test "$risky" = "yes" ; then
1315
  echo "#define CONFIG_RISKY 1" >> $TMPH
1316
  echo "CONFIG_RISKY=yes" >> config.mak
1317
fi
1318
1319 b2e3c528 Michael Niedermayer
if test "$gpl" = "yes" ; then
1320
  echo "#define CONFIG_GPL 1" >> $TMPH
1321
  echo "CONFIG_GPL=yes" >> config.mak
1322
fi
1323
1324 c13e1abd Falk Hüffner
echo "#define restrict $_restrict" >> $TMPH
1325
1326 bb801c97 Michael Niedermayer
if test "$optimize" = "small"; then
1327
  echo "#define always_inline"  >> $TMPH
1328
fi
1329
1330 0f3cb305 Fabrice Bellard
# build tree in object directory if source path is different from current one
1331
if test "$source_path_used" = "yes" ; then
1332 a382b927 Fabrice Bellard
    DIRS="libavformat libavcodec libavcodec/alpha libavcodec/armv4l libavcodec/i386 \
1333 5f6b58de Måns Rullgård
          libavcodec/ppc libavcodec/liba52 libavcodec/mlib libavcodec/libpostproc tests vhook"
1334
    FILES="Makefile libavformat/Makefile libavcodec/Makefile libavcodec/libpostproc/Makefile tests/Makefile vhook/Makefile"
1335 0f3cb305 Fabrice Bellard
    for dir in $DIRS ; do
1336
            mkdir -p $dir
1337
    done
1338
    for f in $FILES ; do
1339
        ln -sf $source_path/$f $f
1340
    done
1341
fi
1342
echo "SRC_PATH=$source_path" >> config.mak
1343
1344 d663a1fd Michael Niedermayer
if test "$amr_wb" = "yes" ; then
1345
  echo "#define AMR_WB 1" >> $TMPH
1346
  echo "AMR_WB=yes" >> config.mak
1347
  echo
1348
  echo "AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204"
1349
  echo "V5.1.0 from "
1350
  echo "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip"
1351
  echo "and extracted the source to libavcodec/amrwb_float"
1352
  echo
1353
fi
1354
1355 891f64b3 joca@rixmail.se
if test "$amr_nb" = "yes" ; then
1356
  echo "#define AMR_NB 1" >> $TMPH
1357
  echo "AMR_NB=yes" >> config.mak
1358
  echo
1359 bc634f6f Zdenek Kabelac
if test "$amr_nb_fixed" = "yes" ; then
1360
  echo "AMR_NB_FIXED=yes" >> config.mak
1361
  echo "#define AMR_NB_FIXED 1" >> $TMPH
1362
  echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "
1363
  echo "REL-5 version 5.1.0 from "
1364 891f64b3 joca@rixmail.se
  echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-510.zip"
1365
  echo "and extracted src to libavcodec/amr"
1366 bc634f6f Zdenek Kabelac
  echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile."
1367
  echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
1368
  echo
1369
else
1370
  echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
1371
  echo "REL-5 V5.1.0 from "
1372
  echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-510.zip"
1373
  echo "and extracted the source to libavcodec/amr_float"
1374 821e46f4 Michael Niedermayer
  echo "and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h"
1375 891f64b3 joca@rixmail.se
  echo
1376
fi
1377
1378 bc634f6f Zdenek Kabelac
fi
1379
1380 a7c02e25 Zdenek Kabelac
diff $TMPH config.h >/dev/null 2>&1
1381 045ed63f Zdenek Kabelac
if test $? -ne 0 ; then
1382
	mv -f $TMPH config.h
1383 3d204385 Nick Kurshev
else
1384 045ed63f Zdenek Kabelac
	echo "config.h is unchanged"
1385 3d204385 Nick Kurshev
fi
1386
1387 f3ec2d46 Slavik Gnatenko
rm -f $TMPO $TMPC $TMPE $TMPS $TMPH