# HG changeset patch # User atmos4 # Date 1023381965 0 # Node ID 459ac73266b560124f52a9ba7e79a03431f30446 # Parent c5fa750dde234c743a4b152e6c5fc1a56f4c842a Setup better cflags for PPC G3 patch by Colin Leroy . IMHO needs improvements for other ppc cpus, too. diff -r c5fa750dde23 -r 459ac73266b5 configure --- a/configure Thu Jun 06 09:36:12 2002 +0000 +++ b/configure Thu Jun 06 16:46:05 2002 +0000 @@ -76,6 +76,13 @@ esac } +ppc() { + case "$host_arch" in + ppc) return 0;; + *) return 1;; + esac +} + # Use this before starting a check echocheck() { echo "============ Checking for $@ ============" >> "$TMPLOG" @@ -455,7 +462,7 @@ fi # Try to find the available options for the current CPU -if x86 ; then +if x86 || ppc; then if test -r /proc/cpuinfo ; then # linux with /proc mounted, extract cpu information from it _cpuinfo="cat /proc/cpuinfo" @@ -707,6 +714,11 @@ proc='' _march='' _mcpu='' + cpu750=`$_cpuinfo | grep "cpu.*750"` + if test -n "$cpu750"; then + _march='' + _mcpu='-mcpu=750' + fi ;; alpha)