From: Debian Security Tools <team+pkg-security@tracker.debian.org>
Date: Tue, 2 Feb 2021 15:05:06 +0100
Subject: Use cross-build compatible macro for finding pkg-config.

Origin: other
Last-Update: 2020-11-24


The package uses AC_PATH_PROG to discover the location of pkg-config(1). This
macro fails to select the correct version to support cross-compilation.

This patch changes it to use AC_PATH_TOOL.

Refer to https://bugs.debian.org/884798 for details.
=== modified file 'configure.ac'
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 016e42a..8fa3410 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,7 @@ AC_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
 dnl Check for pkg-config
-AC_PATH_PROG(PKGCONFIG,[pkg-config])
+AC_PATH_TOOL(PKGCONFIG,[pkg-config])
 
 dnl Support of internationalization (i18n)
 AM_GNU_GETTEXT([external])
