From efe851851508264af057c146383ce7d8285804e1 Mon Sep 17 00:00:00 2001
From: "Yury V. Zaytsev" <yury@shurup.com>
Date: Thu, 30 May 2024 20:53:00 +0200
Subject: [PATCH] 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>
---
Makefile.am | 2 +-
configure.ac | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index ec5b4dc3b..3295f8130 100644
a
|
b
|
cppcheck-split-all: \ |
115 | 115 | cppcheck-unusedFunction \ |
116 | 116 | cppcheck-missingInclude |
117 | 117 | |
118 | | INDENT_CMD = indent \ |
| 118 | INDENT_CMD = $(INDENT) \ |
119 | 119 | --gnu-style \ |
120 | 120 | --format-first-column-comments \ |
121 | 121 | --indent-level4 \ |
diff --git a/configure.ac b/configure.ac
index 5cf1f2f74..12556f563 100644
a
|
b
|
dnl Check for other tools |
212 | 212 | dnl ############################################################################ |
213 | 213 | |
214 | 214 | AC_CHECK_TOOL(AR, ar, ar) |
| 215 | AC_CHECK_TOOL(INDENT, gindent, indent) |
215 | 216 | mc_UNIT_TESTS |
216 | 217 | |
217 | 218 | |