common/autoconf/build-aux/config.guess
Print this page
rev 769 : 8024265: Enable new build on AIX
Reviewed-by: ihse
*** 58,63 ****
--- 58,79 ----
OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
;;
esac
fi
+ # Test and fix architecture string on AIX
+ # On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is
+ # implicitely handled as 32-bit architecture in 'platform.m4' so we check
+ # for the kernel mode rewrite it to 'powerpc64' if we'Re running in 64-bit mode.
+ # The check could also be done with `/usr/sbin/prtconf | grep "Kernel Type" | grep "64-bit"`
+ echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null
+ if test $? = 0; then
+ if [ -x /bin/getconf ] ; then
+ KERNEL_BITMODE=`getconf KERNEL_BITMODE`
+ if [ "$KERNEL_BITMODE" = "32" ]; then
+ KERNEL_BITMODE=""
+ fi
+ fi
+ OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
+ fi
+
echo $OUT