[MPlayer-cvslog] r20945 - trunk/configure

iive subversion at mplayerhq.hu
Wed Nov 15 21:51:27 CET 2006


Author: iive
Date: Wed Nov 15 21:51:27 2006
New Revision: 20945

Modified:
   trunk/configure

Log:
When testing lame preset presence, use actuall lame_set_preset() function to test its availablility in the library.
Now it only tests include definitions.


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Wed Nov 15 21:51:27 2006
@@ -6555,12 +6555,12 @@
     _ld_mp3lame="-lmp3lame $_ld_vorbis"
     cat > $TMPC << EOF
 #include <lame/lame.h>
-int main(void) { int p = STANDARD_FAST; return 0; }
+int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; }
 EOF
     cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define HAVE_MP3LAME_PRESET"
     cat > $TMPC << EOF
 #include <lame/lame.h>
-int main(void) { int p = MEDIUM_FAST; return 0; }
+int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; }
 EOF
     cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM"
     echo $_libavencoders | grep -q mp3lame && _lavc_mp3lame=yes || _lavc_mp3lame=no



More information about the MPlayer-cvslog mailing list