configure: bail out early on invalid -cpu option
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 May 2010 14:08:16 +0000 (16:08 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 22:09:48 +0000 (00:09 +0200)
It would fail later anyway.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index 8d3084a72fa813ae1422afc8292e0555b4a57aaf..1d4f1e42353c31912ab565be85e99968449a458c 100755 (executable)
--- a/configure
+++ b/configure
@@ -232,7 +232,8 @@ case "$cpu" in
     cpu="sparc"
   ;;
   *)
-    cpu="unknown"
+    echo "Unsupported CPU = $cpu"
+    exit 1
   ;;
 esac
 
@@ -2068,10 +2069,6 @@ case "$cpu" in
   armv4b|armv4l)
     ARCH=arm
   ;;
-  *)
-    echo "Unsupported CPU = $cpu"
-    exit 1
-  ;;
 esac
 echo "ARCH=$ARCH" >> $config_host_mak
 if test "$debug_tcg" = "yes" ; then