#            tastes like -*- python -*-
Import('hostenv')


if hostenv['configure']:
    conf = hostenv.Configure()
    conf.env['HAVE_EXTERNAL_POPT'] = conf.CheckLibWithHeader('popt', 'popt.h', 'c', 'poptGetArgs(NULL);')
    conf.Finish()

popt = hostenv.Library('popt', ['findme.c','popt.c','poptconfig.c','popthelp.c','poptparse.c'])
Export('popt')