Ticket #3391: 3391-rev1.diff

File 3391-rev1.diff, 1000 bytes (added by mmadia, 15 years ago)

preliminary patch

Line 
1Index: configure
2===================================================================
3--- configure (revision 29087)
4+++ configure (working copy)
5 -225,6 +225,7 @@
6 # default parameter values
7 #
8 platform=`uname`
9+platform_machine=`uname -m`
10 haikuGCCVersion=
11 haikuGCCMachine=i586-pc-haiku
12 haikuStaticLibStdCxx=
13 -321,6 +322,13 @@
14 esac
15 done
16
17+# check for a 64bit platform
18+case "${platform_machine}" in
19+ x86_64) use_32bit=1 ;;
20+ *) echo Assuming 32-bit machine: "$platform_machine"
21+ use_32bit=0 ;;
22+esac
23+
24 # detect the build platform
25 case "${platform}" in
26 BeOS) revision=`uname -r`
27 -334,7 +342,11 @@
28 esac
29 ;;
30 Darwin) buildPlatform=darwin ;;
31- FreeBSD) buildPlatform=freebsd ;;
32+ FreeBSD) buildPlatform=freebsd
33+ if [ "$use_32bit" = 1 ] ; then
34+ echo Unsupported platform: FreeBSD ${platform_machine}
35+ exit 1
36+ fi ;;
37 Haiku) buildPlatform=haiku_host ;;
38 Linux) buildPlatform=linux ;;
39 OpenBSD) buildPlatform=openbsd ;;