If we only have a target compiler but no host compiler, the $type variable will be empty once. (Currently we fail to do a cross build if no host compiler is available due to using the host compiler for processing option lists though. But despite that, this comparison in configure needs quotes.)
Unified · Split
| @@ -5033,7 +5033,7 @@ fi · 5032 unmodified lines | ||
| 5033 | 5033 | for pfx in "" host_; do |
| 5034 | 5034 | varname=${pfx%_}cc_type |
| 5035 | 5035 | eval "type=\$$varname" |
| 5036 | − if [ $type = "msvc" ]; then | |
| 5036 | + if [ "$type" = "msvc" ]; then | |
| 5037 | 5037 | check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline |
| 5038 | 5038 | static inline int foo(int a) { return a; } |
| 5039 | 5039 | EOF |