third_party/popt: Initial support for popt.
[samba.git] / third_party / popt / wscript
1 #!/usr/bin/env python
2
3 import Options
4
5 def configure(conf):
6     conf.CHECK_HEADERS('float.h')
7
8     if conf.CHECK_POPT():
9         conf.define('USING_SYSTEM_POPT', 1)
10
11 def build(bld):
12     if bld.CONFIG_SET('USING_SYSTEM_POPT'):
13         return
14
15     bld.SAMBA_LIBRARY('popt',
16                       source='findme.c popt.c poptconfig.c popthelp.c poptparse.c',
17                       cflags='-DDBL_EPSILON=__DBL_EPSILON__',
18                       allow_warnings=True,
19                       private_library=True)