From 41aa73a45f4de5d01e9739b4bc4555c03aca538e Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Tue, 4 Jun 2024 11:15:23 +0200 Subject: [PATCH] buildsys: make it possible to specify aspell prefix (for macOS) Signed-off-by: Yury V. Zaytsev --- m4.include/mc-with-internal-edit.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/m4.include/mc-with-internal-edit.m4 b/m4.include/mc-with-internal-edit.m4 index a801e1d68c..d408ec3a3e 100644 --- a/m4.include/mc-with-internal-edit.m4 +++ b/m4.include/mc-with-internal-edit.m4 @@ -18,11 +18,14 @@ AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ dnl ASpell support. AC_ARG_ENABLE([aspell], - AS_HELP_STRING([--enable-aspell], [Enable aspell support for internal editor @<:@no@:>@]), + AS_HELP_STRING( + [--enable-aspell@<:@=prefix@:>@], + [Enable aspell support for internal editor @<:@no@:>@]), [ if test "x$enableval" = xno; then enable_aspell=no else + test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include" enable_aspell=yes fi ],