conf 1.2 KB

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