configure: add support for 'sh4' (Trac #11209)
authorSergei Trofimovich <siarheit@google.com>
Sun, 13 Dec 2015 12:36:47 +0000 (12:36 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 13 Dec 2015 12:41:21 +0000 (12:41 +0000)
Debian has Renesas SH4 (SuperH) port with a triplet:

    sh4-linux-gnu

Patch by glaubitz adds 'sh4' CPU to recognize target
as ArchUnknown.

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
aclocal.m4

index e0cd330..e46a19f 100644 (file)
@@ -212,7 +212,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
         mipsel)
             test -z "[$]2" || eval "[$]2=ArchMipsel"
             ;;
-        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sparc64|vax)
+        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sh4|sparc64|vax)
             test -z "[$]2" || eval "[$]2=ArchUnknown"
             ;;
         *)
@@ -1825,6 +1825,9 @@ case "$1" in
   s390*)
     $2="s390"
     ;;
+  sh4)
+    $2="sh4"
+    ;;
   sparc64*)
     $2="sparc64"
     ;;