--- a/configure
+++ b/configure
@@ -50,6 +50,11 @@
     Useful if your C++ compiler has incomplete floating-point support
     (such as uClibc-based systems).
 
+  --no-sharedmemory
+    Compile with -DPOCO_NO_SHAREDMEMORY
+    Useful if your C++ compiler has incomplete shared memory support
+    (such as uClibc-based systems).
+
   --omit=<component>{,<component>}
     Do not build the specified component(s).
     Example: --omit=Data/MySQL,Data/ODBC,Zip
@@ -140,6 +145,10 @@
 		flags="$flags -DPOCO_NO_FPENVIRONMENT"
 	fi
 
+	if [ "$1" = "--no-sharedmemory" ] ; then
+		flags="$flags -DPOCO_NO_SHAREDMEMORY"
+	fi
+
 	if [ "$1" = "--poquito" ] ; then
 		flags="$flags -DPOCO_NO_FILECHANNEL -DPOCO_NO_SPLITTERCHANNEL -DPOCO_NO_SYSLOGCHANNEL -DPOCO_UTIL_NO_INIFILECONFIGURATION -DPOCO_UTIL_NO_XMLCONFIGURATION"
 	fi