Import replxx

Change-Id: Iffb9eb32eecb19b018ce353af7109a2bb1c68cf3
diff --git a/.gitmodules b/.gitmodules
index 3a4470e..9b5f9e4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -22,3 +22,6 @@
 [submodule "submodules/libredblack"]
 	path = submodules/libredblack
 	url = ../../github/sysrepo/libredblack
+[submodule "submodules/replxx"]
+	path = submodules/replxx
+	url = ../../github/AmokHuginnsson/replxx
diff --git a/ci/do-build.sh b/ci/do-build.sh
index 52b21c6..5b870dc 100755
--- a/ci/do-build.sh
+++ b/ci/do-build.sh
@@ -102,6 +102,10 @@
     cp -LR boost ${PREFIX}/include/
     popd
 
+    # examples are broked on clang+ubsan because of their STL override
+    CMAKE_OPTIONS="${CMAKE_OPTIONS} -DBUILD_SHARED_LIBS=ON -DREPLXX_BuildExamples=OFF" emerge_dep replxx
+    do_test_dep_cmake replxx -j${CI_PARALLEL_JOBS}
+
     tar -C ~/target -cvJf ${TH_JOB_WORKING_DIR}/${ARTIFACT} .
     ssh th-ci-logs@ci-logs.gerrit.cesnet.cz mkdir -p artifacts/${TH_JOB_NAME} \
         || true # ignore network errors
diff --git a/submodules/replxx b/submodules/replxx
new file mode 160000
index 0000000..12f2ade
--- /dev/null
+++ b/submodules/replxx
@@ -0,0 +1 @@
+Subproject commit 12f2adee7f9123880db1f870c360a88c1f7ba182