mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-16 08:15:31 +00:00
* Support building on OpenBSD, x86-64 * Clean up OpenBSD Makefile * Add OpenBSD to cmake build * Use clang as CC for OpenBSD Co-authored-by: Alex Segura <alex@lispm.dev>
28 lines
806 B
Bash
Executable File
28 lines
806 B
Bash
Executable File
#!/bin/sh
|
|
#########################################################################
|
|
# #
|
|
# M A C H I N E T Y P E #
|
|
# #
|
|
# Compute the hardware architecture we're running on. #
|
|
# #
|
|
# (C) Copyright 2001 Venue. All Rights Reserved #
|
|
# #
|
|
#########################################################################
|
|
|
|
os=${LDEARCH:-`./config.guess`}
|
|
# o/s switch block
|
|
case "$os" in
|
|
sparc-*) echo sparc ;;
|
|
alpha-*) echo alpha ;;
|
|
i*86-*-*) echo 386 ;;
|
|
armv7l-*-*) echo armv7l ;;
|
|
aarch64-*-*) echo aarch64 ;;
|
|
x86_64-apple-darwin15*) echo 386 ;;
|
|
x86_64-*) echo x86_64 ;;
|
|
powerpc-*) echo ppc ;;
|
|
amd64-*) echo x86_64 ;;
|
|
esac
|
|
|
|
### Don't leave the variables set.
|
|
unset os
|