Return to conf CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / nginx / auto / os |
1.1 ! misho 1: ! 2: # Copyright (C) Igor Sysoev ! 3: # Copyright (C) Nginx, Inc. ! 4: ! 5: ! 6: echo "checking for $NGX_SYSTEM specific features" ! 7: ! 8: case "$NGX_PLATFORM" in ! 9: ! 10: FreeBSD:*) ! 11: . auto/os/freebsd ! 12: ;; ! 13: ! 14: Linux:*) ! 15: . auto/os/linux ! 16: ;; ! 17: ! 18: SunOS:*) ! 19: . auto/os/solaris ! 20: ;; ! 21: ! 22: Darwin:*) ! 23: . auto/os/darwin ! 24: ;; ! 25: ! 26: win32) ! 27: . auto/os/win32 ! 28: ;; ! 29: ! 30: DragonFly:*) ! 31: have=NGX_FREEBSD . auto/have_headers ! 32: CORE_INCS="$UNIX_INCS" ! 33: CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS" ! 34: CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS" ! 35: ! 36: echo " + sendfile() found" ! 37: have=NGX_HAVE_SENDFILE . auto/have ! 38: CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS" ! 39: ! 40: ngx_spacer=' ! 41: ' ! 42: ;; ! 43: ! 44: HP-UX:*) ! 45: # HP/UX ! 46: have=NGX_HPUX . auto/have_headers ! 47: CORE_INCS="$UNIX_INCS" ! 48: CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" ! 49: CORE_SRCS="$UNIX_SRCS" ! 50: CC_AUX_FLAGS="$CC_AUX_FLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" ! 51: CC_AUX_FLAGS="$CC_AUX_FLAGS -D_HPUX_ALT_XOPEN_SOCKET_API" ! 52: ;; ! 53: ! 54: OSF1:*) ! 55: # Tru64 UNIX ! 56: have=NGX_TRU64 . auto/have_headers ! 57: have=NGX_HAVE_STRERROR_R . auto/nohave ! 58: CORE_INCS="$UNIX_INCS" ! 59: CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" ! 60: CORE_SRCS="$UNIX_SRCS" ! 61: ;; ! 62: ! 63: *) ! 64: CORE_INCS="$UNIX_INCS" ! 65: CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" ! 66: CORE_SRCS="$UNIX_SRCS" ! 67: ;; ! 68: ! 69: esac ! 70: ! 71: ! 72: case "$NGX_MACHINE" in ! 73: ! 74: i386 | i686 | i86pc) ! 75: have=NGX_HAVE_NONALIGNED . auto/have ! 76: NGX_MACH_CACHE_LINE=32 ! 77: ;; ! 78: ! 79: amd64 | x86_64) ! 80: have=NGX_HAVE_NONALIGNED . auto/have ! 81: NGX_MACH_CACHE_LINE=64 ! 82: ;; ! 83: ! 84: sun4u | sun4v | sparc | sparc64) ! 85: have=NGX_ALIGNMENT value=16 . auto/define ! 86: # TODO ! 87: NGX_MACH_CACHE_LINE=64 ! 88: ;; ! 89: ! 90: ia64 ) ! 91: have=NGX_ALIGNMENT value=16 . auto/define ! 92: # TODO ! 93: NGX_MACH_CACHE_LINE=64 ! 94: ;; ! 95: ! 96: *) ! 97: have=NGX_ALIGNMENT value=16 . auto/define ! 98: NGX_MACH_CACHE_LINE=32 ! 99: ;; ! 100: ! 101: esac ! 102: ! 103: if test -z "$NGX_CPU_CACHE_LINE"; then ! 104: NGX_CPU_CACHE_LINE=$NGX_MACH_CACHE_LINE ! 105: fi ! 106: ! 107: have=NGX_CPU_CACHE_LINE value=$NGX_CPU_CACHE_LINE . auto/define