Use cross-prefix properly with pkg-config for cross-compiling
authorSteven Walters <kemuri9@gmail.com>
Wed, 20 Jan 2010 17:00:54 +0000 (09:00 -0800)
committerFiona Glaser <fiona@x264.com>
Thu, 21 Jan 2010 04:56:48 +0000 (20:56 -0800)
configure

index c066a54..9f04a18 100755 (executable)
--- a/configure
+++ b/configure
@@ -416,7 +416,7 @@ fi
 
 if [ "$lavf_input" = "auto" ] ; then
     lavf_input="no"
-    if [ `pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL` ] ; then
+    if [ `${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL` ] ; then
         LAVF_LDFLAGS="$LAVF_LDFLAGS $(pkg-config --libs libavformat libavcodec libswscale)"
         LAVF_CFLAGS="$LAVF_CFLAGS $(pkg-config --cflags libavformat libavcodec libswscale)"
     fi