mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-08 17:21:20 +00:00
Update osversion script to recognize x86_64 triples for Darwin as Darwin Update machinetype script to return 386 for MacOS El Capitan (10.11), x86_64 for other versions Add makefile-darwin.x86_64-x for compiling in 64-bit mode on later MacOS versions modified: config.guess modified: machinetype new file: makefile-darwin.x86_64-x modified: osversion
27 lines
695 B
Bash
Executable File
27 lines
695 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=`./config.guess`
|
|
|
|
# o/s switch block
|
|
case "$os" in
|
|
sparc-*) echo sparc ;;
|
|
alpha-*) echo alpha ;;
|
|
i*86-*-*) echo 386 ;;
|
|
x86_64-apple-darwin15*) echo 386 ;;
|
|
x86_64-*) echo x86_64 ;;
|
|
powerpc-*) echo ppc ;;
|
|
esac
|
|
|
|
|
|
### Don't leave the variables set.
|
|
unset os
|