Mercurial > hg > nginx
annotate auto/lib/google-perftools/conf @ 3545:11c4f3a1e439
use ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Jun 2010 16:12:00 +0000 |
parents | da1ba8a5c8c9 |
children | d620f497c50f |
rev | line source |
---|---|
1949 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 ngx_feature="Google perftools" | |
6 ngx_feature_name= | |
7 ngx_feature_run=no | |
8 ngx_feature_incs= | |
9 ngx_feature_path= | |
10 ngx_feature_libs="-lprofiler" | |
11 ngx_feature_test="ProfilerStop()" | |
12 . auto/feature | |
13 | |
14 | |
15 if [ $ngx_found = no ]; then | |
16 | |
17 # FreeBSD port | |
18 | |
19 ngx_feature="Google perftools in /usr/local/" | |
20 | |
21 if [ $NGX_RPATH = YES ]; then | |
22 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lprofiler" | |
23 else | |
24 ngx_feature_libs="-L/usr/local/lib -lprofiler" | |
25 fi | |
26 | |
27 . auto/feature | |
28 fi | |
29 | |
30 | |
31 if [ $ngx_found = yes ]; then | |
32 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" | |
2893
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
33 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
34 else |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
35 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
36 cat << END |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
37 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
38 $0: error: the Google perftool module requires the Google perftools |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
39 library. You can either do not enable the module or install the library. |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
40 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
41 END |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
42 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
43 exit 1 |
1949 | 44 fi |