Mercurial > hg > nginx-quic
annotate auto/lib/pcre/conf @ 1199:98317b0a0852
style fix
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 May 2007 08:49:15 +0000 |
parents | c7850d8b5239 |
children | 1476d32c66a7 b766d9c0a2be |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
320
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
320
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
320
diff
changeset
|
3 |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
4 |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
5 if [ $PCRE != NONE ]; then |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
6 CORE_INCS="$CORE_INCS $PCRE" |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 |
455 | 10 case "$NGX_CC_NAME" in |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
11 |
461 | 12 msvc* | owc* | bcc) |
455 | 13 have=NGX_PCRE . auto/have |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
14 have=PCRE_STATIC . auto/have |
288
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
15 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h" |
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
16 LINK_DEPS="$LINK_DEPS $PCRE/pcre.lib" |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
17 CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib" |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
18 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
19 |
561 | 20 icc* | sunc ) |
455 | 21 have=NGX_PCRE . auto/have |
288
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
22 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h" |
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
23 |
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
24 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a" |
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
25 |
523 | 26 echo $ngx_n "checking for PCRE library ...$ngx_c" |
27 | |
1006
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
28 if [ -e $PCRE/pcre.h ]; then |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
29 ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \ |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
30 | sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'` |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
31 |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
32 else |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
33 ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \ |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
34 | sed -e 's/^.*=\(.*\)$/\1/'` |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
35 fi |
523 | 36 |
37 echo " $ngx_pcre_ver major version found" | |
38 | |
288
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
39 # to allow -ipo optimization we link with the *.o but not library |
523 | 40 |
41 case "$ngx_pcre_ver" in | |
1006
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
42 4|5) |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
43 CORE_LIBS="$CORE_LIBS $PCRE/pcre.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
44 ;; |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
45 |
523 | 46 6) |
47 CORE_LIBS="$CORE_LIBS $PCRE/pcre_chartables.o" | |
48 CORE_LIBS="$CORE_LIBS $PCRE/pcre_compile.o" | |
49 CORE_LIBS="$CORE_LIBS $PCRE/pcre_exec.o" | |
50 CORE_LIBS="$CORE_LIBS $PCRE/pcre_fullinfo.o" | |
51 CORE_LIBS="$CORE_LIBS $PCRE/pcre_globals.o" | |
52 CORE_LIBS="$CORE_LIBS $PCRE/pcre_tables.o" | |
53 CORE_LIBS="$CORE_LIBS $PCRE/pcre_try_flipped.o" | |
54 ;; | |
55 | |
56 *) | |
1006
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
57 CORE_LIBS="$CORE_LIBS $PCRE/pcre_chartables.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
58 CORE_LIBS="$CORE_LIBS $PCRE/pcre_compile.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
59 CORE_LIBS="$CORE_LIBS $PCRE/pcre_exec.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
60 CORE_LIBS="$CORE_LIBS $PCRE/pcre_fullinfo.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
61 CORE_LIBS="$CORE_LIBS $PCRE/pcre_globals.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
62 CORE_LIBS="$CORE_LIBS $PCRE/pcre_tables.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
63 CORE_LIBS="$CORE_LIBS $PCRE/pcre_try_flipped.o" |
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
64 CORE_LIBS="$CORE_LIBS $PCRE/pcre_newline.o" |
523 | 65 ;; |
1006
0d0c74b73573
icc and PCRE-6.5+ compatibility
Igor Sysoev <igor@sysoev.ru>
parents:
876
diff
changeset
|
66 |
523 | 67 esac |
288
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
68 ;; |
f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
Igor Sysoev <igor@sysoev.ru>
parents:
286
diff
changeset
|
69 |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
70 *) |
455 | 71 have=NGX_PCRE . auto/have |
286
fc8dc489247e
nginx-0.0.2-2004-03-12-00:34:52 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
72 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h" |
fc8dc489247e
nginx-0.0.2-2004-03-12-00:34:52 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
73 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a" |
306
6b91bfbc4123
nginx-0.0.3-2004-04-05-00:32:09 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
74 CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a" |
6b91bfbc4123
nginx-0.0.3-2004-04-05-00:32:09 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
75 #CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre" |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
76 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
77 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
78 esac |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
79 |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
80 else |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
81 |
493 | 82 if [ "$NGX_PLATFORM" != win32 ]; then |
455 | 83 PCRE=NO |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
84 |
455 | 85 ngx_feature="PCRE library" |
469 | 86 ngx_feature_name="NGX_PCRE" |
455 | 87 ngx_feature_run=no |
88 ngx_feature_incs="#include <pcre.h>" | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
89 ngx_feature_path= |
455 | 90 ngx_feature_libs="-lpcre" |
91 ngx_feature_test="pcre *re; re = pcre_compile(NULL, 0, NULL, 0, NULL)" | |
92 . auto/feature | |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
93 |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
94 if [ $ngx_found = yes ]; then |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
95 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
96 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
455 | 97 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
98 PCRE=YES |
320
d621239c30f7
nginx-0.0.3-2004-04-18-23:06:02 import
Igor Sysoev <igor@sysoev.ru>
parents:
309
diff
changeset
|
99 ngx_found=no |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
100 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
101 else |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
102 # FreeBSD port |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
103 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
104 ngx_feature="PCRE library in /usr/local/" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
105 ngx_feature_name="NGX_PCRE" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
106 ngx_feature_run=no |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
107 ngx_feature_incs="#include <pcre.h>" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
108 ngx_feature_path="/usr/local/include" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
109 ngx_feature_libs="-L /usr/local/lib -lpcre" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
110 ngx_feature_test="pcre *re; |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
111 re = pcre_compile(NULL, 0, NULL, 0, NULL)" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
112 . auto/feature |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
263
diff
changeset
|
113 fi |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
114 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
115 if [ $ngx_found = yes ]; then |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
116 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
117 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
118 CORE_INCS="$CORE_INCS $ngx_feature_path" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
119 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
120 PCRE=YES |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
121 ngx_found=no |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
122 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
123 else |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
124 # Linux package |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
125 |
876 | 126 if [ $PCRE = NO ]; then |
127 | |
128 ngx_feature="PCRE library in /usr/include/pcre/" | |
129 ngx_feature_name="NGX_PCRE" | |
130 ngx_feature_run=no | |
131 ngx_feature_incs="#include <pcre.h>" | |
132 ngx_feature_path="/usr/include/pcre" | |
133 ngx_feature_libs="-lpcre" | |
134 ngx_feature_test="pcre *re; | |
135 re = pcre_compile(NULL, 0, NULL, 0, NULL)" | |
136 . auto/feature | |
137 fi | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
138 fi |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
139 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
140 if [ $ngx_found = yes ]; then |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
141 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
142 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
143 CORE_INCS="$CORE_INCS $ngx_feature_path" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
144 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
145 PCRE=YES |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
146 ngx_found=no |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
147 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
148 else |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
149 # NetBSD port |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
150 |
876 | 151 if [ $PCRE = NO ]; then |
152 | |
153 ngx_feature="PCRE library in /usr/pkg/" | |
154 ngx_feature_name="NGX_PCRE" | |
155 ngx_feature_run=no | |
156 ngx_feature_incs="#include <pcre.h>" | |
157 ngx_feature_path="/usr/pkg/include" | |
158 ngx_feature_libs="-L /usr/pkg/lib -lpcre" | |
159 ngx_feature_test="pcre *re; | |
160 re = pcre_compile(NULL, 0, NULL, 0, NULL)" | |
161 . auto/feature | |
162 fi | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
163 fi |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
164 |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
165 if [ $ngx_found = yes ]; then |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
166 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
167 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
168 CORE_INCS="$CORE_INCS $ngx_feature_path" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
169 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
170 PCRE=YES |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
171 ngx_found=no |
1085 | 172 |
173 else | |
174 # MacPorts | |
175 | |
176 if [ $PCRE = NO ]; then | |
177 | |
178 ngx_feature="PCRE library in /opt/local/" | |
179 ngx_feature_name="NGX_PCRE" | |
180 ngx_feature_run=no | |
181 ngx_feature_incs="#include <pcre.h>" | |
182 ngx_feature_path="/opt/local/include" | |
183 ngx_feature_libs="-L/opt/local/lib -lpcre" | |
184 ngx_feature_test="pcre *re; | |
185 re = pcre_compile(NULL, 0, NULL, 0, NULL)" | |
186 . auto/feature | |
187 fi | |
188 fi | |
189 | |
190 if [ $ngx_found = yes ]; then | |
191 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" | |
192 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" | |
193 CORE_INCS="$CORE_INCS $ngx_feature_path" | |
194 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" | |
195 PCRE=YES | |
196 ngx_found=no | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
197 fi |
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
577
diff
changeset
|
198 |
255
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
199 fi |
e6938ca7331a
nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
200 fi |