build: Fix configure crashing when no compiler is present.
Reported by Andrius Štikonas <andrius@stikonas.eu> via IRC. * configure (main): Cater for missing cc, actually set m2-planet when found.
This commit is contained in:
parent
7b993b35b9
commit
aa5f1533e1
3
configure
vendored
3
configure
vendored
|
@ -494,6 +494,7 @@ Some influential environment variables:
|
||||||
(file-name "cc" deps)
|
(file-name "cc" deps)
|
||||||
(file-name "cc-v" deps)
|
(file-name "cc-v" deps)
|
||||||
(file-name "mescc" deps)))
|
(file-name "mescc" deps)))
|
||||||
|
(m2-planet (file-name "M2-Planet" deps))
|
||||||
(deps (if cc
|
(deps (if cc
|
||||||
(cons* (check-header-c cc (make-dep "limits.h"))
|
(cons* (check-header-c cc (make-dep "limits.h"))
|
||||||
(check-header-c cc (make-dep "stdio.h" #:optional? #t))
|
(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) ""))
|
("@AR@" . ,(or (file-name "ar" deps) ""))
|
||||||
("@BASH@" . ,bash)
|
("@BASH@" . ,bash)
|
||||||
("@CC@" . ,cc)
|
("@CC@" . ,(or cc ""))
|
||||||
("@DIFF@" . ,(or (file-name "diff" deps) (string-append abs-top-builddir "/pre-inst-env diff.scm")))
|
("@DIFF@" . ,(or (file-name "diff" deps) (string-append abs-top-builddir "/pre-inst-env diff.scm")))
|
||||||
("@DOT@" . ,(or (file-name "dot" deps) ""))
|
("@DOT@" . ,(or (file-name "dot" deps) ""))
|
||||||
("@GIT@" . ,(or (file-name "git" deps) ""))
|
("@GIT@" . ,(or (file-name "git" deps) ""))
|
||||||
|
|
Loading…
Reference in a new issue