2
config/autoconf.mk.in | 4 ++++
3
configure.in | 16 ++++++++++++++++
4
extensions/spellcheck/myspell/src/Makefile.in | 24 ++++++++++++++++--------
5
extensions/spellcheck/myspell/src/mozMySpell.h | 2 +-
6
4 files changed, 37 insertions(+), 9 deletions(-)
8
Index: mozilla/config/autoconf.mk.in
9
===================================================================
10
--- mozilla.orig/config/autoconf.mk.in 2007-04-18 09:22:51.000000000 +0000
11
+++ mozilla/config/autoconf.mk.in 2007-04-18 09:26:37.000000000 +0000
16
NECKO_PROTOCOLS = @NECKO_PROTOCOLS@
17
NECKO_DISK_CACHE = @NECKO_DISK_CACHE@
18
NECKO_SMALL_BUFFERS = @NECKO_SMALL_BUFFERS@
19
NECKO_COOKIES = @NECKO_COOKIES@
21
+MOZ_NATIVE_MYSPELL = @SYSTEM_MYSPELL@
22
+MOZ_MYSPELL_LIBS = @MOZ_MYSPELL_LIBS@
23
+MOZ_MYSPELL_CFLAGS = @MOZ_MYSPELL_CFLAGS@
25
MOZ_NATIVE_ZLIB = @SYSTEM_ZLIB@
26
MOZ_NATIVE_JPEG = @SYSTEM_JPEG@
27
MOZ_NATIVE_PNG = @SYSTEM_PNG@
28
MOZ_TREE_CAIRO = @MOZ_TREE_CAIRO@
30
MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@
31
MOZ_MATHML = @MOZ_MATHML@
33
Index: mozilla/configure.in
34
===================================================================
35
--- mozilla.orig/configure.in 2007-04-18 09:22:51.000000000 +0000
36
+++ mozilla/configure.in 2007-04-18 09:26:38.000000000 +0000
37
@@ -3859,16 +3859,32 @@
39
if test "${PNG_DIR}" -a -d "${PNG_DIR}" -a "$SYSTEM_PNG" = 1; then
40
PNG_CFLAGS="-I${PNG_DIR}/include"
41
PNG_LIBS="-L${PNG_DIR}/lib ${PNG_LIBS}"
44
fi # SKIP_LIBRARY_CHECKS
46
+dnl system MySpell Support
47
+dnl ========================================================
48
+MOZ_ARG_ENABLE_BOOL(system-myspell,
49
+[ --enable-system-myspell Use system myspell (located with pkgconfig)],
52
+if test -n "$SYSTEM_MYSPELL"; then
53
+ dnl PKG_CHECK_MODULES(MOZ_MYSPELL, myspell)
54
+ MOZ_MYSPELL_CFLAGS="-I/usr/include/hunspell -DMySpell=Hunspell"
55
+ MOZ_MYSPELL_LIBS="-lhunspell"
58
+AC_SUBST(SYSTEM_MYSPELL)
59
+AC_SUBST(MOZ_MYSPELL_LIBS)
60
+AC_SUBST(MOZ_MYSPELL_CFLAGS)
62
dnl ========================================================
64
dnl ========================================================
66
MOZ_ARG_WITH_STRING(java-include-path,
67
[ --with-java-include-path=dir Location of Java SDK headers],
68
JAVA_INCLUDE_PATH=$withval)
70
Index: mozilla/extensions/spellcheck/myspell/src/Makefile.in
71
===================================================================
72
--- mozilla.orig/extensions/spellcheck/myspell/src/Makefile.in 2006-06-29 21:23:45.000000000 +0000
73
+++ mozilla/extensions/spellcheck/myspell/src/Makefile.in 2007-04-18 09:26:38.000000000 +0000
83
-CPPSRCS = affentry.cpp \
90
- mozMySpellFactory.cpp \
91
+CPPSRCS = mozMySpell.cpp \
92
+ mozMySpellFactory.cpp \
94
+ifndef MOZ_NATIVE_MYSPELL
95
+CPPSRCS += affentry.cpp \
105
CPPSRCS += mozMySpellDirProvider.cpp
112
$(MOZ_UNICHARUTIL_LIBS) \
113
+ $(MOZ_MYSPELL_LIBS) \
116
include $(topsrcdir)/config/rules.mk
118
+ifdef MOZ_NATIVE_MYSPELL
119
+CXXFLAGS += $(MOZ_MYSPELL_CFLAGS)
121
Index: mozilla/extensions/spellcheck/myspell/src/mozMySpell.h
122
===================================================================
123
--- mozilla.orig/extensions/spellcheck/myspell/src/mozMySpell.h 2006-06-29 21:46:59.000000000 +0000
124
+++ mozilla/extensions/spellcheck/myspell/src/mozMySpell.h 2007-04-18 09:26:38.000000000 +0000
126
* and affix compression in general, please see:
127
* http://www.cs.ucla.edu/ficus-members/geoff/ispell.html
128
* (the home page for ispell)
130
* ***** END LICENSE BLOCK ***** */
131
#ifndef mozMySpell_h__
132
#define mozMySpell_h__
134
-#include "myspell.hxx"
135
+#include "hunspell.hxx"
136
#include "mozISpellCheckingEngine.h"
137
#include "mozIPersonalDictionary.h"
138
#include "nsString.h"
139
#include "nsCOMPtr.h"
140
#include "nsIObserver.h"
141
#include "nsIUnicodeEncoder.h"
142
#include "nsIUnicodeDecoder.h"
143
#include "nsInterfaceHashtable.h"