X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=configure;h=ae10b581caf873200ca5b8cd43d97642ddb0052a;hb=7ef4da1c3a753888e2678388150f1b846b025168;hp=07c373848ad65522d6a35e1665a6539fbebc52e4;hpb=94ac51588972366287fa359a1e7d37b5e08f9bef;p=qemu diff --git a/configure b/configure index 07c3738..ae10b58 100755 --- a/configure +++ b/configure @@ -148,9 +148,6 @@ if [ "$solaris" = "yes" ] ; then make="gmake" install="ginstall" solarisrev=`uname -r | cut -f2 -d.` - if test $solarisrev -lt 10 ; then - presolaris10="yes" - fi fi # find source path @@ -167,7 +164,7 @@ else fi for opt do - optarg=`expr "$opt" : '[^=]*=\(.*\)'` + optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` case "$opt" in --help|-h) show_help=yes ;; @@ -640,9 +637,7 @@ if test "$darwin" = "yes" ; then fi if test "$solaris" = "yes" ; then echo "CONFIG_SOLARIS=yes" >> $config_mak - if test "$presolaris10" = "yes" ; then - echo "#define _PRESOLARIS10 1" >> $config_h - fi + echo "#define HOST_SOLARIS $solarisrev" >> $config_h fi if test "$gdbstub" = "yes" ; then echo "CONFIG_GDBSTUB=yes" >> $config_mak @@ -807,6 +802,10 @@ elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then echo "TARGET_ARCH=mips" >> $config_mak echo "#define TARGET_ARCH \"mips\"" >> $config_h echo "#define TARGET_MIPS 1" >> $config_h +elif test "$target_cpu" = "sh4" ; then + echo "TARGET_ARCH=sh4" >> $config_mak + echo "#define TARGET_ARCH \"sh4\"" >> $config_h + echo "#define TARGET_SH4 1" >> $config_h else echo "Unsupported target CPU" exit 1