Mercurial > hg > nginx-quic
annotate src/http/modules/perl/Makefile.PL @ 4835:a4512d7737f6
Memcached: memcached_gzip_flag directive.
This directive allows to test desired flag as returned by memcached and
sets Content-Encoding to gzip if one found.
This is reimplementation of patch by Tomash Brechko as available on
http://openhack.ru/. It should be a bit more correct though (at least
I think so). In particular, it doesn't try to detect if we are able to
gunzip data, but instead just sets correct Content-Encoding.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Sep 2012 16:43:49 +0000 |
parents | 3b877a45d343 |
children | ae3ebf5ac8cd |
rev | line source |
---|---|
599 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
599 | 4 |
5 use 5.006001; | |
6 use ExtUtils::MakeMaker; | |
7 | |
8 WriteMakefile( | |
9 NAME => 'nginx', | |
10 VERSION_FROM => 'nginx.pm', # finds $VERSION | |
11 PREREQ_PM => {}, # e.g., Module::Name => 1.1 | |
12 | |
13 ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module | |
14 AUTHOR => 'Igor Sysoev', | |
15 | |
681 | 16 CCFLAGS => "$ENV{NGX_PM_CFLAGS}", |
619 | 17 OPTIMIZE => '-O', |
599 | 18 |
19 INC => "-I ../../../../../src/core " . | |
20 "-I ../../../../../src/event " . | |
21 "-I ../../../../../src/os/unix " . | |
22 "-I ../../../../../src/http " . | |
23 "-I ../../../../../src/http/modules " . | |
24 "-I ../../../../../src/http/modules/perl " . | |
25 "-I ../../../../../$ENV{NGX_OBJS} " . | |
681 | 26 ($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" : |
27 ($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " : | |
4473
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
28 "-I ../../../../../$ENV{NGX_PCRE} ")) . |
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
29 ($ENV{NGX_OPENSSL} =~ /^(YES|NO)/ ? "" : |
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
30 ($ENV{NGX_OPENSSL} =~ m#^/# ? |
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
31 "-I $ENV{NGX_OPENSSL}/.openssl/include " : |
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
32 "-I ../../../../../$ENV{NGX_OPENSSL}/.openssl/include ")), |
599 | 33 |
34 depend => { | |
35 'nginx.c' => | |
36 "../../../../../src/http/modules/perl/ngx_http_perl_module.h" | |
37 }, | |
38 | |
39 PM => { | |
40 'nginx.pm' => '$(INST_LIBDIR)/nginx.pm' | |
41 } | |
42 ); |