[FFmpeg-devel] [PATCH] Fix pkg-config detection when using a cross-prefix
Kyle Schwarz
kshawkeye at gmail.com
Fri Jun 29 08:30:01 CEST 2012
The attached patch resolves a pkg-config issue.
When a cross-prefix is used, FFmpeg searches for a cross-prefixed
pkg-config, and fails to use pkg-config if none if found.
This patch allows a native system pkg-config to be used if a prefixed
one is not found.
This patch is mainly helpful for a cross compile environment, such as
MinGW-w64.
Best regards,
Kyle Schwarz
-------------- next part --------------
>From 23363b9f7e65c27199d43637d75aec5bb8af7ab0 Mon Sep 17 00:00:00 2001
From: Kyle Schwarz <kyle.r.schwarz at gmail.com>
Date: Fri, 29 Jun 2012 01:32:00 -0400
Subject: [PATCH] Fix pkg-config detection when using a cross-prefix
Fall-back on a native system pkg-config if a cross-prefixed pkg-config is not found.
---
configure | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index f30998b..9ea6341 100755
--- a/configure
+++ b/configure
@@ -2130,8 +2130,13 @@ enabled cross_compile || host_cc_default=$cc
set_default host_cc
if ! $pkg_config --version >/dev/null 2>&1; then
- warn "$pkg_config not found, library detection may fail."
- pkg_config=false
+ if pkg-config --version >/dev/null 2>&1; then
+ warn "$pkg_config not found, using $(which pkg-config)."
+ pkg_config=pkg-config
+ else
+ warn "$pkg_config not found, library detection may fail."
+ pkg_config=false
+ fi
fi
exesuf() {
--
1.7.2.5
More information about the ffmpeg-devel
mailing list