From 0f6b17150c24dd8c4d1eb26df118439088846b9b Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sun, 21 Jan 2024 10:45:30 -0500 Subject: feat: build script updates to check for tooling autogen.sh: warn if the user doesn't have at least autotools, guile, and make installed, and if they have hall run it first --- autogen.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index bbb4008..9b13ad9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,31 @@ #!/bin/sh +if command -v hall &>/dev/null; then + hall build -x +fi + +command -v autoreconf &>/dev/null +HAS_AUTORECONF=$? +command -v autoconf &>/dev/null +HAS_AUTOCONF=$? +command -v automake &>/dev/null +HAS_AUTOMAKE=$? +command -v make &>/dev/null +HAS_MAKE=$? +command -v guile &>/dev/null +HAS_GUILE=$? + +if ! [ $HAS_AUTORECONF = 0 \ + -a $HAS_AUTOCONF = 0 \ + -a $HAS_AUTOMAKE = 0 \ + -a $HAS_MAKE = 0 \ + -a $HAS_GUILE = 0 ] +then + echo "A build system consisting at least of GNU Autotools," + echo "guile 3, and make is required for building reading-heap." + echo "" + echo "Please install these and try again." + exit 1; +fi + autoreconf --install || exit 1 -- cgit v1.2.3