1.1 --- a/common/autoconf/build-aux/config.guess Thu Sep 05 10:58:25 2013 -0700 1.2 +++ b/common/autoconf/build-aux/config.guess Thu Sep 12 12:29:17 2013 -0700 1.3 @@ -60,4 +60,20 @@ 1.4 esac 1.5 fi 1.6 1.7 +# Test and fix architecture string on AIX 1.8 +# On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is 1.9 +# implicitely handled as 32-bit architecture in 'platform.m4' so we check 1.10 +# for the kernel mode rewrite it to 'powerpc64' if we'Re running in 64-bit mode. 1.11 +# The check could also be done with `/usr/sbin/prtconf | grep "Kernel Type" | grep "64-bit"` 1.12 +echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null 1.13 +if test $? = 0; then 1.14 + if [ -x /bin/getconf ] ; then 1.15 + KERNEL_BITMODE=`getconf KERNEL_BITMODE` 1.16 + if [ "$KERNEL_BITMODE" = "32" ]; then 1.17 + KERNEL_BITMODE="" 1.18 + fi 1.19 + fi 1.20 + OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'` 1.21 +fi 1.22 + 1.23 echo $OUT