2003-12-15 04:10:27 +08:00
|
|
|
|
2004-02-09 15:46:43 +08:00
|
|
|
if [ $ZLIB != NONE ]; then
|
2003-12-15 04:10:27 +08:00
|
|
|
CORE_INCS="$CORE_INCS -I $ZLIB"
|
|
|
|
|
|
|
|
if [ "$PLATFORM" = "win32" ]; then
|
|
|
|
CORE_LIBS="$CORE_LIBS zlib.lib"
|
|
|
|
CORE_LINK="$CORE_LINK -libpath:$ZLIB"
|
|
|
|
else
|
|
|
|
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
|
|
|
|
CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
ngx_lib_inc="#include <zlib.h>"
|
|
|
|
|
|
|
|
ngx_lib="zlib"
|
|
|
|
ngx_lib_test="z_stream z; deflate(&z, Z_NO_FLUSH)"
|
|
|
|
ngx_libs=-lz
|
|
|
|
. auto/lib/test
|
|
|
|
|
|
|
|
|
|
|
|
if [ $ngx_found = yes ]; then
|
|
|
|
CORE_LIBS="$CORE_LIBS $ngx_libs"
|
|
|
|
ZLIB=YES
|
2004-02-09 15:46:43 +08:00
|
|
|
else
|
|
|
|
ZLIB=NO
|
2003-12-15 04:10:27 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|