Make Bison version detection more portable

- POSIX sh actually does NOT support `+=`,
  but Bash does even in compatibility mode
- `mawk` does not fully support POSIX EREs (regexes),
  so work around its lack of brace support
Fixes building on Debian, apparently.
This commit is contained in:
ISSOtm
2020-12-29 22:29:25 +01:00
parent 6874f694e5
commit aa27e714d4
2 changed files with 5 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ src/asm/parser.c: src/asm/parser.y
$QDEFS=; \
add_flag(){ \
if src/check_bison_ver.sh $$1 $$2; then \
DEFS+=-D$$3; \
DEFS="$$DEFS -D$$3"; \
fi \
}; \
add_flag 3 5 api.token.raw=true; \