Check if pkg-config is available and throw an error if it's not in autogen.sh

This commit is contained in:
Alexey Kopytov
2016-03-07 20:20:41 +03:00
parent 11603c917d
commit ba0fddb088

View File

@ -85,6 +85,17 @@ if test x$AUTOHEADER = x; then
fi
fi
if test x$PKG_CONFIG = x; then
PKG_CONFIG="pkg-config"
fi
if test -z "$($PKG_CONFIG --version)"; then
echo <<EOF
$PKG_CONFIG wasn't found, exiting. You must have it installed to compile sysbench
EOF
exit 1
fi
run $ACLOCAL $ACLOCAL_FLAGS || die "Can't execute aclocal"
run $LIBTOOLIZE $LIBTOOLIZE_FLAGS || die "Can't execute libtoolize"
run $AUTOHEADER || die "Can't execute autoheader"