Ticket #4524: 0001-buildsys-make-it-possible-to-specify-aspell-prefix-f.patch

File 0001-buildsys-make-it-possible-to-specify-aspell-prefix-f.patch, 1.2 KB (added by zaytsev, 5 months ago)
  • m4.include/mc-with-internal-edit.m4

    From 41aa73a45f4de5d01e9739b4bc4555c03aca538e Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury@shurup.com>
    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 <yury@shurup.com>
    ---
     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 a801e1d68..d408ec3a3 100644
    a b AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ 
    1818 
    1919    dnl ASpell support. 
    2020    AC_ARG_ENABLE([aspell], 
    21         AS_HELP_STRING([--enable-aspell], [Enable aspell support for internal editor @<:@no@:>@]), 
     21        AS_HELP_STRING( 
     22        [--enable-aspell@<:@=prefix@:>@], 
     23        [Enable aspell support for internal editor @<:@no@:>@]), 
    2224        [ 
    2325            if test "x$enableval" = xno; then 
    2426                enable_aspell=no 
    2527            else 
     28                test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include" 
    2629                enable_aspell=yes 
    2730            fi 
    2831        ],