SCons User Guide 2.0.0.final.0 | ||
---|---|---|
Prev | Chapter 24. Multi-Platform Configuration (Autoconf Functionality) | Next |
Check for the availability of a specific function
using the CheckFunc
method:
env = Environment() conf = Configure(env) if not conf.CheckFunc('strcpy'): print 'Did not find strcpy(), using local version' conf.env.Append(CPPDEFINES = '-Dstrcpy=my_local_strcpy') env = conf.Finish()