[rtems-libbsd commit] waf: Check for dlfcn.h header is availavble.

Chris Johns chrisj at rtems.org
Fri May 22 02:18:36 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    84288f4279113fd0f99527274c32c9532913a8ce
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=84288f4279113fd0f99527274c32c9532913a8ce

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri May 22 12:18:31 2015 +1000

waf: Check for dlfcn.h header is availavble.

---

 waf_generator.py | 5 ++++-
 wscript          | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/waf_generator.py b/waf_generator.py
index 28ea93d..b3c8055 100755
--- a/waf_generator.py
+++ b/waf_generator.py
@@ -240,6 +240,9 @@ class ModuleManager(builder.ModuleManager):
         self.add('                   dest = "net_config",')
         self.add('                   help = "Network test configuration.")')
         self.add('')
+        self.add('def bsp_configure(conf, arch_bsp):')
+        self.add('    conf.check(header_name = "dlfcn.h", features = "c")')
+        self.add('')
         self.add('def configure(conf):')
         self.add('    if conf.options.auto_regen:')
         self.add('        conf.find_program("lex", mandatory = True)')
@@ -248,7 +251,7 @@ class ModuleManager(builder.ModuleManager):
         self.add('    conf.env.AUTO_REGEN = conf.options.auto_regen')
         self.add('    conf.env.WARNINGS = conf.options.warnings')
         self.add('    conf.env.NET_CONFIG = conf.options.net_config')
-        self.add('    rtems.configure(conf)')
+        self.add('    rtems.configure(conf, bsp_configure)')
         self.add('    if rtems.check_networking(conf):')
         self.add('        conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")')
         self.add('')
diff --git a/wscript b/wscript
index c943123..d1438ee 100644
--- a/wscript
+++ b/wscript
@@ -35,6 +35,9 @@ def options(opt):
                    dest = "net_config",
                    help = "Network test configuration.")
 
+def bsp_configure(conf, arch_bsp):
+    conf.check(header_name = "dlfcn.h", features = "c")
+
 def configure(conf):
     if conf.options.auto_regen:
         conf.find_program("lex", mandatory = True)
@@ -43,7 +46,7 @@ def configure(conf):
     conf.env.AUTO_REGEN = conf.options.auto_regen
     conf.env.WARNINGS = conf.options.warnings
     conf.env.NET_CONFIG = conf.options.net_config
-    rtems.configure(conf)
+    rtems.configure(conf, bsp_configure)
     if rtems.check_networking(conf):
         conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")
 



More information about the vc mailing list