summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-15 20:51:27 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-15 20:51:27 +0000
commit9b11abbff7ba25fbae8e32e653e10621bdaea54a (patch)
tree4b1edff57686522240defaec73c27b02afcf572f /configure
parent6fb7cc1020f20601662587d002fea6616853d3cf (diff)
downloadmpv-9b11abbff7ba25fbae8e32e653e10621bdaea54a.tar.bz2
mpv-9b11abbff7ba25fbae8e32e653e10621bdaea54a.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files 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 <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