Module: libav Branch: master Commit: d16c4aebba1ba611e10d86aa02be4cdfd3fbc3c5
Author: Mans Rullgard <[email protected]> Committer: Mans Rullgard <[email protected]> Date: Tue Oct 30 11:57:30 2012 +0000 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 <[email protected]> --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index f215c76..9528b5d 100755 --- a/configure +++ b/configure @@ -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; } } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
