solaris 1.4 KB

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