common/autoconf/build-aux/config.guess

changeset 971
584dc2e95e04
parent 494
e64f2cb57d05
child 972
f3697e0783e2
equal deleted inserted replaced
970:e885c762cedd 971:584dc2e95e04
58 OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'` 58 OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
59 ;; 59 ;;
60 esac 60 esac
61 fi 61 fi
62 62
63 # Test and fix architecture string on AIX
64 # On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is
65 # implicitely handled as 32-bit architecture in 'platform.m4' so we check
66 # for the kernel mode rewrite it to 'powerpc64' if we'Re running in 64-bit mode.
67 # The check could also be done with `/usr/sbin/prtconf | grep "Kernel Type" | grep "64-bit"`
68 echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null
69 if test $? = 0; then
70 if [ -x /bin/getconf ] ; then
71 KERNEL_BITMODE=`getconf KERNEL_BITMODE`
72 if [ "$KERNEL_BITMODE" = "32" ]; then
73 KERNEL_BITMODE=""
74 fi
75 fi
76 OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
77 fi
78
63 echo $OUT 79 echo $OUT

mercurial