comparison configure @ 6313:459ac73266b5

Setup better cflags for PPC G3 patch by Colin Leroy <colin@colino.net>. IMHO needs improvements for other ppc cpus, too.
author atmos4
date Thu, 06 Jun 2002 16:46:05 +0000
parents aa9aca7772de
children d14ae909f855
comparison
equal deleted inserted replaced
6312:c5fa750dde23 6313:459ac73266b5
71 # x86/x86pc is used by QNX 71 # x86/x86pc is used by QNX
72 x86() { 72 x86() {
73 case "$host_arch" in 73 case "$host_arch" in
74 i[3-9]86|x86|x86pc) return 0 ;; 74 i[3-9]86|x86|x86pc) return 0 ;;
75 *) return 1 ;; 75 *) return 1 ;;
76 esac
77 }
78
79 ppc() {
80 case "$host_arch" in
81 ppc) return 0;;
82 *) return 1;;
76 esac 83 esac
77 } 84 }
78 85
79 # Use this before starting a check 86 # Use this before starting a check
80 echocheck() { 87 echocheck() {
453 _as=`$_cc -print-prog-name=as` 460 _as=`$_cc -print-prog-name=as`
454 test -z "$_as" && _as=as 461 test -z "$_as" && _as=as
455 fi 462 fi
456 463
457 # Try to find the available options for the current CPU 464 # Try to find the available options for the current CPU
458 if x86 ; then 465 if x86 || ppc; then
459 if test -r /proc/cpuinfo ; then 466 if test -r /proc/cpuinfo ; then
460 # linux with /proc mounted, extract cpu information from it 467 # linux with /proc mounted, extract cpu information from it
461 _cpuinfo="cat /proc/cpuinfo" 468 _cpuinfo="cat /proc/cpuinfo"
462 elif test -r /compat/linux/proc/cpuinfo ; then 469 elif test -r /compat/linux/proc/cpuinfo ; then
463 # FreeBSD with linux emulation /proc mounted, 470 # FreeBSD with linux emulation /proc mounted,
705 _def_words_endian='#define WORDS_BIGENDIAN 1' 712 _def_words_endian='#define WORDS_BIGENDIAN 1'
706 iproc='ppc' 713 iproc='ppc'
707 proc='' 714 proc=''
708 _march='' 715 _march=''
709 _mcpu='' 716 _mcpu=''
717 cpu750=`$_cpuinfo | grep "cpu.*750"`
718 if test -n "$cpu750"; then
719 _march=''
720 _mcpu='-mcpu=750'
721 fi
710 ;; 722 ;;
711 723
712 alpha) 724 alpha)
713 _def_arch='#define ARCH_ALPHA 1' 725 _def_arch='#define ARCH_ALPHA 1'
714 _target_arch='TARGET_ARCH_ALPHA = yes' 726 _target_arch='TARGET_ARCH_ALPHA = yes'