Mercurial > hg > nginx
comparison auto/lib/pcre/conf @ 282:30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 09 Mar 2004 19:47:07 +0000 |
parents | 43c26e85205a |
children | fc8dc489247e |
comparison
equal
deleted
inserted
replaced
281:014292b55158 | 282:30310107dbc9 |
---|---|
2 if [ $PCRE != NONE ]; then | 2 if [ $PCRE != NONE ]; then |
3 CORE_INCS="$CORE_INCS -I $PCRE" | 3 CORE_INCS="$CORE_INCS -I $PCRE" |
4 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" | 4 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
5 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" | 5 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
6 | 6 |
7 if [ "$PLATFORM" = "win32" ]; then | 7 case $CC in |
8 have=HAVE_PCRE . auto/have | 8 |
9 have=PCRE_STATIC . auto/have | 9 cl) |
10 CORE_LIBS="$CORE_LIBS pcre.lib" | 10 have=HAVE_PCRE . auto/have |
11 CORE_LINK="$CORE_LINK -libpath:$PCRE" | 11 have=PCRE_STATIC . auto/have |
12 else | 12 CORE_DEPS="$CORE_DEPS $PCRE/pcre.lib" |
13 have=HAVE_PCRE . auto/have | 13 #CORE_DEPS="$PCRE/pcre.lib $CORE_DEPS" |
14 CORE_DEPS="$CORE_DEPS $PCRE/.libs/libpcre.a" | 14 CORE_LIBS="$CORE_LIBS pcre.lib" |
15 CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre" | 15 CORE_LINK="$CORE_LINK -libpath:$PCRE" |
16 fi | 16 ;; |
17 | |
18 wcl386) | |
19 have=HAVE_PCRE . auto/have | |
20 have=PCRE_STATIC . auto/have | |
21 CORE_DEPS="$CORE_DEPS $PCRE/pcre.lib" | |
22 CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib" | |
23 ;; | |
24 | |
25 *) | |
26 have=HAVE_PCRE . auto/have | |
27 CORE_DEPS="$CORE_DEPS $PCRE/.libs/libpcre.a" | |
28 CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre" | |
29 ;; | |
30 | |
31 esac | |
17 | 32 |
18 else | 33 else |
19 | 34 |
20 ngx_lib_inc="#include <pcre.h>" | 35 if [ $PLATFORM != win32 ]; then |
36 ngx_lib_inc="#include <pcre.h>" | |
21 | 37 |
22 ngx_lib="PCRE" | 38 ngx_lib="PCRE" |
23 ngx_lib_test="pcre *re; pcre_compile(re, 0, NULL, 0, NULL)" | 39 ngx_lib_test="pcre *re; pcre_compile(re, 0, NULL, 0, NULL)" |
24 ngx_libs=-lpcre | 40 ngx_libs=-lpcre |
25 . auto/lib/test | 41 . auto/lib/test |
26 | 42 |
27 | 43 |
28 if [ $ngx_found = yes ]; then | 44 if [ $ngx_found = yes ]; then |
29 have=HAVE_PCRE . auto/have | 45 have=HAVE_PCRE . auto/have |
30 | 46 |
31 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" | 47 CORE_DEPS="$CORE_DEPS $REGEX_DEPS" |
32 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" | 48 CORE_SRCS="$CORE_SRCS $REGEX_SRCS" |
33 CORE_LIBS="$CORE_LIBS $ngx_libs" | 49 CORE_LIBS="$CORE_LIBS $ngx_libs" |
34 | 50 |
35 PCRE=YES | 51 PCRE=YES |
36 else | 52 else |
37 PCRE=NO | 53 PCRE=NO |
54 fi | |
38 fi | 55 fi |
39 | 56 |
40 fi | 57 fi |