Skip to content

Commit

Permalink
Configure: added the NGX_ZLIB define.
Browse files Browse the repository at this point in the history
This was introduced for conditional compilation of the code that requires
the zlib library.
  • Loading branch information
vbart committed Dec 23, 2012
1 parent ef9ca35 commit d2e7787
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auto/lib/zlib/conf
Expand Up @@ -9,11 +9,13 @@ if [ $ZLIB != NONE ]; then
case "$NGX_CC_NAME" in

msvc* | owc* | bcc)
have=NGX_ZLIB . auto/have
LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
;;

icc*)
have=NGX_ZLIB . auto/have
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"

# to allow -ipo optimization we link with the *.o but not library
Expand All @@ -30,6 +32,7 @@ if [ $ZLIB != NONE ]; then
;;

*)
have=NGX_ZLIB . auto/have
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
CORE_LIBS="$CORE_LIBS $ZLIB/libz.a"
#CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
Expand All @@ -45,7 +48,7 @@ else
# FreeBSD, Solaris, Linux

ngx_feature="zlib library"
ngx_feature_name=
ngx_feature_name="NGX_ZLIB"
ngx_feature_run=no
ngx_feature_incs="#include <zlib.h>"
ngx_feature_path=
Expand Down

0 comments on commit d2e7787

Please sign in to comment.