Mercurial > mplayer.hg
comparison configure @ 26668:23a4326c4779
Add options to handle the external libraries in libavcodec, which require
extra linker flags etc. individually.
author | diego |
---|---|
date | Thu, 08 May 2008 22:50:17 +0000 |
parents | b8d735263b29 |
children | 0b65caad7fb0 |
comparison
equal
deleted
inserted
replaced
26667:b8d735263b29 | 26668:23a4326c4779 |
---|---|
284 --disable-win32dll disable Win32 DLL support [enabled] | 284 --disable-win32dll disable Win32 DLL support [enabled] |
285 --disable-qtx disable QuickTime codecs support [enabled] | 285 --disable-qtx disable QuickTime codecs support [enabled] |
286 --disable-xanim disable XAnim codecs support [enabled] | 286 --disable-xanim disable XAnim codecs support [enabled] |
287 --disable-real disable RealPlayer codecs support [enabled] | 287 --disable-real disable RealPlayer codecs support [enabled] |
288 --disable-xvid disable XviD [autodetect] | 288 --disable-xvid disable XviD [autodetect] |
289 --disable-xvid-lavc disable XviD in libavcodec [autodetect] | |
289 --disable-x264 disable x264 [autodetect] | 290 --disable-x264 disable x264 [autodetect] |
291 --disable-x264-lavc disable x264 in libavcodec [autodetect] | |
290 --disable-libnut disable libnut [autodetect] | 292 --disable-libnut disable libnut [autodetect] |
291 --disable-libavutil_a disable static libavutil [autodetect] | 293 --disable-libavutil_a disable static libavutil [autodetect] |
292 --disable-libavcodec_a disable static libavcodec [autodetect] | 294 --disable-libavcodec_a disable static libavcodec [autodetect] |
293 --disable-libavformat_a disable static libavformat [autodetect] | 295 --disable-libavformat_a disable static libavformat [autodetect] |
294 --disable-libpostproc_a disable static libpostproc [autodetect] | 296 --disable-libpostproc_a disable static libpostproc [autodetect] |
306 --enable-theora enable OggTheora libraries [autodetect] | 308 --enable-theora enable OggTheora libraries [autodetect] |
307 --enable-faad-external enable external FAAD2 (AAC) [autodetect] | 309 --enable-faad-external enable external FAAD2 (AAC) [autodetect] |
308 --disable-faad-internal disable internal FAAD2 (AAC) [autodetect] | 310 --disable-faad-internal disable internal FAAD2 (AAC) [autodetect] |
309 --enable-faad-fixed enable fixed-point mode in internal FAAD2 [disabled] | 311 --enable-faad-fixed enable fixed-point mode in internal FAAD2 [disabled] |
310 --disable-faac disable support for FAAC (AAC encoder) [autodetect] | 312 --disable-faac disable support for FAAC (AAC encoder) [autodetect] |
313 --disable-faac-lavc disable support for FAAC in libavcodec [autodetect] | |
311 --disable-ladspa disable LADSPA plugin support [autodetect] | 314 --disable-ladspa disable LADSPA plugin support [autodetect] |
312 --disable-libdv disable libdv 0.9.5 en/decoding support [autodetect] | 315 --disable-libdv disable libdv 0.9.5 en/decoding support [autodetect] |
313 --disable-mad disable libmad (MPEG audio) support [autodetect] | 316 --disable-mad disable libmad (MPEG audio) support [autodetect] |
314 --disable-mp3lame disable LAME MP3 encoding support [autodetect] | 317 --disable-mp3lame disable LAME MP3 encoding support [autodetect] |
318 --disable-mp3lame-lavc disable LAME in libavcodec [autodetect] | |
315 --disable-toolame disable Toolame (MPEG layer 2) encoding [autodetect] | 319 --disable-toolame disable Toolame (MPEG layer 2) encoding [autodetect] |
316 --disable-twolame disable Twolame (MPEG layer 2) encoding [autodetect] | 320 --disable-twolame disable Twolame (MPEG layer 2) encoding [autodetect] |
317 --enable-xmms enable XMMS input plugin support [disabled] | 321 --enable-xmms enable XMMS input plugin support [disabled] |
318 --enable-libdca enable libdca support [autodetect] | 322 --enable-libdca enable libdca support [autodetect] |
319 --disable-mp3lib disable builtin mp3lib [enabled] | 323 --disable-mp3lib disable builtin mp3lib [enabled] |
553 _openal=auto | 557 _openal=auto |
554 _libcdio=auto | 558 _libcdio=auto |
555 _liblzo=auto | 559 _liblzo=auto |
556 _mad=auto | 560 _mad=auto |
557 _mp3lame=auto | 561 _mp3lame=auto |
562 _mp3lame_lavc=auto | |
558 _toolame=auto | 563 _toolame=auto |
559 _twolame=auto | 564 _twolame=auto |
560 _tremor_internal=yes | 565 _tremor_internal=yes |
561 _tremor_low=no | 566 _tremor_low=no |
562 _tremor_external=auto | 567 _tremor_external=auto |
569 _libmpeg2=auto | 574 _libmpeg2=auto |
570 _faad_internal=auto | 575 _faad_internal=auto |
571 _faad_external=auto | 576 _faad_external=auto |
572 _faad_fixed=no | 577 _faad_fixed=no |
573 _faac=auto | 578 _faac=auto |
579 _faac_lavc=auto | |
574 _ladspa=auto | 580 _ladspa=auto |
575 _xmms=no | 581 _xmms=no |
576 _dvdnav=auto | 582 _dvdnav=auto |
577 _dvdnavconfig=dvdnav-config | 583 _dvdnavconfig=dvdnav-config |
578 _dvdreadconfig=dvdread-config | 584 _dvdreadconfig=dvdread-config |
615 _vidix_internal=auto | 621 _vidix_internal=auto |
616 _vidix_external=auto | 622 _vidix_external=auto |
617 _vidix_pcidb=yes | 623 _vidix_pcidb=yes |
618 _joystick=no | 624 _joystick=no |
619 _xvid=auto | 625 _xvid=auto |
626 _xvid_lavc=auto | |
620 _x264=auto | 627 _x264=auto |
628 _x264_lavc=auto | |
621 _libnut=auto | 629 _libnut=auto |
622 _lirc=auto | 630 _lirc=auto |
623 _lircc=auto | 631 _lircc=auto |
624 _apple_remote=auto | 632 _apple_remote=auto |
625 _gui=no | 633 _gui=no |
892 --disable-openal) _openal=no ;; | 900 --disable-openal) _openal=no ;; |
893 --enable-mad) _mad=yes ;; | 901 --enable-mad) _mad=yes ;; |
894 --disable-mad) _mad=no ;; | 902 --disable-mad) _mad=no ;; |
895 --enable-mp3lame) _mp3lame=yes ;; | 903 --enable-mp3lame) _mp3lame=yes ;; |
896 --disable-mp3lame) _mp3lame=no ;; | 904 --disable-mp3lame) _mp3lame=no ;; |
905 --enable-mp3lame-lavc) _mp3lame_lavc=yes ;; | |
906 --disable-mp3lame-lavc) _mp3lame_lavc=no ;; | |
897 --enable-toolame) _toolame=yes ;; | 907 --enable-toolame) _toolame=yes ;; |
898 --disable-toolame) _toolame=no ;; | 908 --disable-toolame) _toolame=no ;; |
899 --enable-twolame) _twolame=yes ;; | 909 --enable-twolame) _twolame=yes ;; |
900 --disable-twolame) _twolame=no ;; | 910 --disable-twolame) _twolame=no ;; |
901 --enable-libcdio) _libcdio=yes ;; | 911 --enable-libcdio) _libcdio=yes ;; |
930 --disable-faad-external) _faad_external=no ;; | 940 --disable-faad-external) _faad_external=no ;; |
931 --enable-faad-fixed) _faad_fixed=yes ;; | 941 --enable-faad-fixed) _faad_fixed=yes ;; |
932 --disable-faad-fixed) _faad_fixed=no ;; | 942 --disable-faad-fixed) _faad_fixed=no ;; |
933 --enable-faac) _faac=yes ;; | 943 --enable-faac) _faac=yes ;; |
934 --disable-faac) _faac=no ;; | 944 --disable-faac) _faac=no ;; |
945 --enable-faac-lavc) _faac_lavc=yes ;; | |
946 --disable-faac-lavc) _faac_lavc=no ;; | |
935 --enable-ladspa) _ladspa=yes ;; | 947 --enable-ladspa) _ladspa=yes ;; |
936 --disable-ladspa) _ladspa=no ;; | 948 --disable-ladspa) _ladspa=no ;; |
937 --enable-xmms) _xmms=yes ;; | 949 --enable-xmms) _xmms=yes ;; |
938 --disable-xmms) _xmms=no ;; | 950 --disable-xmms) _xmms=no ;; |
939 --enable-dvdread) _dvdread=yes ;; | 951 --enable-dvdread) _dvdread=yes ;; |
1012 --disable-vidix-pcidb) _vidix_pcidb=no ;; | 1024 --disable-vidix-pcidb) _vidix_pcidb=no ;; |
1013 --enable-joystick) _joystick=yes ;; | 1025 --enable-joystick) _joystick=yes ;; |
1014 --disable-joystick) _joystick=no ;; | 1026 --disable-joystick) _joystick=no ;; |
1015 --enable-xvid) _xvid=yes ;; | 1027 --enable-xvid) _xvid=yes ;; |
1016 --disable-xvid) _xvid=no ;; | 1028 --disable-xvid) _xvid=no ;; |
1029 --enable-xvid-lavc) _xvid_lavc=yes ;; | |
1030 --disable-xvid-lavc) _xvid_lavc=no ;; | |
1017 --enable-x264) _x264=yes ;; | 1031 --enable-x264) _x264=yes ;; |
1018 --disable-x264) _x264=no ;; | 1032 --disable-x264) _x264=no ;; |
1033 --enable-x264-lavc) _x264_lavc=yes ;; | |
1034 --disable-x264-lavc) _x264_lavc=no ;; | |
1019 --enable-libnut) _libnut=yes ;; | 1035 --enable-libnut) _libnut=yes ;; |
1020 --disable-libnut) _libnut=no ;; | 1036 --disable-libnut) _libnut=no ;; |
1021 --enable-libavutil_a) _libavutil_a=yes ;; | 1037 --enable-libavutil_a) _libavutil_a=yes ;; |
1022 --disable-libavutil_a) _libavutil_a=no ;; | 1038 --disable-libavutil_a) _libavutil_a=no ;; |
1023 --enable-libavutil_so) _libavutil_so=yes ;; | 1039 --enable-libavutil_so) _libavutil_so=yes ;; |
6026 cc_check -O4 $_ld_faac $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break | 6042 cc_check -O4 $_ld_faac $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break |
6027 done | 6043 done |
6028 fi | 6044 fi |
6029 if test "$_faac" = yes ; then | 6045 if test "$_faac" = yes ; then |
6030 _def_faac="#define HAVE_FAAC 1" | 6046 _def_faac="#define HAVE_FAAC 1" |
6031 if echo $_libavencoders | grep -q FAAC ; then | 6047 test "$_faac_lavc" = auto && _faac_lavc=yes |
6032 _faac_lavc=yes | 6048 if test "$_faac_lavc" = yes ; then |
6033 _def_faac_lavc="#define CONFIG_LIBFAAC 1" | 6049 _def_faac_lavc="#define CONFIG_LIBFAAC 1" |
6034 _libs_mplayer="$_libs_mplayer $_ld_faac" | 6050 _libs_mplayer="$_libs_mplayer $_ld_faac" |
6035 else | 6051 _libavencoders="$_libavencoders LIBFAAC_ENCODER" |
6036 _faac_lavc=no | |
6037 _def_faac_lavc="#undef CONFIG_LIBFAAC" | |
6038 fi | 6052 fi |
6039 _codecmodules="faac $_codecmodules" | 6053 _codecmodules="faac $_codecmodules" |
6040 else | 6054 else |
6055 _faac_lavc=no | |
6041 _def_faac="#undef HAVE_FAAC" | 6056 _def_faac="#undef HAVE_FAAC" |
6057 _def_faac_lavc="#undef CONFIG_LIBFAAC" | |
6042 _nocodecmodules="faac $_nocodecmodules" | 6058 _nocodecmodules="faac $_nocodecmodules" |
6043 fi | 6059 fi |
6044 echores "$_faac (in libavcodec: $_faac_lavc)" | 6060 _res_comment="in libavcodec: $_faac_lavc" |
6061 echores "$_faac" | |
6045 | 6062 |
6046 | 6063 |
6047 echocheck "FAAD2 (AAC) support" | 6064 echocheck "FAAD2 (AAC) support" |
6048 if test "$_faad_internal" = auto ; then | 6065 if test "$_faad_internal" = auto ; then |
6049 if x86_32 && test cc_vendor=gnu; then | 6066 if x86_32 && test cc_vendor=gnu; then |
6544 _def_xvid='#undef HAVE_XVID4' | 6561 _def_xvid='#undef HAVE_XVID4' |
6545 _nocodecmodules="xvid $_nocodecmodules" | 6562 _nocodecmodules="xvid $_nocodecmodules" |
6546 fi | 6563 fi |
6547 echores "$_xvid" | 6564 echores "$_xvid" |
6548 | 6565 |
6549 if test "$_xvid" = yes ; then | 6566 echocheck "XviD two pass plugin" |
6550 echocheck "XviD two pass plugin" | 6567 if test "$_xvid" = yes && test "$_xvid_lavc" = auto ; then |
6551 cat > $TMPC << EOF | 6568 cat > $TMPC << EOF |
6552 #include <xvid.h> | 6569 #include <xvid.h> |
6553 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } | 6570 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } |
6554 EOF | 6571 EOF |
6555 if cc_check ; then | 6572 cc_check && _xvid_lavc=yes |
6556 _xvid_lavc=yes | 6573 fi |
6574 if test "$_xvid_lavc" = yes ; then | |
6557 _def_xvid_lavc='#define CONFIG_LIBXVID 1' | 6575 _def_xvid_lavc='#define CONFIG_LIBXVID 1' |
6558 _libavencoders="$_libavencoders LIBXVID_ENCODER" | 6576 _libavencoders="$_libavencoders LIBXVID_ENCODER" |
6559 else | 6577 else |
6560 _xvid_lavc=no | 6578 _xvid_lavc=no |
6561 _def_xvid_lavc='#undef CONFIG_LIBXVID' | 6579 _def_xvid_lavc='#undef CONFIG_LIBXVID' |
6562 fi | 6580 fi |
6563 echores "$_xvid_lavc" | 6581 echores "$_xvid_lavc" |
6564 fi | |
6565 | 6582 |
6566 | 6583 |
6567 echocheck "x264" | 6584 echocheck "x264" |
6568 if test "$_x264" = auto ; then | 6585 if test "$_x264" = auto ; then |
6569 cat > $TMPC << EOF | 6586 cat > $TMPC << EOF |
6581 fi | 6598 fi |
6582 | 6599 |
6583 if test "$_x264" = yes ; then | 6600 if test "$_x264" = yes ; then |
6584 _def_x264='#define HAVE_X264 1' | 6601 _def_x264='#define HAVE_X264 1' |
6585 _codecmodules="x264 $_codecmodules" | 6602 _codecmodules="x264 $_codecmodules" |
6603 test "$_x264_lavc" = auto && _x264_lavc=yes | |
6604 if test "$_x264_lavc" = yes ; then | |
6586 _def_x264_lavc='#define CONFIG_LIBX264 1' | 6605 _def_x264_lavc='#define CONFIG_LIBX264 1' |
6587 _libs_mplayer="$_libs_mplayer $_ld_x264" | 6606 _libs_mplayer="$_libs_mplayer $_ld_x264" |
6588 _libavencoders="$_libavencoders LIBX264_ENCODER" | 6607 _libavencoders="$_libavencoders LIBX264_ENCODER" |
6589 else | 6608 fi |
6609 else | |
6610 _x264_lavc=no | |
6590 _def_x264='#undef HAVE_X264' | 6611 _def_x264='#undef HAVE_X264' |
6591 _def_x264_lavc='#undef CONFIG_LIBX264' | 6612 _def_x264_lavc='#undef CONFIG_LIBX264' |
6592 _nocodecmodules="x264 $_nocodecmodules" | 6613 _nocodecmodules="x264 $_nocodecmodules" |
6593 fi | 6614 fi |
6615 _res_comment="in libavcodec: $_x264_lavc" | |
6594 echores "$_x264" | 6616 echores "$_x264" |
6595 | 6617 |
6596 | 6618 |
6597 echocheck "libnut" | 6619 echocheck "libnut" |
6598 if test "$_libnut" = auto ; then | 6620 if test "$_libnut" = auto ; then |
6670 cat > $TMPC << EOF | 6692 cat > $TMPC << EOF |
6671 #include <lame/lame.h> | 6693 #include <lame/lame.h> |
6672 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } | 6694 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } |
6673 EOF | 6695 EOF |
6674 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM" | 6696 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM" |
6675 if echo $_libavencoders | grep -q MP3LAME ; then | 6697 test "$_mp3lame_lavc" = auto && _mp3lame_lavc=yes |
6676 _mp3lame_lavc=yes | 6698 if test "$_mp3lame_lavc" = yes ; then |
6677 _def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" | 6699 _def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" |
6678 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER" | 6700 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER" |
6679 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" | 6701 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" |
6680 else | 6702 fi |
6681 _mp3lame_lavc=no | 6703 else |
6682 _def_mp3lame_lavc="#undef CONFIG_LIBMP3LAME" | 6704 _mp3lame_lavc=no |
6683 fi | |
6684 else | |
6685 _def_mp3lame='#undef HAVE_MP3LAME' | 6705 _def_mp3lame='#undef HAVE_MP3LAME' |
6686 fi | 6706 _def_mp3lame_lavc="#undef CONFIG_LIBMP3LAME" |
6707 fi | |
6708 _res_comment="in libavcodec: $_mp3lame_lavc" | |
6687 echores "$_mp3lame" | 6709 echores "$_mp3lame" |
6688 | 6710 |
6689 fi | 6711 fi |
6690 | 6712 |
6691 echocheck "mencoder" | 6713 echocheck "mencoder" |
7764 CONFIG_LIBAMR_NB=$_libamr_nb | 7786 CONFIG_LIBAMR_NB=$_libamr_nb |
7765 CONFIG_LIBAMR_WB=$_libamr_wb | 7787 CONFIG_LIBAMR_WB=$_libamr_wb |
7766 CONFIG_LIBFAAC=$_faac_lavc | 7788 CONFIG_LIBFAAC=$_faac_lavc |
7767 CONFIG_LIBMP3LAME=$_mp3lame_lavc | 7789 CONFIG_LIBMP3LAME=$_mp3lame_lavc |
7768 CONFIG_LIBVORBIS=$_libvorbis | 7790 CONFIG_LIBVORBIS=$_libvorbis |
7769 CONFIG_LIBX264=$_x264 | 7791 CONFIG_LIBX264=$_x264_lavc |
7770 CONFIG_LIBXVID=$_xvid_lavc | 7792 CONFIG_LIBXVID=$_xvid_lavc |
7771 CONFIG_MLIB = $_mlib | 7793 CONFIG_MLIB = $_mlib |
7772 # Prevent building libavcodec/imgresample.c with conflicting symbols | 7794 # Prevent building libavcodec/imgresample.c with conflicting symbols |
7773 CONFIG_SWSCALE=yes | 7795 CONFIG_SWSCALE=yes |
7774 CONFIG_ZLIB=$_zlib | 7796 CONFIG_ZLIB=$_zlib |