summaryrefslogtreecommitdiff
path: root/source4/lib/popt/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/popt/SConscript')
-rw-r--r--source4/lib/popt/SConscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/popt/SConscript b/source4/lib/popt/SConscript
index 580de92023..fd13edc42f 100644
--- a/source4/lib/popt/SConscript
+++ b/source4/lib/popt/SConscript
@@ -1,5 +1,10 @@
# tastes like -*- python -*-
Import('hostenv')
+
+conf = Configure(hostenv)
+conf.env['HAVE_EXTERNAL_POPT'] = conf.CheckLibWithHeader('popt', 'popt.h', 'c', 'poptGetArgs(NULL);')
+conf.Finish()
+
popt = hostenv.StaticLibrary('popt', ['findme.c','popt.c','poptconfig.c','popthelp.c','poptparse.c'])
Export('popt')