Commit graph

416 commits

Author SHA1 Message Date
Maxim Dounin
e88e3cafaf Merge of r4460: ngx_ncpu detection for most *nix platforms.
This inaccurate detection by using sysconf(_SC_NPROCESSORS_ONLN) can improve
usage of the mutex lock optimization on multicore systems.
2012-03-05 12:10:09 +00:00
Maxim Dounin
0323c6f524 Merge of r4406, r4413: copyrights updated. 2012-02-05 20:02:59 +00:00
Maxim Dounin
2692849e93 Merge of r4396:
Some questionable optomizations flags for icc were removed
in order to simplify support of its future versions.
2012-02-05 19:05:06 +00:00
Maxim Dounin
d64f9f083f Merge of r4377: configure on Solaris fixed. 2012-02-05 12:28:35 +00:00
Maxim Dounin
def9ecde1a Merge of r4231, r4300, r4303, r4304:
Configure/build changes and fixes:

*) Revamped "configure --help" text.

*) FreeBSD 10-current has recently gotten POSIX_FADV_* macros.
   A fix for the broken build applied.

*) AIX 7 defines sys_nerr in errno.h, therefore <errno.h> included
   in the sys_nerr test.

   When sys_nerr and _sys_nerr are missed on a particular platform
   and our euristic for a maximum errno detection applied always
   print the maximum errno number we reached instead of printing void.

   This makes possible to build nginx on AIX 7.1.

*) Made it possible to build/install from the SVN checkout.
2011-12-14 13:34:16 +00:00
Maxim Dounin
f5c8a31e98 Merge of r4001, r4002, r4008:
Manpage changes:

*) Support link.

*) Commented out reference to non-existing nginx.conf(5).

*) Rebuild manpage only if needed.
2011-12-13 18:07:52 +00:00
Igor Sysoev
29f1ce37cb Merging r4155, r4219, r4220, r4230:
Windows related fixes:

*) Fixed segmentation fault with empty config on Windows.
   See here for report:
   http://mailman.nginx.org/pipermail/nginx-ru/2011-September/043288.html

*) Recent SDKs allow to build IPV6 only for Windows XP or above.

*) Fixing conflict with SDK off_t definition.

*) Fix of building by Microsoft Visual C++ 10 compiler.
2011-11-01 13:56:26 +00:00
Igor Sysoev
1312192925 Merging r4017:
Move SO_ACCEPTFILTER and TCP_DEFER_ACCEPT checks into configure.

NetBSD 5.0+ has SO_ACCEPTFILTER support merged from FreeBSD, and having
accept filter check in FreeBSD-specific ngx_freebsd_config.h prevents it
from being used on NetBSD.  Therefore move the check into configure (and
do the same for Linux-specific TCP_DEFER_ACCEPT, just to be in line).
2011-11-01 11:25:15 +00:00
Igor Sysoev
7af167615d Merging r4013, r4200:
error_log related fixes:

*) Complain on invalid log levels.

   Previously only first log level was required to be correct, while
   error_log directive in fact accepts list of levels (e.g. one may
   specify "error_log ... debug_core debug_http;").  This resulted
   in (avoidable) wierd behaviour on missing semicolon after error_log
   directive, e.g.

       error_log /path/to/log info
       index index.php;

   silently skipped index directive and it's arguments (trying to
   interpret them as log levels without checking to be correct).

*) Fixed configuration summary and manpage contents for the special
   --error-log-path=stderr case.
2011-11-01 11:23:26 +00:00
Igor Sysoev
1ab2343cc4 Merging r4086, r4087, r4088, r4090, r4094, r4095, r4096, r4097, r4099, r4100,
r4106, r4107, r4108, r4113, r4156, r4157:

*) ngx_http_mp4_module.
*) "video/mp4" mime type added.
2011-09-30 15:13:47 +00:00
Igor Sysoev
c68a6190fc Merge of r4004, r4005:
Solaris related fixes:

*) Detect POSIX semaphores in librt on Solaris (ticket #3).
   Patch by Denis Ivanov.
*) Lower optimization level for Sun Studio before 12.1.
   At least Sun Studio 12 has problems with bit-fields exposed by nginx code
   (caught by test suite).  They seems to be fixed in Sun Studio 12.1.  As a
   workaround use "-fast -xalias_level=any" for older versions, it resolves
   the problem.
2011-08-29 12:50:35 +00:00
Igor Sysoev
b7bac8c9f9 Merge of r4003:
Configure: catch up with new Linux version numbering (ticket #5).

Catch up with new Linux version numbering scheme as announced at [1] and
suppress unrecognized versions to actually use default 0.

[1] https://lkml.org/lkml/2011/5/29/204
2011-08-29 12:47:32 +00:00
Igor Sysoev
3a5713a9d3 concatenate auto/os/features and auto/unix 2011-05-31 08:25:10 +00:00
Igor Sysoev
3630c03e27 delete unused auto/threads 2011-05-31 08:20:16 +00:00
Igor Sysoev
177d2c6887 Support POSIX semaphores on Linux.
This configure test must run before auto/make, because it adds library.
auto/unix was placed after auto/make just for historical reasons.

Patch by Denis F. Latypoff
2011-05-31 08:17:27 +00:00
Igor Sysoev
2cd05c70d8 "$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic module
patch by Maxim Dounin
2011-05-16 14:54:50 +00:00
Igor Sysoev
e1f1a48fc9 log "Abort trap" or similar messages 2011-05-11 11:50:19 +00:00
Igor Sysoev
188aab8d3c use POSIX semaphores in shmtx instead of sched_yield()
number of spinlock spins are increased twice
2011-05-10 11:39:13 +00:00
Igor Sysoev
f5232e7ea0 fix r3902 2011-05-04 12:21:25 +00:00
Igor Sysoev
e7cb09ba9b fix r3822
Solaris strerror() invalid error code behaviour depends on version:
    Solaris 10 returns "Unknown error" and sets errno to EINVAL,
    Solaris 9 returns "Unknown error" and leaves errno intact,
    Solaris 2 returns NULL.
2011-04-23 13:15:56 +00:00
Igor Sysoev
9453076bce fix the previous commit 2011-04-17 15:28:05 +00:00
Igor Sysoev
d3292d115b an internal MD5 implemenation
patch by Maxim Dounin
2011-04-15 15:58:06 +00:00
Igor Sysoev
4210c99839 ngx_murmur_hash2() 2011-04-15 10:59:24 +00:00
Igor Sysoev
2f3314cc94 test for maximum errno value, since Solaris has no sys_nerr 2010-12-06 14:51:20 +00:00
Igor Sysoev
aae3ef5e7b style fix 2010-12-06 14:50:27 +00:00
Igor Sysoev
5c3d5f7c0a test for _sys_nerr only if sys_nerr was not found 2010-12-06 14:49:17 +00:00
Igor Sysoev
ae32ef647d fix building by Cygwin: Cygwin defines _sys_nerr instead of sys_nerr,
the issue has been introduced in r3788
2010-12-01 19:22:37 +00:00
Igor Sysoev
551ac295a6 add man page in release tarball and fix man building procedure 2010-11-29 15:23:06 +00:00
Igor Sysoev
250ea2c2fa add nginx.8 man page 2010-11-25 14:12:31 +00:00
Igor Sysoev
38e68ea0c1 use copied strerror() messages and autoconfigured sys_nerr value 2010-11-25 11:04:03 +00:00
Igor Sysoev
a0b669ace6 Linux accept4() support 2010-11-25 10:15:04 +00:00
Igor Sysoev
661df40ad7 gzip_disable degradation 2010-10-04 15:03:00 +00:00
Igor Sysoev
e3c981d93c stop ./configure on Win32 if no library sources was specified,
the bug has been introduced in r2894
2010-07-08 15:57:36 +00:00
Igor Sysoev
68ba88903d do not use prebuild OpenSSL Win32 libraries 2010-07-08 15:51:47 +00:00
Igor Sysoev
cec9b84e05 listen setfib=X 2010-07-05 13:49:16 +00:00
Igor Sysoev
df89ec501a try to use C99 variadic macros first:
AIX 5.3's XL C has problems with GCC style variadic macros
2010-07-05 13:02:25 +00:00
Igor Sysoev
8c0c0c4231 ngx_http_scgi_module 2010-06-18 15:51:14 +00:00
Igor Sysoev
ccbf3076c9 install uwsgi_params 2010-06-08 15:25:48 +00:00
Igor Sysoev
7359de27c7 print default module temporary directory path in summary
only if the module is enabled
2010-06-01 20:32:32 +00:00
Igor Sysoev
a53fb650d4 ./configure --http-uwsgi-temp-path=PATH 2010-06-01 17:44:51 +00:00
Igor Sysoev
171cb44cd0 import original ngx_http_uwsgi_module version 2010-06-01 15:53:11 +00:00
Igor Sysoev
294b17b1c4 ngx_http_split_clients_module 2010-05-14 09:02:10 +00:00
Igor Sysoev
9b4376cb32 remove unused ./configure define's 2010-05-13 13:58:18 +00:00
Igor Sysoev
85bf60cd00 fix building OpenSSL-1.0.0 on 64-bit Linux:
make installs the libraries in lib64 directory
2010-04-02 14:19:45 +00:00
Igor Sysoev
e5436ffa92 MSVC8 compatibility with OpenSSL 1.0.0 2010-04-01 15:18:29 +00:00
Igor Sysoev
d307d7265a change ngx_http_ssi_filter and ngx_http_charset_filter order 2010-04-01 10:19:02 +00:00
Igor Sysoev
29b222315b fix typo 2010-03-30 15:04:41 +00:00
Igor Sysoev
4153ebe965 zlib 1.2.4 compatibility 2010-03-25 10:07:38 +00:00
Igor Sysoev
8dd13e234f use sys_errlist[] in signal handler instead
of non Async-Signal-Safe strerror_r()
2010-03-12 11:15:26 +00:00
Igor Sysoev
90fbee3778 do not add NGX_GCC_OPT twice: it is added later with -W 2009-12-21 17:51:30 +00:00