[rhythmbox] build: Use pkg-config binary as detected by PKG_PROG_PKG_CONFIG
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] build: Use pkg-config binary as detected by PKG_PROG_PKG_CONFIG
- Date: Mon, 13 Jun 2016 22:22:14 +0000 (UTC)
commit f676800eac9d866cef6b4b7fbac2024a5d4d2baf
Author: Marvin Schmidt <marv exherbo org>
Date: Fri Jun 3 22:20:20 2016 +0200
build: Use pkg-config binary as detected by PKG_PROG_PKG_CONFIG
In cross-compilation scenarios `pkg-config` is not be the correct
pkg-config executable for the host. PKG_PROG_PKG_CONFIG checks for
the correct host prefixed executable and defines $PKG_CONFIG, so use
that instead of `pkg-config`
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bb08428..e7a03a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,7 +118,7 @@ PKG_CHECK_MODULES(TOTEM_PLPARSER, totem-plparser >= $TOTEM_PLPARSER_REQS, have_t
if test x$have_totem_plparser != xyes; then
AC_MSG_ERROR([totem playlist parsing library not found or too old])
else
- if test "x`pkg-config --variable uselibcamel totem-plparser`" = "xno" ; then
+ if test "x`$PKG_CONFIG --variable uselibcamel totem-plparser`" = "xno" ; then
AC_MSG_ERROR([totem playlist parsing library has Podcast parsing disabled])
fi
fi
@@ -303,7 +303,7 @@ fi
AM_CONDITIONAL(USE_NOTIFY, test x"$enable_libnotify" = xyes)
if test x$enable_libnotify = xyes ; then
# Find out the version of LIBNOTIFY we're using
- libnotify_version=`pkg-config --modversion libnotify`
+ libnotify_version=`$PKG_CONFIG --modversion libnotify`
LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'`
LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'`
LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]