From e496f020d6c0a6da840263a84b317d9c0931cf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Sat, 18 Aug 2018 20:20:07 +0800 Subject: [PATCH] Implement pkg-config detection in autogen.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch checks the presence of the pkg-config Autoconf macro before running the configure script. Fixes #21. Refer-to: autogen.sh should check pkg-config's presence (#21) · Issues · GNOME / libxml2 · GitLab Signed-off-by: 林博仁(Buo-ren Lin) --- autogen.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autogen.sh b/autogen.sh index 8b47ea506..8e74485a3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -32,6 +32,14 @@ DIE=0 echo "or see http://www.gnu.org/software/automake" } +if ! test -f "$(aclocal --print-ac-dir)"/pkg.m4; then + echo + DIE=1 + echo "You must have pkg-config installed to compile libxml." + echo "Download the appropriate package for your distribution," + echo "or see https://www.freedesktop.org/wiki/Software/pkg-config/" +fi + if test "$DIE" -eq 1; then exit 1 fi -- GitLab