configure: bail out early on invalid -cpu option

It would fail later anyway.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Paolo Bonzini 2010-05-26 16:08:16 +02:00 committed by Aurelien Jarno
parent 4021d2476c
commit a447d4dc56

7
configure vendored
View file

@ -232,7 +232,8 @@ case "$cpu" in
cpu="sparc" cpu="sparc"
;; ;;
*) *)
cpu="unknown" echo "Unsupported CPU = $cpu"
exit 1
;; ;;
esac esac
@ -2068,10 +2069,6 @@ case "$cpu" in
armv4b|armv4l) armv4b|armv4l)
ARCH=arm ARCH=arm
;; ;;
*)
echo "Unsupported CPU = $cpu"
exit 1
;;
esac esac
echo "ARCH=$ARCH" >> $config_host_mak echo "ARCH=$ARCH" >> $config_host_mak
if test "$debug_tcg" = "yes" ; then if test "$debug_tcg" = "yes" ; then