2008-05-05 Andreas Faerber <andreas.faerber@web.de>
authorAndreas Färber <afaerber@mono-cvs.ximian.com>
Mon, 5 May 2008 10:19:14 +0000 (10:19 -0000)
committerAndreas Färber <afaerber@mono-cvs.ximian.com>
Mon, 5 May 2008 10:19:14 +0000 (10:19 -0000)
* configure.in: Detect ppc64 target architecture.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=102509

ChangeLog
configure.in

index 4e1720533ab0b5a354f8d41929703569957d65c6..e3f778e4f966e012a000fd3796a81f3e1a01181e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-05  Andreas Färber  <andreas.faerber@web.de>
+
+       * configure.in: Detect ppc64 target architecture.
+       
+       Contributed unter MIT/X11 license.
+
 2008-04-29  Kornél Pál  <kornelpal@gmail.com>
 
        * configure.in: Check for sys/utime.h.
index d1eed071c93c99867bf087a5bcb08f8ba48e1249..80be67b4dbd25b1c134d4ee9106a9f8bc1a5008f 100644 (file)
@@ -1783,7 +1783,11 @@ case "$host" in
                ;;
        macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
         powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* )
-               TARGET=POWERPC;
+               if test "x$ac_cv_sizeof_void_p" = "x8"; then
+                       TARGET=POWERPC64;
+               else
+                       TARGET=POWERPC;
+               fi
                AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
                arch_target=ppc;
                JIT_SUPPORTED=yes
@@ -2043,6 +2047,7 @@ AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
 AM_CONDITIONAL(MIPS, test x$TARGET = xMIPS)
 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
+AM_CONDITIONAL(POWERPC64, test x$TARGET = xPOWERPC64)
 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
 AM_CONDITIONAL(S390, test x$TARGET = xS390)
 AM_CONDITIONAL(S390x, test x$TARGET = xS390x)