summaryrefslogtreecommitdiff
path: root/lib/popt/wscript
blob: 425402ebe737120c99b46d740f43cff11d581657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

import Options

def configure(conf):
    conf.CHECK_HEADERS('float.h')

    if conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h'):
        conf.define('USING_SYSTEM_POPT', 1)

def build(bld):
    if bld.CONFIG_SET('USING_SYSTEM_POPT'):
        return

    bld.SAMBA_LIBRARY('popt',
                      source='findme.c popt.c poptconfig.c popthelp.c poptparse.c',
                      cflags='-DDBL_EPSILON=__DBL_EPSILON__'
                      )