]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5428: Warn if pkg-config is not found (#1902) auto master
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Mon, 23 Sep 2024 02:09:29 +0000 (02:09 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 23 Sep 2024 02:09:32 +0000 (02:09 +0000)
Squid builds without pkg-config, but results are likely to surprise
administrators because many optional features will not be
default-enabled despite properly installed libraries.

configure.ac

index 19a5cbe7f85528bc526b9e4529b1ae15269a517d..58481fed7fbd57dad837832572687cd9df880546 100644 (file)
@@ -117,6 +117,10 @@ dnl Libtool 2.2.6 requires: rm -f
 RM="$RM -f"
 
 PKG_PROG_PKG_CONFIG
+AS_IF([test "x$PKG_CONFIG" = "x"],[
+  AC_MSG_WARN([pkg-config not found. Many optional features with external dependencies will not be enabled by default, usually without further warnings.])
+])
+
 
 AC_PATH_PROG(PERL, perl, none)
 AS_IF([test "x$ac_cv_path_PERL" = "xnone"],[