X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=configure;h=4b3b5cd6bcb6d14441755277d4859cf533545613;hb=6aabeb58391a33cda7e2b406adb431a5ef7e8eea;hp=329160384430c060492a3f46fd2c05b1e9ad06c2;hpb=d81d857f4421d205395d55200425daa6591c28a5;p=mirror_qemu.git diff --git a/configure b/configure index 3291603844..4b3b5cd6bc 100755 --- a/configure +++ b/configure @@ -323,6 +323,7 @@ replication="yes" supported_cpu="no" supported_os="no" +bogus_os="no" # parse CC options first for opt do @@ -520,11 +521,11 @@ ARCH= # Normalise host CPU name and set ARCH. # Note that this case should only have supported host CPUs, not guests. case "$cpu" in - ppc|ppc64|s390|s390x|x32) + ppc|ppc64|s390|s390x|sparc64|x32) cpu="$cpu" supported_cpu="yes" ;; - ia64|sparc64) + ia64) cpu="$cpu" ;; i386|i486|i586|i686|i86pc|BePC) @@ -549,6 +550,7 @@ case "$cpu" in ;; sparc|sun4[cdmuv]) cpu="sparc" + supported_cpu="yes" ;; *) # This will result in either an error or falling back to TCI later @@ -694,7 +696,10 @@ Linux) supported_os="yes" ;; *) - error_exit "Unsupported host OS $targetos" + # This is a fatal error, but don't report it yet, because we + # might be going to just print the --help text, or it might + # be the result of a missing compiler. + bogus_os="yes" ;; esac @@ -1460,6 +1465,14 @@ if ! compile_prog ; then error_exit "\"$cc\" cannot build an executable (is your linker broken?)" fi +if test "$bogus_os" = "yes"; then + # Now that we know that we're not printing the help and that + # the compiler works (so the results of the check_defines we used + # to identify the OS are reliable), if we didn't recognize the + # host OS we should stop now. + error_exit "Unrecognized host OS $targetos" +fi + # Check that the C++ compiler exists and works with the C compiler if has $cxx; then cat > $TMPC <