elseif(BASEARCH_S360_FOUND AND "${ARCH}" MATCHES "s390x")
if(WITH_DFLTCC_DEFLATE OR WITH_DFLTCC_INFLATE)
list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/dfltcc_common.c)
+ add_definitions(-DGZBUFSIZE=262144)
endif()
if(WITH_DFLTCC_DEFLATE)
add_definitions(-DS390_DFLTCC_DEFLATE)
else()
target_link_libraries(minigzip zlib)
endif()
+ if(BASEARCH_S360_FOUND AND "${ARCH}" MATCHES "s390x")
+ if(WITH_DFLTCC_DEFLATE OR WITH_DFLTCC_INFLATE)
+ set_source_files_properties(test/minigzip.c PROPERTIES COMPILE_DEFINITIONS BUFLEN=262144)
+ endif()
+ endif()
add_executable(switchlevels test/switchlevels.c)
configure_test_executable(switchlevels)
/* default i/o buffer size -- double this for output when reading (this and
twice this must be able to fit in an unsigned type) */
-#if defined(S390_DFLTCC_DEFLATE) || defined(S390_DFLTCC_INFLATE)
-# define GZBUFSIZE 262144 /* DFLTCC works faster with larger buffers */
-#else
+#ifndef GZBUFSIZE
# define GZBUFSIZE 8192
#endif
#endif
#define SUFFIX_LEN (sizeof(GZ_SUFFIX)-1)
-#if defined(S390_DFLTCC_DEFLATE) || defined(S390_DFLTCC_INFLATE)
-# define BUFLEN 262144 /* DFLTCC works faster with larger buffers */
-#else
+#ifndef BUFLEN
# define BUFLEN 16384 /* read buffer size */
#endif
#define BUFLENW (BUFLEN * 3) /* write buffer size */