conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
  4. . auto/lib/pcre/conf
  5. else
  6. if [ $USE_PCRE = DISABLED -a $HTTP_REWRITE = YES ]; then
  7. cat << END
  8. $0: error: the HTTP rewrite module requires the PCRE library.
  9. You can either disable the module by using --without-http_rewrite_module
  10. option or you have to enable the PCRE support.
  11. END
  12. exit 1
  13. fi
  14. fi
  15. if [ $USE_OPENSSL = YES ]; then
  16. . auto/lib/openssl/conf
  17. fi
  18. if [ $USE_MD5 = YES ]; then
  19. if [ $USE_OPENSSL = YES ]; then
  20. have=NGX_HAVE_OPENSSL_MD5_H . auto/have
  21. have=NGX_OPENSSL_MD5 . auto/have
  22. have=NGX_HAVE_MD5 . auto/have
  23. MD5=YES
  24. MD5_LIB=OpenSSL
  25. else
  26. . auto/lib/md5/conf
  27. fi
  28. fi
  29. if [ $USE_SHA1 = YES ]; then
  30. if [ $USE_OPENSSL = YES ]; then
  31. have=NGX_HAVE_OPENSSL_SHA1_H . auto/have
  32. have=NGX_HAVE_SHA1 . auto/have
  33. SHA1=YES
  34. SHA1_LIB=OpenSSL
  35. else
  36. . auto/lib/sha1/conf
  37. fi
  38. fi
  39. if [ $USE_ZLIB = YES ]; then
  40. . auto/lib/zlib/conf
  41. fi
  42. if [ $USE_LIBXSLT != NO ]; then
  43. . auto/lib/libxslt/conf
  44. fi
  45. if [ $USE_LIBGD != NO ]; then
  46. . auto/lib/libgd/conf
  47. fi
  48. if [ $USE_PERL != NO ]; then
  49. . auto/lib/perl/conf
  50. fi
  51. if [ $USE_GEOIP != NO ]; then
  52. . auto/lib/geoip/conf
  53. fi
  54. if [ $NGX_GOOGLE_PERFTOOLS = YES ]; then
  55. . auto/lib/google-perftools/conf
  56. fi
  57. if [ $NGX_LIBATOMIC != NO ]; then
  58. . auto/lib/libatomic/conf
  59. fi