Browse Source

[3079] Disable the memory manager if no shared memory

Just ifdef out the whole makefiles.
Michal 'vorner' Vaner 11 years ago
parent
commit
806ec4bfdf
2 changed files with 14 additions and 0 deletions
  1. 7 0
      src/bin/memmgr/Makefile.am
  2. 7 0
      src/lib/python/isc/memmgr/Makefile.am

+ 7 - 0
src/bin/memmgr/Makefile.am

@@ -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

+ 7 - 0
src/lib/python/isc/memmgr/Makefile.am

@@ -1,3 +1,8 @@
+if USE_SHARED_MEMORY
+
+# We use the memory manager only with shared memory. No reason to
+# install on platforms without it and tests may fail there.
+
 SUBDIRS = . tests
 
 python_PYTHON = __init__.py builder.py datasrc_info.py logger.py
@@ -23,3 +28,5 @@ CLEANDIRS = __pycache__
 
 clean-local:
 	rm -rf $(CLEANDIRS)
+
+endif