Index: Imake.cf
--- Imake.cf.orig
+++ Imake.cf
@@ -136,18 +136,27 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1
 #   define Sparc64Architecture
 #  endif
 #  undef sparc
+#  undef sparc64
 # endif
 # if defined(__mips__) || defined(mips)
 #   define MipsArchitecture
+#   ifdef __LP64__
+#     define Mips64Architecture
+#   endif
 #   ifdef arc
 #     define ArcArchitecture
 #     undef arc
 #   endif
+#   ifdef sgi
+#     define SGIArchitecture
+#     undef sgi
+#   endif
 #   ifdef pmax
 #     define PmaxArchitecture
 #     undef pmax
 #   endif
 #   undef mips
+#   undef __mips__
 # endif
 # if defined(__alpha__) || defined(alpha)
 #   define AlphaArchitecture
@@ -160,6 +169,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1
 #   undef __x86_64__
 #   undef amd64
 # endif
+# if defined(__arm__)
+#   define Arm32Architecture
+#   undef __arm__
+# endif
 # if defined(__mc68020__) || defined(mc68020)
 #  define Mc68020Architecture
 #  if defined(amiga)
@@ -184,11 +197,19 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1
 #  endif
 #  undef mc68000
 # endif
+# if defined(__m88k__) || defined(m88k)
+#  define Mc88000Architecture
+#  undef m88k
+# endif
 # ifdef __powerpc__
 #  define PpcArchitecture
 #  undef __powerpc__
 #  undef __macppc__
 #  undef macppc
+# endif
+# ifdef __sh__
+#  undef __sh__
+#  define SuperHArchitecture
 # endif
 # ifdef __vax__
 #  undef vax
