initial sh4 support
authorAlex Beregszaszi <alex@rtfs.hu>
Tue, 12 Aug 2003 16:47:24 +0000 (16:47 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Tue, 12 Aug 2003 16:47:24 +0000 (16:47 +0000)
Originally committed as revision 2122 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index dc20f6e..19b2442 100755 (executable)
--- a/configure
+++ b/configure
@@ -51,6 +51,9 @@ case "$cpu" in
   sun4u)
     cpu="sparc64"
   ;;
   sun4u)
     cpu="sparc64"
   ;;
+  sh4)
+    cpu="sh4"
+  ;;
   *)
     cpu="unknown"
   ;;
   *)
     cpu="unknown"
   ;;
@@ -868,6 +871,10 @@ elif test "$cpu" = "mips" ; then
   echo "TARGET_ARCH_MIPS=yes" >> config.mak
   echo "#define ARCH_MIPS 1" >> $TMPH
 fi
   echo "TARGET_ARCH_MIPS=yes" >> config.mak
   echo "#define ARCH_MIPS 1" >> $TMPH
 fi
+elif test "$cpu" = "sh4" ; then
+  echo "TARGET_ARCH_SH4=yes" >> config.mak
+  echo "#define ARCH_SH4 1" >> $TMPH
+fi
 echo "#define TUNECPU $TUNECPU" >> $TMPH
 if test "$bigendian" = "yes" ; then
   echo "WORDS_BIGENDIAN=yes" >> config.mak
 echo "#define TUNECPU $TUNECPU" >> $TMPH
 if test "$bigendian" = "yes" ; then
   echo "WORDS_BIGENDIAN=yes" >> config.mak