From d50769dc01df85c993439b2943bac4d884901441 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 17 Mar 2018 14:10:53 +0100 Subject: [PATCH] autogen: Report missing requirements (#1394) * autogen: Report missing autoconf-archive autoconf-archive is required, but users often missed that requirement. The script now detects and reports missing autoconf-archive and removes the incomplete generated configure script. Signed-off-by: Stefan Weil * autogen: Report missing pkg-config pkg-config is required. The script now detects and reports missing pkg-config and removes the incomplete generated configure script. Signed-off-by: Stefan Weil --- autogen.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/autogen.sh b/autogen.sh index 6bbec85d32..1cfb51f91d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -113,6 +113,20 @@ automake --add-missing --copy --warnings=all || bail_out echo "Running autoconf" autoconf || bail_out +if grep -q AX_CHECK_COMPILE_FLAG configure; then + # The generated configure is invalid because autoconf-archive is unavailable. + rm configure + echo "Missing autoconf-archive. Check the build requirements." + bail_out +fi + +if grep -q PKG_CHECK_MODULES configure; then + # The generated configure is invalid because pkg-confg is unavailable. + rm configure + echo "Missing pkg-config. Check the build requirements." + bail_out +fi + echo "" echo "All done." echo "To build the software now, do something like:"