nginx-quic/auto/lib/zlib/conf

64 lines
1.5 KiB
Text
Raw Normal View History

2003-12-14 17:10:27 -03:00
# Copyright (C) Igor Sysoev
2004-02-09 04:46:43 -03:00
if [ $ZLIB != NONE ]; then
2004-03-29 13:43:58 -04:00
CORE_INCS="$CORE_INCS $ZLIB"
2003-12-14 17:10:27 -03:00
case "$NGX_CC_NAME" in
2004-03-09 16:47:07 -03:00
msvc* | owc* | bcc)
2004-03-09 16:47:07 -03:00
LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
;;
icc*)
2004-03-14 16:46:25 -04:00
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
# to allow -ipo optimization we link with the *.o but not library
CORE_LIBS="$CORE_LIBS $ZLIB/adler32.o"
CORE_LIBS="$CORE_LIBS $ZLIB/crc32.o"
CORE_LIBS="$CORE_LIBS $ZLIB/deflate.o"
CORE_LIBS="$CORE_LIBS $ZLIB/trees.o"
CORE_LIBS="$CORE_LIBS $ZLIB/zutil.o"
CORE_LIBS="$CORE_LIBS $ZLIB/compress.o"
2004-03-14 16:46:25 -04:00
if [ $ZLIB_ASM != NO ]; then
CORE_LIBS="$CORE_LIBS $ZLIB/match.o"
fi
;;
2004-03-09 16:47:07 -03:00
*)
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
2004-04-04 16:32:09 -04:00
CORE_LIBS="$CORE_LIBS $ZLIB/libz.a"
#CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
2004-03-09 16:47:07 -03:00
;;
esac
2003-12-14 17:10:27 -03:00
else
if [ "$NGX_PLATFORM" != win32 ]; then
ZLIB=NO
2003-12-14 17:10:27 -03:00
2004-04-18 15:06:02 -04:00
# FreeBSD, Solaris, Linux
ngx_feature="zlib library"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <zlib.h>"
ngx_feature_path=
ngx_feature_libs="-lz"
ngx_feature_test="z_stream z; deflate(&z, Z_NO_FLUSH)"
. auto/feature
2003-12-14 17:10:27 -03:00
2004-04-08 11:58:25 -04:00
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
2004-04-08 11:58:25 -04:00
ZLIB=YES
ngx_found=no
2004-04-08 11:58:25 -04:00
fi
2003-12-14 17:10:27 -03:00
fi
fi