From 653a0c8382290ae0cd248f201e965bdc3c937842 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Thu, 31 Oct 2013 21:10:33 -0500 Subject: [PATCH] Hardcode ffmpeg interdependencies because pkg-config is not always around to do it for us --- autoconf/m4/video.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoconf/m4/video.m4 b/autoconf/m4/video.m4 index 4ec88801b4..72b94abaa7 100644 --- a/autoconf/m4/video.m4 +++ b/autoconf/m4/video.m4 @@ -17,9 +17,9 @@ have_ffmpeg=no if test "$with_ffmpeg" = "yes"; then if test "$with_static_ffmpeg" = "yes" -o "$with_static_ffmpeg" = "no"; then AC_CHECK_LIB(avutil, av_free, have_libavutil=yes, have_libavutil=no) - AC_CHECK_LIB(avcodec, avcodec_register_all, have_libavcodec=yes, have_libavcodec=no) - AC_CHECK_LIB(avformat, av_guess_format, have_libavformat=yes, have_libavformat=no) - AC_CHECK_LIB(swscale, sws_scale, have_libswscale=yes, have_libswscale=no) + AC_CHECK_LIB(avcodec, avcodec_register_all, have_libavcodec=yes, have_libavcodec=no, [-lavutil]) + AC_CHECK_LIB(avformat, av_guess_format, have_libavformat=yes, have_libavformat=no, [-lavcodec -lavutil]) + AC_CHECK_LIB(swscale, sws_scale, have_libswscale=yes, have_libswscale=no, [-lavutil]) if test "$have_libavutil" = "yes" -a "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes" -a "$have_libswscale" = "yes"; then have_ffmpeg=yes VIDEO_LIBS="$LIB_PRE -lswscale -lavformat -lswscale -lavcodec -lavutil $LIB_POST $VIDEO_LIBS"