# HG changeset patch # User diego # Date 1311636624 0 # Node ID aeba53d139c92e70e2c468d5a9797dcd5bed2b2d # Parent 99982afd6dc585f87c605e8c99fec9ae48ed04b5 configure: Only link against encode-only libs if mencoder is enabled. This fixes Bugzilla #1720. diff -r 99982afd6dc5 -r aeba53d139c9 configure --- a/configure Mon Jul 25 23:30:21 2011 +0000 +++ b/configure Mon Jul 25 23:30:24 2011 +0000 @@ -6522,7 +6522,7 @@ echocheck "FAAC support" -if test "$_faac" = auto ; then +if test "$_faac" = auto && test "$_mencoder" = yes ; then cat > $TMPC < #include @@ -6972,7 +6972,7 @@ echocheck "x264" -if test "$_x264" = auto ; then +if test "$_x264" = auto && test "$_mencoder" = yes ; then cat > $TMPC << EOF #include #include @@ -7146,15 +7146,13 @@ fi echores "$_zr" -# mencoder requires (optional) those libs: libmp3lame -if test "$_mencoder" != no ; then echocheck "libmp3lame" def_mp3lame='#undef CONFIG_MP3LAME' def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 0" def_mp3lame_preset='#undef CONFIG_MP3LAME_PRESET' def_mp3lame_preset_medium='#undef CONFIG_MP3LAME_PRESET_MEDIUM' -if test "$_mp3lame" = auto ; then +if test "$_mp3lame" = auto && test "$_mencoder" = yes; then _mp3lame=no statement_check lame/lame.h 'lame_set_VBR_quality(NULL, 0)' -lmp3lame && _mp3lame=yes && _mp3lame_lavc=yes @@ -7176,7 +7174,6 @@ res_comment="in FFmpeg: $_mp3lame_lavc" echores "$_mp3lame" -fi # test "$_mencoder" != no echocheck "mencoder" if test "$_mencoder" = yes ; then