blob: 67df9f8ac0e84df12733b80ab64f0ec3e76fede7 [file] [log] [blame]
Igor Sysoev85dd8fc2008-03-18 10:36:27 +00001
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
15if [ $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
28fi
29
30
31if [ $ngx_found = yes ]; then
32 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
Igor Sysoevda85fe62009-05-26 14:28:49 +000033
34else
35
36cat << END
37
38$0: error: the Google perftool module requires the Google perftools
39library. You can either do not enable the module or install the library.
40
41END
42
43 exit 1
Igor Sysoev85dd8fc2008-03-18 10:36:27 +000044fi