diff options
author | hypnotoad <yoda@etoyoc.com> | 2014-09-02 21:16:20 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2014-09-02 21:16:20 (GMT) |
commit | 2286b3310edf3b0211fc1a94e7ef71ccd9751da2 (patch) | |
tree | ce888f17fe63b3a9c6b3b0d15144d4f76f5f5ea9 /win/configure | |
parent | 65a0e3cbeba29d23788eb5aaa3a45f45b1639529 (diff) | |
download | tcl-fix_windows_zlib.zip tcl-fix_windows_zlib.tar.gz tcl-fix_windows_zlib.tar.bz2 |
Fix for the cases where a dynamic build is usedfix_windows_zlib
Diffstat (limited to 'win/configure')
-rwxr-xr-x | win/configure | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/win/configure b/win/configure index d8ee198..4414f2d 100755 --- a/win/configure +++ b/win/configure @@ -678,8 +678,9 @@ VC_MANIFEST_EMBED_EXE VC_MANIFEST_EMBED_DLL LDFLAGS_DEFAULT CFLAGS_DEFAULT -ZLIB_LIBS ZLIB_OBJS +ZLIB_LIBS +ZLIB_DLL_FILE CFLAGS_WARNING CFLAGS_OPTIMIZE CFLAGS_DEBUG @@ -4669,20 +4670,42 @@ else fi -if test "with_zlib" = "NO_ZLIB"; then : - ZLIB_OBJS=\${ZLIB_OBJS} +if test "$tcl_ok" = "yes"; then : -elif test "$tcl_ok" != "yes"; then : - ZLIB_OBJS=\${ZLIB_OBJS} + ZLIB_DLL_FILE=\${ZLIB_DLL_FILE} -elif test "$do64bit" = "yes"; then : - ZLIB_OBJS=\${ZLIB_OBJS} +fi +tcl_no_zlib_dll=no +if test "$with_zlib" = "NO_ZLIB"; then : + tcl_no_zlib_dll=yes +elif test "$tcl_ok" != "yes"; then : + tcl_no_zlib_dll=yes +elif test "$do64bit" = "yes"; then : + tcl_no_zlib_dll=yes elif test "$with_zlib" = "yes" ; then : - ZLIB_LIBS=\${ZLIB_DIR}/win32/zdll.lib + + ZLIB_DLL_FILE=\${ZLIB_DLL_FILE} + + ZLIB_LIBS=\${ZLIB_DIR}/win32/zdll.lib + else - ZLIB_LIBS=$with_zlib + + ZLIB_DLL_FILE=${with_zlib} + + ZLIB_LIBS=$with_zlib + + + +fi +if test "$tcl_no_zlib_dll" = "yes"; then : + + ZLIB_OBJS=\${ZLIB_OBJS} + + ZLIB_DLL_FILE="" + + ZLIB_LIBS="" fi |