summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-05 20:08:54 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:45 (GMT)
commit5427ffbb3ea13cd4ee078dd640db8cd43bab303d (patch)
treecce1ad5ba9fe55a5d77201f620e9904f790d851c /BuildTools/SCons/SConstruct
parent5ca749621b991e6a1e10d7a809d0fe1f0680ca74 (diff)
downloadswift-contrib-5427ffbb3ea13cd4ee078dd640db8cd43bab303d.zip
swift-contrib-5427ffbb3ea13cd4ee078dd640db8cd43bab303d.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 2e8d1cb..5b88855 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -445,6 +445,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