diff options
author | Hugh McMaster <hugh.mcmaster@outlook.com> | 2022-08-11 12:24:30 +1000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2022-08-15 09:42:11 +0100 |
commit | fc27f8542c08d09ffe89c006366ea797b49e9929 (patch) | |
tree | 7b137e8d67a5da4c0211f28817c5b8616d3f76ec | |
parent | fa87c4e2372d08726cfb0d335401954569b9f121 (diff) | |
download | neon-git-fc27f8542c08d09ffe89c006366ea797b49e9929.tar.gz |
neon.m4: Find pkg-config using AC_PATH_TOOL to enable cross-compiling
AC_PATH_TOOL considers the host prefix when searching for a given program.
-rw-r--r-- | macros/neon.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4 index dcf7eb1..1f04807 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -901,8 +901,8 @@ AC_DEFUN([NE_PKG_CONFIG], [ m4_define([ne_cvar], m4_translit(ne_cv_pkg_[$2], [.-], [__]))dnl -AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -if test "$PKG_CONFIG" = "no"; then +AC_PATH_TOOL(PKG_CONFIG, pkg-config, no) +if test "x$PKG_CONFIG" = "xno"; then : Not using pkg-config $4 else |