From 4ca8014afbb66f0b65cdcd8ea12e469f52c8c70c Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Mon, 2 Jan 2012 22:45:53 +0000 Subject: Define NO_ZPIPE when building for MinGW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Define NO_ZPIPE when building for MinGW, decompressing via a pipe isn't implemented. (since xpmPipeThrough() is only written in terms of fork() currently...) Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison Reviewed-by: Yaakov Selkowitz Reviewed-by: Ángel González --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index ba7e3b4..5ac5d05 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,15 @@ if test x$STAT_ZFILE = xyes ; then AC_DEFINE(STAT_ZFILE, 1, [Define to 1 to automatically look for files with .Z & .gz extensions]) fi + +case $host_os in + *mingw*) + AC_DEFINE(NO_ZPIPE, 1, [Define to 1 to disable decompression via pipes]) + ;; + *) + ;; +esac + AC_CONFIG_FILES([Makefile doc/Makefile include/Makefile -- cgit v1.2.3