third_party/popt: Initial support for popt.
[samba.git] / buildtools / wafsamba / samba_third_party.py
index b62bcc8ec51de6a86fd609f661ec0e33e7f2096c..408d5579a7e57fa424ff72aa081075c5952b5c0d 100644 (file)
@@ -33,3 +33,9 @@ def CHECK_ZLIB(conf):
                                      implied_deps='replace')
 
 Build.BuildContext.CHECK_ZLIB = CHECK_ZLIB
+
+@conf
+def CHECK_POPT(conf):
+    return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
+
+Build.BuildContext.CHECK_POPT = CHECK_POPT