configure 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #!/bin/sh
  2. # Copyright (C) Igor Sysoev
  3. NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`
  4. . auto/options
  5. . auto/init
  6. . auto/sources
  7. test -d $NGX_OBJS || mkdir $NGX_OBJS
  8. echo > $NGX_AUTO_HEADERS_H
  9. echo > $NGX_AUTOCONF_ERR
  10. echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
  11. if [ $NGX_DEBUG = YES ]; then
  12. have=NGX_DEBUG . auto/have
  13. fi
  14. if test -z "$NGX_PLATFORM"; then
  15. echo "checking for OS"
  16. NGX_SYSTEM=`uname -s 2>/dev/null`
  17. NGX_RELEASE=`uname -r 2>/dev/null`
  18. NGX_MACHINE=`uname -m 2>/dev/null`
  19. echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
  20. NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
  21. else
  22. echo "building for $NGX_PLATFORM"
  23. NGX_SYSTEM=$NGX_PLATFORM
  24. fi
  25. . auto/cc/conf
  26. if [ "$NGX_PLATFORM" != win32 ]; then
  27. . auto/headers
  28. fi
  29. . auto/os/conf
  30. if [ "$NGX_PLATFORM" != win32 ]; then
  31. . auto/os/features
  32. . auto/threads
  33. fi
  34. . auto/modules
  35. . auto/lib/conf
  36. . auto/make
  37. . auto/lib/make
  38. . auto/install
  39. if [ "$NGX_PLATFORM" != win32 ]; then
  40. . auto/unix
  41. fi
  42. # STUB
  43. . auto/stubs
  44. have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
  45. have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
  46. have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
  47. have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
  48. have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
  49. if test -n "$NGX_ERROR_LOG_PATH"; then
  50. have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
  51. fi
  52. have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
  53. have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
  54. . auto/define
  55. have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
  56. . auto/define
  57. have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
  58. . auto/define
  59. have=NGX_USER value="\"$NGX_USER\"" . auto/define
  60. have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
  61. . auto/summary