summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-25 19:55:03 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-25 22:09:39 (GMT)
commit7e4b8e330c99a1db81bdf12b7aab41f5890625e5 (patch)
treea9d4fe06c68048d339e6e79b9f6e0f6496beac8e /BuildTools/SCons
parent707eae7dafbbe0625e2392d19072ff6d3be2c14a (diff)
downloadswift-contrib-7e4b8e330c99a1db81bdf12b7aab41f5890625e5.zip
swift-contrib-7e4b8e330c99a1db81bdf12b7aab41f5890625e5.tar.bz2
Add statically linked sluift.
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index af2d747..0c1cf94 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -499,6 +499,13 @@ conf.Finish()
# Lua
env["LUA_BUNDLED"] = 1
+# Readline
+conf = Configure(conf_env)
+if conf.CheckCHeader(["stdio.h", "readline/readline.h"]) and conf.CheckLib("readline") :
+ env["HAVE_READLINE"] = True
+ env["READLINE_FLAGS"] = { "LIBS": ["readline"] }
+conf.Finish()
+
# Avahi
avahi_conf_env = conf_env.Clone()
avahi_flags = {}