|
@@ -1,6 +1,6 @@
|
|
|
#!/bin/sh
|
|
|
#
|
|
|
-# FFmpeg configure script
|
|
|
+# Libav configure script
|
|
|
#
|
|
|
# Copyright (c) 2000-2002 Fabrice Bellard
|
|
|
# Copyright (c) 2005-2008 Diego Biurrun
|
|
@@ -44,9 +44,9 @@ if test "$E1" != 0 || test "$E2" = 0; then
|
|
|
echo "No compatible shell script interpreter found."
|
|
|
echo "This configure script requires a POSIX-compatible shell"
|
|
|
echo "such as bash or ksh."
|
|
|
- echo "THIS IS NOT A BUG IN FFMPEG, DO NOT REPORT IT AS SUCH."
|
|
|
+ echo "THIS IS NOT A BUG IN LIBAV, DO NOT REPORT IT AS SUCH."
|
|
|
echo "Instead, install a working POSIX-compatible shell."
|
|
|
- echo "Disabling this configure test will create a broken FFmpeg."
|
|
|
+ echo "Disabling this configure test will create a broken Libav."
|
|
|
if test "$BASH_VERSION" = '2.04.0(1)-release'; then
|
|
|
echo "This bash version ($BASH_VERSION) is broken on your platform."
|
|
|
echo "Upgrade to a later version if available."
|
|
@@ -238,7 +238,7 @@ Advanced options (experts only):
|
|
|
--enable-sram allow use of on-chip SRAM
|
|
|
--disable-symver disable symbol versioning
|
|
|
|
|
|
-Developer options (useful when working on FFmpeg itself):
|
|
|
+Developer options (useful when working on Libav itself):
|
|
|
--disable-debug disable debugging symbols
|
|
|
--enable-debug=LEVEL set the debug level [$debuglevel]
|
|
|
--disable-optimizations disable compiler optimizations
|
|
@@ -280,7 +280,7 @@ die(){
|
|
|
|
|
|
If you think configure made a mistake, make sure you are using the latest
|
|
|
version from Git. If the latest version fails, report the problem to the
|
|
|
-ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
|
|
|
+libav-user@libav.org mailing list or IRC #libav on irc.freenode.net.
|
|
|
EOF
|
|
|
if disabled logging; then
|
|
|
cat <<EOF
|
|
@@ -1672,7 +1672,7 @@ for v in "$@"; do
|
|
|
r=${v#*=}
|
|
|
l=${v%"$r"}
|
|
|
r=$(sh_quote "$r")
|
|
|
- FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
|
|
|
+ LIBAV_CONFIGURATION="${LIBAV_CONFIGURATION# } ${l}${r}"
|
|
|
done
|
|
|
|
|
|
find_things(){
|
|
@@ -1784,7 +1784,7 @@ done
|
|
|
|
|
|
disabled logging && logfile=/dev/null
|
|
|
|
|
|
-echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
|
|
|
+echo "# $0 $LIBAV_CONFIGURATION" > $logfile
|
|
|
set >> $logfile
|
|
|
|
|
|
test -n "$cross_prefix" && enable cross_compile
|
|
@@ -2344,7 +2344,7 @@ case $target_os in
|
|
|
openbsd)
|
|
|
enable malloc_aligned
|
|
|
# On OpenBSD 4.5. the compiler does not use PIC unless
|
|
|
- # explicitly using -fPIC. FFmpeg builds fine without PIC,
|
|
|
+ # explicitly using -fPIC. Libav builds fine without PIC,
|
|
|
# however the generated executable will not do anything
|
|
|
# (simply quits with exit-code 1, no crash, no output).
|
|
|
# Thus explicitly enable PIC here.
|
|
@@ -2369,7 +2369,8 @@ case $target_os in
|
|
|
enable malloc_aligned
|
|
|
gas="gas-preprocessor.pl $cc"
|
|
|
enabled ppc && add_asflags -force_cpusubtype_ALL
|
|
|
- SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
|
|
|
+ SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
|
|
|
+ enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
|
|
|
strip="${strip} -x"
|
|
|
add_ldflags -Wl,-dynamic,-search_paths_first
|
|
|
SLIBSUF=".dylib"
|
|
@@ -2478,7 +2479,7 @@ case $target_os in
|
|
|
;;
|
|
|
esac
|
|
|
|
|
|
-echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$FFMPEG_CONFIGURATION" >config.fate
|
|
|
+echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate
|
|
|
|
|
|
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
|
|
|
|
|
@@ -3201,9 +3202,9 @@ config_files="$TMPH config.mak"
|
|
|
|
|
|
cat > config.mak <<EOF
|
|
|
# Automatically generated by configure - do not modify!
|
|
|
-ifndef FFMPEG_CONFIG_MAK
|
|
|
-FFMPEG_CONFIG_MAK=1
|
|
|
-FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION
|
|
|
+ifndef LIBAV_CONFIG_MAK
|
|
|
+LIBAV_CONFIG_MAK=1
|
|
|
+LIBAV_CONFIGURATION=$LIBAV_CONFIGURATION
|
|
|
prefix=$prefix
|
|
|
LIBDIR=\$(DESTDIR)$libdir
|
|
|
SHLIBDIR=\$(DESTDIR)$shlibdir
|
|
@@ -3292,10 +3293,10 @@ get_version LIBAVFILTER libavfilter/avfilter.h
|
|
|
|
|
|
cat > $TMPH <<EOF
|
|
|
/* Automatically generated by configure - do not modify! */
|
|
|
-#ifndef FFMPEG_CONFIG_H
|
|
|
-#define FFMPEG_CONFIG_H
|
|
|
-#define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
|
|
|
-#define FFMPEG_LICENSE "$(c_escape $license)"
|
|
|
+#ifndef LIBAV_CONFIG_H
|
|
|
+#define LIBAV_CONFIG_H
|
|
|
+#define LIBAV_CONFIGURATION "$(c_escape $LIBAV_CONFIGURATION)"
|
|
|
+#define LIBAV_LICENSE "$(c_escape $license)"
|
|
|
#define FFMPEG_DATADIR "$(eval c_escape $datadir)"
|
|
|
#define CC_TYPE "$cc_type"
|
|
|
#define CC_VERSION $cc_version
|
|
@@ -3346,8 +3347,8 @@ LAVFI_TESTS=$(print_enabled -n _test $LAVFI_TESTS)
|
|
|
SEEK_TESTS=$(print_enabled -n _test $SEEK_TESTS)
|
|
|
EOF
|
|
|
|
|
|
-echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
|
|
|
-echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
|
|
|
+echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
|
|
|
+echo "endif # LIBAV_CONFIG_MAK" >> config.mak
|
|
|
|
|
|
# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
|
|
|
cp_if_changed $TMPH config.h
|
|
@@ -3411,10 +3412,10 @@ Cflags: -I\${includedir}
|
|
|
EOF
|
|
|
}
|
|
|
|
|
|
-pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION"
|
|
|
-pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs"
|
|
|
-pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
|
|
|
-pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
|
|
|
-pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs"
|
|
|
-pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION"
|
|
|
-pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
|
|
|
+pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION"
|
|
|
+pkgconfig_generate libavcodec "Libav codec library" "$LIBAVCODEC_VERSION" "$extralibs"
|
|
|
+pkgconfig_generate libavformat "Libav container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
|
|
|
+pkgconfig_generate libavdevice "Libav device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
|
|
|
+pkgconfig_generate libavfilter "Libav video filtering library" "$LIBAVFILTER_VERSION" "$extralibs"
|
|
|
+pkgconfig_generate libpostproc "Libav post processing library" "$LIBPOSTPROC_VERSION"
|
|
|
+pkgconfig_generate libswscale "Libav image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
|