This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.1
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/9.1 by this push:
     new 91216b5b77 configure: use pkg-config for libmp3lame when available
91216b5b77 is described below

commit 91216b5b771e392861ced021134748fb1e317948
Author:     Ruonan <[email protected]>
AuthorDate: Tue Oct 27 01:57:07 2026 +0800
Commit:     ffmpeg-devel <[email protected]>
CommitDate: Fri Nov 20 04:38:42 2026 +0000

    configure: use pkg-config for libmp3lame when available
    
    LAME 3.101 adds pkg-config support, generating and installing lame.pc.
    Its autotools build also replaces the bundled mpglib decoder with
    external libmpg123. Static libmp3lame builds with decoding support
    therefore require additional libraries when linking.
    
    The existing check links only against libmp3lame and libm, ignoring
    pkg-config metadata and failing with undefined mpg123_* references.
    
    Try pkg-config first to obtain the compiler and linker flags, honoring
    the configured pkg-config flags for static dependencies. Keep the
    existing library check as a fallback for older LAME releases and other
    installations without usable pkg-config metadata.
    
    Signed-off-by: Ruonan <[email protected]>
    (cherry picked from commit d31915e9dce4d33676fadc6c3e08965b4acc132b)
---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index f5e1fbb71b..e0fa0cf328 100755
--- a/configure
+++ b/configure
@@ -7304,7 +7304,8 @@ if enabled libmfx; then
 fi
 
 enabled libmodplug        && require_pkg_config libmodplug libmodplug 
libmodplug/modplug.h ModPlug_Load
-enabled libmp3lame        && require "libmp3lame >= 3.98.3" lame/lame.h 
lame_set_VBR_quality -lmp3lame $libm_extralibs
+enabled libmp3lame        && { check_pkg_config libmp3lame "lame >= 3.98.3" 
lame/lame.h lame_set_VBR_quality ||
+                               require "libmp3lame >= 3.98.3" lame/lame.h 
lame_set_VBR_quality -lmp3lame $libm_extralibs; }
 enabled libmpeghdec       && require_pkg_config libmpeghdec "mpeghdec >= 
3.0.0" mpeghdec/mpeghdecoder.h mpeghdecoder_init
 enabled libmysofa         && { check_pkg_config libmysofa libmysofa mysofa.h 
mysofa_neighborhood_init_withstepdefine ||
                                require libmysofa mysofa.h 
mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to