summaryrefslogtreecommitdiff
path: root/lib/iniparser/src/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iniparser/src/wscript')
-rw-r--r--lib/iniparser/src/wscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/iniparser/src/wscript b/lib/iniparser/src/wscript
new file mode 100644
index 0000000000..c66f298048
--- /dev/null
+++ b/lib/iniparser/src/wscript
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+
+import Options
+
+def configure(conf):
+ conf.CHECK_HEADERS('float.h')
+
+ if conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h'):
+ conf.define('USING_SYSTEM_INIPARSER', 1)
+
+def build(bld):
+ if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
+ return
+
+ bld.SAMBA_LIBRARY('iniparser',
+ source='''../../iniparser_build/iniparser.c
+ ../../iniparser_build/dictionary.c
+ ../../iniparser_build/strlib.c''',
+ cflags='',
+ deps='replace',
+ private_library=True)