Patch by Matt Madia: Added automatic detection of 32 or 64 bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
be125ae02f
commit
308c212c31
14
configure
vendored
14
configure
vendored
@ -238,6 +238,7 @@ cd "$currentDir"
|
||||
# default parameter values
|
||||
#
|
||||
platform=`uname`
|
||||
platform_machine=`uname -m`
|
||||
haikuGCCVersion=
|
||||
haikuGCCMachine=i586-pc-haiku
|
||||
haikuStaticLibStdCxx=
|
||||
@ -335,6 +336,13 @@ while [ $# -gt 0 ] ; do
|
||||
esac
|
||||
done
|
||||
|
||||
# check for a 64bit platform
|
||||
case "${platform_machine}" in
|
||||
x86_64) use_32bit=1 ;;
|
||||
*) echo Assuming 32-bit machine: "$platform_machine"
|
||||
use_32bit=0 ;;
|
||||
esac
|
||||
|
||||
# detect the build platform
|
||||
case "${platform}" in
|
||||
BeOS) revision=`uname -r`
|
||||
@ -348,7 +356,11 @@ case "${platform}" in
|
||||
esac
|
||||
;;
|
||||
Darwin) buildPlatform=darwin ;;
|
||||
FreeBSD) buildPlatform=freebsd ;;
|
||||
FreeBSD) buildPlatform=freebsd
|
||||
if [ "$use_32bit" = 1 ] ; then
|
||||
echo Unsupported platform: FreeBSD ${platform_machine}
|
||||
exit 1
|
||||
fi ;;
|
||||
Haiku) buildPlatform=haiku_host ;;
|
||||
Linux) buildPlatform=linux ;;
|
||||
OpenBSD) buildPlatform=openbsd ;;
|
||||
|
Loading…
Reference in New Issue
Block a user