add cruft to SConstruct to help cross-compiling with readline

This commit is contained in:
Chris Beck 2014-11-22 19:46:49 -05:00
parent 350579a668
commit 4281c602f2

View file

@ -415,7 +415,8 @@ if env["prereqs"]:
if env["png"]:
client_env.Append(CPPDEFINES = ["HAVE_LIBPNG"])
env["readline"] = env["readline"] and conf.CheckLib("readline")
env["readline"] = env["readline"] and (conf.CheckLib("readline") or conf.CheckLib("readline6") or Warning("Can't find readline, disabling readline support."))
#Note: the "readline6" part is to help out scons when cross-compiling, it didn't find my cross-compiled readline otherwise... feel free to figure out a cleaner solution. --iceiceice
if env["readline"]:
client_env.Append(CPPDEFINES = ["HAVE_READLINE"])