solaris 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright (C) Igor Sysoev
  2. have=NGX_SOLARIS . auto/have_headers
  3. CORE_INCS="$UNIX_INCS"
  4. CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
  5. CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
  6. CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt"
  7. NGX_RPATH=YES
  8. # Solaris's make does not support a blank line between target and rules
  9. ngx_spacer=
  10. CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -lrt"
  11. if [ $ZLIB_ASM != NO ]; then
  12. echo "$0: error: the --with-zlib-asm=CPU option is not supported"
  13. echo "on that platform"
  14. echo
  15. exit 1
  16. fi
  17. ngx_feature="sendfilev()"
  18. ngx_feature_name="NGX_HAVE_SENDFILE"
  19. ngx_feature_run=no
  20. ngx_feature_incs="#include <sys/sendfile.h>"
  21. ngx_feature_path=
  22. ngx_feature_libs="-lsendfile"
  23. ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
  24. size_t sent; ssize_t n;
  25. n = sendfilev(fd, vec, 1, &sent)"
  26. . auto/feature
  27. if [ $ngx_found = yes ]; then
  28. CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
  29. CORE_LIBS="$CORE_LIBS -lsendfile"
  30. fi
  31. ngx_feature="event ports"
  32. ngx_feature_name="NGX_HAVE_EVENTPORT"
  33. ngx_feature_run=no
  34. ngx_feature_incs="#include <port.h>"
  35. ngx_feature_path=
  36. ngx_feature_libs=
  37. ngx_feature_test="int n = port_create()"
  38. . auto/feature
  39. if [ $ngx_found = yes ]; then
  40. CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
  41. EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"
  42. fi