From ebf2fdb938c755026668c8418da290e6870c1987 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 7 Feb 2021 02:51:25 +0100 Subject: configure.ac: Don't try to run pkg-config if it is not available --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f4e89a1..eade215 100644 --- a/configure.ac +++ b/configure.ac @@ -123,7 +123,9 @@ fi if [test "x$CYTHON" != "xfalse"]; then PKG_PROG_PKG_CONFIG AC_MSG_CHECKING([for libplist Cython bindings]) - CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist-2.0)/plist/cython + if test -x "$PKG_CONFIG"; then + CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist-2.0)/plist/cython + fi if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then CYTHON_PLIST_INCLUDE_DIR=. cython_python_bindings=yes -- cgit v1.1-32-gdbae