gnome-podcasts: 0.7.1 -> 0.7.2 (#373846)
[NixPkgs.git] / pkgs / by-name / li / libtiger / pkg-config.patch
blob68c892544615eb6c75022d2c5ab6bc7545fb76ff
1 From 3ebeb0932edc01b7768216dc7d3b3c5aac21fba0 Mon Sep 17 00:00:00 2001
2 From: Alyssa Ross <hi@alyssa.is>
3 Date: Sun, 26 Feb 2023 17:21:48 +0000
4 Subject: [PATCH] configure.ac: detect pkg-config properly
6 When cross compiling, the relevant pkg-config program might be prefixed
7 with the name of the host platform, so the previous check was not
8 correct. Detect pkg-config properly, using the appropriate macro.
9 ---
10 configure.ac | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/configure.ac b/configure.ac
14 index 2f63684..bf2faf7 100644
15 --- a/configure.ac
16 +++ b/configure.ac
17 @@ -46,7 +46,7 @@ AC_CHECK_FUNCS([select nanosleep usleep])
19 AC_TYPE_SIZE_T
21 -AC_CHECK_PROG(HAVE_PKG_CONFIG,pkg-config,yes)
22 +PKG_PROG_PKG_CONFIG
24 AC_ARG_ENABLE(doc, [ --disable-doc Disable building documentation (default enabled)])
25 if test "x$enable_doc" != "xno"
26 @@ -57,7 +57,7 @@ else
28 AM_CONDITIONAL(HAVE_DOXYGEN,test "${HAVE_DOXYGEN}" = "yes")
30 -if test "x$HAVE_PKG_CONFIG" = "xyes"
31 +if test "x$PKG_CONFIG" != "x"
32 then
33 PKG_CHECK_MODULES(KATE,kate >= 0.2.0)
34 PKG_CHECK_MODULES(PANGOCAIRO,pangocairo >= 1.16)
35 --
36 2.37.1