]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fail the autoconf script early if pkg-config is not present.
authorOndřej Surý <ondrej@isc.org>
Tue, 14 Jan 2020 13:07:36 +0000 (14:07 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 14 Jan 2020 13:07:36 +0000 (14:07 +0100)
configure
configure.ac

index a3eb8aa1d20c732fedca17a6e95208b46bda9871..0a4b3c1ae36d991a6e3e42dd5dbaa6c8679af1d5 100755 (executable)
--- a/configure
+++ b/configure
@@ -12216,6 +12216,9 @@ $as_echo "no" >&6; }
                PKG_CONFIG=""
        fi
 fi
+if test -z "$PKG_CONFIG"; then :
+  as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
+fi
 
 # Check whether --enable-buffer_useinline was given.
 if test "${enable_buffer_useinline+set}" = set; then :
index 19b4816540cf5f52fbf676b33f4ded3d02f9e252..1ee7afd88d42b680159a287269df774620e8db38 100644 (file)
@@ -61,6 +61,8 @@ AC_SUBST(BACKTRACECFLAGS)
 #
 
 PKG_PROG_PKG_CONFIG
+AS_IF([test -z "$PKG_CONFIG"],
+      [AC_MSG_ERROR([The pkg-config script could not be found or is too old.])])
 
 AC_ARG_ENABLE(buffer_useinline,
              AS_HELP_STRING([--enable-buffer-useinline],