Index: SConstruct =================================================================== --- SConstruct>-(revision 193) +++ SConstruct>-(working copy) @@ -84,7 +84,15 @@ >------>-------print 'Compiler version check failed. g++ 3.4 or later is needed' >------>-------Exit(1) . -conf.env.Replace(CXX = cxx) +# Add support for compiler caches to speed-up compilation. +if os.popen('ccache').read(): +>------conf.env.Replace(CXX = 'ccache ' + cxx) +>------print 'Enabeling ccache...' +if os.popen('distcc').read(): +>------conf.env.Replace(CXX = 'distcc ' + cxx) +>------print 'Enabeling distcc...' +else: +>------conf.env.Replace(CXX = cxx); . if not conf.CheckPKGConfig():. print 'pkg-config not found.'. >------print 'Did not find the header time.h'