From aa5f1533e1736a89e60d2c34c2a0ab3b01f8d037 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 14 May 2022 21:09:06 +0200 Subject: [PATCH] build: Fix configure crashing when no compiler is present. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Andrius Štikonas via IRC. * configure (main): Cater for missing cc, actually set m2-planet when found. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6ab8211d..aeed7c71 100755 --- a/configure +++ b/configure @@ -494,6 +494,7 @@ Some influential environment variables: (file-name "cc" deps) (file-name "cc-v" deps) (file-name "mescc" deps))) + (m2-planet (file-name "M2-Planet" deps)) (deps (if cc (cons* (check-header-c cc (make-dep "limits.h")) (check-header-c cc (make-dep "stdio.h" #:optional? #t)) @@ -629,7 +630,7 @@ See \"Porting GNU Mes\" in the manual, or try --with-courage\n" mes-system) ("@AR@" . ,(or (file-name "ar" deps) "")) ("@BASH@" . ,bash) - ("@CC@" . ,cc) + ("@CC@" . ,(or cc "")) ("@DIFF@" . ,(or (file-name "diff" deps) (string-append abs-top-builddir "/pre-inst-env diff.scm"))) ("@DOT@" . ,(or (file-name "dot" deps) "")) ("@GIT@" . ,(or (file-name "git" deps) ""))