X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=60834ca0fb78d8da3faaf2c8b0f6a6d6e68a3b0f;hb=703acd540e96e430c2a562d75a1672eee209f63d;hp=f3da5f65ad49553a9cc79e4f61a07f9d2edf5982;hpb=62df111cf04956fc9864204ddefb5ea10bdd7061;p=ffmpeg diff --git a/configure b/configure index f3da5f65ad4..60834ca0fb7 100755 --- a/configure +++ b/configure @@ -116,6 +116,7 @@ Configuration options: --enable-hardcoded-tables use hardcoded tables instead of runtime generation --enable-memalign-hack emulate memalign, interferes with memory debuggers --enable-beos-netserver enable BeOS netserver + --disable-everything disable all components listed below --disable-encoder=NAME disable encoder NAME --enable-encoder=NAME enable encoder NAME --disable-encoders disable all encoders @@ -312,6 +313,12 @@ filter(){ done } +map(){ + m=$1 + shift + for _; do eval $m; done +} + set_all(){ value=$1 shift @@ -1186,7 +1193,7 @@ mdct_select="fft" rdft_select="fft" # decoders / encoders / hardware accelerators -aac_decoder_select="mdct aac_parser" +aac_decoder_select="mdct rdft aac_parser" aac_encoder_select="mdct" ac3_decoder_select="mdct ac3_parser" alac_encoder_select="lpc" @@ -1394,6 +1401,7 @@ x11_grab_device_indev_extralibs="-lX11 -lXext -lXfixes" # protocols gopher_protocol_deps="network" http_protocol_deps="network" +http_protocol_select="tcp_protocol" rtmp_protocol_deps="tcp_protocol" rtp_protocol_deps="udp_protocol" tcp_protocol_deps="network" @@ -1577,6 +1585,9 @@ for opt do ;; --enable-debug=*) debuglevel="$optval" ;; + --disable-everything) + map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST + ;; --enable-*=*|--disable-*=*) eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" @@ -1896,7 +1907,7 @@ case "$arch" in mips|mipsel|IP*) arch="mips" ;; - mips64) + mips64*) arch="mips" subarch="mips64" ;; @@ -1910,7 +1921,7 @@ case "$arch" in "Power Macintosh"|ppc|powerpc) arch="ppc" ;; - ppc64) + ppc64|powerpc64) arch="ppc" subarch="ppc64" ;; @@ -2140,6 +2151,7 @@ case $target_os in netbsd) oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" + add_cppflags -D_XOPEN_SOURCE=600 ;; openbsd) enable malloc_aligned @@ -2752,6 +2764,7 @@ elif enabled ccc; then elif enabled gcc; then check_cflags -fno-tree-vectorize check_cflags -Werror=implicit + check_cflags -Werror=missing-prototypes elif enabled clang; then check_cflags -Qunused-arguments elif enabled armcc; then @@ -2936,12 +2949,8 @@ if enabled source_path_used; then libpostproc/Makefile libswscale/Makefile " - for dir in $DIRS ; do - mkdir -p $dir - done - for f in $FILES ; do - $ln_s "$source_path/$f" $f - done + map 'mkdir -p $_' $DIRS; + map '$ln_s "$source_path/$_" $_' $FILES fi enabled stripping || strip="echo skipping strip" @@ -3007,6 +3016,14 @@ SDL_CFLAGS=$sdl_cflags LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD EXTRALIBS=$extralibs INSTALL=install +LIBTARGET=${LIBTARGET} +SLIBNAME=${SLIBNAME} +SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION} +SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR} +SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD} +SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD} +SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD} +SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD} EOF get_version(){ @@ -3027,17 +3044,6 @@ get_version LIBAVFORMAT libavformat/avformat.h get_version LIBAVUTIL libavutil/avutil.h get_version LIBAVFILTER libavfilter/avfilter.h -enabled shared && cat >> config.mak < $TMPH <>$TMPH if enabled small || disabled optimizations; then + echo "#undef av_always_inline" >> $TMPH echo "#define av_always_inline" >> $TMPH fi