From 9b11abbff7ba25fbae8e32e653e10621bdaea54a Mon Sep 17 00:00:00 2001 From: iive Date: Wed, 15 Nov 2006 20:51:27 +0000 Subject: [PATCH] When testing lame preset presence, use actuall lame_set_preset() function to test its availablility in the library. Now it only tests include definitions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20945 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 9ba9df9669..fcc0154a07 100755 --- a/configure +++ b/configure @@ -6555,12 +6555,12 @@ EOF _ld_mp3lame="-lmp3lame $_ld_vorbis" cat > $TMPC << EOF #include -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 -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