From dd6025502d5a3279777bd5710ea9443ec3744210 Mon Sep 17 00:00:00 2001 From: nigel <> Date: Sun, 6 Oct 2002 23:23:10 +0000 Subject: [PATCH] MacOS 10.2 compatibility (diffeent config.sub & config.guess location), argument processing (like Unix autogen.sh) --- BasiliskII/src/MacOSX/1_prepare_files.sh | 34 +++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/BasiliskII/src/MacOSX/1_prepare_files.sh b/BasiliskII/src/MacOSX/1_prepare_files.sh index edd5d305..80c5e06c 100644 --- a/BasiliskII/src/MacOSX/1_prepare_files.sh +++ b/BasiliskII/src/MacOSX/1_prepare_files.sh @@ -1,8 +1,36 @@ -ln -s /usr/libexec/config.guess . -ln -s /usr/libexec/config.sub . +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +# +# Note that we actually don't need a config.guess +# We could instead do something like: +# ./configure --build=powerpc-apple-darwin6.1 +# +if [ -e /usr/libexec/config.guess ] +then + # + # MacOS X 10.1 + # + ln -s /usr/libexec/config.guess . + ln -s /usr/libexec/config.sub . +else + # + # MacOS X 10.2 (and later?) + # + ln -s /usr/share/libtool/config.guess . + ln -s /usr/share/libtool/config.sub . +fi + ln -s ../Unix/user_strings_unix.h . ln -s ../Unix/acconfig.h . ln -s ../Unix/install-sh . ln -s ../../README README.txt + autoconf -./configure + +if test -z "$*"; then + echo "I am going to run ./configure with no arguments - if you wish to pass" + echo " any to it, please specify them on the $0 command line." +fi + +./configure "$@"