summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-12-11 14:45:22 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-12-11 14:45:22 (GMT)
commit9fe067cb7d0f4ec8efab849f111555dd54efebf7 (patch)
treecc69b025b3ff797fc241114997cd273b07501512
parent06751fe9a09fc304e1321413375cb4ec1d334b91 (diff)
downloadtcl-9fe067cb7d0f4ec8efab849f111555dd54efebf7.zip
tcl-9fe067cb7d0f4ec8efab849f111555dd54efebf7.tar.gz
tcl-9fe067cb7d0f4ec8efab849f111555dd54efebf7.tar.bz2
start of zlib support for windows
-rw-r--r--win/configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/win/configure.in b/win/configure.in
index 7437dc4..c3a760f 100644
--- a/win/configure.in
+++ b/win/configure.in
@@ -3,7 +3,7 @@
# generate the file "configure", which is run during Tcl installation
# to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.109 2008/10/14 20:08:21 dgp Exp $
+# RCS: @(#) $Id: configure.in,v 1.110 2008/12/11 14:45:22 dkf Exp $
AC_INIT(../generic/tcl.h)
AC_PREREQ(2.59)
@@ -336,6 +336,22 @@ SC_TCL_CFG_ENCODING
SC_ENABLE_SHARED
+#------------------------------------------------------------------------
+# Add stuff for zlib
+#------------------------------------------------------------------------
+
+zlib_ok=yes
+AC_CHECK_HEADER([zlib.h],[],[
+ zlib_ok=no
+ echo TODO: Add -I$srcdir/compat/zlib/include to compile lines...
+])
+AC_SEARCH_LIBS([adler32],[z],[],[
+ zlib_ok=no
+])
+if test $zlib_ok = yes; then
+ AC_DEFINE(HAVE_ZLIB, 1, [Is there an installed zlib?])
+fi
+
#--------------------------------------------------------------------
# The statements below define a collection of compile flags. This
# macro depends on the value of SHARED_BUILD, and should be called