buildsys: prefer gnu indent (gindent) to bsd indent if available

BSD indent does not have `--gnu-style` flag ;-)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Yury V. Zaytsev 2024-05-30 20:53:00 +02:00 committed by Andrew Borodin
parent 87bdeeb591
commit 482025a286
2 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,7 @@ cppcheck-split-all: \
cppcheck-unusedFunction \
cppcheck-missingInclude
INDENT_CMD = indent \
INDENT_CMD = $(INDENT) \
--gnu-style \
--format-first-column-comments \
--indent-level4 \

View File

@ -212,6 +212,7 @@ dnl Check for other tools
dnl ############################################################################
AC_CHECK_TOOL(AR, ar, ar)
AC_CHECK_TOOL(INDENT, gindent, indent)
mc_UNIT_TESTS