diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 93 |
1 files changed, 84 insertions, 9 deletions
@@ -293,10 +293,12 @@ Codecs: --disable-libavcodec_a disable static libavcodec [autodetect] --disable-libavformat_a disable static libavformat [autodetect] --disable-libpostproc_a disable static libpostproc [autodetect] + --disable-libswscale_a disable static libswscale [autodetect] --disable-libavutil_so disable shared libavutil [autodetect] --disable-libavcodec_so disable shared libavcodec [autodetect] --disable-libavformat_so disable shared libavformat [autodetect] --disable-libpostproc_so disable shared libpostproc [autodetect] + --disable-libswscale_so disable shared libswscale [autodetect] --disable-libavcodec_mpegaudio_hp disable high precision audio decoding in libavcodec [enabled] --disable-tremor-internal disable internal Tremor [enabled] @@ -320,7 +322,8 @@ Codecs: --enable-xmms enable XMMS input plugin support [disabled] --enable-libdca enable libdca support [autodetect] --disable-mp3lib disable builtin mp3lib [enabled] - --disable-liba52 disable builtin liba52 [enabled] + --disable-liba52 disable liba52 [autodetect] + --disable-liba52-internal disable builtin liba52 [autodetect] --disable-libmpeg2 disable builtin libmpeg2 [autodetect] --disable-musepack disable musepack support [autodetect] --disable-libamr_nb disable libamr narrowband [autodetect] @@ -517,6 +520,8 @@ _libavformat_a=auto _libavformat_so=auto _libpostproc_a=auto _libpostproc_so=auto +_libswscale_a=auto +_libswscale_so=auto _libavcodec_mpegaudio_hp=yes _mencoder=yes _mplayer=yes @@ -574,7 +579,8 @@ _libvorbis=auto _speex=auto _theora=auto _mp3lib=yes -_liba52=yes +_liba52=auto +_liba52_internal=auto _libdca=auto _libmpeg2=auto _faad=auto @@ -938,6 +944,8 @@ for ac_option do --disable-theora) _theora=no ;; --enable-mp3lib) _mp3lib=yes ;; --disable-mp3lib) _mp3lib=no ;; + --enable-liba52-internal) _liba52_internal=yes ;; + --disable-liba52-internal) _liba52_internal=no ;; --enable-liba52) _liba52=yes ;; --disable-liba52) _liba52=no ;; --enable-libdca) _libdca=yes ;; @@ -1082,6 +1090,10 @@ for ac_option do --disable-libpostproc_a) _libpostproc_a=no ;; --enable-libpostproc_so) _libpostproc_so=yes ;; --disable-libpostproc_so) _libpostproc_so=no ;; + --enable-libswscale_a) _libswscale_a=yes ;; + --disable-libswscale_a) _libswscale_a=no ;; + --enable-libswscale_so) _libswscale_so=yes ;; + --disable-libswscale_so) _libswscale_so=no ;; --enable-libavcodec_mpegaudio_hp) _libavcodec_mpegaudio_hp=yes ;; --disable-libavcodec_mpegaudio_hp) _libavcodec_mpegaudio_hp=no ;; @@ -1350,6 +1362,7 @@ if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then fi +_inc_extra="$_inc_extra -I." _timer=timer-linux.c _getch=getch2.c if freebsd ; then @@ -6041,7 +6054,7 @@ EOF done if test "$_theora" = no && test "$_tremor_internal" = yes; then for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora -logg"; do - cc_check -I. tremor/bitwise.c $_ld_theora \ + cc_check tremor/bitwise.c $_ld_theora \ && _ld_extra="$_ld_extra $_ld_theora" && theora=yes && break done fi @@ -6068,12 +6081,29 @@ else fi echores "$_mp3lib" -echocheck "internal liba52 support" +echocheck "liba52 support" +_def_liba52='#undef CONFIG_LIBA52' +_def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL" +if test "$_liba52_internal" = auto ; then + _liba52=yes + _liba52_internal=yes + _def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1" + _res_comment="internal" +elif test "$_liba52_internal" = no && test "$_liba52" = auto ; then + _liba52=no + cat > $TMPC << EOF +#include <inttypes.h> +#include <a52dec/a52.h> +int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; } +EOF + cc_check -la52 && _liba52=yes + _ld_extra="$_ld_extra -la52" + _res_comment="external" +fi if test "$_liba52" = yes ; then _def_liba52='#define CONFIG_LIBA52 1' - _codecmodules="liba52 $_codecmodules" + _codecmodules="liba52($_res_comment) $_codecmodules" else - _def_liba52='#undef CONFIG_LIBA52' _nocodecmodules="liba52 $_nocodecmodules" fi echores "$_liba52" @@ -6562,7 +6592,6 @@ if test "$_libpostproc_a" = auto ; then elif test "$_libpostproc_so" = auto ; then _libpostproc_so=no cat > $TMPC << EOF - #define CONFIG_LIBPOSTPROC 1 #include <inttypes.h> #include <libpostproc/postprocess.h> int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; } @@ -6584,6 +6613,40 @@ test "$_libpostproc_so" = yes \ && _def_libpostproc_so='#define CONFIG_LIBPOSTPROC_SO 1' echores "$_libpostproc" +echocheck "FFmpeg libswscale" +if test "$_libswscale_a" = auto ; then + _libswscale_a=no + if test -d libswscale && test -f libswscale/swscale.h ; then + _libswscale_a='yes' + _res_comment="static" + fi +elif test "$_libswscale_so" = auto ; then + _libswscale_so=no + _res_comment="using libswscale.so, but static libswscale is recommended" + cat > $TMPC << EOF + #include <libswscale/swscale.h> + int main(void) { sws_scale(0, 0, 0, 0, 0, 0, 0); return 0; } +EOF + if $_pkg_config --exists libswscale ; then + _inc_libswscale=`$_pkg_config --cflags libswscale` + _ld_tmp=`$_pkg_config --libs libswscale` + cc_check $_inc_libswscale $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ + && _libswscale_so=yes + elif cc_check -lswscale ; then + _ld_extra="$_ld_extra -lswscale" + _libswscale_so=yes + fi +fi +_libswscale=no +_def_libswscale='#undef CONFIG_LIBSWSCALE' +_def_libswscale_a='#undef CONFIG_LIBSWSCALE_A' +_def_libswscale_so='#undef CONFIG_LIBSWSCALE_SO' +test "$_libswscale_a" = yes || test "$_libswscale_so" = yes && _libswscale=yes +test "$_libswscale" = yes && _def_libswscale='#define CONFIG_LIBSWSCALE 1' +test "$_libswscale_a" = yes && _def_libswscale_a='#define CONFIG_LIBSWSCALE_A 1' +test "$_libswscale_so" = yes \ + && _def_libswscale_so='#define CONFIG_LIBSWSCALE_SO 1' +echores "$_libswscale" echocheck "libamr narrowband" if test "$_libamr_nb" = auto ; then @@ -7738,6 +7801,8 @@ if test "$_largefiles" = yes || freebsd ; then fi fi +CXXFLAGS=" $CFLAGS -Iffmpeg -D__STDC_LIMIT_MACROS" + cat > $TMPC << EOF int main(void) { return 0; } EOF @@ -7748,8 +7813,7 @@ if test "$cc_vendor" = "gnu" ; then fi CFLAGS_FFMPEG="-I../.. $CFLAGS" -CFLAGS="-I. -Iffmpeg $CFLAGS" -CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS" +CFLAGS="-Iffmpeg $CFLAGS" cc_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer" @@ -7825,6 +7889,7 @@ MPLAYER = $_mplayer #internal libraries LIBA52 = $_liba52 +LIBA52_INTERNAL = $_liba52_internal LIBMPEG2 = $_libmpeg2 MP3LIB = $_mp3lib TREMOR_INTERNAL = $_tremor_internal @@ -7953,6 +8018,9 @@ LIBAVFORMAT_SO = $_libavformat_so LIBPOSTPROC = $_libpostproc LIBPOSTPROC_A = $_libpostproc_a LIBPOSTPROC_SO = $_libpostproc_so +LIBSWSCALE = $_libswscale +LIBSWSCALE_A = $_libswscale_a +LIBSWSCALE_SO = $_libswscale_so BUILD_STATIC=yes SRC_PATH=.. @@ -8322,6 +8390,10 @@ $_def_libavutil $_def_libavutil_a $_def_libavutil_so +$_def_libswscale +$_def_libswscale_a +$_def_libswscale_so + /* Use libavcodec's decoders */ #define CONFIG_DECODERS 1 #define ENABLE_DECODERS 1 @@ -8368,6 +8440,9 @@ $_def_xvid_lavc /* Use codec libs included in mplayer CVS / source dist: */ $_def_mp3lib + +/* enable liba52 support */ +$_def_liba52_internal $_def_liba52 $_def_libmpeg2 |