2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 ngx_feature="Google perftools"
11 ngx_feature_libs="-lprofiler"
12 ngx_feature_test="ProfilerStop()"
16 if [ $ngx_found = no ]; then
20 ngx_feature="Google perftools in /usr/local/"
22 if [ $NGX_RPATH = YES ]; then
23 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lprofiler"
25 ngx_feature_libs="-L/usr/local/lib -lprofiler"
32 if [ $ngx_found = no ]; then
36 ngx_feature="Google perftools in /opt/local/"
38 if [ $NGX_RPATH = YES ]; then
39 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lprofiler"
41 ngx_feature_libs="-L/opt/local/lib -lprofiler"
48 if [ $ngx_found = yes ]; then
49 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
55 $0: error: the Google perftool module requires the Google perftools
56 library. You can either do not enable the module or install the library.