# Enable reduced memory configuration
#
if(WITH_REDUCED_MEM)
- add_definitions(-DHASH_SIZE=32768u -DGZBUFSIZE=8192)
+ add_definitions(-DHASH_SIZE=32768u -DGZBUFSIZE=8192 -DNO_LIT_MEM)
message(STATUS "Configured for reduced memory environment")
endif()
# enable reduced memory configuration
if test $reducedmem -eq 1; then
echo "Configuring for reduced memory environment." | tee -a configure.log
- CFLAGS="${CFLAGS} -DHASH_SIZE=32768u -DGZBUFSIZE=8192"
+ CFLAGS="${CFLAGS} -DHASH_SIZE=32768u -DGZBUFSIZE=8192 -DNO_LIT_MEM"
fi
# if code coverage testing was requested, use older gcc if defined, e.g. "gcc-4.2" on Mac OS X
/* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at
the cost of a larger memory footprint */
-/* #define LIT_MEM */
+#ifndef NO_LIT_MEM
+# define LIT_MEM
+#endif
/* ===========================================================================
* Internal compression state.