Fix platform detection for non-i386 case.

Build successfully tested on alpha.
This commit is contained in:
Christian Weisgerber 2002-11-12 21:27:12 +00:00
parent 190ab0705d
commit 884ef342c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69977
2 changed files with 23 additions and 2 deletions

View file

@ -13,8 +13,6 @@ MASTER_SITES= ftp://www.gn-50uma.de/gn/gn-50uma.de/pari-2.1/ \
MAINTAINER= yoshiaki@kt.rim.or.jp
ONLY_FOR_ARCHS= i386
INSTALLS_SHLIB= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure

View file

@ -0,0 +1,23 @@
$FreeBSD$
--- config/arch-osname.orig Mon Apr 2 00:10:23 2001
+++ config/arch-osname Tue Nov 12 22:24:03 2002
@@ -10,11 +10,16 @@
irix*) osname=irix;;
fx2800) arch=fx2800; osname=concentrix;;
hp*) arch=hppa; osname=hpux;;
- freebsd|os2) arch=ix86;;
+ os2) arch=ix86;;
ultrix) arch=mips;;
nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;;
osf1) case "$5" in alpha) arch=alpha;; esac;;
cygwin*) arch=$HOSTTYPE; osname=cygwin;;
+ freebsd) arch=`uname -m`
+ case $arch in
+ i386) arch=ix86;;
+ sparc64) arch=sparcv9;;
+ esac;;
linux) arch=`uname -m`
case "`cat /proc/cpuinfo`" in
*SuperSparc*) arch=sparcv8_super;;