diff -urN a/src/configure b/src/configure
--- a/src/configure	2009-11-19 23:22:20.000000000 +0900
+++ b/src/configure	2010-02-05 10:06:54.000000000 +0900
@@ -654,6 +654,13 @@
 	esac
 }
 
+sh() {
+  case "$host_arch" in
+    sh*) return 0;;
+    *) return 1;;
+  esac
+}
+
 
 # not boolean test: implement the posix shell "!" operator for a
 # non-posix /bin/sh.
@@ -1058,6 +1065,7 @@
 		  mips) host_arch=mips ;;
 		  vax) host_arch=vax ;;
 		  m68|m68k) host_arch=m68 ;;
+		  sh*) host_arch=sh ;;
 		  *) host_arch=UNKNOWN ;;
 		esac
 		;;
@@ -1806,6 +1814,14 @@
     _march=''
     _mcpu=''
     ;;
+  sh)
+    _def_arch='#define ARCH_SH 1'
+    _target_arch='TARGET_ARCH_SH = yes'
+    iproc='sh'
+    proc=''
+    _march=''
+    _mcpu=''
+    ;;
 
   ppc)
     _def_arch='#define ARCH_POWERPC 1'
