]> git.sesse.net Git - vlc/commitdiff
Fix pkg-config based libswscale detection tests.
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 26 May 2008 12:13:20 +0000 (14:13 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 26 May 2008 12:13:38 +0000 (14:13 +0200)
configure.ac

index 1e78013a16d69224e2cccc814a39f0ec4b716efc..1b52e369786bccdb96ae952e1f2ab46f31c1f9c9 100644 (file)
@@ -3239,7 +3239,7 @@ dnl Trying with pkg-config
        VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}])
        VLC_ADD_LIBS([ffmpeg],[${SWSCALE_LIBS}])
        AC_CHECK_LIB(swscale, sws_getContext,
-         [AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])],[],[-lavutil -lm])
+         [AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])],[],[${SWSCALE_LIBS}])
        ],[ true ])
      VLC_RESTORE_FLAGS
     ],[