configure: fix print_config() with broke awks

Some awk versions do not treat the result of unary + on a (numeric)
string as numeric, giving wrong results when used in a boolean context
Using unary - instead is logically equivalent works as expected.

Signed-off-by: Mans Rullgard <mans@mansr.com>
pull/6/merge
Mans Rullgard 12 years ago
parent 7658295ba3
commit d16c4aebba
  1. 2
      configure

2
configure vendored

@ -584,7 +584,7 @@ print_config(){
} else if (file ~ /\\.asm\$/) {
printf(\"%%define %s %d\\n\", c, v) >>file;
} else if (file ~ /\\.mak\$/) {
n = +v ? \"\" : \"!\";
n = -v ? \"\" : \"!\";
printf(\"%s%s=yes\\n\", n, c) >>file;
}
}

Loading…
Cancel
Save