2 # Copyright (C) Igor Sysoev
5 if [ $ZLIB != NONE ]; then
6 CORE_INCS="$CORE_INCS $ZLIB"
11 LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
12 CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
16 LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
18 # to allow -ipo optimization we link with the *.o but not library
19 CORE_LIBS="$CORE_LIBS $ZLIB/adler32.o"
20 CORE_LIBS="$CORE_LIBS $ZLIB/crc32.o"
21 CORE_LIBS="$CORE_LIBS $ZLIB/deflate.o"
22 CORE_LIBS="$CORE_LIBS $ZLIB/trees.o"
23 CORE_LIBS="$CORE_LIBS $ZLIB/zutil.o"
24 CORE_LIBS="$CORE_LIBS $ZLIB/compress.o"
26 if [ $ZLIB_ASM != NO ]; then
27 CORE_LIBS="$CORE_LIBS $ZLIB/match.o"
32 LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
33 CORE_LIBS="$CORE_LIBS $ZLIB/libz.a"
34 #CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
41 if [ "$NGX_PLATFORM" != win32 ]; then
44 # FreeBSD, Solaris, Linux
46 ngx_feature="zlib library"
49 ngx_feature_incs="#include <zlib.h>"
51 ngx_feature_libs="-lz"
52 ngx_feature_test="z_stream z; deflate(&z, Z_NO_FLUSH)"
56 if [ $ngx_found = yes ]; then
57 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"