summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba/samba_third_party.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/wafsamba/samba_third_party.py')
-rw-r--r--buildtools/wafsamba/samba_third_party.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_third_party.py b/buildtools/wafsamba/samba_third_party.py
new file mode 100644
index 0000000000..2c50ad4a8b
--- /dev/null
+++ b/buildtools/wafsamba/samba_third_party.py
@@ -0,0 +1,15 @@
+# functions to support third party libraries
+
+from Configure import conf
+import sys, Logs, os
+from samba_bundled import *
+
+@conf
+def CHECK_FOR_THIRD_PARTY(conf):
+ return os.path.exists('third_party')
+
+Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
+
+@conf
+def CHECK_INIPARSER(conf):
+ return conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h')