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()