On Fri, Sep 11, 2009 at 09:13:43AM -0700, David R. Morrison wrote:
> The time wasn't wasted.  You did many good things here, and you will be 
> missed.
>
>   -- Dave
>
>

Dave,
   Sorry for the separate replies but I recalled one last thing that will
impact everyone here. Ben Elliston (who maintains config.guess) is reviewing
my current submission to the config-patches mailing list. The change (against
current config.guess) is...

@@ -1247,6 +1247,18 @@
     *:Darwin:*:*)
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
        case $UNAME_PROCESSOR in
+           i386)
+               eval $set_cc_for_build
+               sed 's/^                //' << EOF >$dummy.c
+               #if defined(__LP64__)
+               main()
+               {
+               }
+               #endif
+EOF
+               if test `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep -c main` 
= 1 ; then
+                   UNAME_PROCESSOR=x86_64
+               fi ;;
            unknown) UNAME_PROCESSOR=powerpc ;;
        esac
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}


which will ensure that config.guess always reports on intel Darwin the
architecture based on the code generation of the compiler. I had a more concise
version that the gcc developers perferred but because it requires -dM,
which is a gcc extension, is non-portable. Once this patch goes into the 
config.guess
cvs, I'll ping fink-devel so that interested fink developers can ping their 
upstream
to update config.guess where appropriate.
                Jack
ps Of course the aim of this is to eliminate the need to pass...
--build=%m-apple-darwin`uname -r|cut -f1 -d.` --host=%m-apple-darwin`uname 
-r|cut -f1 -d.`
...to configure.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to