request for configure clarifications on darwin10

Jack Howarth howarth at bromo.med.uc.edu
Wed Sep 16 07:53:49 PDT 2009


On Wed, Sep 16, 2009 at 10:16:48AM -0400, Daniel J. Luke wrote:
>
> ... so relatively few ports, then?
>

The proposed change to config.guess only effects the 
case where the architecture detected by 'uname -p' is
i386. In that case, the compiler code generation
is tested for __LP64__ being defined and the
architecture changed to x86_64 if this is true.
This is essentially the same think being done 
for  i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*
currently in config.guess.

    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
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#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/[^.]*//'`
        exit ;;

                   Jack


More information about the macports-dev mailing list