~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to auto/lib/zlib/conf

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
# Copyright (C) Igor Sysoev
 
3
# Copyright (C) Nginx, Inc.
3
4
 
4
5
 
5
6
if [ $ZLIB != NONE ]; then
8
9
    case "$NGX_CC_NAME" in
9
10
 
10
11
        msvc* | owc* | bcc)
 
12
            have=NGX_ZLIB . auto/have
11
13
            LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
12
14
            CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
13
15
        ;;
14
16
 
15
17
        icc*)
 
18
            have=NGX_ZLIB . auto/have
16
19
            LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
17
20
 
18
21
            # to allow -ipo optimization we link with the *.o but not library
29
32
        ;;
30
33
 
31
34
        *)
 
35
            have=NGX_ZLIB . auto/have
32
36
            LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
33
37
            CORE_LIBS="$CORE_LIBS $ZLIB/libz.a"
34
38
            #CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
44
48
        # FreeBSD, Solaris, Linux
45
49
 
46
50
        ngx_feature="zlib library"
47
 
        ngx_feature_name=
 
51
        ngx_feature_name="NGX_ZLIB"
48
52
        ngx_feature_run=no
49
53
        ngx_feature_incs="#include <zlib.h>"
50
54
        ngx_feature_path=
60
64
        fi
61
65
    fi
62
66
 
 
67
    if [ $ZLIB != YES ]; then
 
68
cat << END
 
69
 
 
70
$0: error: the HTTP gzip module requires the zlib library.
 
71
You can either disable the module by using --without-http_gzip_module
 
72
option, or install the zlib library into the system, or build the zlib library
 
73
statically from the source with nginx by using --with-zlib=<path> option.
 
74
 
 
75
END
 
76
        exit 1
 
77
    fi
 
78
 
63
79
fi