[MPlayer-dev-eng] [PATCH] configure: Disable twolame if toolame is enabled

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 9 18:45:02 CET 2007


Hi!

mencoder should not be linked to both toolame and twolame: There are multiple 
definitions of symbols in their sourcefiles, so mencoder -oac twolame 
crashes.

Attached patch lets autodetect never enable both libraries.

Greetings, Carl Eugen

-------------- next part --------------
Index: configure
===================================================================
--- configure	(Revision 21858)
+++ configure	(Arbeitskopie)
@@ -5644,7 +5644,7 @@
 int main(void) { twolame_init(); return 0; }
 EOF
   _twolame=no
-  cc_check -ltwolame $_ld_lm && _twolame=yes
+  cc_check -ltwolame $_ld_lm && _twolame=yes && test "$_toolame" = yes && _res_comment="disabled by toolame" && _twolame=no
 fi
 if test "$_twolame" = yes ; then
   _def_twolame='#define HAVE_TWOLAME 1'


More information about the MPlayer-dev-eng mailing list