read: auto-register prefixes for inserted data

Change-Id: Iebddca056a4c74f179f7af7203881adfe1cba777
refs: #4247
diff --git a/wscript b/wscript
index 3648e2f..fc3de3b 100644
--- a/wscript
+++ b/wscript
@@ -36,7 +36,9 @@
 
     USED_BOOST_LIBS = ['system', 'iostreams', 'filesystem']
     if conf.env['WITH_TESTS']:
+        conf.define('HAVE_TESTS', 1)
         USED_BOOST_LIBS += ['unit_test_framework']
+
     conf.check_boost(lib=USED_BOOST_LIBS, mandatory=True)
 
     try: