tools: NDN hub discovery server & client

refs: #1295, #1296

Change-Id: I2fb5a0a8d6435e39aca080cb51b683820dbd959e
diff --git a/wscript b/wscript
index 0a8652d..af6d67a 100644
--- a/wscript
+++ b/wscript
@@ -64,7 +64,9 @@
     conf.check_cxx(lib='rt', uselib_store='RT', define_name='HAVE_RT', mandatory=False)
     if conf.check_cxx(lib='pcap', uselib_store='PCAP', define_name='HAVE_PCAP', mandatory=False):
         conf.env['HAVE_PCAP'] = True
-
+    
+    conf.check_cxx(lib='resolv', uselib_store='RESOLV', mandatory=True)
+    
     conf.load('coverage')
 
     conf.define('DEFAULT_CONFIG_FILE', '%s/nfd/nfd.conf' % conf.env['SYSCONFDIR'])
@@ -101,7 +103,7 @@
         bld(features=['cxx', 'cxxprogram'],
             target = 'bin/%s' % (str(app.change_ext(''))),
             source = ['tools/%s' % (str(app))],
-            use = 'BOOST NDN_CPP RT',
+            use = 'BOOST NDN_CPP RT RESOLV',
             )
 
     # Unit tests