Bill Allombert on Wed, 18 Sep 2002 14:50:30 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Configure update |
Hello PARI/GP developers, Here's a patch for Configure to add support to more architectures. I have been careful, but this need to be double checked on hppa-hpux. Cheers, Bill Index: Configure =================================================================== RCS file: /home/megrez/cvsroot/pari/Configure,v retrieving revision 1.88 diff -u -r1.88 Configure --- Configure 2002/09/15 16:26:12 1.88 +++ Configure 2002/09/18 12:47:33 @@ -275,7 +275,8 @@ Currently supported architectures: EOM rep='none sparcv7 sparcv8_super sparcv8_micro sparcv9 - m68k ix86 i386 i486 i586 i686 hppa alpha mips fx2800' + m68k ix86 i386 i486 i586 i686 alpha arm fx2800 hppa mips + ppc s390' . ./display echo $n ..."Which of these apply, if any ? $c" dflt=$arch; . ./myread; arch=$ans @@ -308,13 +309,17 @@ sparcv9) asmarch=sparcv8_micro; pretty=UltraSparc ;; m68k) asmarch=$arch; pretty="MC680x0, x>=2" ;; i?86) asmarch=ix86 ; pretty=$arch ;; - hppa) asmarch=none ; pretty=HP + ia64) asmarch=none ; pretty=ia64 ;; + hppa) asmarch=none ; pretty="HP Precision" case "$osname-`uname -r`" in hpux-?.10.*) asmarch=$arch ;; esac ;; alpha) asmarch=$arch; pretty=Alpha ;; + arm*) asmarch=none; pretty=$arch ;; mips) asmarch=none; pretty=Mips ;; fx2800) asmarch=none; pretty="Alliant FX/2800" ;; + ppc) asmarch=none; pretty="Power PC" ;; + s390) asmarch=none; pretty="S/390" ;; none) asmarch=none; pretty="unknown" ;; *) asmarch=none; pretty=$arch echo " Warning ! architecture $arch not tested";; Index: config/arch-osname =================================================================== RCS file: /home/megrez/cvsroot/pari/config/arch-osname,v retrieving revision 1.2 diff -u -r1.2 arch-osname --- config/arch-osname 2001/03/27 12:57:50 1.2 +++ config/arch-osname 2002/09/18 12:47:33 @@ -9,7 +9,8 @@ case "$osname" in irix*) osname=irix;; fx2800) arch=fx2800; osname=concentrix;; - hp*) arch=hppa; osname=hpux;; + hp*) osname=hpux; arch=`uname -m` + if test "x$arch" = "x" ; then arch=hppa; fi ;; freebsd|os2) arch=ix86;; ultrix) arch=mips;; nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;;