21.3. Checking for the Availability of a Function
Prev | Chapter 21. Multi-Platform Configuration (Autoconf Functionality) | Next

## 21.3. Checking for the Availability of a Function

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=('strcpy','my_local_strcpy'))
    env = conf.Finish()

Prev | Up | Next
21.2. Checking for the Existence of Header Files | Home | 21.4. Checking for the Availability of a Library