Mercurial > hg > nginx
comparison auto/lib/perl/conf @ 599:869b6444d234 release-0.3.21
nginx-0.3.21-RELEASE import
*) Feature: the ngx_http_perl_module.
*) Change: the "valid_referers" directive allows the referreres without
URI part.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Jan 2006 14:56:53 +0000 |
parents | |
children | 562806624c4a |
comparison
equal
deleted
inserted
replaced
598:bfa12c280dec | 599:869b6444d234 |
---|---|
1 | |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 echo "checking for perl" | |
6 | |
7 | |
8 NGX_PERL_VER=`$NGX_PERL -v 2>&1 | grep '^This is perl' 2>&1 \ | |
9 | sed -e 's/^This is perl, \(.*\)/\1/'` | |
10 | |
11 if test -n "$NGX_PERL_VER"; then | |
12 echo " + perl version: $NGX_PERL_VER" | |
13 | |
14 if [ "`echo 'use 5.006001; print "OK"' | $NGX_PERL 2>&1`" != OK ]; then | |
15 echo | |
16 echo "$0: error: perl 5.6.1 or higher is required" | |
17 echo | |
18 | |
19 exit 1; | |
20 fi | |
21 | |
22 CFLAGS="$CFLAGS `$NGX_PERL -MExtUtils::Embed -e ccopts`" | |
23 ngx_perl_ldopts=`$NGX_PERL -MExtUtils::Embed -e ldopts` | |
24 | |
25 if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then | |
26 have=NGX_HAVE_PERL_MULTIPLICITY . auto/have | |
27 echo " + perl interpreter multiplicity found" | |
28 fi | |
29 | |
30 if $NGX_PERL -V:useithreads | grep define > /dev/null; then | |
31 have=NGX_HAVE_PERL_CLONE . auto/have | |
32 echo " + perl_clone() found" | |
33 | |
34 else | |
35 # FreeBSD port wants to link with -pthread non-threaded perl | |
36 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'` | |
37 fi | |
38 | |
39 CORE_LINK="$CORE_LINK $ngx_perl_ldopts" | |
40 LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so" | |
41 | |
42 if test -n "$NGX_PERL_MODULES"; then | |
43 have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\"" | |
44 . auto/define | |
45 fi | |
46 | |
47 else | |
48 echo | |
49 echo "$0: error: perl 5.6.1 or higher is required" | |
50 echo | |
51 | |
52 exit 1; | |
53 fi |