diff --git a/configure b/configure index 789a4f6cc9..d6f82e3423 100755 --- a/configure +++ b/configure @@ -1882,9 +1882,7 @@ probe_target_compiler() { # We shall skip configuring the target compiler if the user didn't # bother enabling an appropriate guest. This avoids building # extraneous firmware images and tests. - if test "${target_list#*$1}" != "$1"; then - break; - else + if test "${target_list#*$1}" = "$1"; then return 1 fi