Mercurial > mplayer.hg
comparison configure @ 21909:d46c88125495
Move toolame vs twolame logic into the $_toolame=auto case.
author | diego |
---|---|
date | Sun, 14 Jan 2007 22:58:25 +0000 |
parents | 2a0402e274e7 |
children | ad465ec1294a |
comparison
equal
deleted
inserted
replaced
21908:22782c86fd38 | 21909:d46c88125495 |
---|---|
5657 _nocodecmodules="twolame $_nocodecmodules" | 5657 _nocodecmodules="twolame $_nocodecmodules" |
5658 fi | 5658 fi |
5659 echores "$_twolame" | 5659 echores "$_twolame" |
5660 | 5660 |
5661 echocheck "Toolame" | 5661 echocheck "Toolame" |
5662 test "$_twolame" = yes && _toolame=no && _res_comment="disabled by twolame" | |
5663 if test "$_toolame" = auto ; then | 5662 if test "$_toolame" = auto ; then |
5663 _toolame=no | |
5664 if test "$_twolame" = yes ; then | |
5665 _res_comment="disabled by twolame" | |
5666 else | |
5664 cat > $TMPC <<EOF | 5667 cat > $TMPC <<EOF |
5665 #include <toolame.h> | 5668 #include <toolame.h> |
5666 int main(void) { toolame_init(); return 0; } | 5669 int main(void) { toolame_init(); return 0; } |
5667 EOF | 5670 EOF |
5668 _toolame=no | |
5669 cc_check -ltoolame $_ld_lm && _toolame=yes | 5671 cc_check -ltoolame $_ld_lm && _toolame=yes |
5672 fi | |
5670 fi | 5673 fi |
5671 if test "$_toolame" = yes ; then | 5674 if test "$_toolame" = yes ; then |
5672 _def_toolame='#define HAVE_TOOLAME 1' | 5675 _def_toolame='#define HAVE_TOOLAME 1' |
5673 _libs_mencoder="$_libs_mencoder -ltoolame" | 5676 _libs_mencoder="$_libs_mencoder -ltoolame" |
5674 _codecmodules="toolame $_codecmodules" | 5677 _codecmodules="toolame $_codecmodules" |