Mercurial > hg > nginx-quic
annotate auto/lib/perl/conf @ 6132:859ce1c41f64
Win32: fixed shm.handle loss on reload.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 27 Apr 2015 03:44:30 +0300 |
parents | dde2ae4701e1 |
children | 7e241b36819d |
rev | line source |
---|---|
599 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
599 | 4 |
5 | |
6 echo "checking for perl" | |
7 | |
8 | |
9 NGX_PERL_VER=`$NGX_PERL -v 2>&1 | grep '^This is perl' 2>&1 \ | |
10 | sed -e 's/^This is perl, \(.*\)/\1/'` | |
11 | |
12 if test -n "$NGX_PERL_VER"; then | |
13 echo " + perl version: $NGX_PERL_VER" | |
14 | |
4866
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
15 if [ "`$NGX_PERL -e 'use 5.006001; print "OK"'`" != "OK" ]; then |
599 | 16 echo |
17 echo "$0: error: perl 5.6.1 or higher is required" | |
18 echo | |
19 | |
20 exit 1; | |
21 fi | |
22 | |
4866
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
23 if [ "`$NGX_PERL -MExtUtils::Embed -e 'print "OK"'`" != "OK" ]; then |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
24 echo |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
25 echo "$0: error: perl module ExtUtils::Embed is required" |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
26 echo |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
27 |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
28 exit 1; |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
29 fi |
fac1cc762969
Configure: additional test for ExtUtils::Embed perl module presence.
Andrey Belov <defan@nginx.com>
parents:
4412
diff
changeset
|
30 |
681 | 31 NGX_PERL_CFLAGS="$CFLAGS `$NGX_PERL -MExtUtils::Embed -e ccopts`" |
32 NGX_PM_CFLAGS=`$NGX_PERL -MExtUtils::Embed -e ccopts` | |
33 | |
34 # gcc 4.1/4.2 warn about unused values in pTHX_ | |
35 NGX_PERL_CFLAGS=`echo $NGX_PERL_CFLAGS \ | |
36 | sed -e 's/-Wunused-value/-Wno-unused-value/'` | |
37 # icc8 warns 'declaration hides parameter "my_perl"' in ENTER and LEAVE | |
38 NGX_PERL_CFLAGS=`echo $NGX_PERL_CFLAGS \ | |
39 | sed -e 's/-wd171/-wd171 -wd1599/'` | |
40 | |
599 | 41 ngx_perl_ldopts=`$NGX_PERL -MExtUtils::Embed -e ldopts` |
42 | |
5145
f6777aef5b2f
Configure: fixed perl module make rules.
Ruslan Ermilov <ru@nginx.com>
parents:
4866
diff
changeset
|
43 ngx_perl_dlext=`$NGX_PERL -MConfig -e 'print $Config{dlext}'` |
5743
dde2ae4701e1
Configure: restored "nginx/" missed in 6e4bb1d6679d.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5739
diff
changeset
|
44 ngx_perl_libdir="src/http/modules/perl/blib/arch/auto" |
dde2ae4701e1
Configure: restored "nginx/" missed in 6e4bb1d6679d.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5739
diff
changeset
|
45 ngx_perl_module="$ngx_perl_libdir/nginx/nginx.$ngx_perl_dlext" |
5145
f6777aef5b2f
Configure: fixed perl module make rules.
Ruslan Ermilov <ru@nginx.com>
parents:
4866
diff
changeset
|
46 |
599 | 47 if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then |
48 have=NGX_HAVE_PERL_MULTIPLICITY . auto/have | |
49 echo " + perl interpreter multiplicity found" | |
50 fi | |
51 | |
872
1c4a5b3f9110
Axe several perl interpreter instances: they may be useful in currently
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
52 if $NGX_PERL -V:useithreads | grep undef > /dev/null; then |
599 | 53 # FreeBSD port wants to link with -pthread non-threaded perl |
54 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'` | |
55 fi | |
56 | |
5722
baf2816d556d
Configure: workaround for system perl on OS X (ticket #576).
Maxim Dounin <mdounin@mdounin.ru>
parents:
5145
diff
changeset
|
57 if [ "$NGX_SYSTEM" = "Darwin" ]; then |
baf2816d556d
Configure: workaround for system perl on OS X (ticket #576).
Maxim Dounin <mdounin@mdounin.ru>
parents:
5145
diff
changeset
|
58 # OS X system perl wants to link universal binaries |
5739 | 59 ngx_perl_ldopts=`echo $ngx_perl_ldopts \ |
60 | sed -e 's/-arch x86_64 -arch i386//'` | |
5722
baf2816d556d
Configure: workaround for system perl on OS X (ticket #576).
Maxim Dounin <mdounin@mdounin.ru>
parents:
5145
diff
changeset
|
61 fi |
baf2816d556d
Configure: workaround for system perl on OS X (ticket #576).
Maxim Dounin <mdounin@mdounin.ru>
parents:
5145
diff
changeset
|
62 |
599 | 63 CORE_LINK="$CORE_LINK $ngx_perl_ldopts" |
5739 | 64 LINK_DEPS="$LINK_DEPS $NGX_OBJS/$ngx_perl_module" |
599 | 65 |
66 if test -n "$NGX_PERL_MODULES"; then | |
67 have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\"" | |
68 . auto/define | |
950
9581fba9ea12
fix for nginx.pm default installation
Igor Sysoev <igor@sysoev.ru>
parents:
872
diff
changeset
|
69 NGX_PERL_MODULES_MAN=$NGX_PERL_MODULES/man3 |
599 | 70 fi |
71 | |
72 else | |
73 echo | |
74 echo "$0: error: perl 5.6.1 or higher is required" | |
75 echo | |
76 | |
77 exit 1; | |
78 fi |