Skip to content

Commit

Permalink
buildsys: make it possible to specify aspell prefix (for macOS)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Jun 4, 2024
1 parent ef36005 commit 269fd69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions m4.include/mc-with-internal-edit.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
], [])
Expand Down

0 comments on commit 269fd69

Please sign in to comment.