21.7. Checking for the Presence of a program
Prev | Chapter 21. Multi-Platform Configuration (Autoconf Functionality) | Next

## 21.7. Checking for the Presence of a program

Check for the presence of a program by using the `CheckProg` method:

    env = Environment()
    conf = Configure(env)
    if not conf.CheckProg('foobar'):
      print('Unable to find the program foobar on the system')
      Exit(1)
    env = conf.Finish()

Prev | Up | Next
21.6. Checking the size of a datatype | Home | 21.8. Extending SCons: Adding Your Own Custom Checks