From 269fd69b1a8edaa03b0cb64c1fd11039b48c6b69 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/m4.include/mc-with-internal-edit.m4 b/m4.include/mc-with-internal-edit.m4 index a801e1d68c..86bf675592 100644 --- a/m4.include/mc-with-internal-edit.m4 +++ b/m4.include/mc-with-internal-edit.m4 @@ -18,18 +18,21 @@ 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 - enable_aspell=yes + enable_aspell="$enableval" fi ], [enable_aspell=no] ) if test x$with_internal_edit != xno -a x$enable_aspell != xno; then + test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include" AC_CHECK_HEADERS([aspell.h], [], [ AC_MSG_ERROR([Could not find aspell development headers]) ], [])