From 674c4a11cbcc18714e3393d568b3751151f815c5 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Tue, 30 Oct 2012 11:57:30 +0000 Subject: [PATCH] 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 4c9a299256..115e8b16b9 100755 --- a/configure +++ b/configure @@ -630,7 +630,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; } }