Just ifdef out the whole makefiles.
@@ -1,3 +1,8 @@
+if USE_SHARED_MEMORY
+
+# If we don't have shared memory, the memory manager is useless.
+# Skip building, testing and installing it completely.
SUBDIRS = . tests
pkglibexecdir = $(libexecdir)/@PACKAGE@
@@ -60,3 +65,5 @@ install-data-hook:
clean-local:
rm -rf $(CLEANDIRS)
+endif
+# We use the memory manager only with shared memory. No reason to
+# install on platforms without it and tests may fail there.
python_PYTHON = __init__.py builder.py datasrc_info.py logger.py
@@ -23,3 +28,5 @@ CLEANDIRS = __pycache__