[alsa-devel] [PATCH 3/4] List libavutil as a dependency together with libavcodec.

Diego Elio Pettenò flameeyes at gmail.com
Thu Jan 20 04:45:15 CET 2011


Without this it is possible that the a52 plugin ends up with an undefined
reference to av_free().
---
 configure.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 5d71cae..973900b 100644
--- a/configure.in
+++ b/configure.in
@@ -67,7 +67,8 @@ AC_ARG_ENABLE([avcodec],
       AS_HELP_STRING([--disable-avcodec], [Don't build plugins depending on avcodec (a52)]))
 
 if test "x$enable_avcodec" != "xno"; then
-  PKG_CHECK_MODULES(AVCODEC, [libavcodec], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no])
+  # you need libavutil linked in for av_free
+  PKG_CHECK_MODULES(AVCODEC, [libavcodec libavutil], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no])
 fi
 
 if test "x$HAVE_AVCODEC" = "xno"; then
-- 
1.7.4.rc2



More information about the Alsa-devel mailing list