summary 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # Copyright (C) Igor Sysoev
  2. ### STUB
  3. if [ $USE_THREADS != NO ]; then
  4. cat << END
  5. $0: error: the threads support is broken now.
  6. END
  7. exit 1
  8. fi
  9. ###
  10. echo
  11. echo "Configuration summary"
  12. case $USE_THREADS in
  13. rfork) echo " + using rfork()ed threads" ;;
  14. pthreads) echo " + using libpthread threads library" ;;
  15. libthr) echo " + using FreeBSD libthr threads library" ;;
  16. libc_r) echo " + using FreeBSD libc_r threads library" ;;
  17. linuxthreads) echo " + using FreeBSD LinuxThreads port library" ;;
  18. NO) echo " + threads are not used" ;;
  19. *) echo " + using lib$USE_THREADS threads library" ;;
  20. esac
  21. if [ $USE_PCRE = DISABLED ]; then
  22. echo " + PCRE library is disabled"
  23. else
  24. case $PCRE in
  25. YES) echo " + using system PCRE library" ;;
  26. NONE) echo " + PCRE library is not used" ;;
  27. NO) echo " + PCRE library is not found" ;;
  28. *) echo " + using PCRE library: $PCRE" ;;
  29. esac
  30. fi
  31. case $OPENSSL in
  32. YES) echo " + using system OpenSSL library" ;;
  33. NONE) echo " + OpenSSL library is not used" ;;
  34. NO) echo " + OpenSSL library is not found" ;;
  35. *) echo " + using OpenSSL library: $OPENSSL" ;;
  36. esac
  37. case $MD5 in
  38. YES)
  39. case $OPENSSL in
  40. NONE|NO) echo " + md5: using system $MD5_LIB library" ;;
  41. *) echo " + md5: using OpenSSL library" ;;
  42. esac
  43. ;;
  44. NONE) echo " + md5 library is not used" ;;
  45. NO) echo " + md5 library is not found" ;;
  46. *) echo " + using md5 library: $MD5" ;;
  47. esac
  48. case $SHA1 in
  49. YES)
  50. case $OPENSSL in
  51. NONE|NO) echo " + sha1: using system $SHA1_LIB library" ;;
  52. *) echo " + sha1: using OpenSSL library" ;;
  53. esac
  54. ;;
  55. NONE) echo " + sha1 library is not used" ;;
  56. NO) echo " + sha1 library is not found" ;;
  57. *) echo " + using sha1 library: $SHA1" ;;
  58. esac
  59. case $ZLIB in
  60. YES) echo " + using system zlib library" ;;
  61. NONE) echo " + zlib library is not used" ;;
  62. NO) echo " + zlib library is not found" ;;
  63. *) echo " + using zlib library: $ZLIB" ;;
  64. esac
  65. echo
  66. if [ $HTTP_REWRITE = YES ]; then
  67. if [ $USE_PCRE = DISABLED ]; then
  68. cat << END
  69. $0: error: the HTTP rewrite module requires the PCRE library.
  70. You can either disable the module by using --without-http_rewrite_module
  71. option or you have to enable the PCRE support.
  72. END
  73. exit 1
  74. fi
  75. if [ $PCRE = NONE -o $PCRE = NO ]; then
  76. cat << END
  77. $0: error: the HTTP rewrite module requires the PCRE library.
  78. You can either disable the module by using --without-http_rewrite_module
  79. option, or install the PCRE library into the system, or build the PCRE library
  80. statically from the source with nginx by using --with-pcre=<path> option.
  81. END
  82. exit 1
  83. fi
  84. fi
  85. if [ $HTTP_GZIP = YES ]; then
  86. if [ $ZLIB = NONE -o $ZLIB = NO ]; then
  87. cat << END
  88. $0: error: the HTTP gzip module requires the zlib library.
  89. You can either disable the module by using --without-http_gzip_module
  90. option, or install the zlib library into the system, or build the zlib library
  91. statically from the source with nginx by using --with-zlib=<path> option.
  92. END
  93. exit 1
  94. fi
  95. fi
  96. if [ $HTTP_SSL = YES ]; then
  97. if [ $OPENSSL = NONE -o $OPENSSL = NO ]; then
  98. cat << END
  99. $0: error: the HTTP SSL module requires the OpenSSL library.
  100. You can either do not enable the module, or install the OpenSSL library
  101. into the system, or build the OpenSSL library statically from the source
  102. with nginx by using --with-openssl=<path> option.
  103. END
  104. exit 1
  105. fi
  106. fi
  107. cat << END
  108. nginx path prefix: "$NGX_PREFIX"
  109. nginx binary file: "$NGX_SBIN_PATH"
  110. nginx configuration file: "$NGX_CONF_PATH"
  111. nginx pid file: "$NGX_PID_PATH"
  112. END
  113. if test -n "$NGX_ERROR_LOG_PATH"; then
  114. echo " nginx error log file: \"$NGX_ERROR_LOG_PATH\""
  115. else
  116. echo " nginx logs errors to stderr"
  117. fi
  118. cat << END
  119. nginx http access log file: "$NGX_HTTP_LOG_PATH"
  120. nginx http client request body temporary files: "$NGX_HTTP_CLIENT_TEMP_PATH"
  121. nginx http proxy temporary files: "$NGX_HTTP_PROXY_TEMP_PATH"
  122. nginx http fastcgi temporary files: "$NGX_HTTP_FASTCGI_TEMP_PATH"
  123. END