def configure(conf):
    """Finds the ar program and sets the default flags in ``conf.env.ARFLAGS``"""
    conf.find_program('ar', var='AR')
    conf.add_os_flags('ARFLAGS')
    if not conf.env.ARFLAGS:
        conf.env.ARFLAGS = ['rcs']
