2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 have=NGX_SOLARIS . auto/have_headers
9 CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
10 CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
11 CORE_LIBS="$CORE_LIBS -lsocket -lnsl"
15 # Solaris's make does not support a blank line between target and rules
18 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl"
21 if [ $ZLIB_ASM != NO ]; then
22 echo "$0: error: the --with-zlib-asm=CPU option is not supported"
23 echo "on that platform"
30 ngx_feature="sendfilev()"
31 ngx_feature_name="NGX_HAVE_SENDFILE"
33 ngx_feature_incs="#include <sys/sendfile.h>"
35 ngx_feature_libs="-lsendfile"
36 ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
37 size_t sent; ssize_t n;
38 n = sendfilev(fd, vec, 1, &sent);
39 if (n == -1) return 1"
43 if [ $ngx_found = yes ]; then
44 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
45 CORE_LIBS="$CORE_LIBS -lsendfile"
49 ngx_feature="event ports"
50 ngx_feature_name="NGX_HAVE_EVENTPORT"
52 ngx_feature_incs="#include <port.h>"
55 ngx_feature_test="int n = port_create()"
58 if [ $ngx_found = yes ]; then
59 CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
60 EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"