conf 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright (C) Igor Sysoev
  2. ngx_feature="Google perftools"
  3. ngx_feature_name=
  4. ngx_feature_run=no
  5. ngx_feature_incs=
  6. ngx_feature_path=
  7. ngx_feature_libs="-lprofiler"
  8. ngx_feature_test="ProfilerStop()"
  9. . auto/feature
  10. if [ $ngx_found = no ]; then
  11. # FreeBSD port
  12. ngx_feature="Google perftools in /usr/local/"
  13. if [ $NGX_RPATH = YES ]; then
  14. ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lprofiler"
  15. else
  16. ngx_feature_libs="-L/usr/local/lib -lprofiler"
  17. fi
  18. . auto/feature
  19. fi
  20. if [ $ngx_found = yes ]; then
  21. CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
  22. else
  23. cat << END
  24. $0: error: the Google perftool module requires the Google perftools
  25. library. You can either do not enable the module or install the library.
  26. END
  27. exit 1
  28. fi