From ea588d0b9c0d494d45f9e9d19a54cf536b33ff9b Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 31 Aug 2020 12:36:35 +0200 Subject: [PATCH] build: do not hard-code pkg-config Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. Fixes cross-compilation. Signed-off-by: Jeremy Sowden --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8f8a13b..7d77996 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ fi AC_CHECK_HEADERS([linux/netfilter/x_tables.h], [], [AC_MSG_ERROR([You need to have linux/netfilter/x_tables.h, see INSTALL file for details])]) PKG_CHECK_MODULES([libxtables], [xtables >= 1.6.0]) -xtlibdir="$(pkg-config --variable=xtlibdir xtables)" +xtlibdir="$($PKG_CONFIG --variable=xtlibdir xtables)" AC_ARG_WITH([xtlibdir], AS_HELP_STRING([--with-xtlibdir=PATH],