c66f2980486971b5625d192eafaf5ac7e1d94a40
[ira/third_party.git] / iniparser / src / 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_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h'):
9         conf.define('USING_SYSTEM_INIPARSER', 1)
10
11 def build(bld):
12     if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
13         return
14
15     bld.SAMBA_LIBRARY('iniparser',
16                       source='''../../iniparser_build/iniparser.c
17                                 ../../iniparser_build/dictionary.c
18                                 ../../iniparser_build/strlib.c''',
19                       cflags='',
20                       deps='replace',
21                       private_library=True)