diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-19 08:58:32 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-19 08:58:32 +0100 |
commit | 2c3340909abd4f88be6ab814247a6dcd5da0a899 (patch) | |
tree | 2f06269d9863a56b19a73c3f9c81d3609be982d5 | |
parent | 04a90d76954901897f0a521552c448f1f4845461 (diff) | |
download | emacs-2c3340909abd4f88be6ab814247a6dcd5da0a899.tar.gz |
Warn the user if we can't find pkg-config
* configure.ac (WITH_IFAVAILABLE): Warn the user if we can't find
a usable pkg-config (bug#47159).
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1802c1baa12..2c62a9fe6f7 100644 --- a/configure.ac +++ b/configure.ac @@ -3897,6 +3897,11 @@ case $with_json,$HAVE_JSON in WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-json=ifavailable";; esac if test "X${MISSING}" != X; then + # If we have a missing library, and we don't have pkg-config installed, + # the missing pkg-config may be the reason. Give the user a hint. + if test "X${PKG_CONFIG}" = X; then + AC_MSG_WARN([Unable to locate a usable pkg-config]) + fi AC_MSG_ERROR([The following required libraries were not found: $MISSING Maybe some development libraries/packages are missing? |