summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2003-08-26 02:51:08 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2003-08-26 02:51:08 +0000
commit84bcb7de136698d04fe5ae862b57ff8f83f7cd82 (patch)
tree9ffa2f8b33cd0101a9fcdb54e676be95202a7b22
parent0c11655aae5bf8f810bd94c5928033df6f9db942 (diff)
downloadenchant-84bcb7de136698d04fe5ae862b57ff8f83f7cd82.tar.gz
sync the wordlists
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20819 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--configure.in9
-rw-r--r--src/aspell/aspell_provider.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index f5c476f..bd83338 100644
--- a/configure.in
+++ b/configure.in
@@ -112,8 +112,9 @@ AC_ARG_WITH(aspell-prefix, [ --with-aspell-prefix=DIR
specify under which prefix aspell is installed.], with_aspell_prefix="$withval", )
if test "x$check_aspell" != "xno"; then
- if test "x$with_aspell_prefix" != "x"; then
- saved_LDFLAGS=$LDFLAGS
+ saved_LDFLAGS=$LDFLAGS
+
+ if test "x$with_aspell_prefix" != "x"; then
LDFLAGS="-L$with_aspell_prefix/lib "$LDFLAGS
ASPELL_INC="-I$with_aspell_prefix/include"
ASPELL_LIBS="-L$with_aspell_prefix/lib -laspell"
@@ -126,9 +127,7 @@ if test "x$check_aspell" != "xno"; then
fi
AC_CHECK_LIB(aspell,new_aspell_config,build_aspell=yes,AC_MSG_WARN([Enchant building without the aspell library]),)
- if test "x$with_aspell_prefix" != "x"; then
- LDFLAGS=$saved_LDFLAGS
- fi
+ LDFLAGS=$saved_LDFLAGS
AC_SUBST(ASPELL_INC)
AC_SUBST(ASPELL_LIBS)
diff --git a/src/aspell/aspell_provider.c b/src/aspell/aspell_provider.c
index b4d11c7..67bb843 100644
--- a/src/aspell/aspell_provider.c
+++ b/src/aspell/aspell_provider.c
@@ -103,6 +103,7 @@ aspell_dict_add_to_personal (EnchantDict * me,
manager = (PspellManager *) me->user_data;
pspell_manager_add_to_personal (manager, word, len);
+ pspell_manager_save_all_word_lists (manager);
}
static void
@@ -125,6 +126,7 @@ aspell_dict_store_replacement (struct str_enchant_dict * me,
manager = (PspellManager *) me->user_data;
pspell_manager_store_replacement (manager, mis, mis_len,
cor, cor_len);
+ pspell_manager_save_all_word_lists (manager);
}
static void