Mercurial > hg > nginx-quic
comparison auto/unix @ 4354:cdb2e95bd3d0 stable-1.0
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Dec 2011 13:34:16 +0000 |
parents | 997651ba1871 |
children | c4513d4dd024 4919fb357a5d |
comparison
equal
deleted
inserted
replaced
4353:710e35d17c28 | 4354:cdb2e95bd3d0 |
---|---|
494 | 494 |
495 | 495 |
496 ngx_feature="sys_nerr" | 496 ngx_feature="sys_nerr" |
497 ngx_feature_name="NGX_SYS_NERR" | 497 ngx_feature_name="NGX_SYS_NERR" |
498 ngx_feature_run=value | 498 ngx_feature_run=value |
499 ngx_feature_incs='#include <stdio.h>' | 499 ngx_feature_incs='#include <errno.h> |
500 #include <stdio.h>' | |
500 ngx_feature_path= | 501 ngx_feature_path= |
501 ngx_feature_libs= | 502 ngx_feature_libs= |
502 ngx_feature_test='printf("%d", sys_nerr);' | 503 ngx_feature_test='printf("%d", sys_nerr);' |
503 . auto/feature | 504 . auto/feature |
504 | 505 |
536 p = strerror(n); | 537 p = strerror(n); |
537 if (errno == EINVAL | 538 if (errno == EINVAL |
538 || p == NULL | 539 || p == NULL |
539 || strncmp(p, "Unknown error", 13) == 0) | 540 || strncmp(p, "Unknown error", 13) == 0) |
540 { | 541 { |
541 printf("%d", n); | 542 break; |
542 return 0; | |
543 } | 543 } |
544 }' | 544 } |
545 printf("%d", n);' | |
545 . auto/feature | 546 . auto/feature |
546 fi | 547 fi |
547 | 548 |
548 | 549 |
549 ngx_feature="localtime_r()" | 550 ngx_feature="localtime_r()" |