+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ # bash is not able to generate correct code here
+ # i.e. it leaves \ns there
+ # so we need to use /usr/bin/echo to get what we want
+ # note that if config.guess is run by /bin/sh then
+ # this works as expected even without /usr/bin/echo
+ # but the problem is that configure is clever enough
+ # to find bash installed and then runs config.guess
+ # by bash instead of by /bin/sh
+ # It seems that using /usr/bin/echo here is the most
+ # portable Solaris fix
+ if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`