shithub: sox

Download patch

ref: 42db1b4a5ac01b702f8cb399a48f10e483d5c432
parent: 39b71fb516bf18304e0561d316ce2ce82814a4dd
author: cbagwell <cbagwell>
date: Fri Feb 22 15:54:03 EST 2008

Test ffmpeg libs in order required for strict linking.

--- a/configure.ac
+++ b/configure.ac
@@ -272,9 +272,9 @@
 if test "$with_ffmpeg" != "no"; then
     using_ffmpeg=yes
     AC_CHECK_HEADER(ffmpeg/avformat.h,
-        [AC_CHECK_LIB(avformat, av_open_input_file, FFMPEG_LIBS="$FFMPEG_LIBS -lavformat", using_ffmpeg=no)
-        AC_CHECK_LIB(avutil, av_rescale_q, FFMPEG_LIBS="$FFMPEG_LIBS -lavutil", using_ffmpeg=no)
-        AC_CHECK_LIB(avcodec, avcodec_decode_audio2, FFMPEG_LIBS="$FFMPEG_LIBS -lavcodec", using_ffmpeg=no)],
+        [AC_CHECK_LIB(avutil, av_rescale_q, FFMPEG_LIBS="-lavutil $FFMPEG_LIBS", using_ffmpeg=no)
+        AC_CHECK_LIB(avcodec, avcodec_decode_audio2, FFMPEG_LIBS="-lavcodec $FFMPEG_LIBS", using_ffmpeg=no)
+        AC_CHECK_LIB(avformat, av_open_input_file, FFMPEG_LIBS="-lavformat $FFMPEG_LIBS", using_ffmpeg=no)],
         using_ffmpeg=no)
     if test "$with_ffmpeg" = "yes" -a "$using_ffmpeg" = "no"; then
         AC_MSG_FAILURE([cannot find ffmpeg])