diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-19 14:00:20 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-09-27 19:26:16 +0200 |
commit | 1b5d591d76e23d1997c40af8d33f376d5c0c8208 (patch) | |
tree | 89efd23ca0510a71cec15be50b401b1b7c35051d /tdespell2/plugins/ispell/ispell_checker.cpp | |
parent | 132786c1940e2e205a2263568186a142dc9f3d48 (diff) | |
download | tdelibs-1b5d591d76e23d1997c40af8d33f376d5c0c8208.tar.gz tdelibs-1b5d591d76e23d1997c40af8d33f376d5c0c8208.zip |
Add the ability to detect ispell lib directory
Check LIBDIR ispell compile option and use only it for ispell lib directory
if found.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit bbe1b42cbbc7293041a83b154f969792a2592510)
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdespell2/plugins/ispell/ispell_checker.cpp')
-rw-r--r-- | tdespell2/plugins/ispell/ispell_checker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tdespell2/plugins/ispell/ispell_checker.cpp b/tdespell2/plugins/ispell/ispell_checker.cpp index d21b8374b..d3dd324d3 100644 --- a/tdespell2/plugins/ispell/ispell_checker.cpp +++ b/tdespell2/plugins/ispell/ispell_checker.cpp @@ -54,6 +54,9 @@ typedef struct str_ispell_map } IspellMap; static const char *ispell_dirs [] = { +#ifdef ISPELL_LIBDIR + ISPELL_LIBDIR, +#else "/usr/" SYSTEM_LIBDIR "/ispell", "/usr/lib/ispell", "/usr/local/" SYSTEM_LIBDIR "/ispell", @@ -61,6 +64,7 @@ static const char *ispell_dirs [] = { "/usr/local/share/ispell", "/usr/share/ispell", "/usr/pkg/lib", +#endif 0 }; static const IspellMap ispell_map [] = { |