@@ -403,7 +403,9 @@ ngx_feature_incs="#include <sys/socket.h>
403403ngx_feature_path=
404404ngx_feature_libs=
405405ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_RECVDSTADDR, NULL, 0)"
406- . auto/feature
406+ #. auto/feature
407+ have=NGX_HAVE_IP_RECVDSTADDR . auto/have
408+ have=IP_RECVDSTADDR value=7 . auto/define
407409
408410
409411# BSD way to set IPv4 datagram source address
@@ -416,7 +418,9 @@ ngx_feature_incs="#include <sys/socket.h>
416418ngx_feature_path=
417419ngx_feature_libs=
418420ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_SENDSRCADDR, NULL, 0)"
419- . auto/feature
421+ #. auto/feature
422+ have=NGX_HAVE_IP_SENDSRCADDR . auto/have
423+ have=IP_SENDSRCADDR value=7 . auto/define
420424
421425
422426# Linux way to get IPv4 datagram destination address
@@ -432,7 +436,7 @@ ngx_feature_test="struct in_pktinfo pkt;
432436 pkt.ipi_spec_dst.s_addr = INADDR_ANY;
433437 (void) pkt;
434438 setsockopt(0, IPPROTO_IP, IP_PKTINFO, NULL, 0)"
435- . auto/feature
439+ # . auto/feature
436440
437441
438442# RFC 3542 way to get IPv6 datagram destination address
@@ -459,7 +463,7 @@ ngx_feature_path=
459463ngx_feature_libs=
460464ngx_feature_test="(void) IP_PMTUDISC_DO;
461465 setsockopt(0, IPPROTO_IP, IP_MTU_DISCOVER, NULL, 0)"
462- . auto/feature
466+ # . auto/feature
463467
464468
465469ngx_feature="IPV6_MTU_DISCOVER"
@@ -471,7 +475,7 @@ ngx_feature_path=
471475ngx_feature_libs=
472476ngx_feature_test="(void) IPV6_PMTUDISC_DO;
473477 setsockopt(0, IPPROTO_IPV6, IPV6_MTU_DISCOVER, NULL, 0)"
474- . auto/feature
478+ # . auto/feature
475479
476480
477481ngx_feature="IP_DONTFRAG"
@@ -482,7 +486,9 @@ ngx_feature_incs="#include <sys/socket.h>
482486ngx_feature_path=
483487ngx_feature_libs=
484488ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_DONTFRAG, NULL, 0)"
485- . auto/feature
489+ #. auto/feature
490+ have=NGX_HAVE_IP_DONTFRAG . auto/have
491+ have=IP_DONTFRAG value=67 . auto/define
486492
487493
488494ngx_feature="IPV6_DONTFRAG"
@@ -493,7 +499,9 @@ ngx_feature_incs="#include <sys/socket.h>
493499ngx_feature_path=
494500ngx_feature_libs=
495501ngx_feature_test="setsockopt(0, IPPROTO_IP, IPV6_DONTFRAG, NULL, 0)"
496- . auto/feature
502+ #. auto/feature
503+ have=NGX_HAVE_IPV6_DONTFRAG . auto/have
504+ have=IPV6_DONTFRAG value=62 . auto/define
497505
498506
499507ngx_feature="TCP_DEFER_ACCEPT"
@@ -559,7 +567,7 @@ ngx_feature_incs="#include <sys/socket.h>"
559567ngx_feature_path=
560568ngx_feature_libs=
561569ngx_feature_test="accept4(0, NULL, NULL, SOCK_NONBLOCK)"
562- . auto/feature
570+ # . auto/feature
563571
564572if [ $NGX_FILE_AIO = YES ]; then
565573
0 commit comments