summaryrefslogtreecommitdiffhomepage
path: root/auto (follow)
AgeCommit message (Collapse)AuthorFilesLines
2014-04-07Win32: fixed link flags with MSVC, broken by bfe536716dbf.Maxim Dounin1-1/+1
Notably, "-debug" was omitted, resulting in an executable without debug symbols.
2014-03-17Added server-side support for PROXY protocol v1 (ticket #355).Roman Arutyunyan1-2/+4
Client address specified in the PROXY protocol header is now saved in the $proxy_protocol_addr variable and can be used in the realip module. This is currently not implemented for mail.
2014-02-13Win32: MSVC 2013 compatibility.Maxim Dounin1-0/+1
Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
2014-01-28Configure: enabled -Werror for clang.Ruslan Ermilov1-1/+1
Modern clang versions seem to no longer produce warnings for system headers on Linux (at least clang 3.3 works), hence the change. For older versions --with-cc-opt="-Wno-error" can be used as a workaround.
2013-12-06Configure: enable -Wconditional-uninitialized with clang.Ruslan Ermilov1-0/+1
2013-12-03Added support for TCP_FASTOPEN supported in Linux >= 3.7.1.Mathew Rodley1-0/+12
--- auto/unix | 12 ++++++++++++ src/core/ngx_connection.c | 32 ++++++++++++++++++++++++++++++++ src/core/ngx_connection.h | 4 ++++ src/http/ngx_http.c | 4 ++++ src/http/ngx_http_core_module.c | 21 +++++++++++++++++++++ src/http/ngx_http_core_module.h | 3 +++ 6 files changed, 76 insertions(+)
2013-11-11Configure: call "make distclean" for libatomic.Piotr Sikora1-1/+3
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2013-11-04Configure: call "make clean" for OpenSSL only if Makefile exists.Piotr Sikora1-1/+1
This change allows to build nginx against git checkout of OpenSSL. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2013-09-30Mail: mail dependencies are now honored while building addons.Maxim Dounin1-0/+2
2013-07-12Events: support for EPOLLRDHUP (ticket #320).Valentin Bartenev2-0/+17
Since Linux 2.6.17, epoll is able to report about peer half-closed connection using special EPOLLRDHUP flag on a read event.
2013-09-04Configure: TCP_KEEPIDLE test name simplified.Maxim Dounin1-1/+1
2013-09-04Configure: fixed building with Sun C if CFLAGS set (ticket #65).Maxim Dounin1-0/+23
2013-09-04Win32: MinGW GCC compatibility.Maxim Dounin5-12/+52
Several warnings silenced, notably (ngx_socket_t) -1 is now checked on socket operations instead of -1, as ngx_socket_t is unsigned on win32 and gcc complains on comparison. With this patch, it's now possible to compile nginx using mingw gcc, with options we normally compile on win32.
2013-09-04Win32: Borland C compatibility fixes.Maxim Dounin1-2/+2
Several false positive warnings silenced, notably W8012 "Comparing signed and unsigned" (due to u_short values promoted to int), and W8072 "Suspicious pointer arithmetic" (due to large type values added to pointers). With this patch, it's now again possible to compile nginx using bcc32, with options we normally compile on win32 minus ipv6 and ssl.
2013-09-04Win32: Open Watcom C compatibility fixes.Maxim Dounin2-5/+5
Precompiled headers are disabled as they lead to internal compiler errors with long configure lines. Couple of false positive warnings silenced. Various win32 typedefs are adjusted to work with Open Watcom C 1.9 headers. With this patch, it's now again possible to compile nginx using owc386, with options we normally compile on win32 minus ipv6 and ssl.
2013-09-02Disable symlinks: use O_PATH to open path components.Valentin Bartenev1-0/+16
It was introduced in Linux 2.6.39, glibc 2.14 and allows to obtain file descriptors without actually opening files. Thus made it possible to traverse path with openat() syscalls without the need to have read permissions for path components. It is effectively emulates O_SEARCH which is missing on Linux. O_PATH is used in combination with O_RDONLY. The last one is ignored if O_PATH is used, but it allows nginx to not fail when it was built on modern system (i.e. glibc 2.14+) and run with a kernel older than 2.6.39. Then O_PATH is unknown to the kernel and ignored, while O_RDONLY is used. Sadly, fstat() is not working with O_PATH descriptors till Linux 3.6. As a workaround we fallback to fstatat() with the AT_EMPTY_PATH flag that was introduced at the same time as O_PATH.
2013-08-23Updated PCRE used for win32 builds.Maxim Dounin3-3/+6
As of PCRE 8.33, config.h.generic no longer contains boolean macros. Two of them (SUPPORT_PCRE8 and HAVE_MEMMOVE) were added to appropriate makefiles. This allows PCRE 8.33 to compile and don't change anything for previous versions.
2013-08-23Configure: pcre.lib dependencies fix.Maxim Dounin1-1/+2
Previously, an attempt to build pcre.lib on win32 before anything else failed due to no pcre.h.
2013-08-21Auth request module import.Maxim Dounin3-0/+12
2013-08-05Core: guard use of AI_ADDRCONFIG.Ruslan Ermilov1-6/+2
Some systems (notably NetBSD and OpenBSD) lack AI_ADDRCONFIG support. Reported by Piotr Sikora.
2013-08-05Core: only resolve address families configured on the local system.Ruslan Ermilov1-2/+6
This is done by passing AI_ADDRCONFIG to getaddrinfo(). On Linux, setting net.ipv6.conf.all.disable_ipv6 to 1 will now be respected. On FreeBSD, AI_ADDRCONFIG filtering is currently implemented by attempting to create a datagram socket for the corresponding family, which succeeds even if the system doesn't in fact have any addresses of that family configured. That is, if the system with IPv6 support in the kernel doesn't have IPv6 addresses configured, AI_ADDRCONFIG will filter out IPv6 only inside a jail without IPv6 addresses or with IPv6 disabled.
2013-07-31Configure: fixed autotest cleanup commands.Sergey Kandaurov8-9/+9
Previously, if configured with --with-cc="clang -g", the autotest.dSYM directories were left unremoved.
2013-07-11Configure: perl Makefile rebuild after configure.Maxim Dounin1-0/+1
The $NGX_AUTO_CONFIG_H added to perl module Makefile dependencies to make sure it's always rebuild after a configure. It is needed as we expand various variables used for Makefile generation during configure (in particular, nginx version).
2013-05-23Configure: fixed test of OS X atomic(3).Ruslan Ermilov1-1/+1
2013-04-29Configure: fixed detection of newer Apple clang compilers.Ruslan Ermilov2-3/+3
2013-04-19Configure: fixed perl Makefile generation (ticket #334).Maxim Dounin1-1/+1
Dependancy tracking introduced in r5169 were not handled absolute path names properly. Absolute names might appear in CORE_DEPS if --with-openssl or --with-pcre configure arguments are used to build OpenSSL/PCRE libraries. Additionally, revert part of r5169 to set NGX_INCS from Makefile variables. Makefile variables have $ngx_include_opt in them, which might result in wrong include paths being used. As a side effect, this also restores build with --with-http_perl_module and --without-http at the same time.
2013-04-18Configure: uniformly refer to libs when searching for md5 and sha1.Ruslan Ermilov2-4/+4
2013-04-10Configure: fixed nginx.so rebuild (broken by r5145).Maxim Dounin1-1/+2
To avoid further breaks it's now done properly, all the dependencies are now passed to Makefile.PL. While here, fixed include list passed to Makefile.PL to use Makefile variables rather than a list expanded during configure.
2013-03-28Simplified nginx version maintenance.Ruslan Ermilov1-1/+7
It's no longer necessary to update src/http/modules/perl/nginx.pm when version is bumped, as it's now derived from src/core/nginx.h.
2013-03-28Configure: fixed perl module make rules.Ruslan Ermilov2-2/+4
Filename extension used for dynamically loaded perl modules isn't necessarily ".so" (e.g., it's ".bundle" on Mac OS X). This fixes "make" after "make" unnecessarily rebuilding perl module.
2013-03-28Configure: improved make dependencies for perl module.Ruslan Ermilov1-5/+3
Added missing dependencies for perl module's Makefile. Simplified dependencies for perl module nginx.so: it depends on Makefile that in turn depends on other perl bits.
2013-03-28Configure: improved layout of the generated makefile.Ruslan Ermilov1-12/+12
No functional changes.
2013-03-20Preliminary experimental support for SPDY draft 2.Valentin Bartenev3-2/+29
2013-02-18Configure: changed default compiler from "gcc" to "cc".Gleb Smirnoff1-1/+1
This allows to automatically pick the preferred system compiler on systems with multiple compilers. Reviewed by: mdounin, ru
2013-02-15Configure: rebuild perl module nginx.so if headers are changed.Maxim Dounin1-1/+2
Note: the "-p" argument of cp(1) dropped intentionally, to force nginx.so rebuild. It is considered too boring to properly list all dependencies in Makefile.PL.
2013-01-24GeoIP: IPv6 support.Ruslan Ermilov1-0/+12
When using IPv6 databases, IPv4 addresses are looked up as IPv4-mapped IPv6 addresses. Mostly based on a patch by Gregor Kališnik (ticket #250).
2013-01-24Configure: fixed GeoIP library detection.Ruslan Ermilov1-1/+4
2013-01-24Configure: fixed style of include directories.Ruslan Ermilov2-2/+2
2013-01-21Removed redundant variable assignment.Sergey Budnevitch1-3/+0
2012-12-23Configure: added the NGX_ZLIB define.Valentin Bartenev1-1/+4
This was introduced for conditional compilation of the code that requires the zlib library.
2012-12-17Implemented IPv6 support for URLs specified using domain names.Ruslan Ermilov1-0/+14
This includes "debug_connection", upstreams, "proxy_pass", etc. (ticket #92) To preserve compatibility, "listen" specified with a domain name selects the first IPv4 address, if available. If not available, the first IPv6 address will be used (ticket #186).
2012-12-12Configure: better check for PCRE JIT.Maxim Dounin1-0/+1
On Mac OS X system toolchain by default prefers include files from /usr/local/include, but libraries from /usr/lib. This might result in various problems, in particular the one outlined below. If the PCRE library is installed into /usr/local/, this results in pcre.h being used from /usr/local/include (with PCRE_CONFIG_JIT defined), but libpcre from /usr/lib (as shipped with the OS, without pcre_free_study() symbol). As a result build fails as we use pcre_free_study() function if we try to compile with PCRE JIT support. Obvious workaround is to the root cause is to ask compiler to prefer library from /usr/local/lib via ./configure --with-ld-opt="-L/usr/local/lib". On the other hand, in any case it would be good to check if the function we are going to use is available, hence the change. See thread here for details: http://mailman.nginx.org/pipermail/nginx-devel/2012-December/003074.html Prodded by Piotr Sikora.
2012-12-03Fixed build with embedded perl in certain setups (ticket #48).Ruslan Ermilov1-3/+1
2012-10-01OCSP stapling: ssl_stapling_file support.Maxim Dounin1-1/+2
Very basic version without any OCSP responder query code, assuming valid DER-encoded OCSP response is present in a ssl_stapling_file configured. Such file might be produced with openssl like this: openssl ocsp -issuer root.crt -cert domain.crt -respout domain.staple \ -url http://ocsp.example.com
2012-09-28Correct plural form for "path" in the whole source base.Andrey Belov1-3/+3
2012-09-27Configure: additional test for ExtUtils::Embed perl module presence.Andrey Belov1-1/+9
Now perl configure will correctly fail if ExtUtils::Embed perl module is not present in the system (found on Amazon Linux AMI, as of release 2012.03).
2012-09-26Configure: help updated to list upstream keepalive and least_conn.Maxim Dounin1-0/+4
Patch by Joshua Zhu.
2012-09-11Configure: fixed make macros to use parentheses instead of braces.Maxim Dounin3-3/+3
Parentheses are more portable, in particular they are understood by nmake while braces aren't.
2012-09-11Configure: provide inflate() when building zlib on win32.Maxim Dounin3-7/+12
It is now needed for gunzip filter.
2012-09-10Gunzip filter import.Maxim Dounin3-0/+15