wininet: Added support for decompressing gzip encoded content.
diff --git a/configure.ac b/configure.ac
index 879e358..beccbbd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -377,7 +377,8 @@
 	unistd.h \
 	utime.h \
 	valgrind/memcheck.h \
-	valgrind/valgrind.h
+	valgrind/valgrind.h \
+	zlib.h
 )
 AC_HEADER_STAT()
 
@@ -1172,6 +1173,13 @@
         pthread_get_stacksize_np,
         [$LIBPTHREAD])
 
+dnl **** Check for zlib ****
+if test "$ac_cv_header_zlib_h" = "yes"
+then
+    AC_CHECK_LIB(z,inflate,[AC_DEFINE(HAVE_ZLIB,1,[Define to 1 if you have the `z' library (-lz).])
+                            AC_SUBST(ZLIB,"-lz")])
+fi
+
 dnl **** Check for EsounD ****
 if test "x$with_esd" != xno
 then