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 "sh" #:version '(0) #:optional? #t)
(make-dep "bash" #:version '(2 0) #:optional? #t) (make-dep "bash" #:version '(2 0) #:optional? #t)
(make-dep "guild" #:version '(2 0) #:commands '("guild" "guile-tools" "true")) (make-dep "guild" #:version '(2 0) #:commands '("guild" "guile-tools" "true"))
(make-dep "cc" #:commands (list gcc tcc mescc) #:optional? #t) (make-dep "cc" #:commands (list gcc "cc" tcc mescc) #:optional? #t)
(make-dep "make" #:optional? #t) (make-dep "make" #:optional? #t #:commands '("gmake" "make"))
(make-dep "makeinfo" #:optional? #t) (make-dep "makeinfo" #:optional? #t)
(make-dep "dot" #:version-option "-V" #:optional? #t) (make-dep "dot" #:version-option "-V" #:optional? #t)
(make-dep "help2man" #:version '(1 47) #: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} mes_libc=${mes_libc-mes}
courageous=${courageous-false} courageous=${courageous-false}
BASH=${BASH-$(command -v bash)} BASH=${BASH-$(command -v bash || command -v sh)}
BLOOD_ELF=${BLOOD_ELF-$(command -v blood-elf)} BLOOD_ELF=${BLOOD_ELF-$(command -v blood-elf)}
CC=${CC-$(command -v gcc)} || true CC=${CC-$(command -v gcc)} || true
CFLAGS=${CFLAGS-} CFLAGS=${CFLAGS-}
@ -197,6 +197,8 @@ case "$host" in
mes_kernel=linux;; mes_kernel=linux;;
*gnu) *gnu)
mes_kernel=gnu;; mes_kernel=gnu;;
*freebsd*)
mes_kernel=frreebsd;;
*) *)
mes_kernel=linux;; mes_kernel=linux;;
esac esac