Add some add() methods to Time classes.
[libsub.git] / wscript
diff --git a/wscript b/wscript
index 0d6016f31859c1621d0066c0856cf4ee3dc87260..079f38ad9adc5d3fb31547040d89528094529733 100644 (file)
--- a/wscript
+++ b/wscript
@@ -24,7 +24,9 @@ def configure(conf):
 
     if conf.options.static:
         conf.env.HAVE_CXML = 1
+        conf.env.LIB_CXML = ['glibmm-2.4', 'glib-2.0', 'pcre', 'sigc-2.0', 'rt', 'xml++-2.6', 'xml2', 'pthread', 'lzma', 'dl', 'z']
         conf.env.STLIB_CXML = ['cxml']
+        conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags', uselib_store='CXML', mandatory=True)
     else:
         conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags --libs', uselib_store='CXML', mandatory=True)
 
@@ -40,6 +42,24 @@ def configure(conf):
                    okmsg='yes',
                    errmsg='too old\nPlease install boost version 1.45 or higher.')
 
+    conf.check_cxx(fragment = """
+                             #include <boost/filesystem.hpp>\n
+                             int main() { boost::filesystem::copy_file ("a", "b"); }\n
+                             """,
+                   msg = 'Checking for boost filesystem library',
+                   libpath = '/usr/local/lib',
+                   lib = ['boost_filesystem', 'boost_system'],
+                   uselib_store = 'BOOST_FILESYSTEM')
+
+    conf.check_cxx(fragment = """
+                             #include <boost/locale.hpp>\n
+                             int main() { boost::locale::conv::to_utf<char> ("a", "cp850"); }\n
+                             """,
+                   msg = 'Checking for boost locale library',
+                   libpath = '/usr/local/lib',
+                   lib = ['boost_locale', 'boost_system'],
+                   uselib_store = 'BOOST_LOCALE')
+
     conf.recurse('test')
 
 def build(bld):
@@ -53,6 +73,7 @@ def build(bld):
 
     bld.recurse('src')
     bld.recurse('test')
+    bld.recurse('tools')
 
     bld.add_post_fun(post)