From 6b2029fa16568bd3e1c29242d064b20ad979cb20 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 3 Feb 2012 08:44:24 +0700 Subject: [PATCH] Show error from bootstrap.sh if pkg-config not found. It generated broken configure script without pkg-config installed. --- autogen.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autogen.sh b/autogen.sh index 2ed40307..8b9f3ebf 100755 --- a/autogen.sh +++ b/autogen.sh @@ -38,4 +38,11 @@ test -f config.guess -a -f config.sub -a -f install-sh || echo "(Yes, automake is supposed to fail, ignore that)" echo + +if grep PKG_CHECK_MODULES configure > /dev/null +then + rm configure + die "ERROR: pkg-config not found. Install pkg-config and run $0 again" +fi + echo "You may now run ./configure."