summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-05 20:08:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-09 15:04:09 (GMT)
commit91f344444c54f11de132cf22a7ba323727104989 (patch)
treeda1173a237528644c86d3f9aac6eb8212e9c8ecd /BuildTools/SCons/SConstruct
parent3049bf68ede3e1ce152561f6e8a054cca8dcad56 (diff)
downloadswift-contrib-91f344444c54f11de132cf22a7ba323727104989.zip
swift-contrib-91f344444c54f11de132cf22a7ba323727104989.tar.bz2
Added HAVE_HUNSPELL to flags when building
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 1412b56..3f15695 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -418,6 +418,14 @@ else :
openssl_conf.Finish()
+#Hunspell
+env["HAVE_HUNSPELL"] = 0;
+conf = Configure(conf_env.Clone())
+if conf.CheckLib("hunspell-1.3") :
+ env["HAVE_HUNSPELL"] = 1
+ env["HUNSPELL_FLAGS"] = {"LIBS": ["libhunspell-1.3"]}
+
+
# Bonjour
if env["PLATFORM"] == "darwin" :
env["HAVE_BONJOUR"] = 1