|
|
|
@ -77,7 +77,7 @@ Help options: |
|
|
|
|
--list-filters show all available filters |
|
|
|
|
|
|
|
|
|
Standard options: |
|
|
|
|
--logfile=FILE log tests and output to FILE [config.log] |
|
|
|
|
--logfile=FILE log tests and output to FILE [avbuild/config.log] |
|
|
|
|
--disable-logging do not log configure debug information |
|
|
|
|
--prefix=PREFIX install in PREFIX [$prefix_default] |
|
|
|
|
--bindir=DIR install binaries in DIR [PREFIX/bin] |
|
|
|
@ -2495,7 +2495,7 @@ texi2html_deps="doc" |
|
|
|
|
|
|
|
|
|
# default parameters |
|
|
|
|
|
|
|
|
|
logfile="config.log" |
|
|
|
|
logfile="avbuild/config.log" |
|
|
|
|
|
|
|
|
|
# installation paths |
|
|
|
|
prefix_default="/usr/local" |
|
|
|
@ -2808,6 +2808,7 @@ disable_components(){ |
|
|
|
|
|
|
|
|
|
map 'disable_components $v' $LIBRARY_LIST |
|
|
|
|
|
|
|
|
|
mkdir -p avbuild |
|
|
|
|
echo "# $0 $LIBAV_CONFIGURATION" > $logfile |
|
|
|
|
set >> $logfile |
|
|
|
|
|
|
|
|
@ -4123,7 +4124,7 @@ esc(){ |
|
|
|
|
echo "$*" | sed 's/%/%25/g;s/:/%3a/g' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" >config.fate |
|
|
|
|
echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" > avbuild/config.fate |
|
|
|
|
|
|
|
|
|
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable_weak pic |
|
|
|
|
|
|
|
|
@ -5210,9 +5211,9 @@ fi # test "$quiet" != "yes" |
|
|
|
|
|
|
|
|
|
test -e Makefile || echo "include $source_path/Makefile" > Makefile |
|
|
|
|
|
|
|
|
|
config_files="$TMPH config.mak" |
|
|
|
|
config_files="$TMPH avbuild/config.mak" |
|
|
|
|
|
|
|
|
|
cat > config.mak <<EOF |
|
|
|
|
cat > avbuild/config.mak <<EOF |
|
|
|
|
# Automatically generated by configure - do not modify! |
|
|
|
|
LIBAV_CONFIGURATION=$LIBAV_CONFIGURATION |
|
|
|
|
prefix=$prefix |
|
|
|
@ -5323,18 +5324,18 @@ get_version(){ |
|
|
|
|
file=$source_path/$lcname/version.h |
|
|
|
|
eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") |
|
|
|
|
eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO |
|
|
|
|
eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak |
|
|
|
|
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak |
|
|
|
|
eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> config.mak |
|
|
|
|
eval echo "${lcname}_VERSION=\$${name}_VERSION" >> avbuild/config.mak |
|
|
|
|
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> avbuild/config.mak |
|
|
|
|
eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> avbuild/config.mak |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
map 'get_version $v' $LIBRARY_LIST |
|
|
|
|
|
|
|
|
|
map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> config.mak' $LIBRARY_LIST |
|
|
|
|
map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> avbuild/config.mak' $LIBRARY_LIST |
|
|
|
|
|
|
|
|
|
print_program_extralibs(){ |
|
|
|
|
eval "program_extralibs=\$${1}_extralibs" |
|
|
|
|
eval echo "EXTRALIBS-${1}=${program_extralibs}" >> config.mak |
|
|
|
|
eval echo "EXTRALIBS-${1}=${program_extralibs}" >> avbuild/config.mak |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
map 'print_program_extralibs $v' $PROGRAM_LIST |
|
|
|
@ -5373,7 +5374,7 @@ echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH |
|
|
|
|
|
|
|
|
|
# Do not overwrite an unchanged config.h to avoid superfluous rebuilds. |
|
|
|
|
cp_if_changed $TMPH config.h |
|
|
|
|
touch .config |
|
|
|
|
touch avbuild/.config |
|
|
|
|
|
|
|
|
|
enabled yasm && cp_if_changed $TMPASM config.asm |
|
|
|
|
|
|
|
|
|