[PULL 09/19] configure: Test if $make actually exists

Laurent Vivier posted 19 patches 4 years, 11 months ago
Maintainers: Markus Armbruster <armbru@redhat.com>, Anthony Perard <anthony.perard@citrix.com>, Viktor Prutyanov <viktor.prutyanov@phystech.edu>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Paul Durrant <paul@xen.org>, Stefano Stabellini <sstabellini@kernel.org>
There is a newer version of this series
[PULL 09/19] configure: Test if $make actually exists
Posted by Laurent Vivier 4 years, 11 months ago
From: Roman Bolshakov <r.bolshakov@yadro.com>

configure doesn't detect if $make is installed on the build host.
This is also helpful for hosts where an alias for make is used, i.e.
configure would fail if gmake is not present on macOS.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200825202755.50626-5-r.bolshakov@yadro.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 3f823ed16374..c20ed86ff35b 100755
--- a/configure
+++ b/configure
@@ -1875,6 +1875,10 @@ if test -z "$python"
 then
     error_exit "Python not found. Use --python=/path/to/python"
 fi
+if ! has "$make"
+then
+    error_exit "GNU make ($make) not found"
+fi
 
 # Note that if the Python conditional here evaluates True we will exit
 # with status 1 which is a shell 'false' value.
-- 
2.29.2