X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=52f9c3e503ecfe954f7225a2c64a1f048323c036;hb=cd78208bd6699293b26f3a657b9148a26bab1237;hp=40ea5154fbd2edcd5cb753f4a045be689299bdc8;hpb=4c27207c12a5b07f54114885feb14d7ccf05a82d;p=ffmpeg diff --git a/configure b/configure index 40ea5154fbd..52f9c3e503e 100755 --- a/configure +++ b/configure @@ -75,6 +75,7 @@ show_help(){ echo " --enable-shared build shared libraries [no]" echo " --enable-gpl allow use of GPL code, the resulting libs" echo " and binaries will be under GPL [no]" + echo " --enable-version3 upgrade (L)GPL to version 3 [no]" echo " --enable-nonfree allow use of nonfree code, the resulting libs" echo " and binaries will be unredistributable [no]" echo " --disable-ffmpeg disable ffmpeg build" @@ -100,6 +101,8 @@ show_help(){ echo " --disable-golomb disable Golomb code" echo " --disable-mdct disable MDCT code" echo " --disable-rdft disable RDFT code" + echo " --disable-vaapi disable VAAPI code" + echo " --disable-vdpau disable VDPAU code" echo " --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)" echo " --enable-hardcoded-tables use hardcoded tables instead of runtime generation" echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers" @@ -128,6 +131,8 @@ show_help(){ echo " --enable-protocol=NAME enable protocol NAME" echo " --disable-protocol=NAME disable protocol NAME" echo " --disable-protocols disable all protocols" + echo " --disable-indev=NAME disable input device NAME" + echo " --disable-outdev=NAME disable output device NAME" echo " --disable-indevs disable input devices" echo " --disable-outdevs disable output devices" echo " --disable-devices disable all devices" @@ -149,8 +154,8 @@ show_help(){ echo "External library support:" echo " --enable-avisynth enable reading of AVISynth script files [no]" echo " --enable-bzlib enable bzlib [autodetect]" - echo " --enable-libamr-nb enable libamr-nb floating point audio codec [no]" - echo " --enable-libamr-wb enable libamr-wb floating point audio codec [no]" + echo " --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]" + echo " --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]" echo " --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394" echo " and libraw1394 [no]" echo " --enable-libdirac enable Dirac support via libdirac [no]" @@ -185,6 +190,7 @@ show_help(){ echo " --nm=NM use nm tool" echo " --as=AS use assembler AS [$as_default]" echo " --cc=CC use C compiler CC [$cc_default]" + echo " --ld=LD use linker LD" echo " --host-cc=HOSTCC use host C compiler HOSTCC" echo " --host-cflags=HCFLAGS use HCFLAGS when compiling for host" echo " --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host" @@ -278,6 +284,12 @@ c_escape(){ echo "$*" | sed 's/["\\]/\\\0/g' } +sh_quote(){ + v=$(echo "$1" | sed "s/'/'\\\\''/g") + test "$v" = "${v#*[ |&;<>()$\`\\\"\'*?\[\]#~=%]}" || v="'$v'" + echo "$v" +} + set_all(){ value=$1 shift @@ -500,8 +512,16 @@ append(){ eval "$var=\"\$$var $*\"" } +add_cppflags(){ + append CPPFLAGS $($filter_cppflags "$@") +} + add_cflags(){ - append CFLAGS "$@" + append CFLAGS $($filter_cflags "$@") +} + +add_asflags(){ + append ASFLAGS $($filter_asflags "$@") } add_ldflags(){ @@ -521,21 +541,21 @@ check_cc(){ log check_cc "$@" cat > $TMPC log_file $TMPC - check_cmd $cc $CFLAGS "$@" -c -o $TMPO $TMPC + check_cmd $cc $CPPFLAGS $CFLAGS "$@" -c -o $TMPO $TMPC } check_cpp(){ log check_cpp "$@" cat > $TMPC log_file $TMPC - check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC + check_cmd $cc $CPPFLAGS $CFLAGS "$@" -E -o $TMPO $TMPC } check_as(){ log check_as "$@" cat > $TMPC log_file $TMPC - check_cmd $as $CFLAGS "$@" -c -o $TMPO $TMPC + check_cmd $as $CPPFLAGS $ASFLAGS "$@" -c -o $TMPO $TMPC } check_asm(){ @@ -564,12 +584,21 @@ check_ld(){ for f; do test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f" done - check_cmd $cc $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs + check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs +} + +check_cppflags(){ + log check_cppflags "$@" + set -- $($filter_cppflags "$@") + check_cc "$@" </dev/null | grep -qi gcc; then cc_type=gcc elif $cc --version 2>/dev/null | grep -q Intel; then @@ -1422,7 +1506,7 @@ elif $cc -v 2>&1 | grep -q xlc; then cc_type=xlc elif $cc -V 2>/dev/null | grep -q Compaq; then cc_type=ccc - DEPEND_CMD='$(CC) $(CFLAGS) -M $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"' + DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -M' debuglevel=3 add_ldflags -Wl,-z,now # calls to libots crash without this elif $cc --vsn 2>/dev/null | grep -q RVCT; then @@ -1436,21 +1520,146 @@ elif $cc --vsn 2>/dev/null | grep -q RVCT; then die "Error creating armcc configuration file." cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc" as_default="${cross_prefix}gcc" +elif $cc -version 2>/dev/null | grep -q TMS470; then + cc_type=tms470 + cc="$cc --gcc --abi=eabi -eo=.o -mc -me" + CC_O='-fr=$(@D)' + as_default="${cross_prefix}gcc" + ld_default="${cross_prefix}gcc" + dep_cc_default="${cross_prefix}gcc" + TMPO=$(basename $TMPC .c).o + append TMPFILES $TMPO + add_cflags -D__gnuc_va_list=va_list -D__USER_LABEL_PREFIX__= + DEPFLAGS='$(CPPFLAGS) -MM' + filter_cflags=tms470_flags + tms470_flags(){ + for flag; do + case $flag in + -march=*|-mcpu=*) + case "${flag#*=}" in + armv7-a|cortex-a*) echo -mv=7a8 ;; + armv7-r|cortex-r*) echo -mv=7r4 ;; + armv7-m|cortex-m*) echo -mv=7m3 ;; + armv6*|arm11*) echo -mv=6 ;; + armv5*e|arm[79]*e*|arm9[24]6*|arm96*|arm102[26]) + echo -mv=5e ;; + armv4*|arm7*|arm9[24]*) echo -mv=4 ;; + esac + ;; + -mfpu=neon) echo --float_support=vfpv3 --neon ;; + -mfpu=vfp) echo --float_support=vfpv2 ;; + -mfpu=softvfp) echo --float_support=vfplib ;; + -Os) echo -O3 -mf=2 ;; + -O[0-3]) echo $flag -mf=5 ;; + -g) echo -g -mn ;; + esac + done + } fi test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" -set_default as +: ${as_default:=$cc} +: ${dep_cc_default:=$cc} +: ${ld_default:=$cc} +set_default as dep_cc ld + +add_cflags $extra_cflags +add_asflags $extra_cflags if test -n "$sysroot"; then case "$cc_type" in gcc) - add_cflags --sysroot="$sysroot" + add_cppflags --sysroot="$sysroot" add_ldflags --sysroot="$sysroot" ;; + tms470) + add_cppflags -I"$sysinclude" + add_ldflags --sysroot="$sysroot" + ;; esac fi +# Add processor-specific flags +case $cpu in + 601|ppc601|PowerPC601) + cpuflags="-mcpu=601" + ;; + 603*|ppc603*|PowerPC603*) + cpuflags="-mcpu=603" + ;; + 604*|ppc604*|PowerPC604*) + cpuflags="-mcpu=604" + ;; + G3|g3|75*|ppc75*|PowerPC75*) + cpuflags="-mcpu=750 -mpowerpc-gfxopt" + ;; + G4|g4|745*|ppc745*|PowerPC745*) + cpuflags="-mcpu=7450 -mpowerpc-gfxopt" + ;; + 74*|ppc74*|PowerPC74*) + cpuflags="-mcpu=7400 -mpowerpc-gfxopt" + ;; + G5|g5|970|ppc970|PowerPC970|power4*|Power4*) + cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64" + ;; + Cell|CELL|cell) + cpuflags="-mcpu=cell" + enable ldbrx + ;; + # targets that do NOT support conditional mov (cmov) + i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) + cpuflags="-march=$cpu" + disable cmov + ;; + # targets that do support conditional mov (cmov) + i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2) + cpuflags="-march=$cpu" + enable cmov + enable fast_cmov + ;; + # targets that do support conditional mov but on which it's slow + pentium4|pentium4m|prescott|nocona) + cpuflags="-march=$cpu" + enable cmov + disable fast_cmov + ;; + sparc64) + cpuflags="-mcpu=v9" + ;; + arm11*|cortex*) + cpuflags="-mcpu=$cpu" + enable fast_unaligned + ;; + armv[67]*) + cpuflags="-march=$cpu" + enable fast_unaligned + ;; + armv*) + cpuflags="-march=$cpu" + ;; + arm*) + cpuflags="-mcpu=$cpu" + ;; + ev4|ev45|ev5|ev56|pca56|ev6|ev67) + enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu" + ;; + bf*) + cpuflags="-mcpu=$cpu" + ;; + mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef]) + cpuflags="-march=$cpu" + ;; + generic) + ;; + *) + echo "WARNING: Unknown CPU \"$cpu\", ignored." + ;; +esac + +add_cflags $cpuflags +add_asflags $cpuflags + # compiler sanity check check_exec < EOF -check_cc -D_LARGEFILE_SOURCE < EOF @@ -1477,6 +1687,7 @@ case "$arch" in arch="alpha" enable fast_64bit check_cflags -mieee + pic=$shared ;; arm|armv[4567]*l) arch="arm" @@ -1489,23 +1700,29 @@ case "$arch" in ia64) arch="ia64" enable fast_64bit + pic=$shared ;; m68k) arch="m68k" ;; mips|mipsel|IP*) arch="mips" + pic=$shared ;; mips64) arch="mips" + subarch="mips64" enable fast_64bit + pic=$shared ;; parisc|hppa) arch="parisc" + pic=$shared ;; parisc64|hppa64) arch="parisc" enable fast_64bit + pic=$shared ;; "Power Macintosh"|ppc|powerpc) arch="ppc" @@ -1513,6 +1730,7 @@ case "$arch" in ;; ppc64) arch="ppc" + subarch="ppc64" enable fast_64bit enable fast_unaligned ;; @@ -1524,11 +1742,13 @@ case "$arch" in ;; sparc) arch="sparc" + pic=$shared ;; sun4u|sparc64) arch="sparc" subarch="sparc64" enable fast_64bit + pic=$shared ;; i386|i486|i586|i686|i86pc|BePC) arch="x86" @@ -1541,7 +1761,7 @@ case "$arch" in enable cmov enable fast_cmov enable fast_unaligned - check_cc < 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || die "ERROR: MinGW runtime version must be >= 3.15." - enabled_any avisynth vfwcap_demuxer && + enabled_any avisynth vfwcap_indev && { check_cpp_condition w32api.h "(__W32API_MAJOR_VERSION > 3) || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION >= 13)" || - die "ERROR: avisynth and vfwcap_demuxer require w32api version 3.13 or later."; } + die "ERROR: avisynth and vfwcap_indev require w32api version 3.13 or later."; } fi ;; cygwin*) @@ -1694,6 +1924,10 @@ case $target_os in SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib' enable dos_paths ;; + gnu/kfreebsd) + ;; + gnu) + ;; *) die "Unknown OS '$target_os'." @@ -1746,111 +1980,17 @@ die_license_disabled gpl libxvid die_license_disabled gpl postproc die_license_disabled gpl x11grab -die_license_disabled nonfree libamr_nb -die_license_disabled nonfree libamr_wb die_license_disabled nonfree libfaac +die_license_disabled version3 libopencore_amrnb +die_license_disabled version3 libopencore_amrwb -check_deps $ARCH_EXT_LIST - -test -z "$need_memalign" && need_memalign="$mmx" +enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; } -#Darwin CC versions -if test $target_os = darwin; then - if enabled xlc; then - add_cflags -qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto - else - add_cflags -pipe - check_cflags -force_cpusubtype_ALL - check_cflags -Wno-sign-compare - enabled shared || check_cflags -mdynamic-no-pic - fi -fi +check_deps $ARCH_EXT_LIST disabled optimizations || check_cflags -fomit-frame-pointer -# Add processor-specific flags -if test $cpu != "generic"; then - warn_altivec(){ - $1 altivec && echo "WARNING: Tuning for $2 but AltiVec $1."; - } - case $cpu in - 601|ppc601|PowerPC601) - add_cflags -mcpu=601 - warn_altivec enabled PPC601 - ;; - 603*|ppc603*|PowerPC603*) - add_cflags -mcpu=603 - warn_altivec enabled PPC603 - ;; - 604*|ppc604*|PowerPC604*) - add_cflags -mcpu=604 - warn_altivec enabled PPC604 - ;; - G3|g3|75*|ppc75*|PowerPC75*) - add_cflags -mcpu=750 -mpowerpc-gfxopt - warn_altivec enabled PPC75x - ;; - G4|g4|745*|ppc745*|PowerPC745*) - add_cflags -mcpu=7450 -mpowerpc-gfxopt - warn_altivec disabled PPC745x - ;; - 74*|ppc74*|PowerPC74*) - add_cflags -mcpu=7400 -mpowerpc-gfxopt - warn_altivec disabled PPC74xx - ;; - G5|g5|970|ppc970|PowerPC970|power4*|Power4*) - add_cflags -mcpu=970 -mpowerpc-gfxopt -mpowerpc64 - warn_altivec disabled PPC970 - enable ppc64 - ;; - Cell|CELL|cell) - add_cflags -mcpu=cell - warn_altivec disabled Cell - enable ppc64 ldbrx - ;; - # targets that do NOT support conditional mov (cmov) - i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) - add_cflags -march=$cpu - disable cmov - ;; - # targets that do support conditional mov (cmov) - i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2) - add_cflags -march=$cpu - enable cmov - enable fast_cmov - ;; - # targets that do support conditional mov but on which it's slow - pentium4|pentium4m|prescott|nocona) - add_cflags -march=$cpu - enable cmov - disable fast_cmov - ;; - sparc64) - add_cflags -mcpu=v9 - ;; - arm11*|cortex*) - add_cflags -mcpu=$cpu - enable fast_unaligned - ;; - armv*) - add_cflags -march=$cpu - ;; - arm*) - add_cflags -mcpu=$cpu - ;; - ev4|ev45|ev5|ev56|pca56|ev6|ev67) - enabled ccc && add_cflags -arch $cpu || add_cflags -mcpu=$cpu - ;; - bf*) - add_cflags -mcpu=$cpu - ;; - *) - echo "WARNING: Unknown CPU \"$cpu\", ignored." - ;; - esac -fi - check_cc < -int main(void) { return ($func(3.999f) > 0)?0:1; } -EOF -done +check_func llrint +check_func log2 +check_func lrint +check_func lrintf +check_func round +check_func roundf +check_func truncf # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32 -enabled libamr_nb && require libamrnb amrnb/interf_dec.h Decoder_Interface_init -lamrnb -lm -enabled libamr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm enabled libdirac && add_cflags $(pkg-config --cflags dirac) && require libdirac libdirac_decoder/dirac_parser.h dirac_decoder_init -ldirac_decoder && require libdirac libdirac_encoder/dirac_encoder.h dirac_encoder_init -ldirac_encoder @@ -2049,6 +2209,8 @@ enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad enabled libgsm && require libgsm gsm.h gsm_create -lgsm enabled libmp3lame && require libmp3lame lame/lame.h lame_init -lmp3lame -lm enabled libnut && require libnut libnut.h nut_demuxer_init -lnut +enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb -lm +enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -lm enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg enabled libschroedinger && add_cflags $(pkg-config --cflags schroedinger-1.0) && require libschroedinger schroedinger/schro.h schro_init $(pkg-config --libs schroedinger-1.0) @@ -2070,17 +2232,6 @@ if enabled libdc1394; then die "ERROR: No version of libdc1394 found " fi - -_restrict= -for restrict_keyword in restrict __restrict__ __restrict; do - check_cc < /dev/null 2>&1 && enable texi2html || disable texi2html -########################################## -# Network check - if enabled network; then check_type "sys/types.h sys/socket.h" socklen_t # Prefer arpa/inet.h over winsock2 if check_header arpa/inet.h ; then check_func closesocket elif check_header winsock2.h ; then - network_extralibs="-lws2_32" + check_func_headers winsock2.h closesocket -lws2 && \ + network_extralibs="-lws2" || \ + { check_func_headers winsock2.h closesocket -lws2_32 && \ + network_extralibs="-lws2_32"; } check_type ws2tcpip.h socklen_t - check_func_headers winsock2.h closesocket + else + disable network fi fi -########################################## -# IPv6 check - -enabled network && enabled ipv6 && check_ld < #include #include @@ -2159,11 +2308,10 @@ check_header dev/ic/bt8xx.h check_header sys/soundcard.h check_header soundcard.h -check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound +enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound -check_lib2 jack/jack.h jack_client_open -ljack +enabled jack_indev && check_lib2 jack/jack.h jack_client_open -ljack -# deal with the X11 frame grabber enabled x11grab && check_header X11/Xlib.h && check_header X11/extensions/XShm.h && @@ -2208,7 +2356,6 @@ fi check_cflags -fno-math-errno check_cflags -fno-signed-zeros -# add some flags for Intel C Compiler if enabled icc; then # Just warnings, no remarks check_cflags -w1 @@ -2232,17 +2379,11 @@ elif enabled ccc; then add_cflags -msg_disable nomainieee add_cflags -msg_disable ptrmismatch1 add_cflags -msg_disable unreachcode +elif enabled gcc; then + check_cflags -fno-tree-vectorize fi -# PIC flags for shared library objects where they are needed -if enabled shared; then - # LIBOBJFLAGS may have already been set in the OS configuration - if test -z "$LIBOBJFLAGS" ; then - case "${subarch-$arch}" in - x86_64|ia64|alpha|sparc*|power*|parisc*|mips*) LIBOBJFLAGS='$(PIC)' ;; - esac - fi -fi +enabled pic && LIBOBJFLAGS='$(PIC)' if enabled gprof; then add_cflags -p @@ -2259,8 +2400,8 @@ enabled_any $BSF_LIST && enable bsfs enabled_any $DEMUXER_LIST && enable demuxers enabled_any $MUXER_LIST && enable muxers enabled_any $FILTER_LIST && enable filters -enabled_any $INDEV_LIST && enable demuxers -enabled_any $OUTDEV_LIST && enable muxers +enabled_any $INDEV_LIST && enable indevs +enabled_any $OUTDEV_LIST && enable outdevs enabled_any $PROTOCOL_LIST && enable protocols enabled_any $THREADS_LIST && enable threads @@ -2347,8 +2488,6 @@ if enabled sdl_too_old; then fi echo "Sun medialib support ${mlib-no}" echo "AVISynth enabled ${avisynth-no}" -echo "libamr-nb support ${libamr_nb-no}" -echo "libamr-wb support ${libamr_wb-no}" echo "libdc1394 support ${libdc1394-no}" echo "libdirac enabled ${libdirac-no}" echo "libfaac enabled ${libfaac-no}" @@ -2357,6 +2496,8 @@ echo "libfaad dlopened ${libfaadbin-no}" echo "libgsm enabled ${libgsm-no}" echo "libmp3lame enabled ${libmp3lame-no}" echo "libnut enabled ${libnut-no}" +echo "libopencore-amrnb support ${libopencore_amrnb-no}" +echo "libopencore-amrwb support ${libopencore_amrwb-no}" echo "libopenjpeg enabled ${libopenjpeg-no}" echo "libschroedinger enabled ${libschroedinger-no}" echo "libspeex enabled ${libspeex-no}" @@ -2377,11 +2518,15 @@ for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf ind echo done -license="LGPL" +license="LGPL version 2.1 or later" if enabled nonfree; then - license="unredistributable" + license="nonfree and unredistributable" +elif enabled gplv3; then + license="GPL version 3 or later" +elif enabled lgplv3; then + license="LGPL version 3 or later" elif enabled gpl; then - license="GPL" + license="GPL version 2 or later" fi echo "License: $license" @@ -2392,9 +2537,12 @@ echo "# Automatically generated by configure - do not modify!" > config.mak echo "/* Automatically generated by configure - do not modify! */" > $TMPH echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH echo "#define FFMPEG_CONFIG_H" >> $TMPH -echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH +echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH +echo "ifndef FFMPEG_CONFIG_MAK" >> config.mak +echo "FFMPEG_CONFIG_MAK=1" >> config.mak + echo "FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION" >> config.mak echo "prefix=$prefix" >> config.mak echo "LIBDIR=\$(DESTDIR)$libdir" >> config.mak @@ -2408,6 +2556,8 @@ echo "SRC_PATH_BARE=$source_path" >> config.mak echo "BUILD_ROOT=\"$PWD\"" >> config.mak echo "CC=$cc" >> config.mak echo "AS=$as" >> config.mak +echo "LD=$ld" >> config.mak +echo "DEPCC=$dep_cc" >> config.mak echo "YASM=$yasmexe" >> config.mak echo "AR=$ar" >> config.mak echo "RANLIB=$ranlib" >> config.mak @@ -2416,12 +2566,16 @@ enabled stripping && echo "STRIP=$strip" >> config.mak || echo "STRIP=echo ignoring strip" >> config.mak -echo "OPTFLAGS=$CFLAGS" >> config.mak +echo "CPPFLAGS=$CPPFLAGS" >> config.mak +echo "CFLAGS=$CFLAGS" >> config.mak +echo "ASFLAGS=$ASFLAGS" >> config.mak +echo "CC_O=$CC_O" >> config.mak echo "LDFLAGS=$LDFLAGS" >> config.mak echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak echo "SHFLAGS=$SHFLAGS" >> config.mak echo "YASMFLAGS=$YASMFLAGS" >> config.mak echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak +echo "PIC=-fPIC -DPIC" >> config.mak echo "BUILD_STATIC=$static" >> config.mak echo "BUILDSUF=$build_suffix" >> config.mak echo "FULLNAME=$FULLNAME" >> config.mak @@ -2433,6 +2587,7 @@ echo "SLIBSUF=$SLIBSUF" >> config.mak echo "EXESUF=$EXESUF" >> config.mak echo "EXTRA_VERSION=$extra_version" >> config.mak echo "DEPEND_CMD=$DEPEND_CMD" >> config.mak +echo "DEPFLAGS=$DEPFLAGS" >> config.mak echo "HOSTCC=$host_cc" >> config.mak echo "HOSTCFLAGS=$host_cflags" >> config.mak echo "HOSTEXESUF=$HOSTEXESUF" >> config.mak @@ -2441,11 +2596,6 @@ echo "HOSTLIBS=$host_libs" >> config.mak echo "TARGET_EXEC=$target_exec" >> config.mak echo "TARGET_PATH=$target_path" >> config.mak -if enabled bigendian; then - echo "WORDS_BIGENDIAN=yes" >> config.mak - echo "#define WORDS_BIGENDIAN 1" >> $TMPH -fi - if enabled sdl; then echo "SDL_LIBS=$("${SDL_CONFIG}" --libs)" >> config.mak echo "SDL_CFLAGS=$("${SDL_CONFIG}" --cflags)" >> config.mak @@ -2474,7 +2624,6 @@ get_version LIBAVFILTER libavfilter/avfilter.h if enabled shared; then echo "BUILD_SHARED=yes" >> config.mak - echo "PIC=-fPIC -DPIC" >> config.mak echo "LIBTARGET=${LIBTARGET}" >> config.mak echo "SLIBNAME=${SLIBNAME}" >> config.mak echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak @@ -2520,6 +2669,7 @@ enabled asmalign_pot && echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH +echo "endif # FFMPEG_CONFIG_MAK" >> config.mak # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. cmp -s $TMPH config.h &&