freebsd: Initial configure support.

* configure: Initial FreeBSD configure support.
* configure.sh: Likewise.  Run without bash.
This commit is contained in:
Jan Nieuwenhuizen 2019-12-11 00:10:22 +00:00
parent 34106fc420
commit e4f293afdd
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 5 additions and 3 deletions

4
configure vendored
View File

@ -456,8 +456,8 @@ Some influential environment variables:
(make-dep "sh" #:version '(0) #:optional? #t)
(make-dep "bash" #:version '(2 0) #:optional? #t)
(make-dep "guild" #:version '(2 0) #:commands '("guild" "guile-tools" "true"))
(make-dep "cc" #:commands (list gcc tcc mescc) #:optional? #t)
(make-dep "make" #:optional? #t)
(make-dep "cc" #:commands (list gcc "cc" tcc mescc) #:optional? #t)
(make-dep "make" #:optional? #t #:commands '("gmake" "make"))
(make-dep "makeinfo" #:optional? #t)
(make-dep "dot" #:version-option "-V" #:optional? #t)
(make-dep "help2man" #:version '(1 47) #:optional? #t)

View File

@ -58,7 +58,7 @@ prefix=${prefix-/usr/local}
mes_libc=${mes_libc-mes}
courageous=${courageous-false}
BASH=${BASH-$(command -v bash)}
BASH=${BASH-$(command -v bash || command -v sh)}
BLOOD_ELF=${BLOOD_ELF-$(command -v blood-elf)}
CC=${CC-$(command -v gcc)} || true
CFLAGS=${CFLAGS-}
@ -197,6 +197,8 @@ case "$host" in
mes_kernel=linux;;
*gnu)
mes_kernel=gnu;;
*freebsd*)
mes_kernel=frreebsd;;
*)
mes_kernel=linux;;
esac