Version in base suite: 1.9.16-0+deb13u1 Base version: dnsdist_1.9.16-0+deb13u1 Target version: dnsdist_2.1.3-1~deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/d/dnsdist/dnsdist_1.9.16-0+deb13u1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/d/dnsdist/dnsdist_2.1.3-1~deb13u1.dsc /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_static/favicon.ico |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_static/powerdns-logo-500px.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_static/powerdns-logo-trans.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/dialog-note.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/dialog-seealso.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/dialog-todo.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/dialog-topic.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/dialog-warning.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/footerbg.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/headerbg.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/middlebg.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/_templates/pdns_html/static/transparent.gif |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/common/favicon.ico |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/common/powerdns-logo-500px.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/AsyncQuery.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistDoH.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistDoH17.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistDoH19.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistDoH3.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistDoQ.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistFlow.v2.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistLazyHealthChecks.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistOutgoingDoH.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistTCP.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistUDP.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/DNSDistUDPDoT.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/af_xdp_refused_cpu.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/af_xdp_refused_qps.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/ebpf_drops.png |binary /srv/release.debian.org/tmp/gbcpUtZVof/dnsdist-2.1.3/docs/imgs/tls_resumptions.png |binary dnsdist-2.1.3/COPYING | 9 dnsdist-2.1.3/Makefile.am | 164 dnsdist-2.1.3/Makefile.in | 1253 dnsdist-2.1.3/NOTICE | 16 dnsdist-2.1.3/aclocal.m4 | 478 dnsdist-2.1.3/base64.hh | 5 dnsdist-2.1.3/bench-dnsdist-action-rcode.cc | 55 dnsdist-2.1.3/bench-dnsdist-dnsparser_cc.cc | 44 dnsdist-2.1.3/bench-dnsdist-opentelemetry_cc.cc | 159 dnsdist-2.1.3/bench-dnsdist-rings_cc.cc | 73 dnsdist-2.1.3/bench-iputils.cc | 41 dnsdist-2.1.3/bench-misc_hh.cc | 83 dnsdist-2.1.3/benchmarkrunner.cc | 195 dnsdist-2.1.3/bpf-filter.cc | 189 dnsdist-2.1.3/bpf-filter.ebpf.src | 4 dnsdist-2.1.3/bpf-filter.hh | 20 dnsdist-2.1.3/bpf-filter.main.ebpf | 2 dnsdist-2.1.3/bpf-filter.qname.ebpf | 6 dnsdist-2.1.3/build-aux/gen-version | 77 dnsdist-2.1.3/builder-support/gen-version | 4 dnsdist-2.1.3/burtle.hh | 6 dnsdist-2.1.3/cachecleaner.hh | 41 dnsdist-2.1.3/channel.hh | 26 dnsdist-2.1.3/compile | 11 dnsdist-2.1.3/config.guess | 112 dnsdist-2.1.3/config.h.in | 131 dnsdist-2.1.3/config.sub | 251 dnsdist-2.1.3/configure | 4144 - dnsdist-2.1.3/configure.ac | 62 dnsdist-2.1.3/connection-management.hh | 3 dnsdist-2.1.3/credentials.cc | 69 dnsdist-2.1.3/credentials.hh | 21 dnsdist-2.1.3/debian/.gitlab-ci.yml | 3 dnsdist-2.1.3/debian/changelog | 212 dnsdist-2.1.3/debian/control | 40 dnsdist-2.1.3/debian/copyright | 12 dnsdist-2.1.3/debian/dnsdist.examples | 1 dnsdist-2.1.3/debian/dnsdist.lintian-overrides | 3 dnsdist-2.1.3/debian/dnsdist.postinst | 40 dnsdist-2.1.3/debian/dnsdist.sysusers | 1 dnsdist-2.1.3/debian/dnsdist.tmpfiles | 1 dnsdist-2.1.3/debian/gbp.conf | 4 dnsdist-2.1.3/debian/missing-sources/jquery.js | 9431 +-- dnsdist-2.1.3/debian/missing-sources/moment.js | 737 dnsdist-2.1.3/debian/missing-sources/rickshaw.js | 449 dnsdist-2.1.3/debian/patches/Relax-cargo-dependencies-for-trixie.patch | 21 dnsdist-2.1.3/debian/patches/rust-debcargo-licensing.patch | 18 dnsdist-2.1.3/debian/patches/series | 2 dnsdist-2.1.3/debian/rules | 84 dnsdist-2.1.3/debian/tests/control | 9 dnsdist-2.1.3/debian/tests/smoke | 38 dnsdist-2.1.3/debian/watch | 7 dnsdist-2.1.3/delaypipe.cc | 66 dnsdist-2.1.3/delaypipe.hh | 15 dnsdist-2.1.3/depcomp | 15 dnsdist-2.1.3/devpollmplexer.cc | 7 dnsdist-2.1.3/dns.cc | 83 dnsdist-2.1.3/dns.hh | 69 dnsdist-2.1.3/dns_random.hh | 5 dnsdist-2.1.3/dnscrypt.cc | 441 dnsdist-2.1.3/dnscrypt.hh | 117 dnsdist-2.1.3/dnsdist-actions-definitions.yml | 552 dnsdist-2.1.3/dnsdist-actions-factory-generated-body.hh | 97 dnsdist-2.1.3/dnsdist-actions-factory-generated.hh | 25 dnsdist-2.1.3/dnsdist-actions-factory.cc | 2804 + dnsdist-2.1.3/dnsdist-actions-factory.hh | 138 dnsdist-2.1.3/dnsdist-actions.cc | 93 dnsdist-2.1.3/dnsdist-actions.hh | 96 dnsdist-2.1.3/dnsdist-async.cc | 156 dnsdist-2.1.3/dnsdist-async.hh | 5 dnsdist-2.1.3/dnsdist-backend.cc | 472 dnsdist-2.1.3/dnsdist-backend.hh | 31 dnsdist-2.1.3/dnsdist-cache.cc | 231 dnsdist-2.1.3/dnsdist-cache.hh | 129 dnsdist-2.1.3/dnsdist-carbon.cc | 205 dnsdist-2.1.3/dnsdist-carbon.hh | 20 dnsdist-2.1.3/dnsdist-concurrent-connections.cc | 381 dnsdist-2.1.3/dnsdist-concurrent-connections.hh | 53 dnsdist-2.1.3/dnsdist-configuration-yaml-internal.hh | 32 dnsdist-2.1.3/dnsdist-configuration-yaml.cc | 2070 dnsdist-2.1.3/dnsdist-configuration-yaml.hh | 34 dnsdist-2.1.3/dnsdist-configuration.cc | 80 dnsdist-2.1.3/dnsdist-configuration.hh | 210 dnsdist-2.1.3/dnsdist-console-completion.cc | 499 dnsdist-2.1.3/dnsdist-console-completion.hh | 45 dnsdist-2.1.3/dnsdist-console.cc | 639 dnsdist-2.1.3/dnsdist-console.hh | 46 dnsdist-2.1.3/dnsdist-crypto.cc | 13 dnsdist-2.1.3/dnsdist-crypto.hh | 3 dnsdist-2.1.3/dnsdist-discovery.cc | 140 dnsdist-2.1.3/dnsdist-discovery.hh | 8 dnsdist-2.1.3/dnsdist-dnscrypt.cc | 9 dnsdist-2.1.3/dnsdist-dnsparser.cc | 88 dnsdist-2.1.3/dnsdist-dnsparser.hh | 16 dnsdist-2.1.3/dnsdist-dnsquestion.cc | 102 dnsdist-2.1.3/dnsdist-doh-common.cc | 86 dnsdist-2.1.3/dnsdist-doh-common.hh | 35 dnsdist-2.1.3/dnsdist-downstream-connection.hh | 22 dnsdist-2.1.3/dnsdist-dynblocks.cc | 394 dnsdist-2.1.3/dnsdist-dynblocks.hh | 231 dnsdist-2.1.3/dnsdist-dynbpf.cc | 32 dnsdist-2.1.3/dnsdist-dynbpf.hh | 19 dnsdist-2.1.3/dnsdist-ecs.cc | 943 dnsdist-2.1.3/dnsdist-ecs.hh | 36 dnsdist-2.1.3/dnsdist-edns.cc | 6 dnsdist-2.1.3/dnsdist-edns.hh | 9 dnsdist-2.1.3/dnsdist-frontend.cc | 89 dnsdist-2.1.3/dnsdist-frontend.hh | 42 dnsdist-2.1.3/dnsdist-healthchecks.cc | 240 dnsdist-2.1.3/dnsdist-healthchecks.hh | 2 dnsdist-2.1.3/dnsdist-idstate.cc | 174 dnsdist-2.1.3/dnsdist-idstate.hh | 109 dnsdist-2.1.3/dnsdist-internal-queries.cc | 20 dnsdist-2.1.3/dnsdist-internal-queries.hh | 2 dnsdist-2.1.3/dnsdist-ipcrypt2.cc | 109 dnsdist-2.1.3/dnsdist-ipcrypt2.hh | 65 dnsdist-2.1.3/dnsdist-kvs.cc | 55 dnsdist-2.1.3/dnsdist-kvs.hh | 42 dnsdist-2.1.3/dnsdist-lbpolicies.cc | 434 dnsdist-2.1.3/dnsdist-lbpolicies.hh | 129 dnsdist-2.1.3/dnsdist-logging.cc | 244 dnsdist-2.1.3/dnsdist-logging.hh | 35 dnsdist-2.1.3/dnsdist-lsan.supp | 2 dnsdist-2.1.3/dnsdist-lua-actions-generated-body.hh | 73 dnsdist-2.1.3/dnsdist-lua-actions.cc | 2856 - dnsdist-2.1.3/dnsdist-lua-bindings-dnscrypt.cc | 413 dnsdist-2.1.3/dnsdist-lua-bindings-dnsparser.cc | 12 dnsdist-2.1.3/dnsdist-lua-bindings-dnsquestion.cc | 966 dnsdist-2.1.3/dnsdist-lua-bindings-kvs.cc | 18 dnsdist-2.1.3/dnsdist-lua-bindings-network.cc | 7 dnsdist-2.1.3/dnsdist-lua-bindings-packetcache.cc | 323 dnsdist-2.1.3/dnsdist-lua-bindings-protobuf.cc | 226 dnsdist-2.1.3/dnsdist-lua-bindings.cc | 1251 dnsdist-2.1.3/dnsdist-lua-configuration-items.cc | 260 dnsdist-2.1.3/dnsdist-lua-ffi-interface.h | 47 dnsdist-2.1.3/dnsdist-lua-ffi-interface.inc | 359 dnsdist-2.1.3/dnsdist-lua-ffi.cc | 996 dnsdist-2.1.3/dnsdist-lua-ffi.hh | 133 dnsdist-2.1.3/dnsdist-lua-hooks.cc | 54 dnsdist-2.1.3/dnsdist-lua-hooks.hh | 5 dnsdist-2.1.3/dnsdist-lua-inspection-ffi.cc | 4 dnsdist-2.1.3/dnsdist-lua-inspection-ffi.h | 4 dnsdist-2.1.3/dnsdist-lua-inspection.cc | 1492 dnsdist-2.1.3/dnsdist-lua-network.cc | 26 dnsdist-2.1.3/dnsdist-lua-network.hh | 2 dnsdist-2.1.3/dnsdist-lua-response-actions-generated-body.hh | 40 dnsdist-2.1.3/dnsdist-lua-rules.cc | 841 dnsdist-2.1.3/dnsdist-lua-selectors-generated-body.hh | 91 dnsdist-2.1.3/dnsdist-lua-vars.cc | 119 dnsdist-2.1.3/dnsdist-lua-web.cc | 32 dnsdist-2.1.3/dnsdist-lua.cc | 2135 dnsdist-2.1.3/dnsdist-lua.hh | 213 dnsdist-2.1.3/dnsdist-mac-address.cc | 34 dnsdist-2.1.3/dnsdist-mac-address.hh | 2 dnsdist-2.1.3/dnsdist-metrics.cc | 338 dnsdist-2.1.3/dnsdist-metrics.hh | 60 dnsdist-2.1.3/dnsdist-nghttp2-in.cc | 263 dnsdist-2.1.3/dnsdist-nghttp2-in.hh | 10 dnsdist-2.1.3/dnsdist-nghttp2.cc | 296 dnsdist-2.1.3/dnsdist-nghttp2.hh | 4 dnsdist-2.1.3/dnsdist-opentelemetry.cc | 393 dnsdist-2.1.3/dnsdist-opentelemetry.hh | 367 dnsdist-2.1.3/dnsdist-prometheus.hh | 50 dnsdist-2.1.3/dnsdist-protobuf.cc | 117 dnsdist-2.1.3/dnsdist-protobuf.hh | 38 dnsdist-2.1.3/dnsdist-protocols.cc | 20 dnsdist-2.1.3/dnsdist-protocols.hh | 2 dnsdist-2.1.3/dnsdist-proxy-protocol.cc | 21 dnsdist-2.1.3/dnsdist-proxy-protocol.hh | 10 dnsdist-2.1.3/dnsdist-query-count.cc | 28 dnsdist-2.1.3/dnsdist-query-count.hh | 46 dnsdist-2.1.3/dnsdist-random.cc | 88 dnsdist-2.1.3/dnsdist-resolver.cc | 2 dnsdist-2.1.3/dnsdist-response-actions-definitions.yml | 270 dnsdist-2.1.3/dnsdist-response-actions-factory-generated-body.hh | 53 dnsdist-2.1.3/dnsdist-response-actions-factory-generated.hh | 14 dnsdist-2.1.3/dnsdist-rings.cc | 120 dnsdist-2.1.3/dnsdist-rings.hh | 203 dnsdist-2.1.3/dnsdist-rule-chains.cc | 137 dnsdist-2.1.3/dnsdist-rule-chains.hh | 108 dnsdist-2.1.3/dnsdist-rules-factory.hh | 1555 dnsdist-2.1.3/dnsdist-rules-generator.py | 343 dnsdist-2.1.3/dnsdist-rules.cc | 197 dnsdist-2.1.3/dnsdist-rules.hh | 1390 dnsdist-2.1.3/dnsdist-rust-bridge.hh | 73 dnsdist-2.1.3/dnsdist-rust-lib/Makefile.am | 17 dnsdist-2.1.3/dnsdist-rust-lib/Makefile.in | 612 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-configuration-yaml-items-generated.cc | 262 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-configuration-yaml-items-pre-in.cc | 24 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-rust-bridge-actions-generated-body.hh | 231 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-rust-bridge-actions-generated.hh | 135 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-rust-bridge-selectors-generated-body.hh | 166 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-rust-bridge-selectors-generated.hh | 93 dnsdist-2.1.3/dnsdist-rust-lib/dnsdist-settings-generator.py | 1012 dnsdist-2.1.3/dnsdist-rust-lib/meson.build | 47 dnsdist-2.1.3/dnsdist-rust-lib/rust-middle-in.rs | 107 dnsdist-2.1.3/dnsdist-rust-lib/rust-post-in.rs | 133 dnsdist-2.1.3/dnsdist-rust-lib/rust-pre-in.rs | 78 dnsdist-2.1.3/dnsdist-rust-lib/rust/Cargo.lock | 324 dnsdist-2.1.3/dnsdist-rust-lib/rust/Cargo.toml | 23 dnsdist-2.1.3/dnsdist-rust-lib/rust/Makefile.am | 21 dnsdist-2.1.3/dnsdist-rust-lib/rust/Makefile.in | 608 dnsdist-2.1.3/dnsdist-rust-lib/rust/build.rs | 26 dnsdist-2.1.3/dnsdist-rust-lib/rust/build_dnsdist_rust_library | 44 dnsdist-2.1.3/dnsdist-rust-lib/rust/meson.build | 52 dnsdist-2.1.3/dnsdist-rust-lib/rust/src/helpers.rs | 93 dnsdist-2.1.3/dnsdist-rust-lib/rust/src/lib.rs | 4864 + dnsdist-2.1.3/dnsdist-secpoll.cc | 180 dnsdist-2.1.3/dnsdist-secpoll.hh | 7 dnsdist-2.1.3/dnsdist-selectors-definitions.yml | 433 dnsdist-2.1.3/dnsdist-selectors-factory-generated-body.hh | 125 dnsdist-2.1.3/dnsdist-selectors-factory-generated.hh | 32 dnsdist-2.1.3/dnsdist-self-answers.cc | 274 dnsdist-2.1.3/dnsdist-self-answers.hh | 33 dnsdist-2.1.3/dnsdist-server-pool.hh | 88 dnsdist-2.1.3/dnsdist-session-cache.cc | 20 dnsdist-2.1.3/dnsdist-session-cache.hh | 23 dnsdist-2.1.3/dnsdist-settings-definitions.yml | 2321 dnsdist-2.1.3/dnsdist-settings-documentation-generator.py | 277 dnsdist-2.1.3/dnsdist-snmp.cc | 510 dnsdist-2.1.3/dnsdist-snmp.hh | 6 dnsdist-2.1.3/dnsdist-svc.cc | 10 dnsdist-2.1.3/dnsdist-systemd.cc | 5 dnsdist-2.1.3/dnsdist-tcp-downstream.cc | 383 dnsdist-2.1.3/dnsdist-tcp-downstream.hh | 49 dnsdist-2.1.3/dnsdist-tcp-upstream.hh | 115 dnsdist-2.1.3/dnsdist-tcp.cc | 455 dnsdist-2.1.3/dnsdist-tcp.hh | 11 dnsdist-2.1.3/dnsdist-tsan.supp | 29 dnsdist-2.1.3/dnsdist-udp.cc | 99 dnsdist-2.1.3/dnsdist-udp.hh | 37 dnsdist-2.1.3/dnsdist-web.cc | 1485 dnsdist-2.1.3/dnsdist-web.hh | 22 dnsdist-2.1.3/dnsdist-xpf.cc | 63 dnsdist-2.1.3/dnsdist-xpf.hh | 27 dnsdist-2.1.3/dnsdist-xsk.cc | 55 dnsdist-2.1.3/dnsdist-xsk.hh | 4 dnsdist-2.1.3/dnsdist.1 | 9 dnsdist-2.1.3/dnsdist.cc | 2914 - dnsdist-2.1.3/dnsdist.conf-dist | 8 dnsdist-2.1.3/dnsdist.hh | 664 dnsdist-2.1.3/dnsdist.service.meson.in | 61 dnsdist-2.1.3/dnsdist.yml-dist | 263 dnsdist-2.1.3/dnsdistconf.lua | 113 dnsdist-2.1.3/dnslabeltext.cc | 109 dnsdist-2.1.3/dnslabeltext.rl | 5 dnsdist-2.1.3/dnsmessage.proto | 22 dnsdist-2.1.3/dnsname.cc | 346 dnsdist-2.1.3/dnsname.hh | 284 dnsdist-2.1.3/dnsparser.cc | 199 dnsdist-2.1.3/dnsparser.hh | 130 dnsdist-2.1.3/dnstap.cc | 15 dnsdist-2.1.3/dnstap.hh | 10 dnsdist-2.1.3/dnstap.proto | 23 dnsdist-2.1.3/dnswriter.cc | 26 dnsdist-2.1.3/dnswriter.hh | 3 dnsdist-2.1.3/docs/Makefile.sphinx | 27 dnsdist-2.1.3/docs/_static/dnsdist-keyblock.asc | 172 dnsdist-2.1.3/docs/_static/model.dot | 79 dnsdist-2.1.3/docs/_templates/pdns_html/layout.html | 21 dnsdist-2.1.3/docs/_templates/pdns_html/static/epub.css | 310 dnsdist-2.1.3/docs/_templates/pdns_html/static/ie6.css | 7 dnsdist-2.1.3/docs/_templates/pdns_html/static/pyramid.css_t | 346 dnsdist-2.1.3/docs/_templates/pdns_html/theme.conf | 7 dnsdist-2.1.3/docs/advanced/acl.rst | 74 dnsdist-2.1.3/docs/advanced/asynchronous-processing.rst | 52 dnsdist-2.1.3/docs/advanced/axfr.rst | 72 dnsdist-2.1.3/docs/advanced/ebpf.rst | 138 dnsdist-2.1.3/docs/advanced/index.rst | 28 dnsdist-2.1.3/docs/advanced/internal-design.rst | 86 dnsdist-2.1.3/docs/advanced/luaaction.rst | 116 dnsdist-2.1.3/docs/advanced/multiple-instance.rst | 18 dnsdist-2.1.3/docs/advanced/ocsp-stapling.rst | 74 dnsdist-2.1.3/docs/advanced/out-of-order.rst | 26 dnsdist-2.1.3/docs/advanced/passing-source-address.rst | 165 dnsdist-2.1.3/docs/advanced/qpslimits.rst | 30 dnsdist-2.1.3/docs/advanced/snmp.rst | 38 dnsdist-2.1.3/docs/advanced/structured-logging-dictionary.rst | 157 dnsdist-2.1.3/docs/advanced/teeaction.rst | 19 dnsdist-2.1.3/docs/advanced/timedipsetrule.rst | 64 dnsdist-2.1.3/docs/advanced/tls-certificates-management.rst | 79 dnsdist-2.1.3/docs/advanced/tls-sessions-management.rst | 97 dnsdist-2.1.3/docs/advanced/tuning.rst | 240 dnsdist-2.1.3/docs/advanced/xsk.rst | 143 dnsdist-2.1.3/docs/advanced/zero-scope.rst | 13 dnsdist-2.1.3/docs/changelog.rst | 8558 +++ dnsdist-2.1.3/docs/common/api/configsetting.rst | 20 dnsdist-2.1.3/docs/common/api/dataformat.rst | 144 dnsdist-2.1.3/docs/common/api/endpoint-api.rst | 38 dnsdist-2.1.3/docs/common/api/endpoint-servers-config.rst | 25 dnsdist-2.1.3/docs/common/api/endpoint-servers.rst | 12 dnsdist-2.1.3/docs/common/api/endpoint-statistics.rst | 19 dnsdist-2.1.3/docs/common/api/server.rst | 33 dnsdist-2.1.3/docs/common/api/statisticitem.rst | 10 dnsdist-2.1.3/docs/common/api/zone.rst | 35 dnsdist-2.1.3/docs/common/license.rst | 6 dnsdist-2.1.3/docs/common/secpoll.rst | 70 dnsdist-2.1.3/docs/common/security-policy.rst | 24 dnsdist-2.1.3/docs/common/tarball-pgp-keys.rst | 13 dnsdist-2.1.3/docs/conf.py | 239 dnsdist-2.1.3/docs/depfile.py | 68 dnsdist-2.1.3/docs/eol.rst | 18 dnsdist-2.1.3/docs/generate-docs.py | 122 dnsdist-2.1.3/docs/generate-man-pages.py | 104 dnsdist-2.1.3/docs/glossary.rst | 14 dnsdist-2.1.3/docs/guides/cache.rst | 76 dnsdist-2.1.3/docs/guides/carbon.rst | 58 dnsdist-2.1.3/docs/guides/console.rst | 89 dnsdist-2.1.3/docs/guides/dns-over-http3.rst | 48 dnsdist-2.1.3/docs/guides/dns-over-https.rst | 171 dnsdist-2.1.3/docs/guides/dns-over-quic.rst | 36 dnsdist-2.1.3/docs/guides/dns-over-tls.rst | 79 dnsdist-2.1.3/docs/guides/dnscrypt.rst | 42 dnsdist-2.1.3/docs/guides/downstreams.rst | 184 dnsdist-2.1.3/docs/guides/dynblocks.rst | 129 dnsdist-2.1.3/docs/guides/index.rst | 22 dnsdist-2.1.3/docs/guides/serverpools.rst | 44 dnsdist-2.1.3/docs/guides/serverselection.rst | 315 dnsdist-2.1.3/docs/guides/webserver.rst | 1052 dnsdist-2.1.3/docs/index.rst | 67 dnsdist-2.1.3/docs/index_TOC.rst | 24 dnsdist-2.1.3/docs/install.rst | 173 dnsdist-2.1.3/docs/manpages/dnsdist.1.rst | 94 dnsdist-2.1.3/docs/manpages/index.rst | 8 dnsdist-2.1.3/docs/quickstart.rst | 178 dnsdist-2.1.3/docs/reference/actions.rst | 1039 dnsdist-2.1.3/docs/reference/carbon.rst | 12 dnsdist-2.1.3/docs/reference/comboaddress.rst | 81 dnsdist-2.1.3/docs/reference/config.rst | 2895 + dnsdist-2.1.3/docs/reference/constants.rst | 172 dnsdist-2.1.3/docs/reference/custommetrics.rst | 133 dnsdist-2.1.3/docs/reference/dnscrypt.rst | 221 dnsdist-2.1.3/docs/reference/dnsname.rst | 100 dnsdist-2.1.3/docs/reference/dnsnameset.rst | 60 dnsdist-2.1.3/docs/reference/dnsparser.rst | 172 dnsdist-2.1.3/docs/reference/dnstap.rst | 83 dnsdist-2.1.3/docs/reference/dq.rst | 733 dnsdist-2.1.3/docs/reference/ebpf.rst | 158 dnsdist-2.1.3/docs/reference/index.rst | 39 dnsdist-2.1.3/docs/reference/kvs.rst | 151 dnsdist-2.1.3/docs/reference/logging.rst | 32 dnsdist-2.1.3/docs/reference/netmask.rst | 53 dnsdist-2.1.3/docs/reference/netmaskgroup.rst | 40 dnsdist-2.1.3/docs/reference/ottrace.rst | 141 dnsdist-2.1.3/docs/reference/protobuf.rst | 138 dnsdist-2.1.3/docs/reference/rules-management.rst | 704 dnsdist-2.1.3/docs/reference/selectors.rst | 481 dnsdist-2.1.3/docs/reference/snmp.rst | 16 dnsdist-2.1.3/docs/reference/svc.rst | 45 dnsdist-2.1.3/docs/reference/tuning.rst | 300 dnsdist-2.1.3/docs/reference/web.rst | 52 dnsdist-2.1.3/docs/reference/xsk.rst | 29 dnsdist-2.1.3/docs/reference/yaml-actions.rst | 677 dnsdist-2.1.3/docs/reference/yaml-response-actions.rst | 329 dnsdist-2.1.3/docs/reference/yaml-selectors.rst | 671 dnsdist-2.1.3/docs/reference/yaml-settings.rst | 1080 dnsdist-2.1.3/docs/reference/yaml-support-structures.rst | 50 dnsdist-2.1.3/docs/requirements.in | 19 dnsdist-2.1.3/docs/requirements.txt | 346 dnsdist-2.1.3/docs/rules-actions.rst | 96 dnsdist-2.1.3/docs/running.rst | 67 dnsdist-2.1.3/docs/security-advisories/index.rst | 12 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2017-01.rst | 22 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2017-02.rst | 20 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2018-08.rst | 22 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2024-03.rst | 28 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2025-02.rst | 28 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2025-03.rst | 28 dnsdist-2.1.3/docs/security-advisories/powerdns-advisory-for-dnsdist-2025-05.rst | 25 dnsdist-2.1.3/docs/statistics.rst | 394 dnsdist-2.1.3/docs/upgrade_guide.rst | 247 dnsdist-2.1.3/doh.cc | 1794 dnsdist-2.1.3/doh.hh | 57 dnsdist-2.1.3/doh3.cc | 269 dnsdist-2.1.3/doh3.hh | 40 dnsdist-2.1.3/dolog.cc | 64 dnsdist-2.1.3/dolog.hh | 74 dnsdist-2.1.3/doq-common.cc | 32 dnsdist-2.1.3/doq-common.hh | 5 dnsdist-2.1.3/doq.cc | 93 dnsdist-2.1.3/doq.hh | 20 dnsdist-2.1.3/ednscookies.cc | 119 dnsdist-2.1.3/ednscookies.hh | 32 dnsdist-2.1.3/ednsextendederror.hh | 2 dnsdist-2.1.3/ednsoptions.cc | 72 dnsdist-2.1.3/ednsoptions.hh | 15 dnsdist-2.1.3/ednssubnet.cc | 57 dnsdist-2.1.3/ednssubnet.hh | 45 dnsdist-2.1.3/epollmplexer.cc | 7 dnsdist-2.1.3/ext/arc4random/Makefile.am | 3 dnsdist-2.1.3/ext/arc4random/Makefile.in | 48 dnsdist-2.1.3/ext/arc4random/meson.build | 20 dnsdist-2.1.3/ext/ipcrypt/Makefile.am | 3 dnsdist-2.1.3/ext/ipcrypt/Makefile.in | 48 dnsdist-2.1.3/ext/ipcrypt/meson.build | 12 dnsdist-2.1.3/ext/ipcrypt2/LICENSE | 18 dnsdist-2.1.3/ext/ipcrypt2/Makefile.am | 9 dnsdist-2.1.3/ext/ipcrypt2/Makefile.in | 751 dnsdist-2.1.3/ext/ipcrypt2/README.md | 436 dnsdist-2.1.3/ext/ipcrypt2/include/ipcrypt2.h | 338 dnsdist-2.1.3/ext/ipcrypt2/ipcrypt2.c | 1504 dnsdist-2.1.3/ext/ipcrypt2/meson.build | 55 dnsdist-2.1.3/ext/ipcrypt2/softaes/untrinsics.h | 711 dnsdist-2.1.3/ext/json11/json11.cpp | 54 dnsdist-2.1.3/ext/json11/json11.hpp | 6 dnsdist-2.1.3/ext/json11/meson.build | 12 dnsdist-2.1.3/ext/lmdb-safe/LICENSE | 21 dnsdist-2.1.3/ext/lmdb-safe/Makefile.am | 5 dnsdist-2.1.3/ext/lmdb-safe/lmdb-safe.cc | 166 dnsdist-2.1.3/ext/lmdb-safe/lmdb-safe.hh | 570 dnsdist-2.1.3/ext/lmdb-safe/meson.build | 16 dnsdist-2.1.3/ext/luawrapper/include/LuaContext.hpp | 145 dnsdist-2.1.3/ext/luawrapper/meson.build | 3 dnsdist-2.1.3/ext/protozero/CHANGELOG.md | 449 dnsdist-2.1.3/ext/protozero/LICENSE.from_folly | 177 dnsdist-2.1.3/ext/protozero/LICENSE.md | 26 dnsdist-2.1.3/ext/protozero/include/protozero/basic_pbf_builder.hpp | 4 dnsdist-2.1.3/ext/protozero/include/protozero/basic_pbf_writer.hpp | 56 dnsdist-2.1.3/ext/protozero/include/protozero/buffer_string.hpp | 4 dnsdist-2.1.3/ext/protozero/include/protozero/config.hpp | 11 dnsdist-2.1.3/ext/protozero/include/protozero/data_view.hpp | 4 dnsdist-2.1.3/ext/protozero/include/protozero/pbf_message.hpp | 2 dnsdist-2.1.3/ext/protozero/include/protozero/pbf_reader.hpp | 8 dnsdist-2.1.3/ext/protozero/include/protozero/types.hpp | 2 dnsdist-2.1.3/ext/protozero/include/protozero/varint.hpp | 47 dnsdist-2.1.3/ext/protozero/include/protozero/version.hpp | 6 dnsdist-2.1.3/ext/protozero/meson.build | 3 dnsdist-2.1.3/ext/yahttp/Makefile.am | 5 dnsdist-2.1.3/ext/yahttp/Makefile.in | 37 dnsdist-2.1.3/ext/yahttp/meson.build | 3 dnsdist-2.1.3/ext/yahttp/yahttp/Makefile.am | 3 dnsdist-2.1.3/ext/yahttp/yahttp/Makefile.in | 48 dnsdist-2.1.3/ext/yahttp/yahttp/meson.build | 26 dnsdist-2.1.3/ext/yahttp/yahttp/reqresp.cpp | 11 dnsdist-2.1.3/ext/yahttp/yahttp/reqresp.hpp | 17 dnsdist-2.1.3/ext/yahttp/yahttp/router.cpp | 41 dnsdist-2.1.3/fstrm_logger.cc | 110 dnsdist-2.1.3/fstrm_logger.hh | 41 dnsdist-2.1.3/fuzz_dnsdistcache.cc | 19 dnsdist-2.1.3/generate-ffi-interface.sh | 5 dnsdist-2.1.3/html/js/jquery.min.js | 7 dnsdist-2.1.3/html/js/moment.min.js | 2 dnsdist-2.1.3/html/js/rickshaw.min.js | 6 dnsdist-2.1.3/html/local.js | 2 dnsdist-2.1.3/htmlfiles.h |25729 ---------- dnsdist-2.1.3/incfiles | 2 dnsdist-2.1.3/install-sh | 14 dnsdist-2.1.3/ipcipher.cc | 16 dnsdist-2.1.3/iputils.cc | 242 dnsdist-2.1.3/iputils.hh | 1253 dnsdist-2.1.3/kqueuemplexer.cc | 7 dnsdist-2.1.3/libssl.cc | 468 dnsdist-2.1.3/libssl.hh | 34 dnsdist-2.1.3/lock.hh | 146 dnsdist-2.1.3/logging.cc | 175 dnsdist-2.1.3/logging.hh | 94 dnsdist-2.1.3/logr.hh | 192 dnsdist-2.1.3/m4/ax_check_sign.m4 | 56 dnsdist-2.1.3/m4/ax_compare_version.m4 | 177 dnsdist-2.1.3/m4/ax_compile_check_sizeof.m4 | 115 dnsdist-2.1.3/m4/ax_cxx_compile_stdcxx.m4 | 92 dnsdist-2.1.3/m4/ax_cxx_compile_stdcxx_20.m4 | 4 dnsdist-2.1.3/m4/boost.m4 | 38 dnsdist-2.1.3/m4/dnsdist_enable_doh.m4 | 2 dnsdist-2.1.3/m4/dnsdist_enable_yaml.m4 | 14 dnsdist-2.1.3/m4/dnsdist_with_cdb.m4 | 2 dnsdist-2.1.3/m4/pdns_check_cargo.m4 | 13 dnsdist-2.1.3/m4/pdns_check_libcrypto.m4 | 2 dnsdist-2.1.3/m4/pdns_check_libh2o_evloop.m4 | 40 dnsdist-2.1.3/m4/pdns_check_time_t.m4 | 26 dnsdist-2.1.3/m4/pdns_d_fortify_source.m4 | 8 dnsdist-2.1.3/m4/pdns_enable_ipcrypt2.m4 | 53 dnsdist-2.1.3/m4/pdns_enable_lto.m4 | 8 dnsdist-2.1.3/m4/pdns_enable_sanitizers.m4 | 9 dnsdist-2.1.3/m4/pdns_with_lua.m4 | 50 dnsdist-2.1.3/m4/pdns_with_quiche.m4 | 10 dnsdist-2.1.3/meson-dist-script.sh | 66 dnsdist-2.1.3/meson.build | 878 dnsdist-2.1.3/meson/atomics/atomic_add_fetch.cc | 8 dnsdist-2.1.3/meson/atomics/meson.build | 23 dnsdist-2.1.3/meson/auto-var-init/meson.build | 13 dnsdist-2.1.3/meson/boost-test/meson.build | 5 dnsdist-2.1.3/meson/boost/meson.build | 5 dnsdist-2.1.3/meson/catch2/meson.build | 5 dnsdist-2.1.3/meson/cdb/meson.build | 20 dnsdist-2.1.3/meson/clock-gettime/meson.build | 15 dnsdist-2.1.3/meson/code-coverage/meson.build | 31 dnsdist-2.1.3/meson/compiler-setup/meson.build | 22 dnsdist-2.1.3/meson/config/meson.build | 2 dnsdist-2.1.3/meson/dlopen/meson.build | 15 dnsdist-2.1.3/meson/dnscrypt/meson.build | 8 dnsdist-2.1.3/meson/dnstap/meson.build | 16 dnsdist-2.1.3/meson/doh2/meson.build | 13 dnsdist-2.1.3/meson/doh3/meson.build | 10 dnsdist-2.1.3/meson/doq/meson.build | 10 dnsdist-2.1.3/meson/dot/meson.build | 8 dnsdist-2.1.3/meson/ebpf/meson.build | 8 dnsdist-2.1.3/meson/gnutls/meson.build | 20 dnsdist-2.1.3/meson/hardening/control-flow/meson.build | 10 dnsdist-2.1.3/meson/hardening/fortify-source/meson.build | 37 dnsdist-2.1.3/meson/hardening/meson.build | 34 dnsdist-2.1.3/meson/hardening/relro/meson.build | 16 dnsdist-2.1.3/meson/hardening/stack-clash-prot/meson.build | 10 dnsdist-2.1.3/meson/hardening/stack-prot/meson.build | 8 dnsdist-2.1.3/meson/hardening/stack-smashing-prot/meson.build | 10 dnsdist-2.1.3/meson/ipcipher/meson.build | 9 dnsdist-2.1.3/meson/libcap/meson.build | 5 dnsdist-2.1.3/meson/libcrypto/bn_new.cc | 7 dnsdist-2.1.3/meson/libcrypto/ecdsa/meson.build | 33 dnsdist-2.1.3/meson/libcrypto/eddsa/meson.build | 24 dnsdist-2.1.3/meson/libcrypto/meson.build | 118 dnsdist-2.1.3/meson/libdir/meson.build | 1 dnsdist-2.1.3/meson/libedit/meson.build | 9 dnsdist-2.1.3/meson/libsnmp/meson.build | 40 dnsdist-2.1.3/meson/libsodium/meson.build | 21 dnsdist-2.1.3/meson/libssl-engines/meson.build | 13 dnsdist-2.1.3/meson/libssl-providers/meson.build | 16 dnsdist-2.1.3/meson/libssl/meson.build | 49 dnsdist-2.1.3/meson/libsystemd/meson.build | 14 dnsdist-2.1.3/meson/lmdb/meson.build | 8 dnsdist-2.1.3/meson/lua/meson.build | 63 dnsdist-2.1.3/meson/mmap/meson.build | 7 dnsdist-2.1.3/meson/net-libs/meson.build | 44 dnsdist-2.1.3/meson/nghttp2/meson.build | 18 dnsdist-2.1.3/meson/platform/meson.build | 64 dnsdist-2.1.3/meson/pthread-headers/meson.build | 18 dnsdist-2.1.3/meson/pthread-np/meson.build | 13 dnsdist-2.1.3/meson/pthread-setname/meson.build | 57 dnsdist-2.1.3/meson/pthread-setname/pthread_set_name_np_2args.cc | 9 dnsdist-2.1.3/meson/pthread-setname/pthread_set_name_np_void_2args.cc | 10 dnsdist-2.1.3/meson/pthread-setname/pthread_setname_np_1arg.cc | 9 dnsdist-2.1.3/meson/pthread-setname/pthread_setname_np_2args.cc | 10 dnsdist-2.1.3/meson/pthread-setname/pthread_setname_np_3args.cc | 9 dnsdist-2.1.3/meson/quiche/meson.build | 35 dnsdist-2.1.3/meson/re2/meson.build | 12 dnsdist-2.1.3/meson/reproducible/meson.build | 48 dnsdist-2.1.3/meson/sanitizers/address-sanitizer-fiber-switching/meson.build | 44 dnsdist-2.1.3/meson/sanitizers/address-sanitizer-fiber-switching/sanitizer_finish_switch_fiber_1ptr.cc | 7 dnsdist-2.1.3/meson/sanitizers/address-sanitizer-fiber-switching/sanitizer_finish_switch_fiber_3ptrs.cc | 7 dnsdist-2.1.3/meson/sanitizers/meson.build | 25 dnsdist-2.1.3/meson/strerror/meson.build | 13 dnsdist-2.1.3/meson/strerror/strerror_r.c | 8 dnsdist-2.1.3/meson/summary/meson.build | 5 dnsdist-2.1.3/meson/sysconfdir/meson.build | 1 dnsdist-2.1.3/meson/systemd/meson.build | 60 dnsdist-2.1.3/meson/timet-sign/meson.build | 10 dnsdist-2.1.3/meson/timet-sign/timet_sign.cc | 8 dnsdist-2.1.3/meson/timet-size/meson.build | 9 dnsdist-2.1.3/meson/tm-gmtoff/meson.build | 8 dnsdist-2.1.3/meson/various-functions/meson.build | 21 dnsdist-2.1.3/meson/various-headers/meson.build | 5 dnsdist-2.1.3/meson/version/meson.build | 2 dnsdist-2.1.3/meson/xsk/meson.build | 18 dnsdist-2.1.3/meson/yaml-configuration/meson.build | 5 dnsdist-2.1.3/meson_options.txt | 45 dnsdist-2.1.3/misc.cc | 396 dnsdist-2.1.3/misc.hh | 203 dnsdist-2.1.3/missing | 75 dnsdist-2.1.3/mplexer.hh | 34 dnsdist-2.1.3/namespaces.hh | 1 dnsdist-2.1.3/packetcache.hh | 23 dnsdist-2.1.3/pdnsexception.hh | 16 dnsdist-2.1.3/pollmplexer.cc | 6 dnsdist-2.1.3/portsmplexer.cc | 6 dnsdist-2.1.3/protozero-trace.cc | 605 dnsdist-2.1.3/protozero-trace.hh | 884 dnsdist-2.1.3/protozero.cc | 90 dnsdist-2.1.3/protozero.hh | 644 dnsdist-2.1.3/proxy-protocol.hh | 2 dnsdist-2.1.3/qtype.cc | 25 dnsdist-2.1.3/qtype.hh | 14 dnsdist-2.1.3/remote_logger.cc | 39 dnsdist-2.1.3/remote_logger_pool.cc | 24 dnsdist-2.1.3/remote_logger_pool.hh | 65 dnsdist-2.1.3/sanitizer.hh | 51 dnsdist-2.1.3/sholder.hh | 63 dnsdist-2.1.3/snmp-agent.cc | 22 dnsdist-2.1.3/snmp-agent.hh | 16 dnsdist-2.1.3/src_js/SOURCES | 6 dnsdist-2.1.3/src_js/jquery.js | 9431 +-- dnsdist-2.1.3/src_js/moment.js | 737 dnsdist-2.1.3/src_js/rickshaw.js | 449 dnsdist-2.1.3/sstuff.hh | 263 dnsdist-2.1.3/stat_t.hh | 64 dnsdist-2.1.3/statnode.cc | 43 dnsdist-2.1.3/statnode.hh | 13 dnsdist-2.1.3/svc-records.cc | 119 dnsdist-2.1.3/svc-records.hh | 104 dnsdist-2.1.3/tcpiohandler-mplexer.hh | 45 dnsdist-2.1.3/tcpiohandler.cc | 447 dnsdist-2.1.3/tcpiohandler.hh | 54 dnsdist-2.1.3/test-base64_cc.cc | 41 dnsdist-2.1.3/test-connectionmanagement_hh.cc | 6 dnsdist-2.1.3/test-delaypipe_hh.cc | 24 dnsdist-2.1.3/test-dns_cc.cc | 98 dnsdist-2.1.3/test-dnscrypt_cc.cc | 170 dnsdist-2.1.3/test-dnsdist-concurrent-connections.cc | 432 dnsdist-2.1.3/test-dnsdist-connections-cache.cc | 9 dnsdist-2.1.3/test-dnsdist-dnsparser.cc | 126 dnsdist-2.1.3/test-dnsdist-ipcrypt2_cc.cc | 99 dnsdist-2.1.3/test-dnsdist-lua-ffi.cc | 234 dnsdist-2.1.3/test-dnsdist-opentelemetry_cc.cc | 638 dnsdist-2.1.3/test-dnsdist-session-cache.cc | 86 dnsdist-2.1.3/test-dnsdist-xsk.cc | 195 dnsdist-2.1.3/test-dnsdist_cc.cc | 1556 dnsdist-2.1.3/test-dnsdistasync.cc | 14 dnsdist-2.1.3/test-dnsdistbackend_cc.cc | 66 dnsdist-2.1.3/test-dnsdistbackoff.cc | 2 dnsdist-2.1.3/test-dnsdistdynblocks_hh.cc | 831 dnsdist-2.1.3/test-dnsdistedns.cc | 8 dnsdist-2.1.3/test-dnsdistkvs_cc.cc | 7 dnsdist-2.1.3/test-dnsdistlbpolicies_cc.cc | 156 dnsdist-2.1.3/test-dnsdistluanetwork.cc | 32 dnsdist-2.1.3/test-dnsdistnghttp2-in_cc.cc | 59 dnsdist-2.1.3/test-dnsdistnghttp2_cc.cc | 40 dnsdist-2.1.3/test-dnsdistnghttp2_common.hh | 14 dnsdist-2.1.3/test-dnsdistpacketcache_cc.cc | 1031 dnsdist-2.1.3/test-dnsdistrings_cc.cc | 177 dnsdist-2.1.3/test-dnsdistrules_cc.cc | 139 dnsdist-2.1.3/test-dnsdistserverpool.cc | 195 dnsdist-2.1.3/test-dnsdisttcp_cc.cc | 2429 dnsdist-2.1.3/test-dnsparser_cc.cc | 114 dnsdist-2.1.3/test-driver | 15 dnsdist-2.1.3/test-iputils_hh.cc | 51 dnsdist-2.1.3/test-luawrapper.cc | 96 dnsdist-2.1.3/test-sholder_hh.cc | 49 dnsdist-2.1.3/testrunner.cc | 10 dnsdist-2.1.3/threadname.cc | 6 dnsdist-2.1.3/version.sh | 9 dnsdist-2.1.3/xpf.cc | 118 dnsdist-2.1.3/xpf.hh | 29 dnsdist-2.1.3/xsk.cc | 124 dnsdist-2.1.3/xsk.hh | 28 663 files changed, 104262 insertions(+), 62041 deletions(-) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpaemprjqt/dnsdist_1.9.16-0+deb13u1.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpaemprjqt/dnsdist_2.1.3-1~deb13u1.dsc: no acceptable signature found diff -Nru dnsdist-1.9.16/COPYING dnsdist-2.1.3/COPYING --- dnsdist-1.9.16/COPYING 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/COPYING 2026-10-12 07:14:27.000000000 +0000 @@ -2,7 +2,7 @@ Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -303,9 +303,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + You should have received a copy of the GNU General Public License + along with this program; if not, see . Also add information on how to contact you by electronic and paper mail. @@ -336,4 +335,4 @@ proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. \ No newline at end of file +Public License instead of this License. diff -Nru dnsdist-1.9.16/Makefile.am dnsdist-2.1.3/Makefile.am --- dnsdist-1.9.16/Makefile.am 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/Makefile.am 2026-10-08 15:17:50.000000000 +0000 @@ -7,16 +7,29 @@ $(NET_SNMP_CFLAGS) \ $(NGHTTP2_CFLAGS) \ $(LIBCAP_CFLAGS) \ + $(IPCRYPT2_CFLAGS) \ -I$(top_srcdir)/ext/protozero/include \ + -I$(top_srcdir)/dnsdist-rust-lib \ + -I$(top_builddir)/dnsdist-rust-lib \ + -I$(top_srcdir)/dnsdist-rust-lib/rust/src \ -DSYSCONFDIR=\"${sysconfdir}\" \ -DBOOST_CONTAINER_USE_STD_EXCEPTIONS +AM_CXXFLAGS = + +DNSDIST_RUST_LIBS = $(top_builddir)/dnsdist-rust-lib/rust/libdnsdist_rust.a $(LIBDL) ACLOCAL_AMFLAGS = -I m4 -SUBDIRS=ext/arc4random \ +SUBDIRS=dnsdist-rust-lib \ + dnsdist-rust-lib/rust \ + ext/arc4random \ ext/ipcrypt \ ext/yahttp +if HAVE_IPCRYPT2 +SUBDIRS += ext/ipcrypt2 +endif + CLEANFILES = \ htmlfiles.h.tmp \ htmlfiles.h \ @@ -28,8 +41,16 @@ $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc BUILT_SOURCES=htmlfiles.h \ + dnsdist-actions-factory-generated-body.hh dnsdist-actions-factory-generated.hh \ dnsdist-lua-ffi-interface.inc \ - dnslabeltext.cc + dnsdist-lua-actions-generated-body.hh dnsdist-lua-response-actions-generated-body.hh \ + dnsdist-response-actions-factory-generated-body.hh dnsdist-response-actions-factory-generated.hh \ + dnsdist-rust-bridge-actions-generated-body.hh dnsdist-rust-bridge-actions-generated.hh \ + dnsdist-rust-bridge-selectors-generated-body.hh dnsdist-rust-bridge-selectors-generated.hh \ + dnsdist-selectors-factory-generated-body.hh dnsdist-selectors-factory-generated.hh \ + dnslabeltext.cc \ + docs/reference/yaml-actions.rst docs/reference/yaml-response-actions.rst docs/reference/yaml-selectors.rst \ + docs/reference/yaml-settings.rst htmlfiles.h: $(srcdir)/html/* $(srcdir)/incfiles $(AM_V_GEN)$(srcdir)/incfiles $(srcdir) > $@.tmp @@ -42,6 +63,16 @@ SRC_JS_FILES := $(wildcard src_js/*.js) MIN_JS_FILES := $(patsubst src_js/%.js,html/js/%.min.js,$(SRC_JS_FILES)) +dnsdist%generated-body.hh dnsdist%generated.hh: dnsdist-rules-generator.py dnsdist-actions-definitions.yml dnsdist-response-actions-definitions.yml dnsdist-selectors-definitions.yml + @if test "$(PYTHON)" = ":"; then echo "Actions or selectors definitions have changed, python is needed to regenerate the related files but python was not found. Please install python and re-run configure"; exit 1; fi + @if ! $(PYTHON) --version | grep -q "Python 3"; then echo $(PYTHON) should be at least version 3. Please install python 3 and re-run configure; exit 1; fi + $(PYTHON) ${srcdir}/dnsdist-rules-generator.py ${srcdir} . + +docs/reference/yaml-%.rst: dnsdist-settings-documentation-generator.py dnsdist-settings-definitions.yml dnsdist-actions-definitions.yml dnsdist-response-actions-definitions.yml dnsdist-selectors-definitions.yml + @if test "$(PYTHON)" = ":"; then echo "Settings definitions have changed, python is needed to regenerate the related files but python was not found. Please install python and re-run configure"; exit 1; fi + @if ! $(PYTHON) --version | grep -q "Python 3"; then echo $(PYTHON) should be at least version 3. Please install python 3 and re-run configure; exit 1; fi + $(PYTHON) ${srcdir}/dnsdist-settings-documentation-generator.py ${srcdir} + html/js/%.min.js: src_js/%.js uglifyjs $< > $@ @@ -50,7 +81,7 @@ if HAVE_RE2 # Some versions of pkg_config add -std=c11++, override that AM_CPPFLAGS += $(RE2_CFLAGS) -AM_CPPFLAGS += -std=c++17 +AM_CXXFLAGS += $(RE2_CFLAGS) -std=c++17 endif if HAVE_DNS_OVER_TLS @@ -84,12 +115,16 @@ AM_CPPFLAGS += $(GNUTLS_CFLAGS) endif -if HAVE_LIBH2OEVLOOP -AM_CPPFLAGS += $(LIBH2OEVLOOP_CFLAGS) -endif endif EXTRA_DIST=COPYING \ + dnsdist-rules-generator.py \ + dnsdist-settings-documentation-generator.py \ + dnsdist-actions-definitions.yml \ + dnsdist-response-actions-definitions.yml \ + dnsdist-rust-bridge.hh \ + dnsdist-selectors-definitions.yml \ + dnsdist-settings-definitions.yml \ dnslabeltext.rl \ dnsdist.conf-dist \ dnsmessage.proto \ @@ -144,28 +179,38 @@ dns.cc dns.hh \ dns_random.hh \ dnscrypt.cc dnscrypt.hh \ + dnsdist-actions-factory.cc dnsdist-actions-factory.hh \ + dnsdist-actions.cc dnsdist-actions.hh \ dnsdist-async.cc dnsdist-async.hh \ - dnsdist-backend.cc \ + dnsdist-backend.cc dnsdist-backend.hh \ dnsdist-backoff.hh \ dnsdist-cache.cc dnsdist-cache.hh \ dnsdist-carbon.cc dnsdist-carbon.hh \ - dnsdist-concurrent-connections.hh \ + dnsdist-concurrent-connections.cc dnsdist-concurrent-connections.hh \ + dnsdist-configuration-yaml-internal.hh \ + dnsdist-configuration-yaml.cc dnsdist-configuration-yaml.hh \ + dnsdist-configuration.cc dnsdist-configuration.hh \ + dnsdist-console-completion.cc dnsdist-console-completion.hh \ dnsdist-console.cc dnsdist-console.hh \ dnsdist-crypto.cc dnsdist-crypto.hh \ dnsdist-discovery.cc dnsdist-discovery.hh \ dnsdist-dnscrypt.cc \ dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc \ dnsdist-doh-common.cc dnsdist-doh-common.hh \ dnsdist-downstream-connection.hh \ dnsdist-dynblocks.cc dnsdist-dynblocks.hh \ dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ dnsdist-ecs.cc dnsdist-ecs.hh \ dnsdist-edns.cc dnsdist-edns.hh \ + dnsdist-frontend.cc dnsdist-frontend.hh \ dnsdist-healthchecks.cc dnsdist-healthchecks.hh \ - dnsdist-idstate.hh \ + dnsdist-idstate.cc dnsdist-idstate.hh \ dnsdist-internal-queries.cc dnsdist-internal-queries.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh \ dnsdist-kvs.hh dnsdist-kvs.cc \ dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh \ dnsdist-lua-actions.cc \ dnsdist-lua-bindings-dnscrypt.cc \ dnsdist-lua-bindings-dnsparser.cc \ @@ -176,6 +221,7 @@ dnsdist-lua-bindings-protobuf.cc \ dnsdist-lua-bindings-rings.cc \ dnsdist-lua-bindings.cc \ + dnsdist-lua-configuration-items.cc \ dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh \ dnsdist-lua-hooks.cc dnsdist-lua-hooks.hh \ @@ -190,15 +236,21 @@ dnsdist-metrics.cc dnsdist-metrics.hh \ dnsdist-nghttp2-in.hh \ dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ dnsdist-prometheus.hh \ dnsdist-protobuf.cc dnsdist-protobuf.hh \ dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ + dnsdist-query-count.hh dnsdist-query-count.cc \ dnsdist-random.cc dnsdist-random.hh \ dnsdist-resolver.cc dnsdist-resolver.hh \ dnsdist-rings.cc dnsdist-rings.hh \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh \ dnsdist-rules.cc dnsdist-rules.hh \ dnsdist-secpoll.cc dnsdist-secpoll.hh \ + dnsdist-self-answers.cc dnsdist-self-answers.hh \ + dnsdist-server-pool.hh \ dnsdist-session-cache.cc dnsdist-session-cache.hh \ dnsdist-snmp.cc dnsdist-snmp.hh \ dnsdist-svc.cc dnsdist-svc.hh \ @@ -206,8 +258,8 @@ dnsdist-tcp-downstream.cc dnsdist-tcp-downstream.hh \ dnsdist-tcp-upstream.hh \ dnsdist-tcp.cc dnsdist-tcp.hh \ + dnsdist-udp.cc dnsdist-udp.hh \ dnsdist-web.cc dnsdist-web.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh \ dnsdist-xsk.cc dnsdist-xsk.hh \ dnsdist.cc dnsdist.hh \ dnslabeltext.cc \ @@ -215,8 +267,7 @@ dnsparser.hh dnsparser.cc \ dnstap.cc dnstap.hh \ dnswriter.cc dnswriter.hh \ - doh.hh \ - doh3.hh \ + doh3.cc doh3.hh \ dolog.cc dolog.hh \ doq-common.hh \ doq.hh \ @@ -234,7 +285,7 @@ iputils.cc iputils.hh \ libssl.cc libssl.hh \ lock.hh \ - logging.hh \ + logging.cc logging.hh \ misc.cc misc.hh \ mplexer.hh \ namespaces.hh \ @@ -242,10 +293,13 @@ packetcache.hh \ pdnsexception.hh \ pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh \ protozero.cc protozero.hh \ proxy-protocol.cc proxy-protocol.hh \ qtype.cc qtype.hh \ remote_logger.cc remote_logger.hh \ + remote_logger_pool.cc remote_logger_pool.hh \ + sanitizer.hh \ sholder.hh \ snmp-agent.cc snmp-agent.hh \ sstuff.hh \ @@ -257,9 +311,10 @@ threadname.hh threadname.cc \ uuid-utils.hh uuid-utils.cc \ views.hh \ - xpf.cc xpf.hh \ xsk.cc xsk.hh +nodist_dnsdist_SOURCES = + testrunner_SOURCES = \ base64.hh \ bpf-filter.cc bpf-filter.hh \ @@ -270,63 +325,80 @@ credentials.cc credentials.hh \ dns.cc dns.hh \ dnscrypt.cc dnscrypt.hh \ + dnsdist-actions.cc dnsdist-actions.hh \ dnsdist-async.cc dnsdist-async.hh \ - dnsdist-backend.cc \ + dnsdist-backend.cc dnsdist-backend.hh \ dnsdist-backoff.hh \ dnsdist-cache.cc dnsdist-cache.hh \ - dnsdist-concurrent-connections.hh \ + dnsdist-concurrent-connections.cc dnsdist-concurrent-connections.hh \ + dnsdist-configuration.cc dnsdist-configuration.hh \ dnsdist-crypto.cc dnsdist-crypto.hh \ dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc \ dnsdist-doh-common.cc dnsdist-doh-common.hh \ dnsdist-downstream-connection.hh \ dnsdist-dynblocks.cc dnsdist-dynblocks.hh \ dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ dnsdist-ecs.cc dnsdist-ecs.hh \ dnsdist-edns.cc dnsdist-edns.hh \ - dnsdist-idstate.hh \ + dnsdist-frontend.cc dnsdist-frontend.hh \ + dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh \ dnsdist-kvs.cc dnsdist-kvs.hh \ dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh \ dnsdist-lua-bindings-dnsquestion.cc \ dnsdist-lua-bindings-kvs.cc \ dnsdist-lua-bindings.cc \ dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh \ + dnsdist-lua-inspection-ffi.cc dnsdist-lua-inspection-ffi.h \ dnsdist-lua-network.cc dnsdist-lua-network.hh \ dnsdist-lua-vars.cc \ dnsdist-mac-address.cc dnsdist-mac-address.hh \ dnsdist-metrics.cc dnsdist-metrics.hh \ dnsdist-nghttp2-in.hh \ dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ dnsdist-random.cc dnsdist-random.hh \ dnsdist-resolver.cc dnsdist-resolver.hh \ dnsdist-rings.cc dnsdist-rings.hh \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh \ dnsdist-rules.cc dnsdist-rules.hh \ + dnsdist-self-answers.cc dnsdist-self-answers.hh \ dnsdist-session-cache.cc dnsdist-session-cache.hh \ dnsdist-svc.cc dnsdist-svc.hh \ dnsdist-tcp-downstream.cc \ dnsdist-tcp.cc dnsdist-tcp.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh \ + dnsdist-udp.cc dnsdist-udp.hh \ dnsdist-xsk.cc dnsdist-xsk.hh \ dnsdist.hh \ dnslabeltext.cc \ dnsname.cc dnsname.hh \ dnsparser.hh dnsparser.cc \ dnswriter.cc dnswriter.hh \ + doh3.cc doh3.hh \ dolog.cc dolog.hh \ ednscookies.cc ednscookies.hh \ ednsextendederror.cc ednsextendederror.hh \ ednsoptions.cc ednsoptions.hh \ ednssubnet.cc ednssubnet.hh \ + ext/json11/json11.cpp \ + ext/json11/json11.hpp \ ext/luawrapper/include/LuaContext.hpp \ gettime.cc gettime.hh \ iputils.cc iputils.hh \ + logging.cc logging.hh \ misc.cc misc.hh \ namespaces.hh \ noinitvector.hh \ pdnsexception.hh \ pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh \ + protozero.cc protozero.hh \ proxy-protocol.cc proxy-protocol.hh \ qtype.cc qtype.hh \ sholder.hh \ @@ -339,10 +411,16 @@ test-connectionmanagement_hh.cc \ test-credentials_cc.cc \ test-delaypipe_hh.cc \ + test-dns_cc.cc \ test-dnscrypt_cc.cc \ + test-dnsdist-concurrent-connections.cc \ test-dnsdist-connections-cache.cc \ test-dnsdist-dnsparser.cc \ + test-dnsdist-ipcrypt2_cc.cc \ test-dnsdist-lua-ffi.cc \ + test-dnsdist-opentelemetry_cc.cc \ + test-dnsdist-session-cache.cc \ + test-dnsdist-xsk.cc \ test-dnsdist_cc.cc \ test-dnsdistasync.cc \ test-dnsdistbackend_cc.cc \ @@ -356,6 +434,7 @@ test-dnsdistpacketcache_cc.cc \ test-dnsdistrings_cc.cc \ test-dnsdistrules_cc.cc \ + test-dnsdistserverpool.cc \ test-dnsdistsvc_cc.cc \ test-dnsdisttcp_cc.cc \ test-dnsparser_cc.cc \ @@ -363,10 +442,10 @@ test-luawrapper.cc \ test-mplexer.cc \ test-proxy_protocol_cc.cc \ + test-sholder_hh.cc \ testrunner.cc \ threadname.hh threadname.cc \ uuid-utils.hh uuid-utils.cc \ - xpf.cc xpf.hh \ xsk.cc xsk.hh dnsdist_LDFLAGS = \ @@ -399,6 +478,7 @@ $(LIBSODIUM_LIBS) \ $(LUA_LIBS) \ $(RT_LIBS) \ + $(SYSTEMD_LIBS) \ $(LIBCAP_LIBS) \ $(ARC4RANDOM_LIBS) @@ -411,10 +491,12 @@ if HAVE_RE2 dnsdist_LDADD += $(RE2_LIBS) +testrunner_LDADD += $(RE2_LIBS) endif if HAVE_LIBSSL dnsdist_LDADD += $(LIBSSL_LIBS) +testrunner_LDADD += $(LIBSSL_LIBS) endif if HAVE_XSK @@ -430,6 +512,11 @@ dnsdist_SOURCES += ipcipher.cc ipcipher.hh endif +if HAVE_IPCRYPT2 +dnsdist_SOURCES += ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h ext/ipcrypt2/softaes/untrinsics.h +testrunner_SOURCES += ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h ext/ipcrypt2/softaes/untrinsics.h +endif + if HAVE_LMDB dnsdist_LDADD += $(LMDB_LDFLAGS) $(LMDB_LIBS) testrunner_LDADD += $(LMDB_LDFLAGS) $(LMDB_LIBS) @@ -449,11 +536,6 @@ dnsdist_LDADD += $(GNUTLS_LIBS) endif -if HAVE_LIBH2OEVLOOP -dnsdist_SOURCES += doh.cc -dnsdist_LDADD += $(LIBH2OEVLOOP_LIBS) -endif - if HAVE_NGHTTP2 dnsdist_SOURCES += dnsdist-nghttp2-in.cc dnsdist_SOURCES += dnsdist-nghttp2.cc @@ -471,19 +553,22 @@ dnsdist_SOURCES += doq.cc endif -if HAVE_DNS_OVER_HTTP3 -dnsdist_SOURCES += doh3.cc -endif - if HAVE_QUICHE AM_CPPFLAGS += $(QUICHE_CFLAGS) dnsdist_LDADD += $(QUICHE_LDFLAGS) $(QUICHE_LIBS) dnsdist_SOURCES += doq-common.cc +testrunner_SOURCES += doq-common.cc +testrunner_LDADD += $(QUICHE_LDFLAGS) $(QUICHE_LIBS) +endif + +if HAVE_YAML_CONFIGURATION +nodist_dnsdist_SOURCES += dnsdist-configuration-yaml-items-generated.cc +dnsdist_LDADD += $(DNSDIST_RUST_LIBS) endif if !HAVE_LUA_HPP BUILT_SOURCES += lua.hpp -nodist_dnsdist_SOURCES = lua.hpp +nodist_dnsdist_SOURCES += lua.hpp endif CLEANFILES += lua.hpp @@ -532,8 +617,10 @@ $(fuzz_targets_programs) fuzz_targets_libs = \ - $(LIBCRYPTO_LIBS) \ $(ARC4RANDOM_LIBS) \ + $(LIBCRYPTO_LIBS) \ + $(LIBSODIUM_LIBS) \ + $(SYSTEMD_LIBS) \ $(LIB_FUZZING_ENGINE) fuzz_targets_ldflags = \ @@ -548,22 +635,33 @@ fuzz_target_dnsdistcache_SOURCES = \ channel.hh channel.cc \ dns.cc dns.hh \ + dnscrypt.cc dnscrypt.hh \ dnsdist-cache.cc dnsdist-cache.hh \ + dnsdist-configuration.cc dnsdist-configuration.hh \ + dnsdist-crypto.cc dnsdist-crypto.hh \ dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc \ dnsdist-ecs.cc dnsdist-ecs.hh \ - dnsdist-idstate.hh \ + dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-logging.cc dnsdist-logging.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ dnsdist-protocols.cc dnsdist-protocols.hh \ dnslabeltext.cc \ dnsname.cc dnsname.hh \ dnsparser.cc dnsparser.hh \ dnswriter.cc dnswriter.hh \ - doh.hh \ + dolog.cc dolog.hh \ ednsoptions.cc ednsoptions.hh \ ednssubnet.cc ednssubnet.hh \ + ext/json11/json11.cpp \ + ext/json11/json11.hpp \ fuzz_dnsdistcache.cc \ + gettime.cc gettime.hh \ iputils.cc iputils.hh \ + logging.cc logging.hh \ misc.cc misc.hh \ packetcache.hh \ + protozero-trace.cc protozero-trace.hh \ qtype.cc qtype.hh \ svc-records.cc svc-records.hh @@ -594,7 +692,7 @@ if HAVE_VENV if !HAVE_MANPAGES $(MANPAGES): %: docs/manpages/%.rst .venv - $(AM_V_GEN).venv/bin/python -msphinx -b man docs . $< + $(AM_V_GEN).venv/bin/python -msphinx -b man ${srcdir}/docs . $< endif # if !HAVE_MANPAGES .venv: docs/requirements.txt diff -Nru dnsdist-1.9.16/Makefile.in dnsdist-2.1.3/Makefile.in --- dnsdist-1.9.16/Makefile.in 2026-08-05 14:29:28.000000000 +0000 +++ dnsdist-2.1.3/Makefile.in 2026-10-12 07:14:54.167484500 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. +# Makefile.in generated by automake 1.17 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2021 Free Software Foundation, Inc. +# Copyright (C) 1994-2024 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -71,6 +71,8 @@ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +am__rm_f = rm -f $(am__rm_f_notfound) +am__rm_rf = rm -rf $(am__rm_f_notfound) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -89,74 +91,81 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +@HAVE_IPCRYPT2_TRUE@am__append_1 = ext/ipcrypt2 # Some versions of pkg_config add -std=c11++, override that -@HAVE_RE2_TRUE@am__append_1 = $(RE2_CFLAGS) -std=c++17 -@HAVE_DNS_OVER_TLS_TRUE@@HAVE_LIBSSL_TRUE@am__append_2 = $(LIBSSL_CFLAGS) -@HAVE_DNS_OVER_TLS_TRUE@@HAVE_GNUTLS_TRUE@am__append_3 = $(GNUTLS_CFLAGS) -@HAVE_LIBCRYPTO_TRUE@am__append_4 = $(LIBCRYPTO_INCLUDES) -@HAVE_CDB_TRUE@am__append_5 = $(CDB_CFLAGS) -@HAVE_LMDB_TRUE@am__append_6 = $(LMDB_CFLAGS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBSSL_TRUE@am__append_7 = $(LIBSSL_CFLAGS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_GNUTLS_TRUE@am__append_8 = $(GNUTLS_CFLAGS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBH2OEVLOOP_TRUE@am__append_9 = $(LIBH2OEVLOOP_CFLAGS) +@HAVE_RE2_TRUE@am__append_2 = $(RE2_CFLAGS) +@HAVE_RE2_TRUE@am__append_3 = $(RE2_CFLAGS) -std=c++17 +@HAVE_DNS_OVER_TLS_TRUE@@HAVE_LIBSSL_TRUE@am__append_4 = $(LIBSSL_CFLAGS) +@HAVE_DNS_OVER_TLS_TRUE@@HAVE_GNUTLS_TRUE@am__append_5 = $(GNUTLS_CFLAGS) +@HAVE_LIBCRYPTO_TRUE@am__append_6 = $(LIBCRYPTO_INCLUDES) +@HAVE_CDB_TRUE@am__append_7 = $(CDB_CFLAGS) +@HAVE_LMDB_TRUE@am__append_8 = $(LMDB_CFLAGS) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBSSL_TRUE@am__append_9 = $(LIBSSL_CFLAGS) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_GNUTLS_TRUE@am__append_10 = $(GNUTLS_CFLAGS) bin_PROGRAMS = dnsdist$(EXEEXT) $(am__EXEEXT_3) @UNIT_TESTS_TRUE@noinst_PROGRAMS = testrunner$(EXEEXT) @UNIT_TESTS_TRUE@TESTS = testrunner$(EXEEXT) -@HAVE_CDB_TRUE@am__append_10 = $(CDB_LDFLAGS) $(CDB_LIBS) @HAVE_CDB_TRUE@am__append_11 = $(CDB_LDFLAGS) $(CDB_LIBS) -@HAVE_CDB_TRUE@am__append_12 = cdb.cc cdb.hh +@HAVE_CDB_TRUE@am__append_12 = $(CDB_LDFLAGS) $(CDB_LIBS) @HAVE_CDB_TRUE@am__append_13 = cdb.cc cdb.hh -@HAVE_RE2_TRUE@am__append_14 = $(RE2_LIBS) -@HAVE_LIBSSL_TRUE@am__append_15 = $(LIBSSL_LIBS) -@HAVE_XSK_TRUE@am__append_16 = -lbpf -lxdp -@HAVE_XSK_TRUE@am__append_17 = -lbpf -lxdp -@HAVE_LIBCRYPTO_TRUE@am__append_18 = $(LIBCRYPTO_LDFLAGS) $(LIBCRYPTO_LIBS) -@HAVE_LIBCRYPTO_TRUE@am__append_19 = $(LIBCRYPTO_LDFLAGS) $(LIBCRYPTO_LIBS) -@HAVE_LIBCRYPTO_TRUE@am__append_20 = ipcipher.cc ipcipher.hh -@HAVE_LMDB_TRUE@am__append_21 = $(LMDB_LDFLAGS) $(LMDB_LIBS) -@HAVE_LMDB_TRUE@am__append_22 = $(LMDB_LDFLAGS) $(LMDB_LIBS) -@HAVE_LMDB_TRUE@am__append_23 = ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh -@HAVE_LMDB_TRUE@am__append_24 = ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh -@HAVE_DNS_OVER_TLS_TRUE@@HAVE_GNUTLS_TRUE@am__append_25 = $(GNUTLS_LIBS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_GNUTLS_TRUE@am__append_26 = $(GNUTLS_LIBS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBH2OEVLOOP_TRUE@am__append_27 = doh.cc -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBH2OEVLOOP_TRUE@am__append_28 = $(LIBH2OEVLOOP_LIBS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_29 = dnsdist-nghttp2-in.cc \ +@HAVE_CDB_TRUE@am__append_14 = cdb.cc cdb.hh +@HAVE_RE2_TRUE@am__append_15 = $(RE2_LIBS) +@HAVE_RE2_TRUE@am__append_16 = $(RE2_LIBS) +@HAVE_LIBSSL_TRUE@am__append_17 = $(LIBSSL_LIBS) +@HAVE_LIBSSL_TRUE@am__append_18 = $(LIBSSL_LIBS) +@HAVE_XSK_TRUE@am__append_19 = -lbpf -lxdp +@HAVE_XSK_TRUE@am__append_20 = -lbpf -lxdp +@HAVE_LIBCRYPTO_TRUE@am__append_21 = $(LIBCRYPTO_LDFLAGS) $(LIBCRYPTO_LIBS) +@HAVE_LIBCRYPTO_TRUE@am__append_22 = $(LIBCRYPTO_LDFLAGS) $(LIBCRYPTO_LIBS) +@HAVE_LIBCRYPTO_TRUE@am__append_23 = ipcipher.cc ipcipher.hh +@HAVE_IPCRYPT2_TRUE@am__append_24 = ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h ext/ipcrypt2/softaes/untrinsics.h +@HAVE_IPCRYPT2_TRUE@am__append_25 = ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h ext/ipcrypt2/softaes/untrinsics.h +@HAVE_LMDB_TRUE@am__append_26 = $(LMDB_LDFLAGS) $(LMDB_LIBS) +@HAVE_LMDB_TRUE@am__append_27 = $(LMDB_LDFLAGS) $(LMDB_LIBS) +@HAVE_LMDB_TRUE@am__append_28 = ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh +@HAVE_LMDB_TRUE@am__append_29 = ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh +@HAVE_DNS_OVER_TLS_TRUE@@HAVE_GNUTLS_TRUE@am__append_30 = $(GNUTLS_LIBS) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_GNUTLS_TRUE@am__append_31 = $(GNUTLS_LIBS) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_32 = dnsdist-nghttp2-in.cc \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ dnsdist-nghttp2.cc -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_30 = dnsdist-nghttp2-in.cc \ +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_33 = dnsdist-nghttp2-in.cc \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ dnsdist-nghttp2.cc \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ test-dnsdistnghttp2-in_cc.cc \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ test-dnsdistnghttp2_cc.cc -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_31 = $(NGHTTP2_LDFLAGS) $(NGHTTP2_LIBS) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_32 = $(NGHTTP2_LDFLAGS) $(NGHTTP2_LIBS) -@HAVE_DNS_OVER_QUIC_TRUE@am__append_33 = doq.cc -@HAVE_DNS_OVER_HTTP3_TRUE@am__append_34 = doh3.cc -@HAVE_QUICHE_TRUE@am__append_35 = $(QUICHE_CFLAGS) -@HAVE_QUICHE_TRUE@am__append_36 = $(QUICHE_LDFLAGS) $(QUICHE_LIBS) -@HAVE_QUICHE_TRUE@am__append_37 = doq-common.cc -@HAVE_LUA_HPP_FALSE@am__append_38 = lua.hpp -@HAVE_FREEBSD_TRUE@am__append_39 = kqueuemplexer.cc -@HAVE_FREEBSD_TRUE@am__append_40 = kqueuemplexer.cc -@HAVE_OPENBSD_TRUE@am__append_41 = kqueuemplexer.cc -@HAVE_OPENBSD_TRUE@am__append_42 = kqueuemplexer.cc -@HAVE_LINUX_TRUE@am__append_43 = epollmplexer.cc -@HAVE_LINUX_TRUE@am__append_44 = epollmplexer.cc -@HAVE_SOLARIS_TRUE@am__append_45 = \ +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_34 = $(NGHTTP2_LDFLAGS) $(NGHTTP2_LIBS) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__append_35 = $(NGHTTP2_LDFLAGS) $(NGHTTP2_LIBS) +@HAVE_DNS_OVER_QUIC_TRUE@am__append_36 = doq.cc +@HAVE_QUICHE_TRUE@am__append_37 = $(QUICHE_CFLAGS) +@HAVE_QUICHE_TRUE@am__append_38 = $(QUICHE_LDFLAGS) $(QUICHE_LIBS) +@HAVE_QUICHE_TRUE@am__append_39 = doq-common.cc +@HAVE_QUICHE_TRUE@am__append_40 = doq-common.cc +@HAVE_QUICHE_TRUE@am__append_41 = $(QUICHE_LDFLAGS) $(QUICHE_LIBS) +@HAVE_YAML_CONFIGURATION_TRUE@am__append_42 = dnsdist-configuration-yaml-items-generated.cc +@HAVE_YAML_CONFIGURATION_TRUE@am__append_43 = $(DNSDIST_RUST_LIBS) +@HAVE_LUA_HPP_FALSE@am__append_44 = lua.hpp +@HAVE_LUA_HPP_FALSE@am__append_45 = lua.hpp +@HAVE_FREEBSD_TRUE@am__append_46 = kqueuemplexer.cc +@HAVE_FREEBSD_TRUE@am__append_47 = kqueuemplexer.cc +@HAVE_OPENBSD_TRUE@am__append_48 = kqueuemplexer.cc +@HAVE_OPENBSD_TRUE@am__append_49 = kqueuemplexer.cc +@HAVE_LINUX_TRUE@am__append_50 = epollmplexer.cc +@HAVE_LINUX_TRUE@am__append_51 = epollmplexer.cc +@HAVE_SOLARIS_TRUE@am__append_52 = \ @HAVE_SOLARIS_TRUE@ devpollmplexer.cc \ @HAVE_SOLARIS_TRUE@ portsmplexer.cc -@HAVE_SOLARIS_TRUE@am__append_46 = \ +@HAVE_SOLARIS_TRUE@am__append_53 = \ @HAVE_SOLARIS_TRUE@ devpollmplexer.cc \ @HAVE_SOLARIS_TRUE@ portsmplexer.cc -@FUZZ_TARGETS_TRUE@@HAVE_XSK_TRUE@am__append_47 = \ +@FUZZ_TARGETS_TRUE@@HAVE_XSK_TRUE@am__append_54 = \ @FUZZ_TARGETS_TRUE@@HAVE_XSK_TRUE@ fuzz_target_xsk -@FUZZ_TARGETS_TRUE@am__append_48 = \ +@FUZZ_TARGETS_TRUE@am__append_55 = \ @FUZZ_TARGETS_TRUE@ $(fuzz_targets_programs) -@HAVE_SYSTEMD_TRUE@am__append_49 = \ +@HAVE_SYSTEMD_TRUE@am__append_56 = \ @HAVE_SYSTEMD_TRUE@ dnsdist.service \ @HAVE_SYSTEMD_TRUE@ dnsdist@.service @@ -164,6 +173,7 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_pthread_set_name.m4 \ $(top_srcdir)/m4/ax_arg_default_enable_disable.m4 \ + $(top_srcdir)/m4/ax_compare_version.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_17.m4 \ $(top_srcdir)/m4/ax_python_module.m4 $(top_srcdir)/m4/boost.m4 \ @@ -172,15 +182,16 @@ $(top_srcdir)/m4/dnsdist_enable_doh3.m4 \ $(top_srcdir)/m4/dnsdist_enable_doq.m4 \ $(top_srcdir)/m4/dnsdist_enable_tls_providers.m4 \ + $(top_srcdir)/m4/dnsdist_enable_yaml.m4 \ $(top_srcdir)/m4/dnsdist_with_cdb.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pdns_check_cargo.m4 \ $(top_srcdir)/m4/pdns_check_clock_gettime.m4 \ $(top_srcdir)/m4/pdns_check_dnstap.m4 \ $(top_srcdir)/m4/pdns_check_libcrypto.m4 \ $(top_srcdir)/m4/pdns_check_libedit.m4 \ - $(top_srcdir)/m4/pdns_check_libh2o_evloop.m4 \ $(top_srcdir)/m4/pdns_check_lmdb.m4 \ $(top_srcdir)/m4/pdns_check_lua_hpp.m4 \ $(top_srcdir)/m4/pdns_check_network_libs.m4 \ @@ -193,6 +204,7 @@ $(top_srcdir)/m4/pdns_enable_coverage.m4 \ $(top_srcdir)/m4/pdns_enable_fuzz_targets.m4 \ $(top_srcdir)/m4/pdns_enable_ipcipher.m4 \ + $(top_srcdir)/m4/pdns_enable_ipcrypt2.m4 \ $(top_srcdir)/m4/pdns_enable_lto.m4 \ $(top_srcdir)/m4/pdns_enable_sanitizers.m4 \ $(top_srcdir)/m4/pdns_enable_tls.m4 \ @@ -237,100 +249,125 @@ channel.cc channel.hh circular_buffer.hh \ connection-management.hh coverage.cc coverage.hh \ credentials.cc credentials.hh dns.cc dns.hh dns_random.hh \ - dnscrypt.cc dnscrypt.hh dnsdist-async.cc dnsdist-async.hh \ - dnsdist-backend.cc dnsdist-backoff.hh dnsdist-cache.cc \ - dnsdist-cache.hh dnsdist-carbon.cc dnsdist-carbon.hh \ - dnsdist-concurrent-connections.hh dnsdist-console.cc \ - dnsdist-console.hh dnsdist-crypto.cc dnsdist-crypto.hh \ - dnsdist-discovery.cc dnsdist-discovery.hh dnsdist-dnscrypt.cc \ - dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ - dnsdist-doh-common.cc dnsdist-doh-common.hh \ - dnsdist-downstream-connection.hh dnsdist-dynblocks.cc \ - dnsdist-dynblocks.hh dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ - dnsdist-ecs.cc dnsdist-ecs.hh dnsdist-edns.cc dnsdist-edns.hh \ - dnsdist-healthchecks.cc dnsdist-healthchecks.hh \ - dnsdist-idstate.hh dnsdist-internal-queries.cc \ - dnsdist-internal-queries.hh dnsdist-kvs.hh dnsdist-kvs.cc \ - dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ - dnsdist-lua-actions.cc dnsdist-lua-bindings-dnscrypt.cc \ + dnscrypt.cc dnscrypt.hh dnsdist-actions-factory.cc \ + dnsdist-actions-factory.hh dnsdist-actions.cc \ + dnsdist-actions.hh dnsdist-async.cc dnsdist-async.hh \ + dnsdist-backend.cc dnsdist-backend.hh dnsdist-backoff.hh \ + dnsdist-cache.cc dnsdist-cache.hh dnsdist-carbon.cc \ + dnsdist-carbon.hh dnsdist-concurrent-connections.cc \ + dnsdist-concurrent-connections.hh \ + dnsdist-configuration-yaml-internal.hh \ + dnsdist-configuration-yaml.cc dnsdist-configuration-yaml.hh \ + dnsdist-configuration.cc dnsdist-configuration.hh \ + dnsdist-console-completion.cc dnsdist-console-completion.hh \ + dnsdist-console.cc dnsdist-console.hh dnsdist-crypto.cc \ + dnsdist-crypto.hh dnsdist-discovery.cc dnsdist-discovery.hh \ + dnsdist-dnscrypt.cc dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc dnsdist-doh-common.cc \ + dnsdist-doh-common.hh dnsdist-downstream-connection.hh \ + dnsdist-dynblocks.cc dnsdist-dynblocks.hh dnsdist-dynbpf.cc \ + dnsdist-dynbpf.hh dnsdist-ecs.cc dnsdist-ecs.hh \ + dnsdist-edns.cc dnsdist-edns.hh dnsdist-frontend.cc \ + dnsdist-frontend.hh dnsdist-healthchecks.cc \ + dnsdist-healthchecks.hh dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-internal-queries.cc dnsdist-internal-queries.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh dnsdist-kvs.hh \ + dnsdist-kvs.cc dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh dnsdist-lua-actions.cc \ + dnsdist-lua-bindings-dnscrypt.cc \ dnsdist-lua-bindings-dnsparser.cc \ dnsdist-lua-bindings-dnsquestion.cc \ dnsdist-lua-bindings-kvs.cc dnsdist-lua-bindings-network.cc \ dnsdist-lua-bindings-packetcache.cc \ dnsdist-lua-bindings-protobuf.cc dnsdist-lua-bindings-rings.cc \ - dnsdist-lua-bindings.cc dnsdist-lua-ffi-interface.h \ - dnsdist-lua-ffi-interface.inc dnsdist-lua-ffi.cc \ - dnsdist-lua-ffi.hh dnsdist-lua-hooks.cc dnsdist-lua-hooks.hh \ - dnsdist-lua-inspection-ffi.cc dnsdist-lua-inspection-ffi.h \ - dnsdist-lua-inspection.cc dnsdist-lua-network.cc \ - dnsdist-lua-network.hh dnsdist-lua-rules.cc \ - dnsdist-lua-vars.cc dnsdist-lua-web.cc dnsdist-lua.cc \ - dnsdist-lua.hh dnsdist-mac-address.cc dnsdist-mac-address.hh \ - dnsdist-metrics.cc dnsdist-metrics.hh dnsdist-nghttp2-in.hh \ - dnsdist-nghttp2.hh dnsdist-prometheus.hh dnsdist-protobuf.cc \ - dnsdist-protobuf.hh dnsdist-protocols.cc dnsdist-protocols.hh \ + dnsdist-lua-bindings.cc dnsdist-lua-configuration-items.cc \ + dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ + dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh dnsdist-lua-hooks.cc \ + dnsdist-lua-hooks.hh dnsdist-lua-inspection-ffi.cc \ + dnsdist-lua-inspection-ffi.h dnsdist-lua-inspection.cc \ + dnsdist-lua-network.cc dnsdist-lua-network.hh \ + dnsdist-lua-rules.cc dnsdist-lua-vars.cc dnsdist-lua-web.cc \ + dnsdist-lua.cc dnsdist-lua.hh dnsdist-mac-address.cc \ + dnsdist-mac-address.hh dnsdist-metrics.cc dnsdist-metrics.hh \ + dnsdist-nghttp2-in.hh dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ + dnsdist-prometheus.hh dnsdist-protobuf.cc dnsdist-protobuf.hh \ + dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ + dnsdist-query-count.hh dnsdist-query-count.cc \ dnsdist-random.cc dnsdist-random.hh dnsdist-resolver.cc \ dnsdist-resolver.hh dnsdist-rings.cc dnsdist-rings.hh \ - dnsdist-rules.cc dnsdist-rules.hh dnsdist-secpoll.cc \ - dnsdist-secpoll.hh dnsdist-session-cache.cc \ - dnsdist-session-cache.hh dnsdist-snmp.cc dnsdist-snmp.hh \ - dnsdist-svc.cc dnsdist-svc.hh dnsdist-systemd.cc \ - dnsdist-systemd.hh dnsdist-tcp-downstream.cc \ - dnsdist-tcp-downstream.hh dnsdist-tcp-upstream.hh \ - dnsdist-tcp.cc dnsdist-tcp.hh dnsdist-web.cc dnsdist-web.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh dnsdist-xsk.cc dnsdist-xsk.hh \ - dnsdist.cc dnsdist.hh dnslabeltext.cc dnsname.cc dnsname.hh \ - dnsparser.hh dnsparser.cc dnstap.cc dnstap.hh dnswriter.cc \ - dnswriter.hh doh.hh doh3.hh dolog.cc dolog.hh doq-common.hh \ - doq.hh ednscookies.cc ednscookies.hh ednsextendederror.cc \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh dnsdist-rules.cc dnsdist-rules.hh \ + dnsdist-secpoll.cc dnsdist-secpoll.hh dnsdist-self-answers.cc \ + dnsdist-self-answers.hh dnsdist-server-pool.hh \ + dnsdist-session-cache.cc dnsdist-session-cache.hh \ + dnsdist-snmp.cc dnsdist-snmp.hh dnsdist-svc.cc dnsdist-svc.hh \ + dnsdist-systemd.cc dnsdist-systemd.hh \ + dnsdist-tcp-downstream.cc dnsdist-tcp-downstream.hh \ + dnsdist-tcp-upstream.hh dnsdist-tcp.cc dnsdist-tcp.hh \ + dnsdist-udp.cc dnsdist-udp.hh dnsdist-web.cc dnsdist-web.hh \ + dnsdist-xsk.cc dnsdist-xsk.hh dnsdist.cc dnsdist.hh \ + dnslabeltext.cc dnsname.cc dnsname.hh dnsparser.hh \ + dnsparser.cc dnstap.cc dnstap.hh dnswriter.cc dnswriter.hh \ + doh3.cc doh3.hh dolog.cc dolog.hh doq-common.hh doq.hh \ + ednscookies.cc ednscookies.hh ednsextendederror.cc \ ednsextendederror.hh ednsoptions.cc ednsoptions.hh \ ednssubnet.cc ednssubnet.hh ext/json11/json11.cpp \ ext/json11/json11.hpp ext/libbpf/libbpf.h \ ext/luawrapper/include/LuaContext.hpp fstrm_logger.cc \ fstrm_logger.hh gettime.cc gettime.hh htmlfiles.h iputils.cc \ - iputils.hh libssl.cc libssl.hh lock.hh logging.hh misc.cc \ - misc.hh mplexer.hh namespaces.hh noinitvector.hh \ - packetcache.hh pdnsexception.hh pollmplexer.cc protozero.cc \ + iputils.hh libssl.cc libssl.hh lock.hh logging.cc logging.hh \ + misc.cc misc.hh mplexer.hh namespaces.hh noinitvector.hh \ + packetcache.hh pdnsexception.hh pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh protozero.cc \ protozero.hh proxy-protocol.cc proxy-protocol.hh qtype.cc \ - qtype.hh remote_logger.cc remote_logger.hh sholder.hh \ - snmp-agent.cc snmp-agent.hh sstuff.hh stat_t.hh statnode.cc \ - statnode.hh svc-records.cc svc-records.hh \ + qtype.hh remote_logger.cc remote_logger.hh \ + remote_logger_pool.cc remote_logger_pool.hh sanitizer.hh \ + sholder.hh snmp-agent.cc snmp-agent.hh sstuff.hh stat_t.hh \ + statnode.cc statnode.hh svc-records.cc svc-records.hh \ tcpiohandler-mplexer.hh tcpiohandler.cc tcpiohandler.hh \ threadname.hh threadname.cc uuid-utils.hh uuid-utils.cc \ - views.hh xpf.cc xpf.hh xsk.cc xsk.hh cdb.cc cdb.hh ipcipher.cc \ - ipcipher.hh ext/lmdb-safe/lmdb-safe.cc \ - ext/lmdb-safe/lmdb-safe.hh doh.cc dnsdist-nghttp2-in.cc \ - dnsdist-nghttp2.cc doq.cc doh3.cc doq-common.cc \ - kqueuemplexer.cc epollmplexer.cc devpollmplexer.cc \ - portsmplexer.cc + views.hh xsk.cc xsk.hh cdb.cc cdb.hh ipcipher.cc ipcipher.hh \ + ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h \ + ext/ipcrypt2/softaes/untrinsics.h ext/lmdb-safe/lmdb-safe.cc \ + ext/lmdb-safe/lmdb-safe.hh dnsdist-nghttp2-in.cc \ + dnsdist-nghttp2.cc doq.cc doq-common.cc kqueuemplexer.cc \ + epollmplexer.cc devpollmplexer.cc portsmplexer.cc am__dirstamp = $(am__leading_dot)dirstamp @HAVE_CDB_TRUE@am__objects_1 = cdb.$(OBJEXT) @HAVE_LIBCRYPTO_TRUE@am__objects_2 = ipcipher.$(OBJEXT) -@HAVE_LMDB_TRUE@am__objects_3 = ext/lmdb-safe/lmdb-safe.$(OBJEXT) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBH2OEVLOOP_TRUE@am__objects_4 = doh.$(OBJEXT) +@HAVE_IPCRYPT2_TRUE@am__objects_3 = ext/ipcrypt2/ipcrypt2.$(OBJEXT) +@HAVE_LMDB_TRUE@am__objects_4 = ext/lmdb-safe/lmdb-safe.$(OBJEXT) @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__objects_5 = dnsdist-nghttp2-in.$(OBJEXT) \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ dnsdist-nghttp2.$(OBJEXT) @HAVE_DNS_OVER_QUIC_TRUE@am__objects_6 = doq.$(OBJEXT) -@HAVE_DNS_OVER_HTTP3_TRUE@am__objects_7 = doh3.$(OBJEXT) -@HAVE_QUICHE_TRUE@am__objects_8 = doq-common.$(OBJEXT) -@HAVE_FREEBSD_TRUE@am__objects_9 = kqueuemplexer.$(OBJEXT) -@HAVE_OPENBSD_TRUE@am__objects_10 = kqueuemplexer.$(OBJEXT) -@HAVE_LINUX_TRUE@am__objects_11 = epollmplexer.$(OBJEXT) -@HAVE_SOLARIS_TRUE@am__objects_12 = devpollmplexer.$(OBJEXT) \ +@HAVE_QUICHE_TRUE@am__objects_7 = doq-common.$(OBJEXT) +@HAVE_FREEBSD_TRUE@am__objects_8 = kqueuemplexer.$(OBJEXT) +@HAVE_OPENBSD_TRUE@am__objects_9 = kqueuemplexer.$(OBJEXT) +@HAVE_LINUX_TRUE@am__objects_10 = epollmplexer.$(OBJEXT) +@HAVE_SOLARIS_TRUE@am__objects_11 = devpollmplexer.$(OBJEXT) \ @HAVE_SOLARIS_TRUE@ portsmplexer.$(OBJEXT) am_dnsdist_OBJECTS = bpf-filter.$(OBJEXT) capabilities.$(OBJEXT) \ channel.$(OBJEXT) coverage.$(OBJEXT) credentials.$(OBJEXT) \ - dns.$(OBJEXT) dnscrypt.$(OBJEXT) dnsdist-async.$(OBJEXT) \ - dnsdist-backend.$(OBJEXT) dnsdist-cache.$(OBJEXT) \ - dnsdist-carbon.$(OBJEXT) dnsdist-console.$(OBJEXT) \ + dns.$(OBJEXT) dnscrypt.$(OBJEXT) \ + dnsdist-actions-factory.$(OBJEXT) dnsdist-actions.$(OBJEXT) \ + dnsdist-async.$(OBJEXT) dnsdist-backend.$(OBJEXT) \ + dnsdist-cache.$(OBJEXT) dnsdist-carbon.$(OBJEXT) \ + dnsdist-concurrent-connections.$(OBJEXT) \ + dnsdist-configuration-yaml.$(OBJEXT) \ + dnsdist-configuration.$(OBJEXT) \ + dnsdist-console-completion.$(OBJEXT) dnsdist-console.$(OBJEXT) \ dnsdist-crypto.$(OBJEXT) dnsdist-discovery.$(OBJEXT) \ dnsdist-dnscrypt.$(OBJEXT) dnsdist-dnsparser.$(OBJEXT) \ - dnsdist-doh-common.$(OBJEXT) dnsdist-dynblocks.$(OBJEXT) \ - dnsdist-dynbpf.$(OBJEXT) dnsdist-ecs.$(OBJEXT) \ - dnsdist-edns.$(OBJEXT) dnsdist-healthchecks.$(OBJEXT) \ - dnsdist-internal-queries.$(OBJEXT) dnsdist-kvs.$(OBJEXT) \ - dnsdist-lbpolicies.$(OBJEXT) dnsdist-lua-actions.$(OBJEXT) \ + dnsdist-dnsquestion.$(OBJEXT) dnsdist-doh-common.$(OBJEXT) \ + dnsdist-dynblocks.$(OBJEXT) dnsdist-dynbpf.$(OBJEXT) \ + dnsdist-ecs.$(OBJEXT) dnsdist-edns.$(OBJEXT) \ + dnsdist-frontend.$(OBJEXT) dnsdist-healthchecks.$(OBJEXT) \ + dnsdist-idstate.$(OBJEXT) dnsdist-internal-queries.$(OBJEXT) \ + dnsdist-ipcrypt2.$(OBJEXT) dnsdist-kvs.$(OBJEXT) \ + dnsdist-lbpolicies.$(OBJEXT) dnsdist-logging.$(OBJEXT) \ + dnsdist-lua-actions.$(OBJEXT) \ dnsdist-lua-bindings-dnscrypt.$(OBJEXT) \ dnsdist-lua-bindings-dnsparser.$(OBJEXT) \ dnsdist-lua-bindings-dnsquestion.$(OBJEXT) \ @@ -339,38 +376,45 @@ dnsdist-lua-bindings-packetcache.$(OBJEXT) \ dnsdist-lua-bindings-protobuf.$(OBJEXT) \ dnsdist-lua-bindings-rings.$(OBJEXT) \ - dnsdist-lua-bindings.$(OBJEXT) dnsdist-lua-ffi.$(OBJEXT) \ - dnsdist-lua-hooks.$(OBJEXT) \ + dnsdist-lua-bindings.$(OBJEXT) \ + dnsdist-lua-configuration-items.$(OBJEXT) \ + dnsdist-lua-ffi.$(OBJEXT) dnsdist-lua-hooks.$(OBJEXT) \ dnsdist-lua-inspection-ffi.$(OBJEXT) \ dnsdist-lua-inspection.$(OBJEXT) dnsdist-lua-network.$(OBJEXT) \ dnsdist-lua-rules.$(OBJEXT) dnsdist-lua-vars.$(OBJEXT) \ dnsdist-lua-web.$(OBJEXT) dnsdist-lua.$(OBJEXT) \ dnsdist-mac-address.$(OBJEXT) dnsdist-metrics.$(OBJEXT) \ - dnsdist-protobuf.$(OBJEXT) dnsdist-protocols.$(OBJEXT) \ - dnsdist-proxy-protocol.$(OBJEXT) dnsdist-random.$(OBJEXT) \ + dnsdist-opentelemetry.$(OBJEXT) dnsdist-protobuf.$(OBJEXT) \ + dnsdist-protocols.$(OBJEXT) dnsdist-proxy-protocol.$(OBJEXT) \ + dnsdist-query-count.$(OBJEXT) dnsdist-random.$(OBJEXT) \ dnsdist-resolver.$(OBJEXT) dnsdist-rings.$(OBJEXT) \ - dnsdist-rules.$(OBJEXT) dnsdist-secpoll.$(OBJEXT) \ + dnsdist-rule-chains.$(OBJEXT) dnsdist-rules.$(OBJEXT) \ + dnsdist-secpoll.$(OBJEXT) dnsdist-self-answers.$(OBJEXT) \ dnsdist-session-cache.$(OBJEXT) dnsdist-snmp.$(OBJEXT) \ dnsdist-svc.$(OBJEXT) dnsdist-systemd.$(OBJEXT) \ dnsdist-tcp-downstream.$(OBJEXT) dnsdist-tcp.$(OBJEXT) \ - dnsdist-web.$(OBJEXT) dnsdist-xpf.$(OBJEXT) \ + dnsdist-udp.$(OBJEXT) dnsdist-web.$(OBJEXT) \ dnsdist-xsk.$(OBJEXT) dnsdist.$(OBJEXT) dnslabeltext.$(OBJEXT) \ dnsname.$(OBJEXT) dnsparser.$(OBJEXT) dnstap.$(OBJEXT) \ - dnswriter.$(OBJEXT) dolog.$(OBJEXT) ednscookies.$(OBJEXT) \ - ednsextendederror.$(OBJEXT) ednsoptions.$(OBJEXT) \ - ednssubnet.$(OBJEXT) ext/json11/json11.$(OBJEXT) \ - fstrm_logger.$(OBJEXT) gettime.$(OBJEXT) iputils.$(OBJEXT) \ - libssl.$(OBJEXT) misc.$(OBJEXT) pollmplexer.$(OBJEXT) \ - protozero.$(OBJEXT) proxy-protocol.$(OBJEXT) qtype.$(OBJEXT) \ - remote_logger.$(OBJEXT) snmp-agent.$(OBJEXT) \ - statnode.$(OBJEXT) svc-records.$(OBJEXT) \ + dnswriter.$(OBJEXT) doh3.$(OBJEXT) dolog.$(OBJEXT) \ + ednscookies.$(OBJEXT) ednsextendederror.$(OBJEXT) \ + ednsoptions.$(OBJEXT) ednssubnet.$(OBJEXT) \ + ext/json11/json11.$(OBJEXT) fstrm_logger.$(OBJEXT) \ + gettime.$(OBJEXT) iputils.$(OBJEXT) libssl.$(OBJEXT) \ + logging.$(OBJEXT) misc.$(OBJEXT) pollmplexer.$(OBJEXT) \ + protozero-trace.$(OBJEXT) protozero.$(OBJEXT) \ + proxy-protocol.$(OBJEXT) qtype.$(OBJEXT) \ + remote_logger.$(OBJEXT) remote_logger_pool.$(OBJEXT) \ + snmp-agent.$(OBJEXT) statnode.$(OBJEXT) svc-records.$(OBJEXT) \ tcpiohandler.$(OBJEXT) threadname.$(OBJEXT) \ - uuid-utils.$(OBJEXT) xpf.$(OBJEXT) xsk.$(OBJEXT) \ - $(am__objects_1) $(am__objects_2) $(am__objects_3) \ - $(am__objects_4) $(am__objects_5) $(am__objects_6) \ - $(am__objects_7) $(am__objects_8) $(am__objects_9) \ - $(am__objects_10) $(am__objects_11) $(am__objects_12) -nodist_dnsdist_OBJECTS = + uuid-utils.$(OBJEXT) xsk.$(OBJEXT) $(am__objects_1) \ + $(am__objects_2) $(am__objects_3) $(am__objects_4) \ + $(am__objects_5) $(am__objects_6) $(am__objects_7) \ + $(am__objects_8) $(am__objects_9) $(am__objects_10) \ + $(am__objects_11) +@HAVE_YAML_CONFIGURATION_TRUE@am__objects_12 = dnsdist-configuration-yaml-items-generated.$(OBJEXT) +am__objects_13 = +nodist_dnsdist_OBJECTS = $(am__objects_12) $(am__objects_13) dnsdist_OBJECTS = $(am_dnsdist_OBJECTS) $(nodist_dnsdist_OBJECTS) am__DEPENDENCIES_1 = @HAVE_CDB_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @@ -381,9 +425,13 @@ @HAVE_LMDB_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1) @HAVE_DNS_OVER_TLS_TRUE@@HAVE_GNUTLS_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1) @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_GNUTLS_TRUE@am__DEPENDENCIES_8 = $(am__DEPENDENCIES_1) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_LIBH2OEVLOOP_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_1) -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__DEPENDENCIES_10 = $(am__DEPENDENCIES_1) -@HAVE_QUICHE_TRUE@am__DEPENDENCIES_11 = $(am__DEPENDENCIES_1) +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_1) +@HAVE_QUICHE_TRUE@am__DEPENDENCIES_10 = $(am__DEPENDENCIES_1) +am__DEPENDENCIES_11 = \ + $(top_builddir)/dnsdist-rust-lib/rust/libdnsdist_rust.a \ + $(am__DEPENDENCIES_1) +@HAVE_YAML_CONFIGURATION_TRUE@am__DEPENDENCIES_12 = \ +@HAVE_YAML_CONFIGURATION_TRUE@ $(am__DEPENDENCIES_11) dnsdist_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @@ -394,7 +442,7 @@ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_5) \ $(am__DEPENDENCIES_6) $(am__DEPENDENCIES_7) \ $(am__DEPENDENCIES_8) $(am__DEPENDENCIES_9) \ - $(am__DEPENDENCIES_10) $(am__DEPENDENCIES_11) + $(am__DEPENDENCIES_10) $(am__DEPENDENCIES_12) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent @@ -403,29 +451,48 @@ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(dnsdist_LDFLAGS) $(LDFLAGS) -o $@ am__fuzz_target_dnsdistcache_SOURCES_DIST = channel.hh channel.cc \ - dns.cc dns.hh dnsdist-cache.cc dnsdist-cache.hh \ - dnsdist-dnsparser.cc dnsdist-dnsparser.hh dnsdist-ecs.cc \ - dnsdist-ecs.hh dnsdist-idstate.hh dnsdist-protocols.cc \ + dns.cc dns.hh dnscrypt.cc dnscrypt.hh dnsdist-cache.cc \ + dnsdist-cache.hh dnsdist-configuration.cc \ + dnsdist-configuration.hh dnsdist-crypto.cc dnsdist-crypto.hh \ + dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc dnsdist-ecs.cc dnsdist-ecs.hh \ + dnsdist-idstate.cc dnsdist-idstate.hh dnsdist-logging.cc \ + dnsdist-logging.hh dnsdist-opentelemetry.cc \ + dnsdist-opentelemetry.hh dnsdist-protocols.cc \ dnsdist-protocols.hh dnslabeltext.cc dnsname.cc dnsname.hh \ - dnsparser.cc dnsparser.hh dnswriter.cc dnswriter.hh doh.hh \ - ednsoptions.cc ednsoptions.hh ednssubnet.cc ednssubnet.hh \ - fuzz_dnsdistcache.cc iputils.cc iputils.hh misc.cc misc.hh \ - packetcache.hh qtype.cc qtype.hh svc-records.cc svc-records.hh + dnsparser.cc dnsparser.hh dnswriter.cc dnswriter.hh dolog.cc \ + dolog.hh ednsoptions.cc ednsoptions.hh ednssubnet.cc \ + ednssubnet.hh ext/json11/json11.cpp ext/json11/json11.hpp \ + fuzz_dnsdistcache.cc gettime.cc gettime.hh iputils.cc \ + iputils.hh logging.cc logging.hh misc.cc misc.hh \ + packetcache.hh protozero-trace.cc protozero-trace.hh qtype.cc \ + qtype.hh svc-records.cc svc-records.hh @FUZZ_TARGETS_TRUE@am_fuzz_target_dnsdistcache_OBJECTS = \ @FUZZ_TARGETS_TRUE@ channel.$(OBJEXT) dns.$(OBJEXT) \ -@FUZZ_TARGETS_TRUE@ dnsdist-cache.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnscrypt.$(OBJEXT) dnsdist-cache.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-configuration.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-crypto.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ dnsdist-dnsparser.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-dnsquestion.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ dnsdist-ecs.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-idstate.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-logging.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dnsdist-opentelemetry.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ dnsdist-protocols.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ dnslabeltext.$(OBJEXT) dnsname.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ dnsparser.$(OBJEXT) dnswriter.$(OBJEXT) \ -@FUZZ_TARGETS_TRUE@ ednsoptions.$(OBJEXT) ednssubnet.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ dolog.$(OBJEXT) ednsoptions.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ ednssubnet.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ ext/json11/json11.$(OBJEXT) \ @FUZZ_TARGETS_TRUE@ fuzz_dnsdistcache.$(OBJEXT) \ -@FUZZ_TARGETS_TRUE@ iputils.$(OBJEXT) misc.$(OBJEXT) \ -@FUZZ_TARGETS_TRUE@ qtype.$(OBJEXT) svc-records.$(OBJEXT) +@FUZZ_TARGETS_TRUE@ gettime.$(OBJEXT) iputils.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ logging.$(OBJEXT) misc.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ protozero-trace.$(OBJEXT) qtype.$(OBJEXT) \ +@FUZZ_TARGETS_TRUE@ svc-records.$(OBJEXT) fuzz_target_dnsdistcache_OBJECTS = \ $(am_fuzz_target_dnsdistcache_OBJECTS) -@FUZZ_TARGETS_TRUE@am__DEPENDENCIES_12 = $(am__DEPENDENCIES_1) \ +@FUZZ_TARGETS_TRUE@am__DEPENDENCIES_13 = $(am__DEPENDENCIES_1) \ +@FUZZ_TARGETS_TRUE@ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @FUZZ_TARGETS_TRUE@ $(am__DEPENDENCIES_1) fuzz_target_dnsdistcache_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ @@ -449,99 +516,131 @@ am__testrunner_SOURCES_DIST = base64.hh bpf-filter.cc bpf-filter.hh \ cachecleaner.hh channel.cc channel.hh circular_buffer.hh \ connection-management.hh credentials.cc credentials.hh dns.cc \ - dns.hh dnscrypt.cc dnscrypt.hh dnsdist-async.cc \ - dnsdist-async.hh dnsdist-backend.cc dnsdist-backoff.hh \ + dns.hh dnscrypt.cc dnscrypt.hh dnsdist-actions.cc \ + dnsdist-actions.hh dnsdist-async.cc dnsdist-async.hh \ + dnsdist-backend.cc dnsdist-backend.hh dnsdist-backoff.hh \ dnsdist-cache.cc dnsdist-cache.hh \ - dnsdist-concurrent-connections.hh dnsdist-crypto.cc \ - dnsdist-crypto.hh dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ - dnsdist-doh-common.cc dnsdist-doh-common.hh \ - dnsdist-downstream-connection.hh dnsdist-dynblocks.cc \ - dnsdist-dynblocks.hh dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ - dnsdist-ecs.cc dnsdist-ecs.hh dnsdist-edns.cc dnsdist-edns.hh \ - dnsdist-idstate.hh dnsdist-kvs.cc dnsdist-kvs.hh \ - dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-concurrent-connections.cc \ + dnsdist-concurrent-connections.hh dnsdist-configuration.cc \ + dnsdist-configuration.hh dnsdist-crypto.cc dnsdist-crypto.hh \ + dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc dnsdist-doh-common.cc \ + dnsdist-doh-common.hh dnsdist-downstream-connection.hh \ + dnsdist-dynblocks.cc dnsdist-dynblocks.hh dnsdist-dynbpf.cc \ + dnsdist-dynbpf.hh dnsdist-ecs.cc dnsdist-ecs.hh \ + dnsdist-edns.cc dnsdist-edns.hh dnsdist-frontend.cc \ + dnsdist-frontend.hh dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh dnsdist-kvs.cc \ + dnsdist-kvs.hh dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh \ dnsdist-lua-bindings-dnsquestion.cc \ dnsdist-lua-bindings-kvs.cc dnsdist-lua-bindings.cc \ dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ - dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh dnsdist-lua-network.cc \ - dnsdist-lua-network.hh dnsdist-lua-vars.cc \ - dnsdist-mac-address.cc dnsdist-mac-address.hh \ - dnsdist-metrics.cc dnsdist-metrics.hh dnsdist-nghttp2-in.hh \ - dnsdist-nghttp2.hh dnsdist-protocols.cc dnsdist-protocols.hh \ + dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh \ + dnsdist-lua-inspection-ffi.cc dnsdist-lua-inspection-ffi.h \ + dnsdist-lua-network.cc dnsdist-lua-network.hh \ + dnsdist-lua-vars.cc dnsdist-mac-address.cc \ + dnsdist-mac-address.hh dnsdist-metrics.cc dnsdist-metrics.hh \ + dnsdist-nghttp2-in.hh dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ + dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ dnsdist-random.cc dnsdist-random.hh dnsdist-resolver.cc \ dnsdist-resolver.hh dnsdist-rings.cc dnsdist-rings.hh \ - dnsdist-rules.cc dnsdist-rules.hh dnsdist-session-cache.cc \ - dnsdist-session-cache.hh dnsdist-svc.cc dnsdist-svc.hh \ - dnsdist-tcp-downstream.cc dnsdist-tcp.cc dnsdist-tcp.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh dnsdist-xsk.cc dnsdist-xsk.hh \ - dnsdist.hh dnslabeltext.cc dnsname.cc dnsname.hh dnsparser.hh \ - dnsparser.cc dnswriter.cc dnswriter.hh dolog.cc dolog.hh \ - ednscookies.cc ednscookies.hh ednsextendederror.cc \ - ednsextendederror.hh ednsoptions.cc ednsoptions.hh \ - ednssubnet.cc ednssubnet.hh \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh dnsdist-rules.cc dnsdist-rules.hh \ + dnsdist-self-answers.cc dnsdist-self-answers.hh \ + dnsdist-session-cache.cc dnsdist-session-cache.hh \ + dnsdist-svc.cc dnsdist-svc.hh dnsdist-tcp-downstream.cc \ + dnsdist-tcp.cc dnsdist-tcp.hh dnsdist-udp.cc dnsdist-udp.hh \ + dnsdist-xsk.cc dnsdist-xsk.hh dnsdist.hh dnslabeltext.cc \ + dnsname.cc dnsname.hh dnsparser.hh dnsparser.cc dnswriter.cc \ + dnswriter.hh doh3.cc doh3.hh dolog.cc dolog.hh ednscookies.cc \ + ednscookies.hh ednsextendederror.cc ednsextendederror.hh \ + ednsoptions.cc ednsoptions.hh ednssubnet.cc ednssubnet.hh \ + ext/json11/json11.cpp ext/json11/json11.hpp \ ext/luawrapper/include/LuaContext.hpp gettime.cc gettime.hh \ - iputils.cc iputils.hh misc.cc misc.hh namespaces.hh \ - noinitvector.hh pdnsexception.hh pollmplexer.cc \ - proxy-protocol.cc proxy-protocol.hh qtype.cc qtype.hh \ - sholder.hh sstuff.hh stat_t.hh statnode.cc statnode.hh \ - svc-records.cc svc-records.hh test-base64_cc.cc \ + iputils.cc iputils.hh logging.cc logging.hh misc.cc misc.hh \ + namespaces.hh noinitvector.hh pdnsexception.hh pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh protozero.cc \ + protozero.hh proxy-protocol.cc proxy-protocol.hh qtype.cc \ + qtype.hh sholder.hh sstuff.hh stat_t.hh statnode.cc \ + statnode.hh svc-records.cc svc-records.hh test-base64_cc.cc \ test-channel.cc test-connectionmanagement_hh.cc \ - test-credentials_cc.cc test-delaypipe_hh.cc \ - test-dnscrypt_cc.cc test-dnsdist-connections-cache.cc \ - test-dnsdist-dnsparser.cc test-dnsdist-lua-ffi.cc \ - test-dnsdist_cc.cc test-dnsdistasync.cc \ + test-credentials_cc.cc test-delaypipe_hh.cc test-dns_cc.cc \ + test-dnscrypt_cc.cc test-dnsdist-concurrent-connections.cc \ + test-dnsdist-connections-cache.cc test-dnsdist-dnsparser.cc \ + test-dnsdist-ipcrypt2_cc.cc test-dnsdist-lua-ffi.cc \ + test-dnsdist-opentelemetry_cc.cc test-dnsdist-session-cache.cc \ + test-dnsdist-xsk.cc test-dnsdist_cc.cc test-dnsdistasync.cc \ test-dnsdistbackend_cc.cc test-dnsdistbackoff.cc \ test-dnsdistdynblocks_hh.cc test-dnsdistedns.cc \ test-dnsdistkvs_cc.cc test-dnsdistlbpolicies_cc.cc \ test-dnsdistluanetwork.cc test-dnsdistnghttp2_common.hh \ test-dnsdistpacketcache_cc.cc test-dnsdistrings_cc.cc \ - test-dnsdistrules_cc.cc test-dnsdistsvc_cc.cc \ - test-dnsdisttcp_cc.cc test-dnsparser_cc.cc test-iputils_hh.cc \ - test-luawrapper.cc test-mplexer.cc test-proxy_protocol_cc.cc \ + test-dnsdistrules_cc.cc test-dnsdistserverpool.cc \ + test-dnsdistsvc_cc.cc test-dnsdisttcp_cc.cc \ + test-dnsparser_cc.cc test-iputils_hh.cc test-luawrapper.cc \ + test-mplexer.cc test-proxy_protocol_cc.cc test-sholder_hh.cc \ testrunner.cc threadname.hh threadname.cc uuid-utils.hh \ - uuid-utils.cc xpf.cc xpf.hh xsk.cc xsk.hh cdb.cc cdb.hh \ - ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh \ - dnsdist-nghttp2-in.cc dnsdist-nghttp2.cc \ - test-dnsdistnghttp2-in_cc.cc test-dnsdistnghttp2_cc.cc \ - kqueuemplexer.cc epollmplexer.cc devpollmplexer.cc \ - portsmplexer.cc -@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__objects_13 = dnsdist-nghttp2-in.$(OBJEXT) \ + uuid-utils.cc xsk.cc xsk.hh cdb.cc cdb.hh \ + ext/ipcrypt2/ipcrypt2.c ext/ipcrypt2/include/ipcrypt2.h \ + ext/ipcrypt2/softaes/untrinsics.h ext/lmdb-safe/lmdb-safe.cc \ + ext/lmdb-safe/lmdb-safe.hh dnsdist-nghttp2-in.cc \ + dnsdist-nghttp2.cc test-dnsdistnghttp2-in_cc.cc \ + test-dnsdistnghttp2_cc.cc doq-common.cc kqueuemplexer.cc \ + epollmplexer.cc devpollmplexer.cc portsmplexer.cc +@HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@am__objects_14 = dnsdist-nghttp2-in.$(OBJEXT) \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ dnsdist-nghttp2.$(OBJEXT) \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ test-dnsdistnghttp2-in_cc.$(OBJEXT) \ @HAVE_DNS_OVER_HTTPS_TRUE@@HAVE_NGHTTP2_TRUE@ test-dnsdistnghttp2_cc.$(OBJEXT) am_testrunner_OBJECTS = bpf-filter.$(OBJEXT) channel.$(OBJEXT) \ credentials.$(OBJEXT) dns.$(OBJEXT) dnscrypt.$(OBJEXT) \ - dnsdist-async.$(OBJEXT) dnsdist-backend.$(OBJEXT) \ - dnsdist-cache.$(OBJEXT) dnsdist-crypto.$(OBJEXT) \ - dnsdist-dnsparser.$(OBJEXT) dnsdist-doh-common.$(OBJEXT) \ - dnsdist-dynblocks.$(OBJEXT) dnsdist-dynbpf.$(OBJEXT) \ - dnsdist-ecs.$(OBJEXT) dnsdist-edns.$(OBJEXT) \ + dnsdist-actions.$(OBJEXT) dnsdist-async.$(OBJEXT) \ + dnsdist-backend.$(OBJEXT) dnsdist-cache.$(OBJEXT) \ + dnsdist-concurrent-connections.$(OBJEXT) \ + dnsdist-configuration.$(OBJEXT) dnsdist-crypto.$(OBJEXT) \ + dnsdist-dnsparser.$(OBJEXT) dnsdist-dnsquestion.$(OBJEXT) \ + dnsdist-doh-common.$(OBJEXT) dnsdist-dynblocks.$(OBJEXT) \ + dnsdist-dynbpf.$(OBJEXT) dnsdist-ecs.$(OBJEXT) \ + dnsdist-edns.$(OBJEXT) dnsdist-frontend.$(OBJEXT) \ + dnsdist-idstate.$(OBJEXT) dnsdist-ipcrypt2.$(OBJEXT) \ dnsdist-kvs.$(OBJEXT) dnsdist-lbpolicies.$(OBJEXT) \ + dnsdist-logging.$(OBJEXT) \ dnsdist-lua-bindings-dnsquestion.$(OBJEXT) \ dnsdist-lua-bindings-kvs.$(OBJEXT) \ dnsdist-lua-bindings.$(OBJEXT) dnsdist-lua-ffi.$(OBJEXT) \ + dnsdist-lua-inspection-ffi.$(OBJEXT) \ dnsdist-lua-network.$(OBJEXT) dnsdist-lua-vars.$(OBJEXT) \ dnsdist-mac-address.$(OBJEXT) dnsdist-metrics.$(OBJEXT) \ - dnsdist-protocols.$(OBJEXT) dnsdist-proxy-protocol.$(OBJEXT) \ - dnsdist-random.$(OBJEXT) dnsdist-resolver.$(OBJEXT) \ - dnsdist-rings.$(OBJEXT) dnsdist-rules.$(OBJEXT) \ - dnsdist-session-cache.$(OBJEXT) dnsdist-svc.$(OBJEXT) \ - dnsdist-tcp-downstream.$(OBJEXT) dnsdist-tcp.$(OBJEXT) \ - dnsdist-xpf.$(OBJEXT) dnsdist-xsk.$(OBJEXT) \ - dnslabeltext.$(OBJEXT) dnsname.$(OBJEXT) dnsparser.$(OBJEXT) \ - dnswriter.$(OBJEXT) dolog.$(OBJEXT) ednscookies.$(OBJEXT) \ + dnsdist-opentelemetry.$(OBJEXT) dnsdist-protocols.$(OBJEXT) \ + dnsdist-proxy-protocol.$(OBJEXT) dnsdist-random.$(OBJEXT) \ + dnsdist-resolver.$(OBJEXT) dnsdist-rings.$(OBJEXT) \ + dnsdist-rule-chains.$(OBJEXT) dnsdist-rules.$(OBJEXT) \ + dnsdist-self-answers.$(OBJEXT) dnsdist-session-cache.$(OBJEXT) \ + dnsdist-svc.$(OBJEXT) dnsdist-tcp-downstream.$(OBJEXT) \ + dnsdist-tcp.$(OBJEXT) dnsdist-udp.$(OBJEXT) \ + dnsdist-xsk.$(OBJEXT) dnslabeltext.$(OBJEXT) dnsname.$(OBJEXT) \ + dnsparser.$(OBJEXT) dnswriter.$(OBJEXT) doh3.$(OBJEXT) \ + dolog.$(OBJEXT) ednscookies.$(OBJEXT) \ ednsextendederror.$(OBJEXT) ednsoptions.$(OBJEXT) \ - ednssubnet.$(OBJEXT) gettime.$(OBJEXT) iputils.$(OBJEXT) \ - misc.$(OBJEXT) pollmplexer.$(OBJEXT) proxy-protocol.$(OBJEXT) \ - qtype.$(OBJEXT) statnode.$(OBJEXT) svc-records.$(OBJEXT) \ + ednssubnet.$(OBJEXT) ext/json11/json11.$(OBJEXT) \ + gettime.$(OBJEXT) iputils.$(OBJEXT) logging.$(OBJEXT) \ + misc.$(OBJEXT) pollmplexer.$(OBJEXT) protozero-trace.$(OBJEXT) \ + protozero.$(OBJEXT) proxy-protocol.$(OBJEXT) qtype.$(OBJEXT) \ + statnode.$(OBJEXT) svc-records.$(OBJEXT) \ test-base64_cc.$(OBJEXT) test-channel.$(OBJEXT) \ test-connectionmanagement_hh.$(OBJEXT) \ test-credentials_cc.$(OBJEXT) test-delaypipe_hh.$(OBJEXT) \ - test-dnscrypt_cc.$(OBJEXT) \ + test-dns_cc.$(OBJEXT) test-dnscrypt_cc.$(OBJEXT) \ + test-dnsdist-concurrent-connections.$(OBJEXT) \ test-dnsdist-connections-cache.$(OBJEXT) \ test-dnsdist-dnsparser.$(OBJEXT) \ - test-dnsdist-lua-ffi.$(OBJEXT) test-dnsdist_cc.$(OBJEXT) \ + test-dnsdist-ipcrypt2_cc.$(OBJEXT) \ + test-dnsdist-lua-ffi.$(OBJEXT) \ + test-dnsdist-opentelemetry_cc.$(OBJEXT) \ + test-dnsdist-session-cache.$(OBJEXT) \ + test-dnsdist-xsk.$(OBJEXT) test-dnsdist_cc.$(OBJEXT) \ test-dnsdistasync.$(OBJEXT) test-dnsdistbackend_cc.$(OBJEXT) \ test-dnsdistbackoff.$(OBJEXT) \ test-dnsdistdynblocks_hh.$(OBJEXT) test-dnsdistedns.$(OBJEXT) \ @@ -550,21 +649,24 @@ test-dnsdistluanetwork.$(OBJEXT) \ test-dnsdistpacketcache_cc.$(OBJEXT) \ test-dnsdistrings_cc.$(OBJEXT) test-dnsdistrules_cc.$(OBJEXT) \ - test-dnsdistsvc_cc.$(OBJEXT) test-dnsdisttcp_cc.$(OBJEXT) \ - test-dnsparser_cc.$(OBJEXT) test-iputils_hh.$(OBJEXT) \ - test-luawrapper.$(OBJEXT) test-mplexer.$(OBJEXT) \ - test-proxy_protocol_cc.$(OBJEXT) testrunner.$(OBJEXT) \ - threadname.$(OBJEXT) uuid-utils.$(OBJEXT) xpf.$(OBJEXT) \ - xsk.$(OBJEXT) $(am__objects_1) $(am__objects_3) \ - $(am__objects_13) $(am__objects_9) $(am__objects_10) \ - $(am__objects_11) $(am__objects_12) + test-dnsdistserverpool.$(OBJEXT) test-dnsdistsvc_cc.$(OBJEXT) \ + test-dnsdisttcp_cc.$(OBJEXT) test-dnsparser_cc.$(OBJEXT) \ + test-iputils_hh.$(OBJEXT) test-luawrapper.$(OBJEXT) \ + test-mplexer.$(OBJEXT) test-proxy_protocol_cc.$(OBJEXT) \ + test-sholder_hh.$(OBJEXT) testrunner.$(OBJEXT) \ + threadname.$(OBJEXT) uuid-utils.$(OBJEXT) xsk.$(OBJEXT) \ + $(am__objects_1) $(am__objects_3) $(am__objects_4) \ + $(am__objects_14) $(am__objects_7) $(am__objects_8) \ + $(am__objects_9) $(am__objects_10) $(am__objects_11) testrunner_OBJECTS = $(am_testrunner_OBJECTS) testrunner_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_5) \ - $(am__DEPENDENCIES_6) $(am__DEPENDENCIES_10) + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \ + $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_6) \ + $(am__DEPENDENCIES_9) $(am__DEPENDENCIES_10) testrunner_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(testrunner_LDFLAGS) $(LDFLAGS) -o $@ @@ -588,18 +690,30 @@ ./$(DEPDIR)/channel.Po ./$(DEPDIR)/coverage.Po \ ./$(DEPDIR)/credentials.Po ./$(DEPDIR)/devpollmplexer.Po \ ./$(DEPDIR)/dns.Po ./$(DEPDIR)/dnscrypt.Po \ - ./$(DEPDIR)/dnsdist-async.Po ./$(DEPDIR)/dnsdist-backend.Po \ - ./$(DEPDIR)/dnsdist-cache.Po ./$(DEPDIR)/dnsdist-carbon.Po \ + ./$(DEPDIR)/dnsdist-actions-factory.Po \ + ./$(DEPDIR)/dnsdist-actions.Po ./$(DEPDIR)/dnsdist-async.Po \ + ./$(DEPDIR)/dnsdist-backend.Po ./$(DEPDIR)/dnsdist-cache.Po \ + ./$(DEPDIR)/dnsdist-carbon.Po \ + ./$(DEPDIR)/dnsdist-concurrent-connections.Po \ + ./$(DEPDIR)/dnsdist-configuration-yaml-items-generated.Po \ + ./$(DEPDIR)/dnsdist-configuration-yaml.Po \ + ./$(DEPDIR)/dnsdist-configuration.Po \ + ./$(DEPDIR)/dnsdist-console-completion.Po \ ./$(DEPDIR)/dnsdist-console.Po ./$(DEPDIR)/dnsdist-crypto.Po \ ./$(DEPDIR)/dnsdist-discovery.Po \ ./$(DEPDIR)/dnsdist-dnscrypt.Po \ ./$(DEPDIR)/dnsdist-dnsparser.Po \ + ./$(DEPDIR)/dnsdist-dnsquestion.Po \ ./$(DEPDIR)/dnsdist-doh-common.Po \ ./$(DEPDIR)/dnsdist-dynblocks.Po ./$(DEPDIR)/dnsdist-dynbpf.Po \ ./$(DEPDIR)/dnsdist-ecs.Po ./$(DEPDIR)/dnsdist-edns.Po \ + ./$(DEPDIR)/dnsdist-frontend.Po \ ./$(DEPDIR)/dnsdist-healthchecks.Po \ + ./$(DEPDIR)/dnsdist-idstate.Po \ ./$(DEPDIR)/dnsdist-internal-queries.Po \ - ./$(DEPDIR)/dnsdist-kvs.Po ./$(DEPDIR)/dnsdist-lbpolicies.Po \ + ./$(DEPDIR)/dnsdist-ipcrypt2.Po ./$(DEPDIR)/dnsdist-kvs.Po \ + ./$(DEPDIR)/dnsdist-lbpolicies.Po \ + ./$(DEPDIR)/dnsdist-logging.Po \ ./$(DEPDIR)/dnsdist-lua-actions.Po \ ./$(DEPDIR)/dnsdist-lua-bindings-dnscrypt.Po \ ./$(DEPDIR)/dnsdist-lua-bindings-dnsparser.Po \ @@ -610,6 +724,7 @@ ./$(DEPDIR)/dnsdist-lua-bindings-protobuf.Po \ ./$(DEPDIR)/dnsdist-lua-bindings-rings.Po \ ./$(DEPDIR)/dnsdist-lua-bindings.Po \ + ./$(DEPDIR)/dnsdist-lua-configuration-items.Po \ ./$(DEPDIR)/dnsdist-lua-ffi.Po \ ./$(DEPDIR)/dnsdist-lua-hooks.Po \ ./$(DEPDIR)/dnsdist-lua-inspection-ffi.Po \ @@ -620,22 +735,27 @@ ./$(DEPDIR)/dnsdist-lua.Po ./$(DEPDIR)/dnsdist-mac-address.Po \ ./$(DEPDIR)/dnsdist-metrics.Po \ ./$(DEPDIR)/dnsdist-nghttp2-in.Po \ - ./$(DEPDIR)/dnsdist-nghttp2.Po ./$(DEPDIR)/dnsdist-protobuf.Po \ + ./$(DEPDIR)/dnsdist-nghttp2.Po \ + ./$(DEPDIR)/dnsdist-opentelemetry.Po \ + ./$(DEPDIR)/dnsdist-protobuf.Po \ ./$(DEPDIR)/dnsdist-protocols.Po \ ./$(DEPDIR)/dnsdist-proxy-protocol.Po \ + ./$(DEPDIR)/dnsdist-query-count.Po \ ./$(DEPDIR)/dnsdist-random.Po ./$(DEPDIR)/dnsdist-resolver.Po \ - ./$(DEPDIR)/dnsdist-rings.Po ./$(DEPDIR)/dnsdist-rules.Po \ - ./$(DEPDIR)/dnsdist-secpoll.Po \ + ./$(DEPDIR)/dnsdist-rings.Po \ + ./$(DEPDIR)/dnsdist-rule-chains.Po \ + ./$(DEPDIR)/dnsdist-rules.Po ./$(DEPDIR)/dnsdist-secpoll.Po \ + ./$(DEPDIR)/dnsdist-self-answers.Po \ ./$(DEPDIR)/dnsdist-session-cache.Po \ ./$(DEPDIR)/dnsdist-snmp.Po ./$(DEPDIR)/dnsdist-svc.Po \ ./$(DEPDIR)/dnsdist-systemd.Po \ ./$(DEPDIR)/dnsdist-tcp-downstream.Po \ - ./$(DEPDIR)/dnsdist-tcp.Po ./$(DEPDIR)/dnsdist-web.Po \ - ./$(DEPDIR)/dnsdist-xpf.Po ./$(DEPDIR)/dnsdist-xsk.Po \ + ./$(DEPDIR)/dnsdist-tcp.Po ./$(DEPDIR)/dnsdist-udp.Po \ + ./$(DEPDIR)/dnsdist-web.Po ./$(DEPDIR)/dnsdist-xsk.Po \ ./$(DEPDIR)/dnsdist.Po ./$(DEPDIR)/dnslabeltext.Po \ ./$(DEPDIR)/dnsname.Po ./$(DEPDIR)/dnsparser.Po \ ./$(DEPDIR)/dnstap.Po ./$(DEPDIR)/dnswriter.Po \ - ./$(DEPDIR)/doh.Po ./$(DEPDIR)/doh3.Po ./$(DEPDIR)/dolog.Po \ + ./$(DEPDIR)/doh3.Po ./$(DEPDIR)/dolog.Po \ ./$(DEPDIR)/doq-common.Po ./$(DEPDIR)/doq.Po \ ./$(DEPDIR)/ednscookies.Po ./$(DEPDIR)/ednsextendederror.Po \ ./$(DEPDIR)/ednsoptions.Po ./$(DEPDIR)/ednssubnet.Po \ @@ -643,21 +763,27 @@ ./$(DEPDIR)/fuzz_dnsdistcache.Po ./$(DEPDIR)/fuzz_xsk.Po \ ./$(DEPDIR)/gettime.Po ./$(DEPDIR)/ipcipher.Po \ ./$(DEPDIR)/iputils.Po ./$(DEPDIR)/kqueuemplexer.Po \ - ./$(DEPDIR)/libssl.Po ./$(DEPDIR)/misc.Po \ - ./$(DEPDIR)/pollmplexer.Po ./$(DEPDIR)/portsmplexer.Po \ + ./$(DEPDIR)/libssl.Po ./$(DEPDIR)/logging.Po \ + ./$(DEPDIR)/misc.Po ./$(DEPDIR)/pollmplexer.Po \ + ./$(DEPDIR)/portsmplexer.Po ./$(DEPDIR)/protozero-trace.Po \ ./$(DEPDIR)/protozero.Po ./$(DEPDIR)/proxy-protocol.Po \ ./$(DEPDIR)/qtype.Po ./$(DEPDIR)/remote_logger.Po \ - ./$(DEPDIR)/snmp-agent.Po ./$(DEPDIR)/statnode.Po \ - ./$(DEPDIR)/svc-records.Po ./$(DEPDIR)/tcpiohandler.Po \ - ./$(DEPDIR)/test-base64_cc.Po ./$(DEPDIR)/test-channel.Po \ + ./$(DEPDIR)/remote_logger_pool.Po ./$(DEPDIR)/snmp-agent.Po \ + ./$(DEPDIR)/statnode.Po ./$(DEPDIR)/svc-records.Po \ + ./$(DEPDIR)/tcpiohandler.Po ./$(DEPDIR)/test-base64_cc.Po \ + ./$(DEPDIR)/test-channel.Po \ ./$(DEPDIR)/test-connectionmanagement_hh.Po \ ./$(DEPDIR)/test-credentials_cc.Po \ - ./$(DEPDIR)/test-delaypipe_hh.Po \ + ./$(DEPDIR)/test-delaypipe_hh.Po ./$(DEPDIR)/test-dns_cc.Po \ ./$(DEPDIR)/test-dnscrypt_cc.Po \ + ./$(DEPDIR)/test-dnsdist-concurrent-connections.Po \ ./$(DEPDIR)/test-dnsdist-connections-cache.Po \ ./$(DEPDIR)/test-dnsdist-dnsparser.Po \ + ./$(DEPDIR)/test-dnsdist-ipcrypt2_cc.Po \ ./$(DEPDIR)/test-dnsdist-lua-ffi.Po \ - ./$(DEPDIR)/test-dnsdist_cc.Po \ + ./$(DEPDIR)/test-dnsdist-opentelemetry_cc.Po \ + ./$(DEPDIR)/test-dnsdist-session-cache.Po \ + ./$(DEPDIR)/test-dnsdist-xsk.Po ./$(DEPDIR)/test-dnsdist_cc.Po \ ./$(DEPDIR)/test-dnsdistasync.Po \ ./$(DEPDIR)/test-dnsdistbackend_cc.Po \ ./$(DEPDIR)/test-dnsdistbackoff.Po \ @@ -671,35 +797,19 @@ ./$(DEPDIR)/test-dnsdistpacketcache_cc.Po \ ./$(DEPDIR)/test-dnsdistrings_cc.Po \ ./$(DEPDIR)/test-dnsdistrules_cc.Po \ + ./$(DEPDIR)/test-dnsdistserverpool.Po \ ./$(DEPDIR)/test-dnsdistsvc_cc.Po \ ./$(DEPDIR)/test-dnsdisttcp_cc.Po \ ./$(DEPDIR)/test-dnsparser_cc.Po \ ./$(DEPDIR)/test-iputils_hh.Po ./$(DEPDIR)/test-luawrapper.Po \ ./$(DEPDIR)/test-mplexer.Po \ ./$(DEPDIR)/test-proxy_protocol_cc.Po \ - ./$(DEPDIR)/testrunner.Po ./$(DEPDIR)/threadname.Po \ - ./$(DEPDIR)/uuid-utils.Po ./$(DEPDIR)/xpf.Po \ - ./$(DEPDIR)/xsk.Po ext/json11/$(DEPDIR)/json11.Po \ + ./$(DEPDIR)/test-sholder_hh.Po ./$(DEPDIR)/testrunner.Po \ + ./$(DEPDIR)/threadname.Po ./$(DEPDIR)/uuid-utils.Po \ + ./$(DEPDIR)/xsk.Po ext/ipcrypt2/$(DEPDIR)/ipcrypt2.Po \ + ext/json11/$(DEPDIR)/json11.Po \ ext/lmdb-safe/$(DEPDIR)/lmdb-safe.Po am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_@AM_V@) -am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) -am__v_CXX_0 = @echo " CXX " $@; -am__v_CXX_1 = -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) -am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) -am__v_CXXLD_0 = @echo " CXXLD " $@; -am__v_CXXLD_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ @@ -718,6 +828,24 @@ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = SOURCES = $(dnsdist_SOURCES) $(nodist_dnsdist_SOURCES) \ $(fuzz_target_dnsdistcache_SOURCES) $(fuzz_target_xsk_SOURCES) \ $(testrunner_SOURCES) @@ -760,10 +888,9 @@ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ + { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && echo $$files | $(am__xargs_n) 40 $(am__rm_f); }; \ } man1dir = $(mandir)/man1 NROFF = nroff @@ -904,6 +1031,7 @@ # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ + $$am__collect_skipped_logs \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the @@ -928,6 +1056,11 @@ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ +if test -n '$(IGNORE_SKIPPED_LOGS)'; then \ + am__collect_skipped_logs='--collect-skipped-logs no'; \ +else \ + am__collect_skipped_logs=''; \ +fi; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ @@ -973,7 +1106,8 @@ TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) -DIST_SUBDIRS = $(SUBDIRS) +DIST_SUBDIRS = dnsdist-rust-lib dnsdist-rust-lib/rust ext/arc4random \ + ext/ipcrypt ext/yahttp ext/ipcrypt2 am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \ $(srcdir)/config.h.in $(srcdir)/lua_hpp.mk COPYING README \ compile config.guess config.sub depcomp install-sh ltmain.sh \ @@ -983,8 +1117,8 @@ top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ + find "$(distdir)" -type d ! -perm -700 -exec chmod u+rwx {} ';' \ + ; rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) @@ -1013,7 +1147,7 @@ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" -GZIP_ENV = --best +GZIP_ENV = -9 DIST_ARCHIVES = $(distdir).tar.bz2 DIST_TARGETS = dist-bzip2 # Exists only to be overridden by the user if desired. @@ -1021,18 +1155,24 @@ distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -distcleancheck_listfiles = find . -type f -print +distcleancheck_listfiles = \ + find . \( -type f -a \! \ + \( -name .nfs* -o -name .smb* -o -name .__afs* \) \) -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_CPPFLAGS = @AM_CPPFLAGS@ $(SYSTEMD_CFLAGS) $(LUA_CFLAGS) \ $(LIBEDIT_CFLAGS) $(LIBSODIUM_CFLAGS) $(FSTRM_CFLAGS) \ $(YAHTTP_CFLAGS) $(NET_SNMP_CFLAGS) $(NGHTTP2_CFLAGS) \ - $(LIBCAP_CFLAGS) -I$(top_srcdir)/ext/protozero/include \ + $(LIBCAP_CFLAGS) $(IPCRYPT2_CFLAGS) \ + -I$(top_srcdir)/ext/protozero/include \ + -I$(top_srcdir)/dnsdist-rust-lib \ + -I$(top_builddir)/dnsdist-rust-lib \ + -I$(top_srcdir)/dnsdist-rust-lib/rust/src \ -DSYSCONFDIR=\"${sysconfdir}\" \ - -DBOOST_CONTAINER_USE_STD_EXCEPTIONS $(am__append_1) \ - $(am__append_2) $(am__append_3) $(am__append_4) \ - $(am__append_5) $(am__append_6) $(am__append_7) \ - $(am__append_8) $(am__append_9) $(am__append_35) + -DBOOST_CONTAINER_USE_STD_EXCEPTIONS $(am__append_2) \ + $(am__append_4) $(am__append_5) $(am__append_6) \ + $(am__append_7) $(am__append_8) $(am__append_9) \ + $(am__append_10) $(am__append_37) AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ ARC4RANDOM_LIBS = @ARC4RANDOM_LIBS@ @@ -1048,6 +1188,7 @@ BOOST_UNIT_TEST_FRAMEWORK_LIBS = @BOOST_UNIT_TEST_FRAMEWORK_LIBS@ BPF_CFLAGS = @BPF_CFLAGS@ BPF_LIBS = @BPF_LIBS@ +CARGO = @CARGO@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CDB_CFLAGS = @CDB_CFLAGS@ @@ -1087,6 +1228,8 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +IPCRYPT2_CFLAGS = @IPCRYPT2_CFLAGS@ +IPCRYPT2_LIBS = @IPCRYPT2_LIBS@ IPCRYPT_CFLAGS = @IPCRYPT_CFLAGS@ IPCRYPT_LIBS = @IPCRYPT_LIBS@ LD = @LD@ @@ -1096,10 +1239,9 @@ LIBCRYPTO_INCLUDES = @LIBCRYPTO_INCLUDES@ LIBCRYPTO_LDFLAGS = @LIBCRYPTO_LDFLAGS@ LIBCRYPTO_LIBS = @LIBCRYPTO_LIBS@ +LIBDL = @LIBDL@ LIBEDIT_CFLAGS = @LIBEDIT_CFLAGS@ LIBEDIT_LIBS = @LIBEDIT_LIBS@ -LIBH2OEVLOOP_CFLAGS = @LIBH2OEVLOOP_CFLAGS@ -LIBH2OEVLOOP_LIBS = @LIBH2OEVLOOP_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSODIUM_CFLAGS = @LIBSODIUM_CFLAGS@ @@ -1183,8 +1325,10 @@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__rm_f_notfound = @am__rm_f_notfound@ am__tar = @am__tar@ am__untar = @am__untar@ +am__xargs_n = @am__xargs_n@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -1214,6 +1358,7 @@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ +pdns_configure_args = @pdns_configure_args@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ @@ -1233,19 +1378,41 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ +AM_CXXFLAGS = $(am__append_3) +DNSDIST_RUST_LIBS = $(top_builddir)/dnsdist-rust-lib/rust/libdnsdist_rust.a $(LIBDL) ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = ext/arc4random \ - ext/ipcrypt \ - ext/yahttp - +SUBDIRS = dnsdist-rust-lib dnsdist-rust-lib/rust ext/arc4random \ + ext/ipcrypt ext/yahttp $(am__append_1) CLEANFILES = htmlfiles.h.tmp htmlfiles.h dnsdist-lua-ffi-interface.inc \ - lua.hpp $(am__append_49) + lua.hpp $(am__append_56) sysconf_DATA = dnsdist.conf-dist -BUILT_SOURCES = htmlfiles.h dnsdist-lua-ffi-interface.inc \ - dnslabeltext.cc $(am__append_38) +BUILT_SOURCES = htmlfiles.h dnsdist-actions-factory-generated-body.hh \ + dnsdist-actions-factory-generated.hh \ + dnsdist-lua-ffi-interface.inc \ + dnsdist-lua-actions-generated-body.hh \ + dnsdist-lua-response-actions-generated-body.hh \ + dnsdist-response-actions-factory-generated-body.hh \ + dnsdist-response-actions-factory-generated.hh \ + dnsdist-rust-bridge-actions-generated-body.hh \ + dnsdist-rust-bridge-actions-generated.hh \ + dnsdist-rust-bridge-selectors-generated-body.hh \ + dnsdist-rust-bridge-selectors-generated.hh \ + dnsdist-selectors-factory-generated-body.hh \ + dnsdist-selectors-factory-generated.hh dnslabeltext.cc \ + docs/reference/yaml-actions.rst \ + docs/reference/yaml-response-actions.rst \ + docs/reference/yaml-selectors.rst \ + docs/reference/yaml-settings.rst $(am__append_44) SRC_JS_FILES := $(wildcard src_js/*.js) MIN_JS_FILES := $(patsubst src_js/%.js,html/js/%.min.js,$(SRC_JS_FILES)) EXTRA_DIST = COPYING \ + dnsdist-rules-generator.py \ + dnsdist-settings-documentation-generator.py \ + dnsdist-actions-definitions.yml \ + dnsdist-response-actions-definitions.yml \ + dnsdist-rust-bridge.hh \ + dnsdist-selectors-definitions.yml \ + dnsdist-settings-definitions.yml \ dnslabeltext.rl \ dnsdist.conf-dist \ dnsmessage.proto \ @@ -1276,129 +1443,165 @@ cachecleaner.hh capabilities.cc capabilities.hh channel.cc \ channel.hh circular_buffer.hh connection-management.hh \ coverage.cc coverage.hh credentials.cc credentials.hh dns.cc \ - dns.hh dns_random.hh dnscrypt.cc dnscrypt.hh dnsdist-async.cc \ - dnsdist-async.hh dnsdist-backend.cc dnsdist-backoff.hh \ - dnsdist-cache.cc dnsdist-cache.hh dnsdist-carbon.cc \ - dnsdist-carbon.hh dnsdist-concurrent-connections.hh \ + dns.hh dns_random.hh dnscrypt.cc dnscrypt.hh \ + dnsdist-actions-factory.cc dnsdist-actions-factory.hh \ + dnsdist-actions.cc dnsdist-actions.hh dnsdist-async.cc \ + dnsdist-async.hh dnsdist-backend.cc dnsdist-backend.hh \ + dnsdist-backoff.hh dnsdist-cache.cc dnsdist-cache.hh \ + dnsdist-carbon.cc dnsdist-carbon.hh \ + dnsdist-concurrent-connections.cc \ + dnsdist-concurrent-connections.hh \ + dnsdist-configuration-yaml-internal.hh \ + dnsdist-configuration-yaml.cc dnsdist-configuration-yaml.hh \ + dnsdist-configuration.cc dnsdist-configuration.hh \ + dnsdist-console-completion.cc dnsdist-console-completion.hh \ dnsdist-console.cc dnsdist-console.hh dnsdist-crypto.cc \ dnsdist-crypto.hh dnsdist-discovery.cc dnsdist-discovery.hh \ dnsdist-dnscrypt.cc dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ - dnsdist-doh-common.cc dnsdist-doh-common.hh \ - dnsdist-downstream-connection.hh dnsdist-dynblocks.cc \ - dnsdist-dynblocks.hh dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ - dnsdist-ecs.cc dnsdist-ecs.hh dnsdist-edns.cc dnsdist-edns.hh \ - dnsdist-healthchecks.cc dnsdist-healthchecks.hh \ - dnsdist-idstate.hh dnsdist-internal-queries.cc \ - dnsdist-internal-queries.hh dnsdist-kvs.hh dnsdist-kvs.cc \ - dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ - dnsdist-lua-actions.cc dnsdist-lua-bindings-dnscrypt.cc \ + dnsdist-dnsquestion.cc dnsdist-doh-common.cc \ + dnsdist-doh-common.hh dnsdist-downstream-connection.hh \ + dnsdist-dynblocks.cc dnsdist-dynblocks.hh dnsdist-dynbpf.cc \ + dnsdist-dynbpf.hh dnsdist-ecs.cc dnsdist-ecs.hh \ + dnsdist-edns.cc dnsdist-edns.hh dnsdist-frontend.cc \ + dnsdist-frontend.hh dnsdist-healthchecks.cc \ + dnsdist-healthchecks.hh dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-internal-queries.cc dnsdist-internal-queries.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh dnsdist-kvs.hh \ + dnsdist-kvs.cc dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh dnsdist-lua-actions.cc \ + dnsdist-lua-bindings-dnscrypt.cc \ dnsdist-lua-bindings-dnsparser.cc \ dnsdist-lua-bindings-dnsquestion.cc \ dnsdist-lua-bindings-kvs.cc dnsdist-lua-bindings-network.cc \ dnsdist-lua-bindings-packetcache.cc \ dnsdist-lua-bindings-protobuf.cc dnsdist-lua-bindings-rings.cc \ - dnsdist-lua-bindings.cc dnsdist-lua-ffi-interface.h \ - dnsdist-lua-ffi-interface.inc dnsdist-lua-ffi.cc \ - dnsdist-lua-ffi.hh dnsdist-lua-hooks.cc dnsdist-lua-hooks.hh \ - dnsdist-lua-inspection-ffi.cc dnsdist-lua-inspection-ffi.h \ - dnsdist-lua-inspection.cc dnsdist-lua-network.cc \ - dnsdist-lua-network.hh dnsdist-lua-rules.cc \ - dnsdist-lua-vars.cc dnsdist-lua-web.cc dnsdist-lua.cc \ - dnsdist-lua.hh dnsdist-mac-address.cc dnsdist-mac-address.hh \ - dnsdist-metrics.cc dnsdist-metrics.hh dnsdist-nghttp2-in.hh \ - dnsdist-nghttp2.hh dnsdist-prometheus.hh dnsdist-protobuf.cc \ - dnsdist-protobuf.hh dnsdist-protocols.cc dnsdist-protocols.hh \ + dnsdist-lua-bindings.cc dnsdist-lua-configuration-items.cc \ + dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ + dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh dnsdist-lua-hooks.cc \ + dnsdist-lua-hooks.hh dnsdist-lua-inspection-ffi.cc \ + dnsdist-lua-inspection-ffi.h dnsdist-lua-inspection.cc \ + dnsdist-lua-network.cc dnsdist-lua-network.hh \ + dnsdist-lua-rules.cc dnsdist-lua-vars.cc dnsdist-lua-web.cc \ + dnsdist-lua.cc dnsdist-lua.hh dnsdist-mac-address.cc \ + dnsdist-mac-address.hh dnsdist-metrics.cc dnsdist-metrics.hh \ + dnsdist-nghttp2-in.hh dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ + dnsdist-prometheus.hh dnsdist-protobuf.cc dnsdist-protobuf.hh \ + dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ + dnsdist-query-count.hh dnsdist-query-count.cc \ dnsdist-random.cc dnsdist-random.hh dnsdist-resolver.cc \ dnsdist-resolver.hh dnsdist-rings.cc dnsdist-rings.hh \ - dnsdist-rules.cc dnsdist-rules.hh dnsdist-secpoll.cc \ - dnsdist-secpoll.hh dnsdist-session-cache.cc \ - dnsdist-session-cache.hh dnsdist-snmp.cc dnsdist-snmp.hh \ - dnsdist-svc.cc dnsdist-svc.hh dnsdist-systemd.cc \ - dnsdist-systemd.hh dnsdist-tcp-downstream.cc \ - dnsdist-tcp-downstream.hh dnsdist-tcp-upstream.hh \ - dnsdist-tcp.cc dnsdist-tcp.hh dnsdist-web.cc dnsdist-web.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh dnsdist-xsk.cc dnsdist-xsk.hh \ - dnsdist.cc dnsdist.hh dnslabeltext.cc dnsname.cc dnsname.hh \ - dnsparser.hh dnsparser.cc dnstap.cc dnstap.hh dnswriter.cc \ - dnswriter.hh doh.hh doh3.hh dolog.cc dolog.hh doq-common.hh \ - doq.hh ednscookies.cc ednscookies.hh ednsextendederror.cc \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh dnsdist-rules.cc dnsdist-rules.hh \ + dnsdist-secpoll.cc dnsdist-secpoll.hh dnsdist-self-answers.cc \ + dnsdist-self-answers.hh dnsdist-server-pool.hh \ + dnsdist-session-cache.cc dnsdist-session-cache.hh \ + dnsdist-snmp.cc dnsdist-snmp.hh dnsdist-svc.cc dnsdist-svc.hh \ + dnsdist-systemd.cc dnsdist-systemd.hh \ + dnsdist-tcp-downstream.cc dnsdist-tcp-downstream.hh \ + dnsdist-tcp-upstream.hh dnsdist-tcp.cc dnsdist-tcp.hh \ + dnsdist-udp.cc dnsdist-udp.hh dnsdist-web.cc dnsdist-web.hh \ + dnsdist-xsk.cc dnsdist-xsk.hh dnsdist.cc dnsdist.hh \ + dnslabeltext.cc dnsname.cc dnsname.hh dnsparser.hh \ + dnsparser.cc dnstap.cc dnstap.hh dnswriter.cc dnswriter.hh \ + doh3.cc doh3.hh dolog.cc dolog.hh doq-common.hh doq.hh \ + ednscookies.cc ednscookies.hh ednsextendederror.cc \ ednsextendederror.hh ednsoptions.cc ednsoptions.hh \ ednssubnet.cc ednssubnet.hh ext/json11/json11.cpp \ ext/json11/json11.hpp ext/libbpf/libbpf.h \ ext/luawrapper/include/LuaContext.hpp fstrm_logger.cc \ fstrm_logger.hh gettime.cc gettime.hh htmlfiles.h iputils.cc \ - iputils.hh libssl.cc libssl.hh lock.hh logging.hh misc.cc \ - misc.hh mplexer.hh namespaces.hh noinitvector.hh \ - packetcache.hh pdnsexception.hh pollmplexer.cc protozero.cc \ + iputils.hh libssl.cc libssl.hh lock.hh logging.cc logging.hh \ + misc.cc misc.hh mplexer.hh namespaces.hh noinitvector.hh \ + packetcache.hh pdnsexception.hh pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh protozero.cc \ protozero.hh proxy-protocol.cc proxy-protocol.hh qtype.cc \ - qtype.hh remote_logger.cc remote_logger.hh sholder.hh \ - snmp-agent.cc snmp-agent.hh sstuff.hh stat_t.hh statnode.cc \ - statnode.hh svc-records.cc svc-records.hh \ + qtype.hh remote_logger.cc remote_logger.hh \ + remote_logger_pool.cc remote_logger_pool.hh sanitizer.hh \ + sholder.hh snmp-agent.cc snmp-agent.hh sstuff.hh stat_t.hh \ + statnode.cc statnode.hh svc-records.cc svc-records.hh \ tcpiohandler-mplexer.hh tcpiohandler.cc tcpiohandler.hh \ threadname.hh threadname.cc uuid-utils.hh uuid-utils.cc \ - views.hh xpf.cc xpf.hh xsk.cc xsk.hh $(am__append_12) \ - $(am__append_20) $(am__append_23) $(am__append_27) \ - $(am__append_29) $(am__append_33) $(am__append_34) \ - $(am__append_37) $(am__append_39) $(am__append_41) \ - $(am__append_43) $(am__append_45) + views.hh xsk.cc xsk.hh $(am__append_13) $(am__append_23) \ + $(am__append_24) $(am__append_28) $(am__append_32) \ + $(am__append_36) $(am__append_39) $(am__append_46) \ + $(am__append_48) $(am__append_50) $(am__append_52) +nodist_dnsdist_SOURCES = $(am__append_42) $(am__append_45) testrunner_SOURCES = base64.hh bpf-filter.cc bpf-filter.hh \ cachecleaner.hh channel.cc channel.hh circular_buffer.hh \ connection-management.hh credentials.cc credentials.hh dns.cc \ - dns.hh dnscrypt.cc dnscrypt.hh dnsdist-async.cc \ - dnsdist-async.hh dnsdist-backend.cc dnsdist-backoff.hh \ + dns.hh dnscrypt.cc dnscrypt.hh dnsdist-actions.cc \ + dnsdist-actions.hh dnsdist-async.cc dnsdist-async.hh \ + dnsdist-backend.cc dnsdist-backend.hh dnsdist-backoff.hh \ dnsdist-cache.cc dnsdist-cache.hh \ - dnsdist-concurrent-connections.hh dnsdist-crypto.cc \ - dnsdist-crypto.hh dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ - dnsdist-doh-common.cc dnsdist-doh-common.hh \ - dnsdist-downstream-connection.hh dnsdist-dynblocks.cc \ - dnsdist-dynblocks.hh dnsdist-dynbpf.cc dnsdist-dynbpf.hh \ - dnsdist-ecs.cc dnsdist-ecs.hh dnsdist-edns.cc dnsdist-edns.hh \ - dnsdist-idstate.hh dnsdist-kvs.cc dnsdist-kvs.hh \ - dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-concurrent-connections.cc \ + dnsdist-concurrent-connections.hh dnsdist-configuration.cc \ + dnsdist-configuration.hh dnsdist-crypto.cc dnsdist-crypto.hh \ + dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ + dnsdist-dnsquestion.cc dnsdist-doh-common.cc \ + dnsdist-doh-common.hh dnsdist-downstream-connection.hh \ + dnsdist-dynblocks.cc dnsdist-dynblocks.hh dnsdist-dynbpf.cc \ + dnsdist-dynbpf.hh dnsdist-ecs.cc dnsdist-ecs.hh \ + dnsdist-edns.cc dnsdist-edns.hh dnsdist-frontend.cc \ + dnsdist-frontend.hh dnsdist-idstate.cc dnsdist-idstate.hh \ + dnsdist-ipcrypt2.cc dnsdist-ipcrypt2.hh dnsdist-kvs.cc \ + dnsdist-kvs.hh dnsdist-lbpolicies.cc dnsdist-lbpolicies.hh \ + dnsdist-logging.cc dnsdist-logging.hh \ dnsdist-lua-bindings-dnsquestion.cc \ dnsdist-lua-bindings-kvs.cc dnsdist-lua-bindings.cc \ dnsdist-lua-ffi-interface.h dnsdist-lua-ffi-interface.inc \ - dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh dnsdist-lua-network.cc \ - dnsdist-lua-network.hh dnsdist-lua-vars.cc \ - dnsdist-mac-address.cc dnsdist-mac-address.hh \ - dnsdist-metrics.cc dnsdist-metrics.hh dnsdist-nghttp2-in.hh \ - dnsdist-nghttp2.hh dnsdist-protocols.cc dnsdist-protocols.hh \ + dnsdist-lua-ffi.cc dnsdist-lua-ffi.hh \ + dnsdist-lua-inspection-ffi.cc dnsdist-lua-inspection-ffi.h \ + dnsdist-lua-network.cc dnsdist-lua-network.hh \ + dnsdist-lua-vars.cc dnsdist-mac-address.cc \ + dnsdist-mac-address.hh dnsdist-metrics.cc dnsdist-metrics.hh \ + dnsdist-nghttp2-in.hh dnsdist-nghttp2.hh \ + dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ + dnsdist-protocols.cc dnsdist-protocols.hh \ dnsdist-proxy-protocol.cc dnsdist-proxy-protocol.hh \ dnsdist-random.cc dnsdist-random.hh dnsdist-resolver.cc \ dnsdist-resolver.hh dnsdist-rings.cc dnsdist-rings.hh \ - dnsdist-rules.cc dnsdist-rules.hh dnsdist-session-cache.cc \ - dnsdist-session-cache.hh dnsdist-svc.cc dnsdist-svc.hh \ - dnsdist-tcp-downstream.cc dnsdist-tcp.cc dnsdist-tcp.hh \ - dnsdist-xpf.cc dnsdist-xpf.hh dnsdist-xsk.cc dnsdist-xsk.hh \ - dnsdist.hh dnslabeltext.cc dnsname.cc dnsname.hh dnsparser.hh \ - dnsparser.cc dnswriter.cc dnswriter.hh dolog.cc dolog.hh \ - ednscookies.cc ednscookies.hh ednsextendederror.cc \ - ednsextendederror.hh ednsoptions.cc ednsoptions.hh \ - ednssubnet.cc ednssubnet.hh \ + dnsdist-rule-chains.cc dnsdist-rule-chains.hh \ + dnsdist-rules-factory.hh dnsdist-rules.cc dnsdist-rules.hh \ + dnsdist-self-answers.cc dnsdist-self-answers.hh \ + dnsdist-session-cache.cc dnsdist-session-cache.hh \ + dnsdist-svc.cc dnsdist-svc.hh dnsdist-tcp-downstream.cc \ + dnsdist-tcp.cc dnsdist-tcp.hh dnsdist-udp.cc dnsdist-udp.hh \ + dnsdist-xsk.cc dnsdist-xsk.hh dnsdist.hh dnslabeltext.cc \ + dnsname.cc dnsname.hh dnsparser.hh dnsparser.cc dnswriter.cc \ + dnswriter.hh doh3.cc doh3.hh dolog.cc dolog.hh ednscookies.cc \ + ednscookies.hh ednsextendederror.cc ednsextendederror.hh \ + ednsoptions.cc ednsoptions.hh ednssubnet.cc ednssubnet.hh \ + ext/json11/json11.cpp ext/json11/json11.hpp \ ext/luawrapper/include/LuaContext.hpp gettime.cc gettime.hh \ - iputils.cc iputils.hh misc.cc misc.hh namespaces.hh \ - noinitvector.hh pdnsexception.hh pollmplexer.cc \ - proxy-protocol.cc proxy-protocol.hh qtype.cc qtype.hh \ - sholder.hh sstuff.hh stat_t.hh statnode.cc statnode.hh \ - svc-records.cc svc-records.hh test-base64_cc.cc \ + iputils.cc iputils.hh logging.cc logging.hh misc.cc misc.hh \ + namespaces.hh noinitvector.hh pdnsexception.hh pollmplexer.cc \ + protozero-trace.cc protozero-trace.hh protozero.cc \ + protozero.hh proxy-protocol.cc proxy-protocol.hh qtype.cc \ + qtype.hh sholder.hh sstuff.hh stat_t.hh statnode.cc \ + statnode.hh svc-records.cc svc-records.hh test-base64_cc.cc \ test-channel.cc test-connectionmanagement_hh.cc \ - test-credentials_cc.cc test-delaypipe_hh.cc \ - test-dnscrypt_cc.cc test-dnsdist-connections-cache.cc \ - test-dnsdist-dnsparser.cc test-dnsdist-lua-ffi.cc \ - test-dnsdist_cc.cc test-dnsdistasync.cc \ + test-credentials_cc.cc test-delaypipe_hh.cc test-dns_cc.cc \ + test-dnscrypt_cc.cc test-dnsdist-concurrent-connections.cc \ + test-dnsdist-connections-cache.cc test-dnsdist-dnsparser.cc \ + test-dnsdist-ipcrypt2_cc.cc test-dnsdist-lua-ffi.cc \ + test-dnsdist-opentelemetry_cc.cc test-dnsdist-session-cache.cc \ + test-dnsdist-xsk.cc test-dnsdist_cc.cc test-dnsdistasync.cc \ test-dnsdistbackend_cc.cc test-dnsdistbackoff.cc \ test-dnsdistdynblocks_hh.cc test-dnsdistedns.cc \ test-dnsdistkvs_cc.cc test-dnsdistlbpolicies_cc.cc \ test-dnsdistluanetwork.cc test-dnsdistnghttp2_common.hh \ test-dnsdistpacketcache_cc.cc test-dnsdistrings_cc.cc \ - test-dnsdistrules_cc.cc test-dnsdistsvc_cc.cc \ - test-dnsdisttcp_cc.cc test-dnsparser_cc.cc test-iputils_hh.cc \ - test-luawrapper.cc test-mplexer.cc test-proxy_protocol_cc.cc \ + test-dnsdistrules_cc.cc test-dnsdistserverpool.cc \ + test-dnsdistsvc_cc.cc test-dnsdisttcp_cc.cc \ + test-dnsparser_cc.cc test-iputils_hh.cc test-luawrapper.cc \ + test-mplexer.cc test-proxy_protocol_cc.cc test-sholder_hh.cc \ testrunner.cc threadname.hh threadname.cc uuid-utils.hh \ - uuid-utils.cc xpf.cc xpf.hh xsk.cc xsk.hh $(am__append_13) \ - $(am__append_24) $(am__append_30) $(am__append_40) \ - $(am__append_42) $(am__append_44) $(am__append_46) + uuid-utils.cc xsk.cc xsk.hh $(am__append_14) $(am__append_25) \ + $(am__append_29) $(am__append_33) $(am__append_40) \ + $(am__append_47) $(am__append_49) $(am__append_51) \ + $(am__append_53) dnsdist_LDFLAGS = \ $(AM_LDFLAGS) \ $(PROGRAM_LDFLAGS) \ @@ -1407,10 +1610,10 @@ dnsdist_LDADD = $(LUA_LIBS) $(LIBEDIT_LIBS) $(RT_LIBS) $(YAHTTP_LIBS) \ $(LIBSODIUM_LIBS) $(FSTRM_LIBS) $(SYSTEMD_LIBS) \ $(NET_SNMP_LIBS) $(LIBCAP_LIBS) $(IPCRYPT_LIBS) \ - $(ARC4RANDOM_LIBS) $(am__append_10) $(am__append_14) \ - $(am__append_15) $(am__append_16) $(am__append_18) \ - $(am__append_21) $(am__append_25) $(am__append_26) \ - $(am__append_28) $(am__append_31) $(am__append_36) + $(ARC4RANDOM_LIBS) $(am__append_11) $(am__append_15) \ + $(am__append_17) $(am__append_19) $(am__append_21) \ + $(am__append_26) $(am__append_30) $(am__append_31) \ + $(am__append_34) $(am__append_38) $(am__append_43) testrunner_LDFLAGS = \ $(AM_LDFLAGS) \ $(PROGRAM_LDFLAGS) \ @@ -1418,15 +1621,18 @@ -pthread testrunner_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) $(FSTRM_LIBS) \ - $(LIBSODIUM_LIBS) $(LUA_LIBS) $(RT_LIBS) $(LIBCAP_LIBS) \ - $(ARC4RANDOM_LIBS) $(am__append_11) $(am__append_17) \ - $(am__append_19) $(am__append_22) $(am__append_32) -@HAVE_LUA_HPP_FALSE@nodist_dnsdist_SOURCES = lua.hpp + $(LIBSODIUM_LIBS) $(LUA_LIBS) $(RT_LIBS) $(SYSTEMD_LIBS) \ + $(LIBCAP_LIBS) $(ARC4RANDOM_LIBS) $(am__append_12) \ + $(am__append_16) $(am__append_18) $(am__append_20) \ + $(am__append_22) $(am__append_27) $(am__append_35) \ + $(am__append_41) @FUZZ_TARGETS_TRUE@fuzz_targets_programs = fuzz_target_dnsdistcache \ -@FUZZ_TARGETS_TRUE@ $(am__append_47) +@FUZZ_TARGETS_TRUE@ $(am__append_54) @FUZZ_TARGETS_TRUE@fuzz_targets_libs = \ -@FUZZ_TARGETS_TRUE@ $(LIBCRYPTO_LIBS) \ @FUZZ_TARGETS_TRUE@ $(ARC4RANDOM_LIBS) \ +@FUZZ_TARGETS_TRUE@ $(LIBCRYPTO_LIBS) \ +@FUZZ_TARGETS_TRUE@ $(LIBSODIUM_LIBS) \ +@FUZZ_TARGETS_TRUE@ $(SYSTEMD_LIBS) \ @FUZZ_TARGETS_TRUE@ $(LIB_FUZZING_ENGINE) @FUZZ_TARGETS_TRUE@fuzz_targets_ldflags = \ @@ -1441,22 +1647,33 @@ @FUZZ_TARGETS_TRUE@fuzz_target_dnsdistcache_SOURCES = \ @FUZZ_TARGETS_TRUE@ channel.hh channel.cc \ @FUZZ_TARGETS_TRUE@ dns.cc dns.hh \ +@FUZZ_TARGETS_TRUE@ dnscrypt.cc dnscrypt.hh \ @FUZZ_TARGETS_TRUE@ dnsdist-cache.cc dnsdist-cache.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-configuration.cc dnsdist-configuration.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-crypto.cc dnsdist-crypto.hh \ @FUZZ_TARGETS_TRUE@ dnsdist-dnsparser.cc dnsdist-dnsparser.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-dnsquestion.cc \ @FUZZ_TARGETS_TRUE@ dnsdist-ecs.cc dnsdist-ecs.hh \ -@FUZZ_TARGETS_TRUE@ dnsdist-idstate.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-idstate.cc dnsdist-idstate.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-logging.cc dnsdist-logging.hh \ +@FUZZ_TARGETS_TRUE@ dnsdist-opentelemetry.cc dnsdist-opentelemetry.hh \ @FUZZ_TARGETS_TRUE@ dnsdist-protocols.cc dnsdist-protocols.hh \ @FUZZ_TARGETS_TRUE@ dnslabeltext.cc \ @FUZZ_TARGETS_TRUE@ dnsname.cc dnsname.hh \ @FUZZ_TARGETS_TRUE@ dnsparser.cc dnsparser.hh \ @FUZZ_TARGETS_TRUE@ dnswriter.cc dnswriter.hh \ -@FUZZ_TARGETS_TRUE@ doh.hh \ +@FUZZ_TARGETS_TRUE@ dolog.cc dolog.hh \ @FUZZ_TARGETS_TRUE@ ednsoptions.cc ednsoptions.hh \ @FUZZ_TARGETS_TRUE@ ednssubnet.cc ednssubnet.hh \ +@FUZZ_TARGETS_TRUE@ ext/json11/json11.cpp \ +@FUZZ_TARGETS_TRUE@ ext/json11/json11.hpp \ @FUZZ_TARGETS_TRUE@ fuzz_dnsdistcache.cc \ +@FUZZ_TARGETS_TRUE@ gettime.cc gettime.hh \ @FUZZ_TARGETS_TRUE@ iputils.cc iputils.hh \ +@FUZZ_TARGETS_TRUE@ logging.cc logging.hh \ @FUZZ_TARGETS_TRUE@ misc.cc misc.hh \ @FUZZ_TARGETS_TRUE@ packetcache.hh \ +@FUZZ_TARGETS_TRUE@ protozero-trace.cc protozero-trace.hh \ @FUZZ_TARGETS_TRUE@ qtype.cc qtype.hh \ @FUZZ_TARGETS_TRUE@ svc-records.cc svc-records.hh @@ -1486,7 +1703,7 @@ $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: -.SUFFIXES: .cc .cpp .lo .log .o .obj .test .test$(EXEEXT) .trs +.SUFFIXES: .c .cc .cpp .lo .log .o .obj .test .test$(EXEEXT) .trs am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/lua_hpp.mk $(am__configure_deps) @@ -1527,12 +1744,12 @@ @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h + $(AM_V_at)rm -f stamp-h1 + $(AM_V_GEN)cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ + $(AM_V_GEN)($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + $(AM_V_at)rm -f stamp-h1 + $(AM_V_at)touch $@ distclean-hdr: -rm -f config.h stamp-h1 @@ -1575,39 +1792,37 @@ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files + cd "$(DESTDIR)$(bindir)" && $(am__rm_f) $$files clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list + $(am__rm_f) $(bin_PROGRAMS) + test -z "$(EXEEXT)" || $(am__rm_f) $(bin_PROGRAMS:$(EXEEXT)=) clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list + $(am__rm_f) $(noinst_PROGRAMS) + test -z "$(EXEEXT)" || $(am__rm_f) $(noinst_PROGRAMS:$(EXEEXT)=) ext/json11/$(am__dirstamp): @$(MKDIR_P) ext/json11 - @: > ext/json11/$(am__dirstamp) + @: >>ext/json11/$(am__dirstamp) ext/json11/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) ext/json11/$(DEPDIR) - @: > ext/json11/$(DEPDIR)/$(am__dirstamp) + @: >>ext/json11/$(DEPDIR)/$(am__dirstamp) ext/json11/json11.$(OBJEXT): ext/json11/$(am__dirstamp) \ ext/json11/$(DEPDIR)/$(am__dirstamp) +ext/ipcrypt2/$(am__dirstamp): + @$(MKDIR_P) ext/ipcrypt2 + @: >>ext/ipcrypt2/$(am__dirstamp) +ext/ipcrypt2/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) ext/ipcrypt2/$(DEPDIR) + @: >>ext/ipcrypt2/$(DEPDIR)/$(am__dirstamp) +ext/ipcrypt2/ipcrypt2.$(OBJEXT): ext/ipcrypt2/$(am__dirstamp) \ + ext/ipcrypt2/$(DEPDIR)/$(am__dirstamp) ext/lmdb-safe/$(am__dirstamp): @$(MKDIR_P) ext/lmdb-safe - @: > ext/lmdb-safe/$(am__dirstamp) + @: >>ext/lmdb-safe/$(am__dirstamp) ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) ext/lmdb-safe/$(DEPDIR) - @: > ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp) + @: >>ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp) ext/lmdb-safe/lmdb-safe.$(OBJEXT): ext/lmdb-safe/$(am__dirstamp) \ ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp) @@ -1629,6 +1844,7 @@ mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f ext/ipcrypt2/*.$(OBJEXT) -rm -f ext/json11/*.$(OBJEXT) -rm -f ext/lmdb-safe/*.$(OBJEXT) @@ -1644,24 +1860,36 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/devpollmplexer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnscrypt.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-actions-factory.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-actions.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-async.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-backend.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-cache.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-carbon.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-concurrent-connections.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-configuration-yaml-items-generated.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-configuration-yaml.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-configuration.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-console-completion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-console.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-crypto.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-discovery.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-dnscrypt.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-dnsparser.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-dnsquestion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-doh-common.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-dynblocks.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-dynbpf.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-ecs.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-edns.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-frontend.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-healthchecks.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-idstate.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-internal-queries.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-ipcrypt2.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-kvs.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lbpolicies.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-logging.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-actions.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-bindings-dnscrypt.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-bindings-dnsparser.Po@am__quote@ # am--include-marker @@ -1672,6 +1900,7 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-bindings-protobuf.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-bindings-rings.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-bindings.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-configuration-items.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-ffi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-hooks.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-lua-inspection-ffi.Po@am__quote@ # am--include-marker @@ -1685,22 +1914,26 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-metrics.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-nghttp2-in.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-nghttp2.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-opentelemetry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-protobuf.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-protocols.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-proxy-protocol.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-query-count.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-random.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-resolver.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-rings.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-rule-chains.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-rules.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-secpoll.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-self-answers.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-session-cache.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-snmp.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-svc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-systemd.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-tcp-downstream.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-tcp.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-udp.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-web.Po@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-xpf.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist-xsk.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsdist.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnslabeltext.Po@am__quote@ # am--include-marker @@ -1708,7 +1941,6 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsparser.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnstap.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnswriter.Po@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doh.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doh3.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dolog.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doq-common.Po@am__quote@ # am--include-marker @@ -1726,13 +1958,16 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iputils.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kqueuemplexer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libssl.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logging.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pollmplexer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/portsmplexer.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/protozero-trace.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/protozero.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/proxy-protocol.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qtype.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_logger.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_logger_pool.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snmp-agent.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statnode.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/svc-records.Po@am__quote@ # am--include-marker @@ -1742,10 +1977,16 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-connectionmanagement_hh.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-credentials_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-delaypipe_hh.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dns_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnscrypt_cc.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-concurrent-connections.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-connections-cache.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-dnsparser.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-ipcrypt2_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-lua-ffi.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-opentelemetry_cc.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-session-cache.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist-xsk.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdist_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistasync.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistbackend_cc.Po@am__quote@ # am--include-marker @@ -1760,6 +2001,7 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistpacketcache_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistrings_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistrules_cc.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistserverpool.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdistsvc_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsdisttcp_cc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dnsparser_cc.Po@am__quote@ # am--include-marker @@ -1767,20 +2009,45 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-luawrapper.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mplexer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-proxy_protocol_cc.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sholder_hh.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testrunner.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadname.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uuid-utils.Po@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpf.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xsk.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@ext/ipcrypt2/$(DEPDIR)/ipcrypt2.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@ext/json11/$(DEPDIR)/json11.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@ext/lmdb-safe/$(DEPDIR)/lmdb-safe.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + @: >>$@ am--depfiles: $(am__depfiles_remade) +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @@ -2042,7 +2309,6 @@ am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: - $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ @@ -2118,10 +2384,37 @@ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ + output_system_information () \ + { \ + echo; \ + { uname -a | $(AWK) '{ \ + printf "System information (uname -a):"; \ + for (i = 1; i < NF; ++i) \ + { \ + if (i != 2) \ + printf " %s", $$i; \ + } \ + printf "\n"; \ +}'; } 2>&1; \ + if test -r /etc/os-release; then \ + echo "Distribution information (/etc/os-release):"; \ + sed 8q /etc/os-release; \ + elif test -r /etc/issue; then \ + echo "Distribution information (/etc/issue):"; \ + cat /etc/issue; \ + fi; \ + }; \ + please_report () \ + { \ +echo "Some test(s) failed. Please report this to $(PACKAGE_BUGREPORT),"; \ +echo "together with the test-suite.log file (gzipped) and your system"; \ +echo "information. Thanks."; \ + }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ + output_system_information; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ @@ -2141,26 +2434,25 @@ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ - echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ + echo "$${col}See $(subdir)/$(TEST_SUITE_LOG) for debugging.$${std}";\ if test -n "$(PACKAGE_BUGREPORT)"; then \ - echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ + please_report | sed -e "s/^/$${col}/" -e s/'$$'/"$${std}"/; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: - @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list - @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list - @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @$(am__rm_f) $(RECHECK_LOGS) + @$(am__rm_f) $(RECHECK_LOGS:.log=.trs) + @$(am__rm_f) $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ - trs_list=`for i in $$bases; do echo $$i.trs; done`; \ - log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ + log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all - @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @$(am__rm_f) $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ @@ -2196,7 +2488,7 @@ distdir-am: $(DISTFILES) $(am__remove_distdir) - test -d "$(distdir)" || mkdir "$(distdir)" + $(AM_V_at)$(MKDIR_P) "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -2306,7 +2598,7 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ + eval GZIP= gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ @@ -2316,7 +2608,7 @@ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ + eval GZIP= gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ @@ -2420,25 +2712,27 @@ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: - -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) - -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) - -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + -$(am__rm_f) $(TEST_LOGS) + -$(am__rm_f) $(TEST_LOGS:.log=.trs) + -$(am__rm_f) $(TEST_SUITE_LOG) clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + -$(am__rm_f) $(CLEANFILES) distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -rm -f ext/json11/$(DEPDIR)/$(am__dirstamp) - -rm -f ext/json11/$(am__dirstamp) - -rm -f ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp) - -rm -f ext/lmdb-safe/$(am__dirstamp) + -$(am__rm_f) $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || $(am__rm_f) $(CONFIG_CLEAN_VPATH_FILES) + -$(am__rm_f) ext/ipcrypt2/$(DEPDIR)/$(am__dirstamp) + -$(am__rm_f) ext/ipcrypt2/$(am__dirstamp) + -$(am__rm_f) ext/json11/$(DEPDIR)/$(am__dirstamp) + -$(am__rm_f) ext/json11/$(am__dirstamp) + -$(am__rm_f) ext/lmdb-safe/$(DEPDIR)/$(am__dirstamp) + -$(am__rm_f) ext/lmdb-safe/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -$(am__rm_f) $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool \ @@ -2446,7 +2740,7 @@ distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f ./$(DEPDIR)/bpf-filter.Po + -rm -f ./$(DEPDIR)/bpf-filter.Po -rm -f ./$(DEPDIR)/capabilities.Po -rm -f ./$(DEPDIR)/cdb.Po -rm -f ./$(DEPDIR)/channel.Po @@ -2455,24 +2749,36 @@ -rm -f ./$(DEPDIR)/devpollmplexer.Po -rm -f ./$(DEPDIR)/dns.Po -rm -f ./$(DEPDIR)/dnscrypt.Po + -rm -f ./$(DEPDIR)/dnsdist-actions-factory.Po + -rm -f ./$(DEPDIR)/dnsdist-actions.Po -rm -f ./$(DEPDIR)/dnsdist-async.Po -rm -f ./$(DEPDIR)/dnsdist-backend.Po -rm -f ./$(DEPDIR)/dnsdist-cache.Po -rm -f ./$(DEPDIR)/dnsdist-carbon.Po + -rm -f ./$(DEPDIR)/dnsdist-concurrent-connections.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration-yaml-items-generated.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration-yaml.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration.Po + -rm -f ./$(DEPDIR)/dnsdist-console-completion.Po -rm -f ./$(DEPDIR)/dnsdist-console.Po -rm -f ./$(DEPDIR)/dnsdist-crypto.Po -rm -f ./$(DEPDIR)/dnsdist-discovery.Po -rm -f ./$(DEPDIR)/dnsdist-dnscrypt.Po -rm -f ./$(DEPDIR)/dnsdist-dnsparser.Po + -rm -f ./$(DEPDIR)/dnsdist-dnsquestion.Po -rm -f ./$(DEPDIR)/dnsdist-doh-common.Po -rm -f ./$(DEPDIR)/dnsdist-dynblocks.Po -rm -f ./$(DEPDIR)/dnsdist-dynbpf.Po -rm -f ./$(DEPDIR)/dnsdist-ecs.Po -rm -f ./$(DEPDIR)/dnsdist-edns.Po + -rm -f ./$(DEPDIR)/dnsdist-frontend.Po -rm -f ./$(DEPDIR)/dnsdist-healthchecks.Po + -rm -f ./$(DEPDIR)/dnsdist-idstate.Po -rm -f ./$(DEPDIR)/dnsdist-internal-queries.Po + -rm -f ./$(DEPDIR)/dnsdist-ipcrypt2.Po -rm -f ./$(DEPDIR)/dnsdist-kvs.Po -rm -f ./$(DEPDIR)/dnsdist-lbpolicies.Po + -rm -f ./$(DEPDIR)/dnsdist-logging.Po -rm -f ./$(DEPDIR)/dnsdist-lua-actions.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-dnscrypt.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-dnsparser.Po @@ -2483,6 +2789,7 @@ -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-protobuf.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-rings.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings.Po + -rm -f ./$(DEPDIR)/dnsdist-lua-configuration-items.Po -rm -f ./$(DEPDIR)/dnsdist-lua-ffi.Po -rm -f ./$(DEPDIR)/dnsdist-lua-hooks.Po -rm -f ./$(DEPDIR)/dnsdist-lua-inspection-ffi.Po @@ -2496,22 +2803,26 @@ -rm -f ./$(DEPDIR)/dnsdist-metrics.Po -rm -f ./$(DEPDIR)/dnsdist-nghttp2-in.Po -rm -f ./$(DEPDIR)/dnsdist-nghttp2.Po + -rm -f ./$(DEPDIR)/dnsdist-opentelemetry.Po -rm -f ./$(DEPDIR)/dnsdist-protobuf.Po -rm -f ./$(DEPDIR)/dnsdist-protocols.Po -rm -f ./$(DEPDIR)/dnsdist-proxy-protocol.Po + -rm -f ./$(DEPDIR)/dnsdist-query-count.Po -rm -f ./$(DEPDIR)/dnsdist-random.Po -rm -f ./$(DEPDIR)/dnsdist-resolver.Po -rm -f ./$(DEPDIR)/dnsdist-rings.Po + -rm -f ./$(DEPDIR)/dnsdist-rule-chains.Po -rm -f ./$(DEPDIR)/dnsdist-rules.Po -rm -f ./$(DEPDIR)/dnsdist-secpoll.Po + -rm -f ./$(DEPDIR)/dnsdist-self-answers.Po -rm -f ./$(DEPDIR)/dnsdist-session-cache.Po -rm -f ./$(DEPDIR)/dnsdist-snmp.Po -rm -f ./$(DEPDIR)/dnsdist-svc.Po -rm -f ./$(DEPDIR)/dnsdist-systemd.Po -rm -f ./$(DEPDIR)/dnsdist-tcp-downstream.Po -rm -f ./$(DEPDIR)/dnsdist-tcp.Po + -rm -f ./$(DEPDIR)/dnsdist-udp.Po -rm -f ./$(DEPDIR)/dnsdist-web.Po - -rm -f ./$(DEPDIR)/dnsdist-xpf.Po -rm -f ./$(DEPDIR)/dnsdist-xsk.Po -rm -f ./$(DEPDIR)/dnsdist.Po -rm -f ./$(DEPDIR)/dnslabeltext.Po @@ -2519,7 +2830,6 @@ -rm -f ./$(DEPDIR)/dnsparser.Po -rm -f ./$(DEPDIR)/dnstap.Po -rm -f ./$(DEPDIR)/dnswriter.Po - -rm -f ./$(DEPDIR)/doh.Po -rm -f ./$(DEPDIR)/doh3.Po -rm -f ./$(DEPDIR)/dolog.Po -rm -f ./$(DEPDIR)/doq-common.Po @@ -2537,13 +2847,16 @@ -rm -f ./$(DEPDIR)/iputils.Po -rm -f ./$(DEPDIR)/kqueuemplexer.Po -rm -f ./$(DEPDIR)/libssl.Po + -rm -f ./$(DEPDIR)/logging.Po -rm -f ./$(DEPDIR)/misc.Po -rm -f ./$(DEPDIR)/pollmplexer.Po -rm -f ./$(DEPDIR)/portsmplexer.Po + -rm -f ./$(DEPDIR)/protozero-trace.Po -rm -f ./$(DEPDIR)/protozero.Po -rm -f ./$(DEPDIR)/proxy-protocol.Po -rm -f ./$(DEPDIR)/qtype.Po -rm -f ./$(DEPDIR)/remote_logger.Po + -rm -f ./$(DEPDIR)/remote_logger_pool.Po -rm -f ./$(DEPDIR)/snmp-agent.Po -rm -f ./$(DEPDIR)/statnode.Po -rm -f ./$(DEPDIR)/svc-records.Po @@ -2553,10 +2866,16 @@ -rm -f ./$(DEPDIR)/test-connectionmanagement_hh.Po -rm -f ./$(DEPDIR)/test-credentials_cc.Po -rm -f ./$(DEPDIR)/test-delaypipe_hh.Po + -rm -f ./$(DEPDIR)/test-dns_cc.Po -rm -f ./$(DEPDIR)/test-dnscrypt_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdist-concurrent-connections.Po -rm -f ./$(DEPDIR)/test-dnsdist-connections-cache.Po -rm -f ./$(DEPDIR)/test-dnsdist-dnsparser.Po + -rm -f ./$(DEPDIR)/test-dnsdist-ipcrypt2_cc.Po -rm -f ./$(DEPDIR)/test-dnsdist-lua-ffi.Po + -rm -f ./$(DEPDIR)/test-dnsdist-opentelemetry_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdist-session-cache.Po + -rm -f ./$(DEPDIR)/test-dnsdist-xsk.Po -rm -f ./$(DEPDIR)/test-dnsdist_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistasync.Po -rm -f ./$(DEPDIR)/test-dnsdistbackend_cc.Po @@ -2571,6 +2890,7 @@ -rm -f ./$(DEPDIR)/test-dnsdistpacketcache_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistrings_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistrules_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdistserverpool.Po -rm -f ./$(DEPDIR)/test-dnsdistsvc_cc.Po -rm -f ./$(DEPDIR)/test-dnsdisttcp_cc.Po -rm -f ./$(DEPDIR)/test-dnsparser_cc.Po @@ -2578,11 +2898,12 @@ -rm -f ./$(DEPDIR)/test-luawrapper.Po -rm -f ./$(DEPDIR)/test-mplexer.Po -rm -f ./$(DEPDIR)/test-proxy_protocol_cc.Po + -rm -f ./$(DEPDIR)/test-sholder_hh.Po -rm -f ./$(DEPDIR)/testrunner.Po -rm -f ./$(DEPDIR)/threadname.Po -rm -f ./$(DEPDIR)/uuid-utils.Po - -rm -f ./$(DEPDIR)/xpf.Po -rm -f ./$(DEPDIR)/xsk.Po + -rm -f ext/ipcrypt2/$(DEPDIR)/ipcrypt2.Po -rm -f ext/json11/$(DEPDIR)/json11.Po -rm -f ext/lmdb-safe/$(DEPDIR)/lmdb-safe.Po -rm -f Makefile @@ -2632,7 +2953,7 @@ maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache - -rm -f ./$(DEPDIR)/bpf-filter.Po + -rm -f ./$(DEPDIR)/bpf-filter.Po -rm -f ./$(DEPDIR)/capabilities.Po -rm -f ./$(DEPDIR)/cdb.Po -rm -f ./$(DEPDIR)/channel.Po @@ -2641,24 +2962,36 @@ -rm -f ./$(DEPDIR)/devpollmplexer.Po -rm -f ./$(DEPDIR)/dns.Po -rm -f ./$(DEPDIR)/dnscrypt.Po + -rm -f ./$(DEPDIR)/dnsdist-actions-factory.Po + -rm -f ./$(DEPDIR)/dnsdist-actions.Po -rm -f ./$(DEPDIR)/dnsdist-async.Po -rm -f ./$(DEPDIR)/dnsdist-backend.Po -rm -f ./$(DEPDIR)/dnsdist-cache.Po -rm -f ./$(DEPDIR)/dnsdist-carbon.Po + -rm -f ./$(DEPDIR)/dnsdist-concurrent-connections.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration-yaml-items-generated.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration-yaml.Po + -rm -f ./$(DEPDIR)/dnsdist-configuration.Po + -rm -f ./$(DEPDIR)/dnsdist-console-completion.Po -rm -f ./$(DEPDIR)/dnsdist-console.Po -rm -f ./$(DEPDIR)/dnsdist-crypto.Po -rm -f ./$(DEPDIR)/dnsdist-discovery.Po -rm -f ./$(DEPDIR)/dnsdist-dnscrypt.Po -rm -f ./$(DEPDIR)/dnsdist-dnsparser.Po + -rm -f ./$(DEPDIR)/dnsdist-dnsquestion.Po -rm -f ./$(DEPDIR)/dnsdist-doh-common.Po -rm -f ./$(DEPDIR)/dnsdist-dynblocks.Po -rm -f ./$(DEPDIR)/dnsdist-dynbpf.Po -rm -f ./$(DEPDIR)/dnsdist-ecs.Po -rm -f ./$(DEPDIR)/dnsdist-edns.Po + -rm -f ./$(DEPDIR)/dnsdist-frontend.Po -rm -f ./$(DEPDIR)/dnsdist-healthchecks.Po + -rm -f ./$(DEPDIR)/dnsdist-idstate.Po -rm -f ./$(DEPDIR)/dnsdist-internal-queries.Po + -rm -f ./$(DEPDIR)/dnsdist-ipcrypt2.Po -rm -f ./$(DEPDIR)/dnsdist-kvs.Po -rm -f ./$(DEPDIR)/dnsdist-lbpolicies.Po + -rm -f ./$(DEPDIR)/dnsdist-logging.Po -rm -f ./$(DEPDIR)/dnsdist-lua-actions.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-dnscrypt.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-dnsparser.Po @@ -2669,6 +3002,7 @@ -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-protobuf.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings-rings.Po -rm -f ./$(DEPDIR)/dnsdist-lua-bindings.Po + -rm -f ./$(DEPDIR)/dnsdist-lua-configuration-items.Po -rm -f ./$(DEPDIR)/dnsdist-lua-ffi.Po -rm -f ./$(DEPDIR)/dnsdist-lua-hooks.Po -rm -f ./$(DEPDIR)/dnsdist-lua-inspection-ffi.Po @@ -2682,22 +3016,26 @@ -rm -f ./$(DEPDIR)/dnsdist-metrics.Po -rm -f ./$(DEPDIR)/dnsdist-nghttp2-in.Po -rm -f ./$(DEPDIR)/dnsdist-nghttp2.Po + -rm -f ./$(DEPDIR)/dnsdist-opentelemetry.Po -rm -f ./$(DEPDIR)/dnsdist-protobuf.Po -rm -f ./$(DEPDIR)/dnsdist-protocols.Po -rm -f ./$(DEPDIR)/dnsdist-proxy-protocol.Po + -rm -f ./$(DEPDIR)/dnsdist-query-count.Po -rm -f ./$(DEPDIR)/dnsdist-random.Po -rm -f ./$(DEPDIR)/dnsdist-resolver.Po -rm -f ./$(DEPDIR)/dnsdist-rings.Po + -rm -f ./$(DEPDIR)/dnsdist-rule-chains.Po -rm -f ./$(DEPDIR)/dnsdist-rules.Po -rm -f ./$(DEPDIR)/dnsdist-secpoll.Po + -rm -f ./$(DEPDIR)/dnsdist-self-answers.Po -rm -f ./$(DEPDIR)/dnsdist-session-cache.Po -rm -f ./$(DEPDIR)/dnsdist-snmp.Po -rm -f ./$(DEPDIR)/dnsdist-svc.Po -rm -f ./$(DEPDIR)/dnsdist-systemd.Po -rm -f ./$(DEPDIR)/dnsdist-tcp-downstream.Po -rm -f ./$(DEPDIR)/dnsdist-tcp.Po + -rm -f ./$(DEPDIR)/dnsdist-udp.Po -rm -f ./$(DEPDIR)/dnsdist-web.Po - -rm -f ./$(DEPDIR)/dnsdist-xpf.Po -rm -f ./$(DEPDIR)/dnsdist-xsk.Po -rm -f ./$(DEPDIR)/dnsdist.Po -rm -f ./$(DEPDIR)/dnslabeltext.Po @@ -2705,7 +3043,6 @@ -rm -f ./$(DEPDIR)/dnsparser.Po -rm -f ./$(DEPDIR)/dnstap.Po -rm -f ./$(DEPDIR)/dnswriter.Po - -rm -f ./$(DEPDIR)/doh.Po -rm -f ./$(DEPDIR)/doh3.Po -rm -f ./$(DEPDIR)/dolog.Po -rm -f ./$(DEPDIR)/doq-common.Po @@ -2723,13 +3060,16 @@ -rm -f ./$(DEPDIR)/iputils.Po -rm -f ./$(DEPDIR)/kqueuemplexer.Po -rm -f ./$(DEPDIR)/libssl.Po + -rm -f ./$(DEPDIR)/logging.Po -rm -f ./$(DEPDIR)/misc.Po -rm -f ./$(DEPDIR)/pollmplexer.Po -rm -f ./$(DEPDIR)/portsmplexer.Po + -rm -f ./$(DEPDIR)/protozero-trace.Po -rm -f ./$(DEPDIR)/protozero.Po -rm -f ./$(DEPDIR)/proxy-protocol.Po -rm -f ./$(DEPDIR)/qtype.Po -rm -f ./$(DEPDIR)/remote_logger.Po + -rm -f ./$(DEPDIR)/remote_logger_pool.Po -rm -f ./$(DEPDIR)/snmp-agent.Po -rm -f ./$(DEPDIR)/statnode.Po -rm -f ./$(DEPDIR)/svc-records.Po @@ -2739,10 +3079,16 @@ -rm -f ./$(DEPDIR)/test-connectionmanagement_hh.Po -rm -f ./$(DEPDIR)/test-credentials_cc.Po -rm -f ./$(DEPDIR)/test-delaypipe_hh.Po + -rm -f ./$(DEPDIR)/test-dns_cc.Po -rm -f ./$(DEPDIR)/test-dnscrypt_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdist-concurrent-connections.Po -rm -f ./$(DEPDIR)/test-dnsdist-connections-cache.Po -rm -f ./$(DEPDIR)/test-dnsdist-dnsparser.Po + -rm -f ./$(DEPDIR)/test-dnsdist-ipcrypt2_cc.Po -rm -f ./$(DEPDIR)/test-dnsdist-lua-ffi.Po + -rm -f ./$(DEPDIR)/test-dnsdist-opentelemetry_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdist-session-cache.Po + -rm -f ./$(DEPDIR)/test-dnsdist-xsk.Po -rm -f ./$(DEPDIR)/test-dnsdist_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistasync.Po -rm -f ./$(DEPDIR)/test-dnsdistbackend_cc.Po @@ -2757,6 +3103,7 @@ -rm -f ./$(DEPDIR)/test-dnsdistpacketcache_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistrings_cc.Po -rm -f ./$(DEPDIR)/test-dnsdistrules_cc.Po + -rm -f ./$(DEPDIR)/test-dnsdistserverpool.Po -rm -f ./$(DEPDIR)/test-dnsdistsvc_cc.Po -rm -f ./$(DEPDIR)/test-dnsdisttcp_cc.Po -rm -f ./$(DEPDIR)/test-dnsparser_cc.Po @@ -2764,11 +3111,12 @@ -rm -f ./$(DEPDIR)/test-luawrapper.Po -rm -f ./$(DEPDIR)/test-mplexer.Po -rm -f ./$(DEPDIR)/test-proxy_protocol_cc.Po + -rm -f ./$(DEPDIR)/test-sholder_hh.Po -rm -f ./$(DEPDIR)/testrunner.Po -rm -f ./$(DEPDIR)/threadname.Po -rm -f ./$(DEPDIR)/uuid-utils.Po - -rm -f ./$(DEPDIR)/xpf.Po -rm -f ./$(DEPDIR)/xsk.Po + -rm -f ext/ipcrypt2/$(DEPDIR)/ipcrypt2.Po -rm -f ext/json11/$(DEPDIR)/json11.Po -rm -f ext/lmdb-safe/$(DEPDIR)/lmdb-safe.Po -rm -f Makefile @@ -2832,6 +3180,16 @@ @cat $^ >> $@ @echo ')FFIContent"' >> $@ +dnsdist%generated-body.hh dnsdist%generated.hh: dnsdist-rules-generator.py dnsdist-actions-definitions.yml dnsdist-response-actions-definitions.yml dnsdist-selectors-definitions.yml + @if test "$(PYTHON)" = ":"; then echo "Actions or selectors definitions have changed, python is needed to regenerate the related files but python was not found. Please install python and re-run configure"; exit 1; fi + @if ! $(PYTHON) --version | grep -q "Python 3"; then echo $(PYTHON) should be at least version 3. Please install python 3 and re-run configure; exit 1; fi + $(PYTHON) ${srcdir}/dnsdist-rules-generator.py ${srcdir} . + +docs/reference/yaml-%.rst: dnsdist-settings-documentation-generator.py dnsdist-settings-definitions.yml dnsdist-actions-definitions.yml dnsdist-response-actions-definitions.yml dnsdist-selectors-definitions.yml + @if test "$(PYTHON)" = ":"; then echo "Settings definitions have changed, python is needed to regenerate the related files but python was not found. Please install python and re-run configure"; exit 1; fi + @if ! $(PYTHON) --version | grep -q "Python 3"; then echo $(PYTHON) should be at least version 3. Please install python 3 and re-run configure; exit 1; fi + $(PYTHON) ${srcdir}/dnsdist-settings-documentation-generator.py ${srcdir} + html/js/%.min.js: src_js/%.js uglifyjs $< > $@ @@ -2850,7 +3208,7 @@ @FUZZ_TARGETS_TRUE@fuzz_targets: $(ARC4RANDOM_LIBS) $(fuzz_targets_programs) @HAVE_MANPAGES_FALSE@@HAVE_VENV_TRUE@$(MANPAGES): %: docs/manpages/%.rst .venv -@HAVE_MANPAGES_FALSE@@HAVE_VENV_TRUE@ $(AM_V_GEN).venv/bin/python -msphinx -b man docs . $< +@HAVE_MANPAGES_FALSE@@HAVE_VENV_TRUE@ $(AM_V_GEN).venv/bin/python -msphinx -b man ${srcdir}/docs . $< @HAVE_VENV_TRUE@.venv: docs/requirements.txt @HAVE_VENV_TRUE@ $(PYTHON) -m venv .venv @@ -2927,3 +3285,10 @@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: + +# Tell GNU make to disable its built-in pattern rules. +%:: %,v +%:: RCS/%,v +%:: RCS/% +%:: s.% +%:: SCCS/s.% diff -Nru dnsdist-1.9.16/NOTICE dnsdist-2.1.3/NOTICE --- dnsdist-1.9.16/NOTICE 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/NOTICE 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,16 @@ +This program is free software; you can redistribute it and/or modify +it under the terms of version 2 of the GNU General Public License as +published by the Free Software Foundation. + +In addition, for the avoidance of any doubt, permission is granted to +link this program with OpenSSL and to (re)distribute the binaries +produced as the result of such linking. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff -Nru dnsdist-1.9.16/aclocal.m4 dnsdist-2.1.3/aclocal.m4 --- dnsdist-1.9.16/aclocal.m4 2026-08-05 14:29:25.000000000 +0000 +++ dnsdist-2.1.3/aclocal.m4 2026-10-12 07:14:51.558768300 +0000 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.5 -*- Autoconf -*- +# generated automatically by aclocal 1.17 -*- Autoconf -*- -# Copyright (C) 1996-2021 Free Software Foundation, Inc. +# Copyright (C) 1996-2024 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,8 +14,8 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, -[m4_warning([this file was generated for autoconf 2.71. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],, +[m4_warning([this file was generated for autoconf 2.72. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) @@ -68,8 +68,8 @@ [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ -dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) -dnl ---------------------------------- +dnl PKG_PROG_PKG_CONFIG([MIN-VERSION], [ACTION-IF-NOT-FOUND]) +dnl --------------------------------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to @@ -77,6 +77,12 @@ dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. +dnl +dnl If pkg-config is not found or older than specified, it will result +dnl in an empty PKG_CONFIG variable. To avoid widespread issues with +dnl scripts not checking it, ACTION-IF-NOT-FOUND defaults to aborting. +dnl You can specify [PKG_CONFIG=false] as an action instead, which would +dnl result in pkg-config tests failing, but no bogus error messages. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) @@ -97,6 +103,9 @@ AC_MSG_RESULT([no]) PKG_CONFIG="" fi +fi +if test -z "$PKG_CONFIG"; then + m4_default([$2], [AC_MSG_ERROR([pkg-config not found])]) fi[]dnl ])dnl PKG_PROG_PKG_CONFIG @@ -364,7 +373,7 @@ [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES -# Copyright (C) 2002-2021 Free Software Foundation, Inc. +# Copyright (C) 2002-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -376,10 +385,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.16' +[am__api_version='1.17' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.5], [], +m4_if([$1], [1.17], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -395,14 +404,14 @@ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.5])dnl +[AM_AUTOMAKE_VERSION([1.17])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -454,7 +463,7 @@ # AM_COND_IF -*- Autoconf -*- -# Copyright (C) 2008-2021 Free Software Foundation, Inc. +# Copyright (C) 2008-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -491,7 +500,7 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2021 Free Software Foundation, Inc. +# Copyright (C) 1997-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -522,7 +531,7 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Copyright (C) 1999-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -654,7 +663,7 @@ # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: + # When given -MP, icc 7.0 and 7.1 complain thus: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported @@ -713,7 +722,7 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Copyright (C) 1999-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -781,7 +790,7 @@ # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2021 Free Software Foundation, Inc. +# Copyright (C) 1996-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -915,7 +924,7 @@ fi AC_SUBST([CSCOPE]) -AC_REQUIRE([AM_SILENT_RULES])dnl +AC_REQUIRE([_AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. @@ -923,47 +932,9 @@ [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . +AC_REQUIRE([_AM_PROG_RM_F]) +AC_REQUIRE([_AM_PROG_XARGS_N]) -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. @@ -996,7 +967,7 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1017,7 +988,7 @@ fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2021 Free Software Foundation, Inc. +# Copyright (C) 2003-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1038,7 +1009,7 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1081,7 +1052,7 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2021 Free Software Foundation, Inc. +# Copyright (C) 1997-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1115,7 +1086,7 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1144,7 +1115,7 @@ AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Copyright (C) 1999-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1191,7 +1162,7 @@ # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Copyright (C) 1999-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1225,10 +1196,12 @@ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). m4_define_default([_AM_PYTHON_INTERPRETER_LIST], -[python python2 python3 dnl +[python python3 dnl + python3.20 python3.19 python3.18 python3.17 python3.16 dnl python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 dnl python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl python3.2 python3.1 python3.0 dnl + python2 dnl python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl python2.0]) @@ -1423,15 +1396,29 @@ if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': can_use_sysconfig = 0 except ImportError: - pass" + pass" # end of am_python_setup_sysconfig + + # More repeated code, for figuring out the installation scheme to use. + am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): + scheme = sysconfig.get_default_scheme() + else: + scheme = sysconfig._get_default_scheme() + if scheme == 'posix_local': + if '$am_py_prefix' == '/usr': + scheme = 'deb_system' # should only happen during Debian package builds + else: + # Debian's default scheme installs to /usr/local/ but we want to + # follow the prefix, as we always have. + # See bugs#54412, #64837, et al. + scheme = 'posix_prefix'" # end of am_python_setup_scheme dnl emacs-page Set up 4 directories: dnl 1. pythondir: where to install python scripts. This is the dnl site-packages directory, not the python standard library - dnl directory like in previous automake betas. This behavior + dnl directory as in early automake betas. This behavior dnl is more consistent with lispdir.m4 for example. - dnl Query distutils for this directory. + dnl Query sysconfig or distutils (per above) for this directory. dnl AC_CACHE_CHECK([for $am_display_PYTHON script directory (pythondir)], [am_cv_python_pythondir], @@ -1443,7 +1430,11 @@ am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: - sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) + try: + $am_python_setup_scheme + sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) + except: + sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') @@ -1473,7 +1464,8 @@ dnl 3. pyexecdir: directory for installing python extension modules dnl (shared libraries). - dnl Query distutils for this directory. + dnl Query sysconfig or distutils for this directory. + dnl Much of this is the same as for prefix setup above. dnl AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)], [am_cv_python_pyexecdir], @@ -1485,7 +1477,11 @@ am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: - sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) + try: + $am_python_setup_scheme + sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) + except: + sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') @@ -1536,7 +1532,23 @@ sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# Copyright (C) 2022-2024 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_RM_F +# --------------- +# Check whether 'rm -f' without any arguments works. +# https://bugs.gnu.org/10828 +AC_DEFUN([_AM_PROG_RM_F], +[am__rm_f_notfound= +AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""']) +AC_SUBST(am__rm_f_notfound) +]) + +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1555,16 +1567,169 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2021 Free Software Foundation, Inc. +# Copyright (C) 1996-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# _AM_SLEEP_FRACTIONAL_SECONDS +# ---------------------------- +AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl +AC_CACHE_CHECK([whether sleep supports fractional seconds], + am_cv_sleep_fractional_seconds, [dnl +AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes], + [am_cv_sleep_fractional_seconds=no]) +])]) + +# _AM_FILESYSTEM_TIMESTAMP_RESOLUTION +# ----------------------------------- +# Determine the filesystem's resolution for file modification +# timestamps. The coarsest we know of is FAT, with a resolution +# of only two seconds, even with the most recent "exFAT" extensions. +# The finest (e.g. ext4 with large inodes, XFS, ZFS) is one +# nanosecond, matching clock_gettime. However, it is probably not +# possible to delay execution of a shell script for less than one +# millisecond, due to process creation overhead and scheduling +# granularity, so we don't check for anything finer than that. (See below.) +AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl +AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS]) +AC_CACHE_CHECK([filesystem timestamp resolution], + am_cv_filesystem_timestamp_resolution, [dnl +# Default to the worst case. +am_cv_filesystem_timestamp_resolution=2 + +# Only try to go finer than 1 sec if sleep can do it. +# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, +# - 1 sec is not much of a win compared to 2 sec, and +# - it takes 2 seconds to perform the test whether 1 sec works. +# +# Instead, just use the default 2s on platforms that have 1s resolution, +# accept the extra 1s delay when using $sleep in the Automake tests, in +# exchange for not incurring the 2s delay for running the test for all +# packages. +# +am_try_resolutions= +if test "$am_cv_sleep_fractional_seconds" = yes; then + # Even a millisecond often causes a bunch of false positives, + # so just try a hundredth of a second. The time saved between .001 and + # .01 is not terribly consequential. + am_try_resolutions="0.01 0.1 $am_try_resolutions" +fi + +# In order to catch current-generation FAT out, we must *modify* files +# that already exist; the *creation* timestamp is finer. Use names +# that make ls -t sort them differently when they have equal +# timestamps than when they have distinct timestamps, keeping +# in mind that ls -t prints the *newest* file first. +rm -f conftest.ts? +: > conftest.ts1 +: > conftest.ts2 +: > conftest.ts3 + +# Make sure ls -t actually works. Do 'set' in a subshell so we don't +# clobber the current shell's arguments. (Outer-level square brackets +# are removed by m4; they're present so that m4 does not expand +# ; be careful, easy to get confused.) +if ( + set X `[ls -t conftest.ts[12]]` && + { + test "$[]*" != "X conftest.ts1 conftest.ts2" || + test "$[]*" != "X conftest.ts2 conftest.ts1"; + } +); then :; else + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + _AS_ECHO_UNQUOTED( + ["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""], + [AS_MESSAGE_LOG_FD]) + AC_MSG_FAILURE([ls -t produces unexpected output. +Make sure there is not a broken ls alias in your environment.]) +fi + +for am_try_res in $am_try_resolutions; do + # Any one fine-grained sleep might happen to cross the boundary + # between two values of a coarser actual resolution, but if we do + # two fine-grained sleeps in a row, at least one of them will fall + # entirely within a coarse interval. + echo alpha > conftest.ts1 + sleep $am_try_res + echo beta > conftest.ts2 + sleep $am_try_res + echo gamma > conftest.ts3 + + # We assume that 'ls -t' will make use of high-resolution + # timestamps if the operating system supports them at all. + if (set X `ls -t conftest.ts?` && + test "$[]2" = conftest.ts3 && + test "$[]3" = conftest.ts2 && + test "$[]4" = conftest.ts1); then + # + # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, + # because we don't need to test make. + make_ok=true + if test $am_try_res != 1; then + # But if we've succeeded so far with a subsecond resolution, we + # have one more thing to check: make. It can happen that + # everything else supports the subsecond mtimes, but make doesn't; + # notably on macOS, which ships make 3.81 from 2006 (the last one + # released under GPLv2). https://bugs.gnu.org/68808 + # + # We test $MAKE if it is defined in the environment, else "make". + # It might get overridden later, but our hope is that in practice + # it does not matter: it is the system "make" which is (by far) + # the most likely to be broken, whereas if the user overrides it, + # probably they did so with a better, or at least not worse, make. + # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html + # + # Create a Makefile (real tab character here): + rm -f conftest.mk + echo 'conftest.ts1: conftest.ts2' >conftest.mk + echo ' touch conftest.ts2' >>conftest.mk + # + # Now, running + # touch conftest.ts1; touch conftest.ts2; make + # should touch ts1 because ts2 is newer. This could happen by luck, + # but most often, it will fail if make's support is insufficient. So + # test for several consecutive successes. + # + # (We reuse conftest.ts[12] because we still want to modify existing + # files, not create new ones, per above.) + n=0 + make=${MAKE-make} + until test $n -eq 3; do + echo one > conftest.ts1 + sleep $am_try_res + echo two > conftest.ts2 # ts2 should now be newer than ts1 + if $make -f conftest.mk | grep 'up to date' >/dev/null; then + make_ok=false + break # out of $n loop + fi + n=`expr $n + 1` + done + fi + # + if $make_ok; then + # Everything we know to check worked out, so call this resolution good. + am_cv_filesystem_timestamp_resolution=$am_try_res + break # out of $am_try_res loop + fi + # Otherwise, we'll go on to check the next resolution. + fi +done +rm -f conftest.ts? +# (end _am_filesystem_timestamp_resolution) +])]) + # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) +[AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION]) +# This check should not be cached, as it may vary across builds of +# different projects. +AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -1583,49 +1748,40 @@ # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! +am_build_env_is_sane=no +am_has_slept=no +rm -f conftest.file +for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[]*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + test "$[]2" = conftest.file + ); then + am_build_env_is_sane=yes + break + fi + # Just in case. + sleep "$am_cv_filesystem_timestamp_resolution" + am_has_slept=yes +done + +AC_MSG_RESULT([$am_build_env_is_sane]) +if test "$am_build_env_is_sane" = no; then + AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi -AC_MSG_RESULT([yes]) + # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & +AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl + ( sleep "$am_cv_filesystem_timestamp_resolution" ) & am_sleep_pid=$! -fi +]) AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then @@ -1636,18 +1792,18 @@ rm -f conftest.file ]) -# Copyright (C) 2009-2021 Free Software Foundation, Inc. +# Copyright (C) 2009-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl +# _AM_SILENT_RULES +# ---------------- +# Enable less verbose build rules support. +AC_DEFUN([_AM_SILENT_RULES], +[AM_DEFAULT_VERBOSITY=1 +AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) @@ -1655,11 +1811,6 @@ [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. @@ -1678,14 +1829,6 @@ else am_cv_make_support_nested_variables=no fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl @@ -1694,9 +1837,33 @@ AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls +dnl to AM_SILENT_RULES to change the default value. +AC_CONFIG_COMMANDS_PRE([dnl +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; +esac +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +])dnl ]) -# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or +# empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_REQUIRE([_AM_SILENT_RULES]) +AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])]) + +# Copyright (C) 2001-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1724,7 +1891,7 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2021 Free Software Foundation, Inc. +# Copyright (C) 2006-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1743,7 +1910,7 @@ # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2021 Free Software Foundation, Inc. +# Copyright (C) 2004-2024 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1789,15 +1956,19 @@ am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) + if test x$am_uid = xunknown; then + AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work]) + elif test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) else - AC_MSG_RESULT([no]) - _am_tools=none + AC_MSG_RESULT([no]) + _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) + if test x$gm_gid = xunknown; then + AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work]) + elif test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none @@ -1874,8 +2045,29 @@ AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +# Copyright (C) 2022-2024 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_XARGS_N +# ---------------- +# Check whether 'xargs -n' works. It should work everywhere, so the fallback +# is not optimized at all as we never expect to use it. +AC_DEFUN([_AM_PROG_XARGS_N], +[AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl +AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 +3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])]) +AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl + am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }' +])dnl +AC_SUBST(am__xargs_n) +]) + m4_include([m4/ac_pthread_set_name.m4]) m4_include([m4/ax_arg_default_enable_disable.m4]) +m4_include([m4/ax_compare_version.m4]) m4_include([m4/ax_cxx_compile_stdcxx.m4]) m4_include([m4/ax_cxx_compile_stdcxx_17.m4]) m4_include([m4/ax_python_module.m4]) @@ -1885,17 +2077,18 @@ m4_include([m4/dnsdist_enable_doh3.m4]) m4_include([m4/dnsdist_enable_doq.m4]) m4_include([m4/dnsdist_enable_tls_providers.m4]) +m4_include([m4/dnsdist_enable_yaml.m4]) m4_include([m4/dnsdist_with_cdb.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) +m4_include([m4/pdns_check_cargo.m4]) m4_include([m4/pdns_check_clock_gettime.m4]) m4_include([m4/pdns_check_dnstap.m4]) m4_include([m4/pdns_check_libcrypto.m4]) m4_include([m4/pdns_check_libedit.m4]) -m4_include([m4/pdns_check_libh2o_evloop.m4]) m4_include([m4/pdns_check_lmdb.m4]) m4_include([m4/pdns_check_lua_hpp.m4]) m4_include([m4/pdns_check_network_libs.m4]) @@ -1908,6 +2101,7 @@ m4_include([m4/pdns_enable_coverage.m4]) m4_include([m4/pdns_enable_fuzz_targets.m4]) m4_include([m4/pdns_enable_ipcipher.m4]) +m4_include([m4/pdns_enable_ipcrypt2.m4]) m4_include([m4/pdns_enable_lto.m4]) m4_include([m4/pdns_enable_sanitizers.m4]) m4_include([m4/pdns_enable_tls.m4]) diff -Nru dnsdist-1.9.16/base64.hh dnsdist-2.1.3/base64.hh --- dnsdist-1.9.16/base64.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/base64.hh 2026-10-12 07:14:27.000000000 +0000 @@ -22,5 +22,6 @@ #pragma once #include -template int B64Decode(const std::string& strInput, Container& strOutput); -std::string Base64Encode (const std::string& src); +template +int B64Decode(const std::string& strInput, Container& strOutput); +std::string Base64Encode(const std::string& src); diff -Nru dnsdist-1.9.16/bench-dnsdist-action-rcode.cc dnsdist-2.1.3/bench-dnsdist-action-rcode.cc --- dnsdist-1.9.16/bench-dnsdist-action-rcode.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-dnsdist-action-rcode.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,55 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#include "dnsname.hh" +#define CATCH_CONFIG_NO_MAIN +#include +#include + +#include "dnsdist.hh" +#include "dnsdist-idstate.hh" +#include "dnsdist-dnsparser.hh" +#include "dnsdist-actions-factory.hh" + +TEST_CASE("Actions/RCodeAction", "[actions]") +{ + InternalQueryState ids; + PacketBuffer data; + GenericDNSPacketWriter pwQ(data, DNSName("dnsdist.test.powerdns.com"), QType::A, QClass::IN, 0); + pwQ.getHeader()->rd = 1; + + dnsdist::ResponseConfig rconfig; + auto action = dnsdist::actions::getRCodeAction(RCode::NXDomain, rconfig); + + DNSQuestion dq(ids, data); // NOLINT + std::string ruleresult; + BENCHMARK("set-nxd") + { + return (*action)(&dq, &ruleresult); + }; + + rconfig.setAA = true; + action = dnsdist::actions::getRCodeAction(RCode::NXDomain, rconfig); + BENCHMARK("set-nxd-and-AA") + { + return (*action)(&dq, &ruleresult); + }; +} diff -Nru dnsdist-1.9.16/bench-dnsdist-dnsparser_cc.cc dnsdist-2.1.3/bench-dnsdist-dnsparser_cc.cc --- dnsdist-1.9.16/bench-dnsdist-dnsparser_cc.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-dnsdist-dnsparser_cc.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,44 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#define CATCH_CONFIG_NO_MAIN +#include +#include + +#include "dnsdist-dnsparser.hh" + +TEST_CASE("dnsdist-dnsparser") +{ + const DNSName target("powerdns.com."); + const DNSName newTarget("dnsdist.org."); + const DNSName notTheTarget("not-powerdns.com."); + + PacketBuffer query; + GenericDNSPacketWriter pw(query, target, QType::A, QClass::IN, 0); + pw.getHeader()->rd = 1; + pw.getHeader()->id = htons(42); + pw.commit(); + + BENCHMARK("changeNameInDNSPacket") + { + dnsdist::changeNameInDNSPacket(query, target, newTarget); + }; +} diff -Nru dnsdist-1.9.16/bench-dnsdist-opentelemetry_cc.cc dnsdist-2.1.3/bench-dnsdist-opentelemetry_cc.cc --- dnsdist-1.9.16/bench-dnsdist-opentelemetry_cc.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-dnsdist-opentelemetry_cc.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,159 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#ifndef DISABLE_PROTOBUF +#define CATCH_CONFIG_NO_MAIN +#include +#include +#include + +#include "dnsdist-opentelemetry.hh" +#include "protozero-trace.hh" + +TEST_CASE("OpenTelemetry-base") +{ + BENCHMARK("pdns::trace::dnsdist::Tracer::getTracer") + { + return pdns::trace::dnsdist::Tracer::getTracer(); + }; + + auto tracer = pdns::trace::dnsdist::Tracer::getTracer(); + auto spanID = pdns::trace::SpanID::getRandomSpanID(); + + BENCHMARK("pdns::trace::dnsdist::Tracer::getCloser") + { + return tracer->getCloser(spanID); + }; + + BENCHMARK("pdns::trace::dnsdist::Tracer::openSpan") + { + return tracer->openSpan("foo"); + }; +} + +TEST_CASE("OpenTelemetry-addSpanThroughCloser") +{ + auto tracer = pdns::trace::dnsdist::Tracer::getTracer(); + auto spanID = pdns::trace::SpanID::getRandomSpanID(); + + BENCHMARK("openspan") + { + return tracer->openSpan("activated", spanID); + }; +} + +TEST_CASE("OpenTelemetry-spaninfo") +{ + auto tracer = pdns::trace::dnsdist::Tracer::getTracer(); + // Ensures span attributes are actually stored + auto rootSpanID = tracer->openSpan("mySpan").getSpanID(); + auto stringvalue = pdns::trace::AnyValue{"hello"}; + auto intvalue = pdns::trace::AnyValue{43854}; + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-string one span") + { + tracer->setSpanAttribute(rootSpanID, "key", stringvalue); + }; + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-int one span") + { + tracer->setSpanAttribute(rootSpanID, "key", intvalue); + }; + + auto spanID = rootSpanID; + for (auto i = 0; i < 40; i++) { + spanID = tracer->openSpan("fooSpan" + std::to_string(i), spanID).getSpanID(); + } + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-string 42 spans, first") + { + tracer->setSpanAttribute(rootSpanID, "key", stringvalue); + }; + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-int 42 spans, first") + { + tracer->setSpanAttribute(rootSpanID, "key", intvalue); + }; + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-string 42 spans, last") + { + tracer->setSpanAttribute(spanID, "key", stringvalue); + }; + + BENCHMARK("dnsdist::trace::Tracer::setSpanAttribute-int 42 spans, last") + { + tracer->setSpanAttribute(spanID, "key", intvalue); + }; +} + +TEST_CASE("OpenTelemetry-getLastSpanID") +{ + auto tracer = pdns::trace::dnsdist::Tracer::getTracer(); + pdns::trace::dnsdist::Tracer::Closer closer; + for (auto i = 0; i < 40; i++) { + closer = tracer->openSpan("foo" + std::to_string(i)); + } + + BENCHMARK("getLastSpanID") + { + return tracer->getLastSpanID(); + }; + + BENCHMARK("getRootSpanID") + { + return tracer->getRootSpanID(); + }; + + BENCHMARK("getLastSpanIDForName-first") + { + return tracer->getLastSpanIDForName("foo0"); + }; + + BENCHMARK("getLastSpanIDForName-middle") + { + return tracer->getLastSpanIDForName("foo20"); + }; + + BENCHMARK("getLastSpanIDForName-does-not-exist") + { + return tracer->getLastSpanIDForName("doesnotexist"); + }; +} + +TEST_CASE("OpenTelemetry-getTracesData") +{ + auto tracer = pdns::trace::dnsdist::Tracer::getTracer(); + + BENCHMARK("empty Tracer") + { + return tracer->getTracesData(); + }; + + for (auto i = 0; i < 40; i++) { + tracer->openSpan("foo" + std::to_string(i)); + } + + BENCHMARK("Tracer with 41 spans") + { + return tracer->getTracesData(); + }; +} +#endif diff -Nru dnsdist-1.9.16/bench-dnsdist-rings_cc.cc dnsdist-2.1.3/bench-dnsdist-rings_cc.cc --- dnsdist-1.9.16/bench-dnsdist-rings_cc.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-dnsdist-rings_cc.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,73 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#include +#define CATCH_CONFIG_NO_MAIN +#include +#include + +#include "dnsdist-rings.hh" +#include "gettime.hh" + +struct ringInfo +{ + size_t maxEntries; + size_t numberOfShards; + size_t nbLockTries; +}; + +auto simpleRings = std::vector{ + {5, 1, 0}, + {500, 10, 0}, + {500, 100, 5}, + {5000, 100, 5}, + {1000000, 5000, 5}, + {1000000, 5000, 20}, +}; + +TEST_CASE("Rings/insert") +{ + for (auto const ringInfo : simpleRings) { + Rings::RingsConfiguration config; + config.capacity = ringInfo.maxEntries; + config.numberOfShards = ringInfo.numberOfShards; + config.nbLockTries = ringInfo.nbLockTries; + Rings rings; + rings.init(config); + + dnsheader dnsheader{}; + memset(&dnsheader, 0, sizeof(dnsheader)); + DNSName qname("rings.powerdns.com."); + ComboAddress requestor1("192.0.2.1"); + uint16_t qtype = QType::AAAA; + uint16_t size = 42; + dnsdist::Protocol protocol = dnsdist::Protocol::DoUDP; + struct timespec now{}; + gettime(&now); + + string benchName = "max=" + std::to_string(ringInfo.maxEntries) + ",shards=" + std::to_string(ringInfo.numberOfShards) + ",locktries=" + std::to_string(ringInfo.nbLockTries); + + BENCHMARK(benchName.c_str()) + { + rings.insertQuery(now, requestor1, qname, qtype, size, dnsheader, protocol); + }; + } +} diff -Nru dnsdist-1.9.16/bench-iputils.cc dnsdist-2.1.3/bench-iputils.cc --- dnsdist-1.9.16/bench-iputils.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-iputils.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,41 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#define CATCH_CONFIG_NO_MAIN +#include +#include + +#include "iputils.hh" + +TEST_CASE("netmask_tree") +{ + const ComboAddress addr{"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"}; + NetmaskTree tree{}; + + BENCHMARK("lookup_v6_empty_tree") + { + const auto* got = tree.lookup(addr); + if (got != nullptr) { + abort(); + } + return got; + }; +} diff -Nru dnsdist-1.9.16/bench-misc_hh.cc dnsdist-2.1.3/bench-misc_hh.cc --- dnsdist-1.9.16/bench-misc_hh.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/bench-misc_hh.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,83 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#include "misc.hh" + +#define CATCH_CONFIG_NO_MAIN +#include +#include +#include + +TEST_CASE("misc.hh/stringtok", "[misc.hh]") +{ + std::vector> inStrings{ + {0, ""}, + {1, "the"}, + {3, "the quick brown"}, + {5, "the quick brown fox jumped"}, + {7, "the quick brown fox jumped over the"}, + {9, "the quick brown fox jumped over the lazy fox"}, + }; + + vector tokParts; + vector> vtokParts; + + for (auto const& inStr : inStrings) { + string benchmarkNameSuffix("stringtok " + std::to_string(inStr.first) + " words"); + BENCHMARK_ADVANCED(benchmarkNameSuffix.c_str())(Catch::Benchmark::Chronometer meter) + { + // SetUp + tokParts.clear(); + meter.measure([&inStr, &tokParts] { + stringtok(tokParts, inStr.second); + }); + }; + + string vtokBenchmarkName("v" + benchmarkNameSuffix); + BENCHMARK_ADVANCED(vtokBenchmarkName.c_str())(Catch::Benchmark::Chronometer meter) + { + // SetUp + vtokParts.clear(); + meter.measure([&inStr, &vtokParts] { + vstringtok(vtokParts, inStr.second); + }); + }; + } +} + +TEST_CASE("misc.hh/pdns_iequals", "[misc.hh]") +{ + static string first("www.powerdns.com"); + static string second("www.example.com"); + + BENCHMARK("std::string") + { + return pdns_iequals(first, second); + }; + + static const char* first_cstr = first.c_str(); + static const char* second_cstr = second.c_str(); + + BENCHMARK("const char*") + { + return pdns_iequals(first_cstr, second_cstr); + }; +} diff -Nru dnsdist-1.9.16/benchmarkrunner.cc dnsdist-2.1.3/benchmarkrunner.cc --- dnsdist-1.9.16/benchmarkrunner.cc 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/benchmarkrunner.cc 2026-10-08 15:17:50.000000000 +0000 @@ -0,0 +1,195 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#define CATCH_CONFIG_MAIN +#include +#include +#include "dnsdist.hh" +#include "dnsdist-lua.hh" +#include "dnsdist-rings.hh" +#include "dnsdist-xsk.hh" +#include "dnsdist-tcp.hh" + +// NOTE: This file contains waaaaaay too many mocked things to make bench-dnsdist-action-rcode.cc +// link. In the future, all these functions and declarations should go away and be put into their +// own hh/cc files. + +RecursiveLockGuarded g_lua{LuaContext()}; +shared_ptr g_defaultBPFFilter{nullptr}; +Rings g_rings; +string g_outputBuffer; + +void handleResponseSent([[maybe_unused]] const InternalQueryState& ids, [[maybe_unused]] double udiff, [[maybe_unused]] const ComboAddress& client, [[maybe_unused]] const ComboAddress& backend, [[maybe_unused]] unsigned int size, [[maybe_unused]] const dnsheader& cleartextDH, [[maybe_unused]] dnsdist::Protocol protocol, [[maybe_unused]] bool fromBackend) +{ +} + +void handleResponseSent([[maybe_unused]] const DNSName& qname, [[maybe_unused]] const QType& qtype, [[maybe_unused]] double udiff, [[maybe_unused]] const ComboAddress& client, [[maybe_unused]] const ComboAddress& backend, [[maybe_unused]] unsigned int size, [[maybe_unused]] const dnsheader& cleartextDH, [[maybe_unused]] dnsdist::Protocol outgoingProtocol, [[maybe_unused]] dnsdist::Protocol incomingProtocol, [[maybe_unused]] bool fromBackend) +{ +} + +bool processResponse([[maybe_unused]] PacketBuffer& response, [[maybe_unused]] DNSResponse& dnsResponse, [[maybe_unused]] bool muted) +{ + return false; +} + +void doExitNicely(int exitCode); +void doExitNicely([[maybe_unused]] int exitCode) { +}; + +ProcessQueryResult processQuery([[maybe_unused]] DNSQuestion& dnsQuestion, [[maybe_unused]] std::shared_ptr& selectedBackend) +{ + return ProcessQueryResult::Drop; +}; + +bool processRulesResult([[maybe_unused]] const DNSAction::Action& action, [[maybe_unused]] DNSQuestion& dnsQuestion, [[maybe_unused]] std::string& ruleresult, [[maybe_unused]] bool& drop) +{ + return false; +} + +ProcessQueryResult processQueryAfterRules([[maybe_unused]] DNSQuestion& dnsQuestion, [[maybe_unused]] std::shared_ptr& outgoingBackend) +{ + return ProcessQueryResult::Drop; +} + +bool processResponseAfterRules([[maybe_unused]] PacketBuffer& response, [[maybe_unused]] DNSResponse& dnsResponse, [[maybe_unused]] bool muted) +{ + return false; +} + +bool applyRulesToResponse([[maybe_unused]] const std::vector& respRuleActions, [[maybe_unused]] DNSResponse& dnsResponse) +{ + (void)respRuleActions; + (void)dnsResponse; + return true; +} + +bool handleTimeoutResponseRules([[maybe_unused]] const std::vector& rules, [[maybe_unused]] InternalQueryState& ids, [[maybe_unused]] const std::shared_ptr& d_ds, [[maybe_unused]] const std::shared_ptr& sender) +{ + return false; +} + +void handleServerStateChange([[maybe_unused]] const string& nameWithAddr, [[maybe_unused]] bool newResult) +{ +} + +bool sendUDPResponse([[maybe_unused]] int origFD, [[maybe_unused]] const PacketBuffer& response, [[maybe_unused]] const int delayMsec, [[maybe_unused]] const ComboAddress& origDest, [[maybe_unused]] const ComboAddress& origRemote) +{ + return false; +} + +bool assignOutgoingUDPQueryToBackend([[maybe_unused]] std::shared_ptr& downstream, [[maybe_unused]] uint16_t queryID, [[maybe_unused]] DNSQuestion& dnsQuestion, [[maybe_unused]] PacketBuffer& query, [[maybe_unused]] bool actuallySend) +{ + return true; +} + +#ifdef HAVE_XSK +namespace dnsdist::xsk +{ +bool XskProcessQuery([[maybe_unused]] ClientState& clientState, [[maybe_unused]] XskPacket& packet) +{ + return false; +} +} +#endif /* HAVE_XSK */ + +bool processResponderPacket([[maybe_unused]] std::shared_ptr& dss, [[maybe_unused]] PacketBuffer& response, [[maybe_unused]] InternalQueryState&& ids) +{ + return false; +} + +// NOLINTNEXTLINE(performance-unnecessary-value-param): this is a stub, the real one is not that simple and the performance does not matter +void responderThread([[maybe_unused]] std::shared_ptr dss) +{ +} + +bool checkQueryHeaders([[maybe_unused]] const struct dnsheader& dnsHeader, [[maybe_unused]] ClientState& clientState) +{ + return true; +} + +bool checkDNSCryptQuery([[maybe_unused]] const ClientState& clientState, [[maybe_unused]] PacketBuffer& query, [[maybe_unused]] std::unique_ptr& dnsCryptQuery, [[maybe_unused]] time_t now, [[maybe_unused]] bool tcp) +{ + return false; +} + +bool responseContentMatches([[maybe_unused]] const PacketBuffer& response, [[maybe_unused]] const DNSName& qname, [[maybe_unused]] const uint16_t qtype, [[maybe_unused]] const uint16_t qclass, [[maybe_unused]] const std::shared_ptr& remote, [[maybe_unused]] bool allowEmptyResponse) +{ + return false; +} + +class UDPTCPCrossQuerySender : public TCPQuerySender +{ +public: + UDPTCPCrossQuerySender() = default; + UDPTCPCrossQuerySender(const UDPTCPCrossQuerySender&) = delete; + UDPTCPCrossQuerySender& operator=(const UDPTCPCrossQuerySender&) = delete; + UDPTCPCrossQuerySender(UDPTCPCrossQuerySender&&) = default; + UDPTCPCrossQuerySender& operator=(UDPTCPCrossQuerySender&&) = default; + ~UDPTCPCrossQuerySender() override = default; + + [[nodiscard]] bool active() const override + { + return true; + } + + void handleResponse([[maybe_unused]] const struct timeval& now, [[maybe_unused]] TCPResponse&& response) override + { + } + + void handleXFRResponse([[maybe_unused]] const struct timeval& now, [[maybe_unused]] TCPResponse&& response) override + { + } + + void notifyIOError([[maybe_unused]] const struct timeval& now, [[maybe_unused]] TCPResponse&& response) override + { + } +}; + +class UDPCrossProtocolQuery : public CrossProtocolQuery +{ +public: + UDPCrossProtocolQuery() = default; + UDPCrossProtocolQuery(PacketBuffer&& buffer_, InternalQueryState&& ids_, std::shared_ptr backend) : + CrossProtocolQuery(InternalQuery(std::move(buffer_), std::move(ids_)), backend) + { + } + UDPCrossProtocolQuery(const UDPCrossProtocolQuery&) = delete; + UDPCrossProtocolQuery& operator=(const UDPCrossProtocolQuery&) = delete; + UDPCrossProtocolQuery(UDPCrossProtocolQuery&&) = delete; + UDPCrossProtocolQuery& operator=(UDPCrossProtocolQuery&&) = delete; + ~UDPCrossProtocolQuery() override = default; + + std::shared_ptr getTCPQuerySender() override + { + return s_sender; + } + +private: + static std::shared_ptr s_sender; +}; + +std::shared_ptr UDPCrossProtocolQuery::s_sender = std::make_shared(); + +std::unique_ptr getUDPCrossProtocolQueryFromDQ(DNSQuestion& dnsQuestion); +std::unique_ptr getUDPCrossProtocolQueryFromDQ([[maybe_unused]] DNSQuestion& dnsQuestion) +{ + return std::make_unique(); +} diff -Nru dnsdist-1.9.16/bpf-filter.cc dnsdist-2.1.3/bpf-filter.cc --- dnsdist-1.9.16/bpf-filter.cc 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/bpf-filter.cc 2026-10-08 15:17:50.000000000 +0000 @@ -33,9 +33,10 @@ #include "misc.hh" -static __u64 ptr_to_u64(const void *ptr) +static __u64 ptr_to_u64(const void* ptr) { - return (__u64) (unsigned long) ptr; + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast) + return (__u64)(unsigned long)ptr; } /* these can be static as they are not declared in libbpf.h: */ @@ -58,21 +59,20 @@ static void bpf_check_map_sizes(int descriptor, uint32_t expectedKeySize, uint32_t expectedValueSize) { - struct bpf_map_info info; - uint32_t info_len = sizeof(info); + bpf_map_info info{}; memset(&info, 0, sizeof(info)); - union bpf_attr attr; + bpf_attr attr{}; memset(&attr, 0, sizeof(attr)); attr.info.bpf_fd = descriptor; - attr.info.info_len = info_len; + attr.info.info_len = sizeof(info); attr.info.info = ptr_to_u64(&info); int err = syscall(SYS_bpf, BPF_OBJ_GET_INFO_BY_FD, &attr, sizeof(attr)); if (err != 0) { throw std::runtime_error("Error checking the size of eBPF map: " + stringerror()); } - if (info_len != sizeof(info)) { + if (attr.info.info_len != sizeof(info)) { throw std::runtime_error("Error checking the size of eBPF map: invalid info size returned"); } if (info.key_size != expectedKeySize) { @@ -97,7 +97,7 @@ return syscall(SYS_bpf, BPF_MAP_CREATE, &attr, sizeof(attr)); } -static int bpf_update_elem(int descriptor, void *key, void *value, unsigned long long flags) +static int bpf_update_elem(int descriptor, void* key, void* value, unsigned long long flags) { union bpf_attr attr; memset(&attr, 0, sizeof(attr)); @@ -108,7 +108,7 @@ return syscall(SYS_bpf, BPF_MAP_UPDATE_ELEM, &attr, sizeof(attr)); } -static int bpf_lookup_elem(int descriptor, void *key, void *value) +static int bpf_lookup_elem(int descriptor, void* key, void* value) { union bpf_attr attr; memset(&attr, 0, sizeof(attr)); @@ -118,7 +118,7 @@ return syscall(SYS_bpf, BPF_MAP_LOOKUP_ELEM, &attr, sizeof(attr)); } -static int bpf_delete_elem(int descriptor, void *key) +static int bpf_delete_elem(int descriptor, void* key) { union bpf_attr attr; memset(&attr, 0, sizeof(attr)); @@ -127,7 +127,7 @@ return syscall(SYS_bpf, BPF_MAP_DELETE_ELEM, &attr, sizeof(attr)); } -static int bpf_get_next_key(int descriptor, void *key, void *next_key) +static int bpf_get_next_key(int descriptor, void* key, void* next_key) { union bpf_attr attr; memset(&attr, 0, sizeof(attr)); @@ -138,16 +138,16 @@ } static int bpf_prog_load(enum bpf_prog_type prog_type, - const struct bpf_insn *insns, size_t prog_len, - const char *license, int kern_version) + const struct bpf_insn* insns, size_t prog_len, + const char* license, int kern_version) { char log_buf[65535]; union bpf_attr attr; memset(&attr, 0, sizeof(attr)); attr.prog_type = prog_type; - attr.insns = ptr_to_u64((void *) insns); + attr.insns = ptr_to_u64((void*)insns); attr.insn_cnt = static_cast(prog_len / sizeof(struct bpf_insn)); - attr.license = ptr_to_u64((void *) license); + attr.license = ptr_to_u64((void*)license); attr.log_buf = ptr_to_u64(log_buf); attr.log_size = sizeof(log_buf); attr.log_level = 1; @@ -195,8 +195,8 @@ uint16_t qtype{0}; }; - -BPFFilter::Map::Map(const BPFFilter::MapConfiguration& config, BPFFilter::MapFormat format): d_config(config) +BPFFilter::Map::Map(BPFFilter::MapConfiguration config, BPFFilter::MapFormat format) : + d_config(std::move(config)) { if (d_config.d_type == BPFFilter::MapType::Filters) { /* special case, this is a map of eBPF programs */ @@ -349,7 +349,6 @@ return descriptor; } - BPFFilter::BPFFilter(std::unordered_map& configs, BPFFilter::MapFormat format, bool external) : d_mapFormat(format), d_external(external) { @@ -357,7 +356,7 @@ throw std::runtime_error("Unsupported eBPF map format, the current internal implemenation only supports the legacy format"); } - struct rlimit old_limit; + struct rlimit old_limit{}; if (getrlimit(RLIMIT_MEMLOCK, &old_limit) != 0) { throw std::runtime_error("Unable to get memory lock limit: " + stringerror()); } @@ -366,14 +365,16 @@ /* Check if the current soft memlock limit is at least the limit */ if (old_limit.rlim_cur < new_limit_size) { - infolog("The current limit of locked memory (soft: %d, hard: %d) is too low for eBPF, trying to raise it to %d", old_limit.rlim_cur, old_limit.rlim_max, new_limit_size); + SLOG(infolog("The current limit of locked memory (soft: %d, hard: %d) is too low for eBPF, trying to raise it to %d", old_limit.rlim_cur, old_limit.rlim_max, new_limit_size), + dnsdist::logging::getTopLogger("bpf")->info("The current limit of locked memory is too low for eBPF, trying to raise it", "soft", Logging::Loggable(old_limit.rlim_cur), "hard", Logging::Loggable(old_limit.rlim_max), "target", Logging::Loggable(new_limit_size))); - struct rlimit new_limit; + struct rlimit new_limit{}; new_limit.rlim_cur = new_limit_size; new_limit.rlim_max = new_limit_size; if (setrlimit(RLIMIT_MEMLOCK, &new_limit) != 0) { - warnlog("Unable to raise the maximum amount of locked memory for eBPF from %d to %d, consider raising RLIMIT_MEMLOCK or setting LimitMEMLOCK in the systemd unit: %d", old_limit.rlim_cur, new_limit.rlim_cur, stringerror()); + SLOG(warnlog("Unable to raise the maximum amount of locked memory for eBPF from %d to %d, consider raising RLIMIT_MEMLOCK or setting LimitMEMLOCK in the systemd unit: %d", old_limit.rlim_cur, new_limit.rlim_cur, stringerror()), + dnsdist::logging::getTopLogger("bpf")->info(Logr::Warning, "Unable to raise the maximum amount of locked memory for eBPF, consider raising RLIMIT_MEMLOCK or setting LimitMEMLOCK in the systemd unit", "current", Logging::Loggable(old_limit.rlim_cur), "target", Logging::Loggable(new_limit_size))); } } @@ -392,16 +393,53 @@ BPFFilter::MapConfiguration filters; filters.d_maxItems = 1; filters.d_type = BPFFilter::MapType::Filters; - maps->d_filters = BPFFilter::Map(filters, d_mapFormat); + maps->d_filters = BPFFilter::Map(std::move(filters), d_mapFormat); const struct bpf_insn main_filter[] = { #include "bpf-filter.main.ebpf" }; - const struct bpf_insn qname_filter[] = { + // ABANDON EVERY HOPE - SCARY CODE STARTS HERE + + // This EBF program is huge, and unfortunately not constant; this causes + // the compiler to emit a lot of code (and eat a lot of memory to do so). + // Therefore we include an incomplete but constant version of the program + // and patch it locally, relying upon the fact that there is only one place + // to change. + // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,modernize-avoid-c-arrays) + struct bpf_insn qname_filter[] = { #include "bpf-filter.qname.ebpf" }; + // The program above contains + // BPF_LD_MAP_FD(BPF_REG_1,0) + // instead of + // BPF_LD_MAP_FD(BPF_REG_1,maps->d_qnames.d_fd.getHandle()) + // and this is the only use of BPF_LD_MAP_FD in the program. + // We will search for that instruction, relying upon the fact that, + // in that particular program, there is only one such instruction. + { + unsigned int pos{0}; + unsigned int limit{sizeof(qname_filter) / sizeof(struct bpf_insn)}; + for (; pos < limit; ++pos) { + if (qname_filter[pos].code == (BPF_LD | BPF_DW | BPF_IMM)) { // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index) + // We have found our instruction. + break; + } + } + // BPF_LD_MAP_FP actually is a sequence of two bpf instructions, + // because it loads a 64-bit value. So it can't be the last + // instruction either... + if (pos >= limit - 1) { + throw std::runtime_error("Assumption in the layout of the eBPF filter program no longer stands"); + } + auto data = static_cast<__u64>(maps->d_qnames.d_fd.getHandle()); + qname_filter[pos].imm = static_cast<__s32>(data); // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index) + qname_filter[pos + 1].imm = static_cast<__s32>(data >> 32); // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index) + } + + // SCARY CODE ENDS HERE + try { d_mainfilter = loadProgram(main_filter, sizeof(main_filter)); @@ -549,16 +587,20 @@ throw std::runtime_error("Table full when trying to add this rule: " + addr.toString()); } + bool entryExisted = false; res = bpf_lookup_elem(map.d_fd.getHandle(), &key, &value); - if (((res != -1 && value.action == action) || (res == -1 && value.action == BPFFilter::MatchAction::Pass)) && !force) { + if (((res != -1 && value.action == action) || (res == -1 && action == BPFFilter::MatchAction::Pass)) && !force) { throw std::runtime_error("Trying to add a useless rule: " + addr.toString()); } + if (res != -1) { + entryExisted = true; + } value.counter = 0; value.action = action; res = bpf_update_elem(map.d_fd.getHandle(), &key, &value, force ? BPF_ANY : BPF_NOEXIST); - if (res == 0) { + if (res == 0 && !entryExisted) { ++map.d_count; } } @@ -574,16 +616,20 @@ throw std::runtime_error("Table full when trying to add this rule: " + addr.toString()); } + bool entryExisted = false; res = bpf_lookup_elem(map.d_fd.getHandle(), &key, &value); - if (((res != -1 && value.action == action) || (res == -1 && value.action == BPFFilter::MatchAction::Pass)) && !force) { + if (((res != -1 && value.action == action) || (res == -1 && action == BPFFilter::MatchAction::Pass)) && !force) { throw std::runtime_error("Trying to add a useless rule: " + addr.toString()); } + if (res != -1) { + entryExisted = true; + } value.counter = 0; value.action = action; res = bpf_update_elem(map.d_fd.getHandle(), &key, &value, BPF_NOEXIST); - if (res == 0) { + if (res == 0 && !entryExisted) { map.d_count++; } } @@ -687,7 +733,7 @@ void BPFFilter::unblock(const DNSName& qname, uint16_t qtype) { - QNameAndQTypeKey key; + QNameAndQTypeKey key{}; memset(&key, 0, sizeof(key)); std::string keyStr = qname.toDNSStringLC(); @@ -710,9 +756,9 @@ } } -std::vector > BPFFilter::getAddrStats() +std::vector> BPFFilter::getAddrStats() { - std::vector > result; + std::vector> result; { auto maps = d_maps.lock(); result.reserve(maps->d_v4.d_count + maps->d_v6.d_count); @@ -739,13 +785,13 @@ { auto& map = maps->d_v4; - int res = bpf_get_next_key(map.d_fd.getHandle(), &v4Key, &nextV4Key); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, &nextV4Key); while (res == 0) { v4Key = nextV4Key; if (bpf_lookup_elem(map.d_fd.getHandle(), &v4Key, &value) == 0) { - v4Addr.sin_addr.s_addr = ntohl(v4Key); - result.emplace_back(ComboAddress(&v4Addr), value.counter); + v4Addr.sin_addr.s_addr = ntohl(v4Key); + result.emplace_back(ComboAddress(&v4Addr), value.counter); } res = bpf_get_next_key(map.d_fd.getHandle(), &v4Key, &nextV4Key); @@ -754,7 +800,7 @@ { auto& map = maps->d_v6; - int res = bpf_get_next_key(map.d_fd.getHandle(), v6Key.data(), nextV6Key.data()); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, nextV6Key.data()); while (res == 0) { if (bpf_lookup_elem(map.d_fd.getHandle(), nextV6Key.data(), &value) == 0) { @@ -772,16 +818,16 @@ std::vector> BPFFilter::getRangeRule() { - CIDR4 cidr4[2]; - CIDR6 cidr6[2]; + CIDR4 cidr4{}; + CIDR6 cidr6{}; std::vector> result; - sockaddr_in v4Addr; - sockaddr_in6 v6Addr; + sockaddr_in v4Addr{}; + sockaddr_in6 v6Addr{}; CounterAndActionValue value; - memset(cidr4, 0, sizeof(cidr4)); - memset(cidr6, 0, sizeof(cidr6)); + memset(&cidr4, 0, sizeof(cidr4)); + memset(&cidr6, 0, sizeof(cidr6)); memset(&v4Addr, 0, sizeof(v4Addr)); memset(&v6Addr, 0, sizeof(v6Addr)); v4Addr.sin_family = AF_INET; @@ -790,49 +836,49 @@ result.reserve(maps->d_cidr4.d_count + maps->d_cidr6.d_count); { auto& map = maps->d_cidr4; - int res = bpf_get_next_key(map.d_fd.getHandle(), &cidr4[0], &cidr4[1]); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, &cidr4); while (res == 0) { - if (bpf_lookup_elem(map.d_fd.getHandle(), &cidr4[1], &value) == 0) { - v4Addr.sin_addr.s_addr = cidr4[1].addr.s_addr; - result.emplace_back(Netmask(&v4Addr, cidr4[1].cidr), value); + if (bpf_lookup_elem(map.d_fd.getHandle(), &cidr4, &value) == 0) { + v4Addr.sin_addr.s_addr = cidr4.addr.s_addr; + result.emplace_back(Netmask(&v4Addr, cidr4.cidr), value); } - res = bpf_get_next_key(map.d_fd.getHandle(), &cidr4[1], &cidr4[1]); + res = bpf_get_next_key(map.d_fd.getHandle(), &cidr4, &cidr4); } } { auto& map = maps->d_cidr6; - int res = bpf_get_next_key(map.d_fd.getHandle(), &cidr6[0], &cidr6[1]); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, &cidr6); while (res == 0) { - if (bpf_lookup_elem(map.d_fd.getHandle(), &cidr6[1], &value) == 0) { - v6Addr.sin6_addr = cidr6[1].addr; - result.emplace_back(Netmask(&v6Addr, cidr6[1].cidr), value); + if (bpf_lookup_elem(map.d_fd.getHandle(), &cidr6, &value) == 0) { + v6Addr.sin6_addr = cidr6.addr; + result.emplace_back(Netmask(&v6Addr, cidr6.cidr), value); } - res = bpf_get_next_key(map.d_fd.getHandle(), &cidr6[1], &cidr6[1]); + res = bpf_get_next_key(map.d_fd.getHandle(), &cidr6, &cidr6); } } return result; } -std::vector > BPFFilter::getQNameStats() +std::vector> BPFFilter::getQNameStats() { - std::vector > result; + std::vector> result; if (d_mapFormat == MapFormat::Legacy) { - QNameKey key = { { 0 } }; - QNameKey nextKey = { { 0 } }; + QNameKey nextKey = {{0}}; QNameValue value; auto maps = d_maps.lock(); auto& map = maps->d_qnames; result.reserve(map.d_count); - int res = bpf_get_next_key(map.d_fd.getHandle(), &key, &nextKey); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, &nextKey); while (res == 0) { if (bpf_lookup_elem(map.d_fd.getHandle(), &nextKey, &value) == 0) { - nextKey.qname[sizeof(nextKey.qname) - 1 ] = '\0'; + nextKey.qname[sizeof(nextKey.qname) - 1] = '\0'; + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) result.emplace_back(DNSName(reinterpret_cast(nextKey.qname), sizeof(nextKey.qname), 0, false), value.qtype, value.counter); } @@ -840,21 +886,20 @@ } } else { - QNameAndQTypeKey key; - QNameAndQTypeKey nextKey; - memset(&key, 0, sizeof(key)); + QNameAndQTypeKey nextKey{}; memset(&nextKey, 0, sizeof(nextKey)); CounterAndActionValue value; auto maps = d_maps.lock(); auto& map = maps->d_qnames; result.reserve(map.d_count); - int res = bpf_get_next_key(map.d_fd.getHandle(), &key, &nextKey); + int res = bpf_get_next_key(map.d_fd.getHandle(), nullptr, &nextKey); while (res == 0) { if (bpf_lookup_elem(map.d_fd.getHandle(), &nextKey, &value) == 0) { - nextKey.qname[sizeof(nextKey.qname) - 1 ] = '\0'; - result.emplace_back(DNSName(reinterpret_cast(nextKey.qname), sizeof(nextKey.qname), 0, false), key.qtype, value.counter); + nextKey.qname[sizeof(nextKey.qname) - 1] = '\0'; + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) + result.emplace_back(DNSName(reinterpret_cast(nextKey.qname), sizeof(nextKey.qname), 0, false), nextKey.qtype, value.counter); } res = bpf_get_next_key(map.d_fd.getHandle(), &nextKey, &nextKey); @@ -900,6 +945,9 @@ BPFFilter::BPFFilter(std::unordered_map& configs, BPFFilter::MapFormat format, bool external) { + (void)configs; + (void)format; + (void)external; } void BPFFilter::addSocket(int) @@ -941,19 +989,20 @@ throw std::runtime_error("eBPF support not enabled"); } -std::vector> BPFFilter::getRangeRule(){ +std::vector> BPFFilter::getRangeRule() +{ std::vector> result; return result; } -std::vector > BPFFilter::getAddrStats() +std::vector> BPFFilter::getAddrStats() { - std::vector > result; + std::vector> result; return result; } -std::vector > BPFFilter::getQNameStats() +std::vector> BPFFilter::getQNameStats() { - std::vector > result; + std::vector> result; return result; } @@ -970,8 +1019,10 @@ return true; } return d_mapFormat == BPFFilter::MapFormat::WithActions; -#endif /* HAVE_EBPF */ +#else + (void)action; return false; +#endif /* HAVE_EBPF */ } bool BPFFilter::isExternal() const diff -Nru dnsdist-1.9.16/bpf-filter.ebpf.src dnsdist-2.1.3/bpf-filter.ebpf.src --- dnsdist-1.9.16/bpf-filter.ebpf.src 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/bpf-filter.ebpf.src 2026-10-08 15:17:50.000000000 +0000 @@ -389,7 +389,7 @@ struct QNameValue* qvalue = qnamefilter.lookup(&qkey); if (qvalue && - (qvalue->qtype == 255 || qtype == qvalue->qtype)) { + (qvalue->qtype == 65535 || qtype == qvalue->qtype)) { __sync_fetch_and_add(&qvalue->counter, 1); return 0; } @@ -479,7 +479,7 @@ struct QNameValue* qvalue = qnamefilter.lookup(&qkey); if (qvalue && - (qvalue->qtype == 255 || qtype == qvalue->qtype)) { + (qvalue->qtype == 65535 || qtype == qvalue->qtype)) { __sync_fetch_and_add(&qvalue->counter, 1); return 0; } diff -Nru dnsdist-1.9.16/bpf-filter.hh dnsdist-2.1.3/bpf-filter.hh --- dnsdist-1.9.16/bpf-filter.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/bpf-filter.hh 2026-10-08 15:17:50.000000000 +0000 @@ -32,7 +32,8 @@ class BPFFilter { public: - enum class MapType : uint8_t { + enum class MapType : uint8_t + { IPv4, IPv6, QNames, @@ -41,12 +42,14 @@ CIDR6 }; - enum class MapFormat : uint8_t { + enum class MapFormat : uint8_t + { Legacy = 0, WithActions = 1 }; - enum class MatchAction : uint8_t { + enum class MatchAction : uint8_t + { Pass = 0, Drop = 1, Truncate = 2 @@ -76,7 +79,6 @@ uint64_t counter{0}; BPFFilter::MatchAction action{BPFFilter::MatchAction::Pass}; }; - BPFFilter(std::unordered_map& configs, BPFFilter::MapFormat format, bool external); BPFFilter(const BPFFilter&) = delete; @@ -88,14 +90,14 @@ void removeSocket(int sock); void block(const ComboAddress& addr, MatchAction action); void addRangeRule(const Netmask& address, bool force, BPFFilter::MatchAction action); - void block(const DNSName& qname, MatchAction action, uint16_t qtype=255); + void block(const DNSName& qname, MatchAction action, uint16_t qtype = 65535); void unblock(const ComboAddress& addr); void rmRangeRule(const Netmask& address); - void unblock(const DNSName& qname, uint16_t qtype=255); + void unblock(const DNSName& qname, uint16_t qtype = 65535); - std::vector > getAddrStats(); + std::vector> getAddrStats(); std::vector> getRangeRule(); - std::vector > getQNameStats(); + std::vector> getQNameStats(); uint64_t getHits(const ComboAddress& requestor); @@ -109,7 +111,7 @@ Map() { } - Map(const MapConfiguration&, MapFormat); + Map(MapConfiguration, MapFormat); MapConfiguration d_config; uint32_t d_count{0}; FDWrapper d_fd; diff -Nru dnsdist-1.9.16/bpf-filter.main.ebpf dnsdist-2.1.3/bpf-filter.main.ebpf --- dnsdist-1.9.16/bpf-filter.main.ebpf 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/bpf-filter.main.ebpf 2026-10-08 15:17:50.000000000 +0000 @@ -104,7 +104,7 @@ BPF_MOV64_IMM(BPF_REG_7,2147483647), BPF_JMP_IMM(BPF_JEQ,BPF_REG_0,0,7), BPF_LDX_MEM(BPF_H,BPF_REG_1,BPF_REG_0,8), -BPF_JMP_IMM(BPF_JEQ,BPF_REG_1,255,2), +BPF_JMP_IMM(BPF_JEQ,BPF_REG_1,65535,2), BPF_ALU64_IMM(BPF_AND,BPF_REG_6,65535), BPF_JMP_REG(BPF_JNE,BPF_REG_1,BPF_REG_6,3), BPF_MOV64_IMM(BPF_REG_1,1), diff -Nru dnsdist-1.9.16/bpf-filter.qname.ebpf dnsdist-2.1.3/bpf-filter.qname.ebpf --- dnsdist-1.9.16/bpf-filter.qname.ebpf 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/bpf-filter.qname.ebpf 2026-10-08 15:17:50.000000000 +0000 @@ -4078,14 +4078,16 @@ BPF_ALU64_REG(BPF_ADD,BPF_REG_9,BPF_REG_7), BPF_RAW_INSN(BPF_LD|BPF_IND|BPF_H,BPF_REG_0,BPF_REG_9,0,0), BPF_MOV64_REG(BPF_REG_6,BPF_REG_0), -BPF_LD_MAP_FD(BPF_REG_1,maps->d_qnames.d_fd.getHandle()), +// This should be BPF_LD_MAP_FD(BPF_REG_1,maps->d_qnames.d_fd.getHandle()) +// but will be patched at runtime. +BPF_LD_MAP_FD(BPF_REG_1,0), BPF_MOV64_REG(BPF_REG_2,BPF_REG_10), BPF_ALU64_IMM(BPF_ADD,BPF_REG_2,-256), BPF_RAW_INSN(BPF_JMP|BPF_CALL,0,0,0,BPF_FUNC_map_lookup_elem), BPF_MOV64_IMM(BPF_REG_1,2147483647), BPF_JMP_IMM(BPF_JEQ,BPF_REG_0,0,7), BPF_LDX_MEM(BPF_H,BPF_REG_2,BPF_REG_0,8), -BPF_JMP_IMM(BPF_JEQ,BPF_REG_2,255,2), +BPF_JMP_IMM(BPF_JEQ,BPF_REG_2,65535,2), BPF_ALU64_IMM(BPF_AND,BPF_REG_6,65535), BPF_JMP_REG(BPF_JNE,BPF_REG_6,BPF_REG_2,3), BPF_MOV64_IMM(BPF_REG_1,1), diff -Nru dnsdist-1.9.16/build-aux/gen-version dnsdist-2.1.3/build-aux/gen-version --- dnsdist-1.9.16/build-aux/gen-version 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/build-aux/gen-version 2026-10-12 07:14:27.000000000 +0000 @@ -0,0 +1,77 @@ +#!/bin/sh +if [ ! -z "${BUILDER_VERSION}" ]; then + printf ${BUILDER_VERSION} + exit 0 +fi + +VERSION="unknown" + +DIRTY="" +git status | grep -q clean || DIRTY='.dirty' + +# Special environment variable to signal that we are building a release, as this +# has consequences for the version number. +if [ "${IS_RELEASE}" = "YES" ]; then + TAG="$(git describe --tags --exact-match 2> /dev/null | cut -d- -f 2-)" + if [ -n "${TAG}" ]; then + # We're on a tag + echo "${TAG}${DIRTY}" > .version + printf "${TAG}${DIRTY}" + exit 0 + fi + echo 'This is not a tag, either tag this commit or do not set $IS_RELEASE' >&2 + exit 1 +fi + +# +# Generate the version number based on the branch +# +if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then + if [ -n "${BUILDER_MODULES}" ]; then + match=${BUILDER_MODULES} + [ $match = "authoritative" ] && match='auth' + [ $match = "recursor" ] && match='rec' + GIT_VERSION="$(git describe --match=${match}-* --tags | cut -d- -f2-)" + if [ $(echo ${GIT_VERSION} | awk -F"-" '{print NF-1}') = '3' ]; then + # A prerelease happened before + LAST_TAG="$(echo ${GIT_VERSION} | cut -d- -f1-2)" + COMMITS_SINCE_TAG="$(echo ${GIT_VERSION} | cut -d- -f3)" + GIT_HASH="$(echo ${GIT_VERSION} | cut -d- -f4)" + elif [ $(echo ${GIT_VERSION} | awk -F"-" '{print NF-1}') = '1' ]; then + # Exactly on a pre-release + LAST_TAG="$(echo ${GIT_VERSION} | cut -d- -f1-2)" + else + LAST_TAG="$(echo ${GIT_VERSION} | cut -d- -f1)" + COMMITS_SINCE_TAG="$(echo ${GIT_VERSION} | cut -d- -f2)" + GIT_HASH="$(echo ${GIT_VERSION} | cut -d- -f3)" + fi + fi + + if [ -z "${GIT_VERSION}" ]; then + # BUILDER_SUPPORT has more than one product listed, fall back to the 0.0.0 logic + + # We used 0.0.XXXXgHASH for master in the previous incarnation of our build pipeline. + # This now becomes 0.0.XXXX.0.gHASH, as 0.0.0.XXXX.gHASH (which is more correct) + # would break upgrades for those running master + # This _should_ be ok for forever if we stick to X.Y.Z for version numbers + LAST_TAG=0.0 + COMMITS_SINCE_TAG="$(git rev-list --count 12c868770afc20b6cc0da439d881105151d557dd..HEAD 2> /dev/null).0" + [ "${COMMITS_SINCE_TAG}" = ".0" ] && COMMITS_SINCE_TAG=0.0 + GIT_HASH="g$(git rev-parse HEAD | cut -c1-10 2> /dev/null)" + fi + + BRANCH=".$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/[^[:alnum:]]//g;')" + + TAG="$(git describe --tags --exact-match 2> /dev/null | cut -d- -f 2-)" + if [ -n "${TAG}" ]; then # We're exactly on a tag + COMMITS_SINCE_TAG="0" + GIT_HASH="g$(git show --no-patch --format=format:%h HEAD 2>/dev/null)" + if [ -z "$GIT_HASH" ]; then + GIT_HASH="g$(git show --format=format:%h HEAD | head -n1)" + fi + fi + + VERSION="${LAST_TAG}.${COMMITS_SINCE_TAG}${BRANCH}.${GIT_HASH}${DIRTY}" +fi + +printf $VERSION diff -Nru dnsdist-1.9.16/builder-support/gen-version dnsdist-2.1.3/builder-support/gen-version --- dnsdist-1.9.16/builder-support/gen-version 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/builder-support/gen-version 2026-10-08 15:17:50.000000000 +0000 @@ -10,7 +10,7 @@ git status | grep -q clean || DIRTY='.dirty' # Special environment variable to signal that we are building a release, as this -# has consequenses for the version number. +# has consequences for the version number. if [ "${IS_RELEASE}" = "YES" ]; then TAG="$(git describe --tags --exact-match 2> /dev/null | cut -d- -f 2-)" if [ -n "${TAG}" ]; then @@ -53,7 +53,7 @@ # We used 0.0.XXXXgHASH for master in the previous incarnation of our build pipeline. # This now becomes 0.0.XXXX.0.gHASH, as 0.0.0.XXXX.gHASH (which is more correct) # would break upgrades for those running master - # This _should_ be ok for forever is we stick to X.Y.Z for version numbers + # This _should_ be ok for forever if we stick to X.Y.Z for version numbers LAST_TAG=0.0 COMMITS_SINCE_TAG="$(git rev-list --count 12c868770afc20b6cc0da439d881105151d557dd..HEAD 2> /dev/null).0" [ "${COMMITS_SINCE_TAG}" = ".0" ] && COMMITS_SINCE_TAG=0.0 diff -Nru dnsdist-1.9.16/burtle.hh dnsdist-2.1.3/burtle.hh --- dnsdist-1.9.16/burtle.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/burtle.hh 2026-10-12 07:14:27.000000000 +0000 @@ -178,3 +178,9 @@ /*-------------------------------------------- report the result */ return c; } + +template +inline uint32_t burtleCI(const T& k, uint32_t initval) +{ + return burtleCI(reinterpret_cast(k.data()), k.length(), initval); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast): can't static_cast because of sign difference +} diff -Nru dnsdist-1.9.16/cachecleaner.hh dnsdist-2.1.3/cachecleaner.hh --- dnsdist-1.9.16/cachecleaner.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/cachecleaner.hh 2026-10-12 07:14:27.000000000 +0000 @@ -81,13 +81,14 @@ template void moveCacheItemToFrontOrBack(T& collection, typename T::iterator& iter, bool front) { - typedef typename T::template index::type sequence_t; - sequence_t& sidx = collection.template get(); - typename sequence_t::iterator si = collection.template project(iter); - if (front) - sidx.relocate(sidx.begin(), si); // at the beginning of the delete queue - else - sidx.relocate(sidx.end(), si); // back + auto& sidx = collection.template get(); + auto siter = collection.template project(iter); + if (front) { + sidx.relocate(sidx.begin(), siter); // at the beginning of the delete queue + } + else { + sidx.relocate(sidx.end(), siter); // back + } } template @@ -108,8 +109,8 @@ uint64_t totErased = 0; time_t now = time(nullptr); - for (auto& mc : maps) { - auto map = mc.d_map.write_lock(); + for (auto& shard : maps) { + auto map = shard.d_map.write_lock(); uint64_t lookAt = (map->size() + 9) / 10; // Look at 10% of this shard uint64_t erased = 0; @@ -196,7 +197,7 @@ // // Suppose we have 10 perfectly balanced shards, each filled with // 100 entries. So cacheSize is 1000. When cleaning 10%, after shard - // 0 we still need to processs 900 entries, spread out of 9 + // 0 we still need to process 900 entries, spread out of 9 // shards. So cacheSize becomes 900, and toTrim 90, since we cleaned // 10 items from shard 0. Our fraction remains 10%. For the last // shard, we would end up with cacheSize 100, and to clean 10. @@ -240,8 +241,8 @@ { uint64_t delcount = 0; - for (auto& mc : maps) { - auto map = mc.d_map.write_lock(); + for (auto& shard : maps) { + auto map = shard.d_map.write_lock(); delcount += map->size(); map->clear(); } @@ -256,8 +257,8 @@ std::string prefix(match); prefix.resize(prefix.size() - 1); DNSName dprefix(prefix); - for (auto& mc : maps) { - auto map = mc.d_map.write_lock(); + for (auto& shard : maps) { + auto map = shard.d_map.write_lock(); auto& idx = boost::multi_index::get(*map); auto iter = idx.lower_bound(dprefix); auto start = iter; @@ -275,10 +276,10 @@ } template -uint64_t purgeExactLockedCollection(T& mc, const DNSName& qname) +uint64_t purgeExactLockedCollection(T& shard, const DNSName& qname) { uint64_t delcount = 0; - auto map = mc.d_map.write_lock(); + auto map = shard.d_map.write_lock(); auto& idx = boost::multi_index::get(*map); auto range = idx.equal_range(qname); if (range.first != range.second) { @@ -290,12 +291,12 @@ } template -bool lruReplacingInsert(Index& i, const typename Index::value_type& x) +bool lruReplacingInsert(Index& index, const typename Index::value_type& value) { - auto inserted = i.insert(x); + auto inserted = index.insert(value); if (!inserted.second) { - moveCacheItemToBack(i, inserted.first); - i.replace(inserted.first, x); + moveCacheItemToBack(index, inserted.first); + index.replace(inserted.first, value); return false; } return true; diff -Nru dnsdist-1.9.16/channel.hh dnsdist-2.1.3/channel.hh --- dnsdist-1.9.16/channel.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/channel.hh 2026-10-12 07:14:27.000000000 +0000 @@ -24,29 +24,7 @@ #include #include "misc.hh" - -/* g++ defines __SANITIZE_THREAD__ - clang++ supports the nice __has_feature(thread_sanitizer), - let's merge them */ -#if defined(__has_feature) -#if __has_feature(thread_sanitizer) -#define __SANITIZE_THREAD__ 1 -#endif -#endif - -#if __SANITIZE_THREAD__ -#if defined __has_include -#if __has_include() -#include -#else /* __has_include() */ -extern "C" void __tsan_acquire(void* addr); -extern "C" void __tsan_release(void* addr); -#endif /* __has_include() */ -#else /* defined __has_include */ -extern "C" void __tsan_acquire(void* addr); -extern "C" void __tsan_release(void* addr); -#endif /* defined __has_include */ -#endif /* __SANITIZE_THREAD__ */ +#include "sanitizer.hh" namespace pdns { @@ -243,7 +221,7 @@ not even to release it, so let's transfer it to a local object */ auto localObj = std::move(object); auto ptr = localObj.get(); - static_assert(sizeof(ptr) <= PIPE_BUF, "Writes up to PIPE_BUF are guaranted not to interleaved and to either fully succeed or fail"); + static_assert(sizeof(ptr) <= PIPE_BUF, "Writes up to PIPE_BUF are guaranteed not to interleaved and to either fully succeed or fail"); while (true) { #if __SANITIZE_THREAD__ __tsan_release(ptr); diff -Nru dnsdist-1.9.16/compile dnsdist-2.1.3/compile --- dnsdist-1.9.16/compile 2026-08-05 14:29:28.000000000 +0000 +++ dnsdist-2.1.3/compile 2026-10-12 07:14:54.031469800 +0000 @@ -1,9 +1,9 @@ #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. -scriptversion=2018-03-07.03; # UTC +scriptversion=2024-06-19.01; # UTC -# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Copyright (C) 1999-2024 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify @@ -143,7 +143,7 @@ # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in - *.o | *.[oO][bB][jJ]) + *.o | *.lo | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift @@ -248,14 +248,17 @@ right script to run: please start by reading the file 'INSTALL'. Report bugs to . +GNU Automake home page: . +General help using GNU software: . EOF exit $? ;; -v | --v*) - echo "compile $scriptversion" + echo "compile (GNU Automake) $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ + clang-cl | *[/\\]clang-cl | clang-cl.exe | *[/\\]clang-cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; diff -Nru dnsdist-1.9.16/config.guess dnsdist-2.1.3/config.guess --- dnsdist-1.9.16/config.guess 2026-08-05 14:29:28.000000000 +0000 +++ dnsdist-2.1.3/config.guess 2026-10-12 07:14:54.032470000 +0000 @@ -1,14 +1,14 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2021 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2021-06-03' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -47,7 +47,7 @@ usage="\ Usage: $0 [OPTION] -Output the configuration name of the system \`$me' is run on. +Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit @@ -60,13 +60,13 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2021 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -102,8 +102,8 @@ # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. +# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still +# use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. @@ -155,6 +155,9 @@ set_cc_for_build cat <<-EOF > "$dummy.c" + #if defined(__ANDROID__) + LIBC=android + #else #include #if defined(__UCLIBC__) LIBC=uclibc @@ -162,6 +165,8 @@ LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu + #elif defined(__LLVM_LIBC__) + LIBC=llvm #else #include /* First heuristic to detect musl libc. */ @@ -169,6 +174,7 @@ LIBC=musl #endif #endif + #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" @@ -437,7 +443,7 @@ # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 @@ -459,7 +465,7 @@ UNAME_RELEASE=`uname -v` ;; esac - # Japanese Language versions have a version number like `4.1.3-JL'. + # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; @@ -904,7 +910,7 @@ fi ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; @@ -929,6 +935,9 @@ i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; + *:SerenityOS:*:*) + GUESS=$UNAME_MACHINE-pc-serenity + ;; *:Interix*:*) case $UNAME_MACHINE in x86) @@ -963,11 +972,37 @@ GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; + x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-pc-managarm-mlibc" + ;; + *:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" + ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + set_cc_for_build + CPU=$UNAME_MACHINE + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __ARM_EABI__ + #ifdef __ARM_PCS_VFP + ABI=eabihf + #else + ABI=eabi + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; + esac + fi + GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be @@ -1033,7 +1068,16 @@ k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; - loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + kvx:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + kvx:cos:*:*) + GUESS=$UNAME_MACHINE-unknown-cos + ;; + kvx:mbr:*:*) + GUESS=$UNAME_MACHINE-unknown-mbr + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) @@ -1148,16 +1192,27 @@ ;; x86_64:Linux:*:*) set_cc_for_build + CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then - if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_X32 >/dev/null - then - LIBCABI=${LIBC}x32 - fi + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __i386__ + ABI=x86 + #else + #ifdef __ILP32__ + ABI=x32 + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + x86) CPU=i686 ;; + x32) LIBCABI=${LIBC}x32 ;; + esac fi - GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI + GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC @@ -1177,7 +1232,7 @@ GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility + # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; @@ -1318,7 +1373,7 @@ GUESS=ns32k-sni-sysv fi ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; @@ -1364,8 +1419,11 @@ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; - x86_64:Haiku:*:*) - GUESS=x86_64-unknown-haiku + ppc:Haiku:*:*) # Haiku running on Apple PowerPC + GUESS=powerpc-apple-haiku + ;; + *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) + GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE @@ -1522,6 +1580,9 @@ i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; + i*86:Fiwix:*:*) + GUESS=$UNAME_MACHINE-pc-fiwix + ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; @@ -1534,6 +1595,9 @@ *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; + *:Ironclad:*:*) + GUESS=$UNAME_MACHINE-unknown-ironclad + ;; esac # Do we have a guess based on uname results? diff -Nru dnsdist-1.9.16/config.h.in dnsdist-2.1.3/config.h.in --- dnsdist-1.9.16/config.h.in 2026-08-05 14:29:28.000000000 +0000 +++ dnsdist-2.1.3/config.h.in 2026-10-12 07:14:53.710453500 +0000 @@ -1,18 +1,18 @@ /* config.h.in. Generated from configure.ac by autoheader. */ -/* This is dnsdist */ -#undef DNSDIST +/* pdns configure arguments */ +#undef DNSDIST_CONFIG_ARGS -/* Define to 1 if you have the `accept4' function. */ +/* Define to 1 if you have the 'accept4' function. */ #undef HAVE_ACCEPT4 -/* Define to 1 if you have the `arc4random' function. */ +/* Define to 1 if you have the 'arc4random' function. */ #undef HAVE_ARC4RANDOM -/* Define to 1 if you have the `arc4random_buf' function. */ +/* Define to 1 if you have the 'arc4random_buf' function. */ #undef HAVE_ARC4RANDOM_BUF -/* Define to 1 if you have the `arc4random_uniform' function. */ +/* Define to 1 if you have the 'arc4random_uniform' function. */ #undef HAVE_ARC4RANDOM_UNIFORM /* Defined if the requested minimum BOOST version is satisfied */ @@ -27,7 +27,7 @@ /* Define to 1 if you have the BPF library */ #undef HAVE_BPF -/* Define to 1 if you have the `bpf_xdp_query' function. */ +/* Define to 1 if you have the 'bpf_xdp_query' function. */ #undef HAVE_BPF_XDP_QUERY /* Define to 1 if you have CDB */ @@ -39,31 +39,27 @@ /* Define to 1 if you have clock_gettime */ #undef HAVE_CLOCK_GETTIME -/* Define to 1 if you have the `crypto_box_curve25519xchacha20poly1305_easy' +/* Define to 1 if you have the 'crypto_box_curve25519xchacha20poly1305_easy' function. */ #undef HAVE_CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_EASY -/* Define to 1 if you have the `crypto_box_easy_afternm' function. */ +/* Define to 1 if you have the 'crypto_box_easy_afternm' function. */ #undef HAVE_CRYPTO_BOX_EASY_AFTERNM -/* Define to 1 if you have the `CRYPTO_memcmp' function. */ +/* Define to 1 if you have the 'CRYPTO_memcmp' function. */ #undef HAVE_CRYPTO_MEMCMP -/* Define to 1 if you have the `crypto_shorthash' function. */ +/* Define to 1 if you have the 'crypto_shorthash' function. */ #undef HAVE_CRYPTO_SHORTHASH /* define if the compiler supports basic C++17 syntax */ #undef HAVE_CXX17 -/* Define to 1 if you have the declaration of - `h2o_socket_get_ssl_server_name', and to 0 if you don't. */ -#undef HAVE_DECL_H2O_SOCKET_GET_SSL_SERVER_NAME - -/* Define to 1 if you have the declaration of `snmp_select_info2', and to 0 if +/* Define to 1 if you have the declaration of 'snmp_select_info2', and to 0 if you don't. */ #undef HAVE_DECL_SNMP_SELECT_INFO2 -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you +/* Define to 1 if you have the declaration of 'strerror_r', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR_R @@ -88,19 +84,19 @@ /* Define if using eBPF. */ #undef HAVE_EBPF -/* Define to 1 if you have the `EVP_MD_CTX_free' function. */ +/* Define to 1 if you have the 'EVP_MD_CTX_free' function. */ #undef HAVE_EVP_MD_CTX_FREE -/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ +/* Define to 1 if you have the 'EVP_MD_CTX_new' function. */ #undef HAVE_EVP_MD_CTX_NEW /* Define to 1 if you have EVP_PKEY_CTX_set1_scrypt_salt */ #undef HAVE_EVP_PKEY_CTX_SET1_SCRYPT_SALT -/* Define to 1 if you have the `explicit_bzero' function. */ +/* Define to 1 if you have the 'explicit_bzero' function. */ #undef HAVE_EXPLICIT_BZERO -/* Define to 1 if you have the `explicit_memset' function. */ +/* Define to 1 if you have the 'explicit_memset' function. */ #undef HAVE_EXPLICIT_MEMSET /* Define if ASAN fiber annotation interface is available. */ @@ -109,46 +105,49 @@ /* Define to 1 if you have libfstrm */ #undef HAVE_FSTRM -/* Define to 1 if you have the `fstrm_tcp_writer_init' function. */ +/* Define to 1 if you have the 'fstrm_tcp_writer_init' function. */ #undef HAVE_FSTRM_TCP_WRITER_INIT -/* Define to 1 if you have the `getentropy' function. */ +/* Define to 1 if you have the 'getentropy' function. */ #undef HAVE_GETENTROPY /* Define to 1 if you have getifaddrs */ #undef HAVE_GETIFADDRS -/* Define to 1 if you have the `getrandom' function. */ +/* Define to 1 if you have the 'getrandom' function. */ #undef HAVE_GETRANDOM -/* Define to 1 if you have the `gmtime_r' function. */ +/* Define to 1 if you have the 'gmtime_r' function. */ #undef HAVE_GMTIME_R /* Define to 1 if you have GnuTLS */ #undef HAVE_GNUTLS -/* Define to 1 if you have the `gnutls_alpn_set_protocols' function. */ +/* Define to 1 if you have the 'gnutls_alpn_set_protocols' function. */ #undef HAVE_GNUTLS_ALPN_SET_PROTOCOLS -/* Define to 1 if you have the `gnutls_memset' function. */ +/* Define to 1 if you have the 'gnutls_memset' function. */ #undef HAVE_GNUTLS_MEMSET -/* Define to 1 if you have the `gnutls_session_get_verify_cert_status' +/* Define to 1 if you have the 'gnutls_session_get_verify_cert_status' function. */ #undef HAVE_GNUTLS_SESSION_GET_VERIFY_CERT_STATUS -/* Define to 1 if you have the `gnutls_session_set_verify_cert' function. */ +/* Define to 1 if you have the 'gnutls_session_set_verify_cert' function. */ #undef HAVE_GNUTLS_SESSION_SET_VERIFY_CERT -/* define to 1 if h2o_socket_get_ssl_server_name is available. */ -#undef HAVE_H2O_SOCKET_GET_SSL_SERVER_NAME - /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you enable ipcipher support */ #undef HAVE_IPCIPHER +/* Define to 1 if you enable ipcrypt2 support */ +#undef HAVE_IPCRYPT2 + +/* Define if LSAN interface is available. */ +#undef HAVE_LEAK_SANITIZER_INTERFACE + /* Define to 1 if you have libcap */ #undef HAVE_LIBCAP @@ -158,9 +157,6 @@ /* Define to 1 if you have libedit */ #undef HAVE_LIBEDIT -/* Define to 1 if you enable h2o-evloop support */ -#undef HAVE_LIBH2OEVLOOP - /* Define to 1 if you have libsodium */ #undef HAVE_LIBSODIUM @@ -179,13 +175,13 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LMDB_H -/* Define to 1 if you have the `localtime_r' function. */ +/* Define to 1 if you have the 'localtime_r' function. */ #undef HAVE_LOCALTIME_R /* Define to 1 if you have lua */ #undef HAVE_LUA -/* Define to 1 if you have the `memset_s' function. */ +/* Define to 1 if you have the 'memset_s' function. */ #undef HAVE_MEMSET_S /* Define if using Net SNMP. */ @@ -194,20 +190,20 @@ /* Define to 1 if you have nghttp2 */ #undef HAVE_NGHTTP2 -/* Define to 1 if you have the `nghttp2_check_header_value_rfc9113' function. +/* Define to 1 if you have the 'nghttp2_check_header_value_rfc9113' function. */ #undef HAVE_NGHTTP2_CHECK_HEADER_VALUE_RFC9113 -/* Define to 1 if you have the `nghttp2_check_method' function. */ +/* Define to 1 if you have the 'nghttp2_check_method' function. */ #undef HAVE_NGHTTP2_CHECK_METHOD -/* Define to 1 if you have the `nghttp2_check_path' function. */ +/* Define to 1 if you have the 'nghttp2_check_path' function. */ #undef HAVE_NGHTTP2_CHECK_PATH -/* Define to 1 if you have the `OCSP_basic_sign' function. */ +/* Define to 1 if you have the 'OCSP_basic_sign' function. */ #undef HAVE_OCSP_BASIC_SIGN -/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ +/* Define to 1 if you have the 'OPENSSL_init_crypto' function. */ #undef HAVE_OPENSSL_INIT_CRYPTO /* Define to 1 if you have pthread_getattr_np */ @@ -243,6 +239,9 @@ /* Define to 1 if you have quiche */ #undef HAVE_QUICHE +/* Define to 1 if you have the 'quiche_conn_server_name' function. */ +#undef HAVE_QUICHE_CONN_SERVER_NAME + /* Define to 1 if the Quiche API has quiche_h3_event_headers_has_more_frames instead of quiche_h3_event_headers_has_body */ #undef HAVE_QUICHE_H3_EVENT_HEADERS_HAS_MORE_FRAMES @@ -251,22 +250,22 @@ quiche_conn_stream_recv and quiche_conn_stream_send */ #undef HAVE_QUICHE_STREAM_ERROR_CODES -/* Define to 1 if you have the `randombytes_stir' function. */ +/* Define to 1 if you have the 'randombytes_stir' function. */ #undef HAVE_RANDOMBYTES_STIR -/* Define to 1 if you have the `RAND_bytes' function. */ +/* Define to 1 if you have the 'RAND_bytes' function. */ #undef HAVE_RAND_BYTES -/* Define to 1 if you have the `RAND_pseudo_bytes' function. */ +/* Define to 1 if you have the 'RAND_pseudo_bytes' function. */ #undef HAVE_RAND_PSEUDO_BYTES /* Define if using RE2. */ #undef HAVE_RE2 -/* Define to 1 if you have the `recvmmsg' function. */ +/* Define to 1 if you have the 'recvmmsg' function. */ #undef HAVE_RECVMMSG -/* Define to 1 if you have the `RSA_get0_key' function. */ +/* Define to 1 if you have the 'RSA_get0_key' function. */ #undef HAVE_RSA_GET0_KEY /* Define to 1 if you have the header @@ -279,49 +278,52 @@ /* Define to 1 if __sanitizer_finish_switch_fiber takes three pointers */ #undef HAVE_SANITIZER_FINISH_SWITCH_FIBER_THREE_PTRS -/* Define to 1 if you have the `sendmmsg' function. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_SANITIZER_LSAN_INTERFACE_H + +/* Define to 1 if you have the 'sendmmsg' function. */ #undef HAVE_SENDMMSG /* define to 1 if snmp_select_info2 is available. */ #undef HAVE_SNMP_SELECT_INFO2 -/* Define to 1 if you have the `sodium_memcmp' function. */ +/* Define to 1 if you have the 'sodium_memcmp' function. */ #undef HAVE_SODIUM_MEMCMP -/* Define to 1 if you have the `SSL_CTX_get0_privatekey' function. */ +/* Define to 1 if you have the 'SSL_CTX_get0_privatekey' function. */ #undef HAVE_SSL_CTX_GET0_PRIVATEKEY -/* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_alpn_protos' function. */ #undef HAVE_SSL_CTX_SET_ALPN_PROTOS -/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_alpn_select_cb' function. */ #undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB -/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_ciphersuites' function. */ #undef HAVE_SSL_CTX_SET_CIPHERSUITES -/* Define to 1 if you have the `SSL_CTX_set_keylog_callback' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_keylog_callback' function. */ #undef HAVE_SSL_CTX_SET_KEYLOG_CALLBACK -/* Define to 1 if you have the `SSL_CTX_set_min_proto_version' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_min_proto_version' function. */ #undef HAVE_SSL_CTX_SET_MIN_PROTO_VERSION -/* Define to 1 if you have the `SSL_CTX_set_next_proto_select_cb' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_next_proto_select_cb' function. */ #undef HAVE_SSL_CTX_SET_NEXT_PROTO_SELECT_CB -/* Define to 1 if you have the `SSL_CTX_set_num_tickets' function. */ +/* Define to 1 if you have the 'SSL_CTX_set_num_tickets' function. */ #undef HAVE_SSL_CTX_SET_NUM_TICKETS -/* Define to 1 if you have the `SSL_CTX_use_cert_and_key' function. */ +/* Define to 1 if you have the 'SSL_CTX_use_cert_and_key' function. */ #undef HAVE_SSL_CTX_USE_CERT_AND_KEY -/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */ +/* Define to 1 if you have the 'SSL_get0_alpn_selected' function. */ #undef HAVE_SSL_GET0_ALPN_SELECTED -/* Define to 1 if you have the `SSL_get0_next_proto_negotiated' function. */ +/* Define to 1 if you have the 'SSL_get0_next_proto_negotiated' function. */ #undef HAVE_SSL_GET0_NEXT_PROTO_NEGOTIATED -/* Define to 1 if you have the `SSL_set_hostflags' function. */ +/* Define to 1 if you have the 'SSL_set_hostflags' function. */ #undef HAVE_SSL_SET_HOSTFLAGS /* Define to 1 if you have the header file. */ @@ -333,7 +335,7 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define if you have `strerror_r'. */ +/* Define if you have 'strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ @@ -366,6 +368,9 @@ /* Define to 1 if you have AF_XDP (XSK) support enabled */ #undef HAVE_XSK +/* Define to 1 if you enable YAML configuration support */ +#undef HAVE_YAML_CONFIGURATION + /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR @@ -399,7 +404,7 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define to 1 if all of the C90 standard headers exist (not just the ones +/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS diff -Nru dnsdist-1.9.16/config.sub dnsdist-2.1.3/config.sub --- dnsdist-1.9.16/config.sub 2026-08-05 14:29:28.000000000 +0000 +++ dnsdist-2.1.3/config.sub 2026-10-12 07:14:54.034469800 +0000 @@ -1,14 +1,14 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2021 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2021-08-14' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -76,13 +76,13 @@ version="\ GNU config.sub ($timestamp) -Copyright 1992-2021 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -130,7 +130,7 @@ # Separate into logical components for further validation case $1 in *-*-*-*-*) - echo Invalid configuration \`"$1"\': more than four components >&2 + echo "Invalid configuration '$1': more than four components" >&2 exit 1 ;; *-*-*-*) @@ -145,7 +145,8 @@ nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ - | storm-chaos* | os2-emx* | rtmk-nova*) + | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ + | windows-* ) basic_machine=$field1 basic_os=$maybe_os ;; @@ -943,7 +944,7 @@ EOF IFS=$saved_IFS ;; - # We use `pc' rather than `unknown' + # We use 'pc' rather than 'unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) @@ -1020,6 +1021,11 @@ ;; # Here we normalize CPU types with a missing or matching vendor + armh-unknown | armh-alt) + cpu=armv7l + vendor=alt + basic_os=${basic_os:-linux-gnueabihf} + ;; dpx20-unknown | dpx20-bull) cpu=rs6000 vendor=bull @@ -1070,7 +1076,7 @@ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 ;; - pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) + pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*) cpu=i686 ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) @@ -1121,7 +1127,7 @@ xscale-* | xscalee[bl]-*) cpu=`echo "$cpu" | sed 's/^xscale/arm/'` ;; - arm64-*) + arm64-* | aarch64le-*) cpu=aarch64 ;; @@ -1175,7 +1181,7 @@ case $cpu in 1750a | 580 \ | a29k \ - | aarch64 | aarch64_be \ + | aarch64 | aarch64_be | aarch64c | arm64ec \ | abacus \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ @@ -1194,50 +1200,29 @@ | d10v | d30v | dlx | dsp16xx \ | e2k | elxsi | epiphany \ | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ + | javascript \ | h8300 | h8500 \ | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | ip2k | iq2000 \ | k1om \ + | kvx \ | le32 | le64 \ | lm32 \ - | loongarch32 | loongarch64 | loongarchx32 \ + | loongarch32 | loongarch64 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ | m88110 | m88k | maxq | mb | mcore | mep | metag \ | microblaze | microblazeel \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64eb | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r3 | mipsisa32r3el \ - | mipsisa32r5 | mipsisa32r5el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r3 | mipsisa64r3el \ - | mipsisa64r5 | mipsisa64r5el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ + | mips* \ | mmix \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ + | nanomips* \ | nds32 | nds32le | nds32be \ | nfp \ | nios | nios2 | nios2eb | nios2el \ @@ -1269,6 +1254,7 @@ | ubicom32 \ | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | vax \ + | vc4 \ | visium \ | w65 \ | wasm32 | wasm64 \ @@ -1280,7 +1266,7 @@ ;; *) - echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 + echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 exit 1 ;; esac @@ -1301,11 +1287,12 @@ # Decode manufacturer-specific aliases for certain operating systems. -if test x$basic_os != x +if test x"$basic_os" != x then -# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just +# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. +obj= case $basic_os in gnu/linux*) kernel=linux @@ -1336,6 +1323,10 @@ kernel=linux os=`echo "$basic_os" | sed -e 's|linux|gnu|'` ;; + managarm*) + kernel=managarm + os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'` + ;; *) kernel= os=$basic_os @@ -1501,10 +1492,16 @@ os=eabi ;; *) - os=elf + os= + obj=elf ;; esac ;; + aout* | coff* | elf* | pe*) + # These are machine code file formats, not OSes + obj=$os + os= + ;; *) # No normalization, but not necessarily accepted, that comes below. ;; @@ -1523,12 +1520,15 @@ # system, and we'll never get to this point. kernel= +obj= case $cpu-$vendor in score-*) - os=elf + os= + obj=elf ;; spu-*) - os=elf + os= + obj=elf ;; *-acorn) os=riscix1.2 @@ -1538,28 +1538,35 @@ os=gnu ;; arm*-semi) - os=aout + os= + obj=aout ;; c4x-* | tic4x-*) - os=coff + os= + obj=coff ;; c8051-*) - os=elf + os= + obj=elf ;; clipper-intergraph) os=clix ;; hexagon-*) - os=elf + os= + obj=elf ;; tic54x-*) - os=coff + os= + obj=coff ;; tic55x-*) - os=coff + os= + obj=coff ;; tic6x-*) - os=coff + os= + obj=coff ;; # This must come before the *-dec entry. pdp10-*) @@ -1581,19 +1588,24 @@ os=sunos3 ;; m68*-cisco) - os=aout + os= + obj=aout ;; mep-*) - os=elf + os= + obj=elf ;; mips*-cisco) - os=elf + os= + obj=elf ;; - mips*-*) - os=elf + mips*-*|nanomips*-*) + os= + obj=elf ;; or32-*) - os=coff + os= + obj=coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=sysv3 @@ -1602,7 +1614,8 @@ os=sunos4.1.1 ;; pru-*) - os=elf + os= + obj=elf ;; *-be) os=beos @@ -1683,10 +1696,12 @@ os=uxpv ;; *-rom68k) - os=coff + os= + obj=coff ;; *-*bug) - os=coff + os= + obj=coff ;; *-apple) os=macos @@ -1704,10 +1719,11 @@ fi -# Now, validate our (potentially fixed-up) OS. +# Now, validate our (potentially fixed-up) individual pieces (OS, OBJ). + case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. - musl* | newlib* | relibc* | uclibc*) + llvm* | musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) @@ -1715,6 +1731,9 @@ # VxWorks passes extra cpu info in the 4th filed. simlinux | simwindows | spe) ;; + # See `case $cpu-$os` validation below + ghcjs) + ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. @@ -1723,7 +1742,7 @@ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | hiux* | abug | nacl* | netware* | windows* \ - | os9* | macos* | osx* | ios* \ + | os9* | macos* | osx* | ios* | tvos* | watchos* \ | mpw* | magic* | mmixware* | mon960* | lnews* \ | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | aos* | aros* | cloudabi* | sortix* | twizzler* \ @@ -1732,11 +1751,11 @@ | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ - | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ - | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | bosx* | nextstep* | cxux* | oabi* \ + | ptx* | ecoff* | winnt* | domain* | vsta* \ | udi* | lites* | ieee* | go32* | aux* | hcos* \ | chorusrdb* | cegcc* | glidix* | serenity* \ - | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | cygwin* | msys* | moss* | proelf* | rtems* \ | midipix* | mingw32* | mingw64* | mint* \ | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | interix* | uwin* | mks* | rhapsody* | darwin* \ @@ -1748,49 +1767,117 @@ | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ - | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*) + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ + | fiwix* | mlibc* | cos* | mbr* | ironclad* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) # Don't forget version if it is 3.2v4 or newer. ;; + # This refers to builds using the UEFI calling convention + # (which depends on the architecture) and PE file format. + # Note that this is both a different calling convention and + # different file format than that of GNU-EFI + # (x86_64-w64-mingw32). + uefi) + ;; none) ;; + kernel* | msvc* ) + # Restricted further below + ;; + '') + if test x"$obj" = x + then + echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2 + fi + ;; *) - echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 + exit 1 + ;; +esac + +case $obj in + aout* | coff* | elf* | pe*) + ;; + '') + # empty is fine + ;; + *) + echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 + exit 1 + ;; +esac + +# Here we handle the constraint that a (synthetic) cpu and os are +# valid only in combination with each other and nowhere else. +case $cpu-$os in + # The "javascript-unknown-ghcjs" triple is used by GHC; we + # accept it here in order to tolerate that, but reject any + # variations. + javascript-ghcjs) + ;; + javascript-* | *-ghcjs) + echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. -case $kernel-$os in - linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ - | linux-musl* | linux-relibc* | linux-uclibc* ) +case $kernel-$os-$obj in + linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ + | linux-mlibc*- | linux-musl*- | linux-newlib*- \ + | linux-relibc*- | linux-uclibc*- ) + ;; + uclinux-uclibc*- ) + ;; + managarm-mlibc*- | managarm-kernel*- ) ;; - uclinux-uclibc* ) + windows*-msvc*-) ;; - -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) + -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ + | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. - echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 exit 1 ;; - kfreebsd*-gnu* | kopensolaris*-gnu*) + -kernel*- ) + echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 + exit 1 ;; - vxworks-simlinux | vxworks-simwindows | vxworks-spe) + *-kernel*- ) + echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 + exit 1 ;; - nto-qnx*) + *-msvc*- ) + echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 + exit 1 ;; - os2-emx) + kfreebsd*-gnu*- | kopensolaris*-gnu*-) + ;; + vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) + ;; + nto-qnx*-) + ;; + os2-emx-) ;; - *-eabi* | *-gnueabi*) + *-eabi*- | *-gnueabi*-) ;; - -*) + none--*) + # None (no kernel, i.e. freestanding / bare metal), + # can be paired with an machine code file format + ;; + -*-) # Blank kernel with real OS is always fine. ;; - *-*) - echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + --*) + # Blank kernel and OS with real machine code file format is always fine. + ;; + *-*-*) + echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 exit 1 ;; esac @@ -1873,7 +1960,7 @@ ;; esac -echo "$cpu-$vendor-${kernel:+$kernel-}$os" +echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: diff -Nru dnsdist-1.9.16/configure dnsdist-2.1.3/configure --- dnsdist-1.9.16/configure 2026-08-05 14:29:27.000000000 +0000 +++ dnsdist-2.1.3/configure 2026-10-12 07:14:52.793438700 +0000 @@ -1,9 +1,9 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for dnsdist 1.9.16. +# Generated by GNU Autoconf 2.72 for dnsdist 2.1.3. # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # @@ -15,7 +15,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -24,12 +23,13 @@ # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -101,7 +101,7 @@ ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -131,15 +131,14 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -147,12 +146,13 @@ # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -170,8 +170,9 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -193,14 +194,15 @@ if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -233,12 +235,13 @@ if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -260,7 +263,7 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -279,7 +282,8 @@ $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -318,14 +322,6 @@ as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -394,11 +390,12 @@ { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -412,21 +409,14 @@ { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -500,6 +490,8 @@ /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -548,7 +540,6 @@ as_echo='printf %s\n' as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -560,9 +551,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -587,10 +578,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -618,8 +611,8 @@ # Identity of this package. PACKAGE_NAME='dnsdist' PACKAGE_TARNAME='dnsdist' -PACKAGE_VERSION='1.9.16' -PACKAGE_STRING='dnsdist 1.9.16' +PACKAGE_VERSION='2.1.3' +PACKAGE_STRING='dnsdist 2.1.3' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -682,14 +675,17 @@ PIE_LDFLAGS PIE_CFLAGS HAVE_CXX17 +HAVE_IPCRYPT2_FALSE +HAVE_IPCRYPT2_TRUE IPCIPHER_FALSE IPCIPHER_TRUE LMDB_LIBS LMDB_CFLAGS CDB_LIBS CDB_CFLAGS -LIBH2OEVLOOP_LIBS -LIBH2OEVLOOP_CFLAGS +CARGO +HAVE_YAML_CONFIGURATION_FALSE +HAVE_YAML_CONFIGURATION_TRUE NGHTTP2_LIBS NGHTTP2_CFLAGS GNUTLS_LIBS @@ -717,8 +713,6 @@ HAVE_LMDB_TRUE HAVE_LIBSSL_FALSE HAVE_LIBSSL_TRUE -HAVE_LIBH2OEVLOOP_FALSE -HAVE_LIBH2OEVLOOP_TRUE HAVE_GNUTLS_FALSE HAVE_GNUTLS_TRUE HAVE_CDB_FALSE @@ -730,6 +724,8 @@ LUA_LIBS LUA_CFLAGS ARC4RANDOM_LIBS +IPCRYPT2_LIBS +IPCRYPT2_CFLAGS IPCRYPT_LIBS IPCRYPT_CFLAGS YAHTTP_LIBS @@ -863,6 +859,8 @@ PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG +pdns_configure_args +LIBDL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -917,6 +915,8 @@ LDFLAGS CFLAGS CC +am__xargs_n +am__rm_f_notfound AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V @@ -1028,10 +1028,11 @@ with_libssl with_gnutls with_nghttp2 -with_h2o +enable_yaml with_cdb with_lmdb enable_ipcipher +enable_ipcrypt2 enable_hardening enable_fortify_source enable_auto_var_init @@ -1089,8 +1090,6 @@ GNUTLS_LIBS NGHTTP2_CFLAGS NGHTTP2_LIBS -LIBH2OEVLOOP_CFLAGS -LIBH2OEVLOOP_LIBS CDB_CFLAGS CDB_LIBS LMDB_CFLAGS @@ -1205,7 +1204,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1231,7 +1230,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1444,7 +1443,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1460,7 +1459,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1490,8 +1489,8 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1499,7 +1498,7 @@ # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1549,7 +1548,7 @@ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1617,7 +1616,7 @@ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1645,7 +1644,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures dnsdist 1.9.16 to adapt to many kinds of systems. +'configure' configures dnsdist 2.1.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1659,11 +1658,11 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1671,10 +1670,10 @@ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1716,7 +1715,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of dnsdist 1.9.16:";; + short | recursive ) echo "Configuration of dnsdist 2.1.3:";; esac cat <<\_ACEOF @@ -1749,13 +1748,16 @@ --enable-dns-over-tls enable DNS over TLS support (requires GnuTLS or OpenSSL) [default=no] --enable-dns-over-https enable incoming DNS over HTTPS (DoH) support - (requires libh2o or nghttp2) [default=no] + (requires nghttp2) [default=no] --enable-dns-over-quic enable incoming DNS over QUIC (DoQ) support (requires quiche) [default=no] --enable-dns-over-http3 enable incoming DNS over HTTP3 (DoH3) support (requires quiche) [default=no] + --enable-yaml enable YAML configuration (requires Rust and Cargo) + [default=no] --enable-ipcipher enable ipcipher support (requires libcrypto) [default=auto] + --enable-ipcrypt2 enable ipcrypt2 support [default=no] --disable-hardening disable compiler security checks [default=no] --enable-fortify-source enable FORTIFY_SOURCE support [default=2] --enable-auto-var-init enable initialization of automatic variables (zero, @@ -1783,7 +1785,7 @@ --with-libsodium use libsodium [default=auto] --with-quiche use quiche [default=auto] --with-libedit enable libedit support [default=yes] - --with-boost=DIR prefix of Boost 1.42 [guess] + --with-boost=DIR prefix of Boost 1.54 [guess] --with-re2 with libre2 [default=no] --with-ebpf enable eBPF support [default=auto] --with-xsk enable AF_XDP (XDK) support [default=auto] @@ -1805,7 +1807,6 @@ --with-libssl use OpenSSL libssl [default=auto] --with-gnutls use GnuTLS [default=auto] --with-nghttp2 use nghttp2 [default=auto] - --with-h2o use libh2o-evloop [default=no] --with-cdb use CDB [default=auto] --with-lmdb lmdb library to use [default=auto] --with-python-sys-prefix @@ -1872,10 +1873,6 @@ C compiler flags for NGHTTP2, overriding pkg-config NGHTTP2_LIBS linker flags for NGHTTP2, overriding pkg-config - LIBH2OEVLOOP_CFLAGS - C compiler flags for LIBH2OEVLOOP, overriding pkg-config - LIBH2OEVLOOP_LIBS - linker flags for LIBH2OEVLOOP, overriding pkg-config CDB_CFLAGS C compiler flags for CDB, overriding pkg-config CDB_LIBS linker flags for CDB, overriding pkg-config LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config @@ -1884,7 +1881,7 @@ PACKAGEVERSION The version used in secpoll queries -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. @@ -1951,10 +1948,10 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -dnsdist configure 1.9.16 -generated by GNU Autoconf 2.71 +dnsdist configure 2.1.3 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1993,11 +1990,12 @@ } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2032,11 +2030,12 @@ } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2074,11 +2073,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2102,8 +2102,8 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> @@ -2111,10 +2111,12 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2134,15 +2136,15 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -2153,7 +2155,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -2172,11 +2174,13 @@ if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2212,11 +2216,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2254,11 +2259,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2281,15 +2287,15 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -2300,7 +2306,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -2319,11 +2325,13 @@ if ac_fn_cxx_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2344,8 +2352,8 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> @@ -2353,10 +2361,12 @@ if ac_fn_cxx_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2378,8 +2388,8 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in #( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2403,12 +2413,14 @@ if ac_fn_cxx_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2440,8 +2452,8 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by dnsdist $as_me 1.9.16, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by dnsdist $as_me 2.1.3, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2687,10 +2699,10 @@ printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2726,9 +2738,7 @@ /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2742,6 +2752,21 @@ return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2769,16 +2794,19 @@ # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2828,7 +2856,6 @@ static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2894,6 +2921,8 @@ ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2915,7 +2944,7 @@ # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3330,8 +3359,9 @@ if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3359,12 +3389,12 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3373,18 +3403,18 @@ ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3400,11 +3430,11 @@ fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3418,7 +3448,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -am__api_version='1.16' +am__api_version='1.17' @@ -3442,8 +3472,8 @@ if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS @@ -3497,7 +3527,8 @@ IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install @@ -3520,6 +3551,165 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 +printf %s "checking whether sleep supports fractional seconds... " >&6; } +if test ${am_cv_sleep_fractional_seconds+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if sleep 0.001 2>/dev/null +then : + am_cv_sleep_fractional_seconds=yes +else case e in #( + e) am_cv_sleep_fractional_seconds=no ;; +esac +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 +printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 +printf %s "checking filesystem timestamp resolution... " >&6; } +if test ${am_cv_filesystem_timestamp_resolution+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Default to the worst case. +am_cv_filesystem_timestamp_resolution=2 + +# Only try to go finer than 1 sec if sleep can do it. +# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, +# - 1 sec is not much of a win compared to 2 sec, and +# - it takes 2 seconds to perform the test whether 1 sec works. +# +# Instead, just use the default 2s on platforms that have 1s resolution, +# accept the extra 1s delay when using $sleep in the Automake tests, in +# exchange for not incurring the 2s delay for running the test for all +# packages. +# +am_try_resolutions= +if test "$am_cv_sleep_fractional_seconds" = yes; then + # Even a millisecond often causes a bunch of false positives, + # so just try a hundredth of a second. The time saved between .001 and + # .01 is not terribly consequential. + am_try_resolutions="0.01 0.1 $am_try_resolutions" +fi + +# In order to catch current-generation FAT out, we must *modify* files +# that already exist; the *creation* timestamp is finer. Use names +# that make ls -t sort them differently when they have equal +# timestamps than when they have distinct timestamps, keeping +# in mind that ls -t prints the *newest* file first. +rm -f conftest.ts? +: > conftest.ts1 +: > conftest.ts2 +: > conftest.ts3 + +# Make sure ls -t actually works. Do 'set' in a subshell so we don't +# clobber the current shell's arguments. (Outer-level square brackets +# are removed by m4; they're present so that m4 does not expand +# ; be careful, easy to get confused.) +if ( + set X `ls -t conftest.ts[12]` && + { + test "$*" != "X conftest.ts1 conftest.ts2" || + test "$*" != "X conftest.ts2 conftest.ts1"; + } +); then :; else + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "ls -t produces unexpected output. +Make sure there is not a broken ls alias in your environment. +See 'config.log' for more details" "$LINENO" 5; } +fi + +for am_try_res in $am_try_resolutions; do + # Any one fine-grained sleep might happen to cross the boundary + # between two values of a coarser actual resolution, but if we do + # two fine-grained sleeps in a row, at least one of them will fall + # entirely within a coarse interval. + echo alpha > conftest.ts1 + sleep $am_try_res + echo beta > conftest.ts2 + sleep $am_try_res + echo gamma > conftest.ts3 + + # We assume that 'ls -t' will make use of high-resolution + # timestamps if the operating system supports them at all. + if (set X `ls -t conftest.ts?` && + test "$2" = conftest.ts3 && + test "$3" = conftest.ts2 && + test "$4" = conftest.ts1); then + # + # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, + # because we don't need to test make. + make_ok=true + if test $am_try_res != 1; then + # But if we've succeeded so far with a subsecond resolution, we + # have one more thing to check: make. It can happen that + # everything else supports the subsecond mtimes, but make doesn't; + # notably on macOS, which ships make 3.81 from 2006 (the last one + # released under GPLv2). https://bugs.gnu.org/68808 + # + # We test $MAKE if it is defined in the environment, else "make". + # It might get overridden later, but our hope is that in practice + # it does not matter: it is the system "make" which is (by far) + # the most likely to be broken, whereas if the user overrides it, + # probably they did so with a better, or at least not worse, make. + # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html + # + # Create a Makefile (real tab character here): + rm -f conftest.mk + echo 'conftest.ts1: conftest.ts2' >conftest.mk + echo ' touch conftest.ts2' >>conftest.mk + # + # Now, running + # touch conftest.ts1; touch conftest.ts2; make + # should touch ts1 because ts2 is newer. This could happen by luck, + # but most often, it will fail if make's support is insufficient. So + # test for several consecutive successes. + # + # (We reuse conftest.ts[12] because we still want to modify existing + # files, not create new ones, per above.) + n=0 + make=${MAKE-make} + until test $n -eq 3; do + echo one > conftest.ts1 + sleep $am_try_res + echo two > conftest.ts2 # ts2 should now be newer than ts1 + if $make -f conftest.mk | grep 'up to date' >/dev/null; then + make_ok=false + break # out of $n loop + fi + n=`expr $n + 1` + done + fi + # + if $make_ok; then + # Everything we know to check worked out, so call this resolution good. + am_cv_filesystem_timestamp_resolution=$am_try_res + break # out of $am_try_res loop + fi + # Otherwise, we'll go on to check the next resolution. + fi +done +rm -f conftest.ts? +# (end _am_filesystem_timestamp_resolution) + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 +printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } + +# This check should not be cached, as it may vary across builds of +# different projects. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory @@ -3540,49 +3730,45 @@ # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then +am_build_env_is_sane=no +am_has_slept=no +rm -f conftest.file +for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + test "$2" = conftest.file + ); then + am_build_env_is_sane=yes + break + fi + # Just in case. + sleep "$am_cv_filesystem_timestamp_resolution" + am_has_slept=yes +done - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 +printf "%s\n" "$am_build_env_is_sane" >&6; } +if test "$am_build_env_is_sane" = no; then + as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } + # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & +if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 +then : + +else case e in #( + e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & am_sleep_pid=$! + ;; +esac fi rm -f conftest.file @@ -3593,7 +3779,7 @@ test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3636,8 +3822,8 @@ if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3659,7 +3845,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3681,8 +3868,8 @@ if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3704,7 +3891,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3740,8 +3928,8 @@ if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS @@ -3755,7 +3943,7 @@ as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3764,18 +3952,17 @@ done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3790,8 +3977,8 @@ if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3813,7 +4000,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3835,8 +4023,8 @@ if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in #( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3848,7 +4036,8 @@ *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3869,25 +4058,21 @@ fi rmdir .tst 2>/dev/null +AM_DEFAULT_VERBOSITY=1 # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in #( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3897,19 +4082,50 @@ am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi AM_BACKSLASH='\' +am__rm_f_notfound= +if (rm -f && rm -fr && rm -rf) 2>/dev/null +then : + +else case e in #( + e) am__rm_f_notfound='""' ;; +esac +fi + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 +printf %s "checking xargs -n works... " >&6; } +if test ${am_cv_xargs_n_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 +3" +then : + am_cv_xargs_n_works=yes +else case e in #( + e) am_cv_xargs_n_works=no ;; +esac +fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 +printf "%s\n" "$am_cv_xargs_n_works" >&6; } +if test "$am_cv_xargs_n_works" = yes +then : + am__xargs_n='xargs -n' +else case e in #( + e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' + ;; +esac +fi + if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." @@ -3932,7 +4148,7 @@ # Define the identity of the package. PACKAGE='dnsdist' - VERSION='1.9.16' + VERSION='2.1.3' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3986,18 +4202,24 @@ am_gid=`id -g || echo unknown` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } - if test $am_uid -le $am_max_uid; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + if test x$am_uid = xunknown; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 +printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} + elif test $am_uid -le $am_max_uid; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - _am_tools=none + _am_tools=none fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } - if test $am_gid -le $am_max_gid; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + if test x$gm_gid = xunknown; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 +printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} + elif test $am_gid -le $am_max_gid; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 @@ -4084,8 +4306,9 @@ if test ${am_cv_prog_tar_ustar+y} then : printf %s "(cached) " >&6 -else $as_nop - am_cv_prog_tar_ustar=$_am_tool +else case e in #( + e) am_cv_prog_tar_ustar=$_am_tool ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 @@ -4110,89 +4333,12 @@ -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi -# Check whether --enable-silent-rules was given. -if test ${enable_silent_rules+y} -then : - enableval=$enable_silent_rules; -fi -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=0;; -esac -am_make=${MAKE-make} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -printf %s "checking whether $am_make supports nested variables... " >&6; } -if test ${am_cv_make_support_nested_variables+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' +AM_DEFAULT_VERBOSITY=0 ac_config_headers="$ac_config_headers config.h" @@ -4218,8 +4364,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4241,7 +4387,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4263,8 +4410,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4286,7 +4433,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4321,8 +4469,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4344,7 +4492,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4366,8 +4515,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4406,7 +4555,8 @@ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4430,8 +4580,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4453,7 +4603,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4479,8 +4630,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4502,7 +4653,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4540,8 +4692,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4563,7 +4715,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4585,8 +4738,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4608,7 +4761,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4637,10 +4791,10 @@ fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4712,8 +4866,8 @@ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4733,7 +4887,7 @@ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4744,8 +4898,9 @@ done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in #( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4754,13 +4909,14 @@ printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4784,10 +4940,10 @@ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4797,11 +4953,12 @@ * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4817,6 +4974,8 @@ main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4856,26 +5015,27 @@ if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4907,16 +5067,18 @@ break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4927,8 +5089,8 @@ if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4945,12 +5107,14 @@ if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4968,8 +5132,8 @@ if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4987,8 +5151,8 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5003,8 +5167,8 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5021,12 +5185,15 @@ then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -5053,8 +5220,8 @@ if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5071,25 +5238,28 @@ test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -5099,8 +5269,8 @@ if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in #( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5117,25 +5287,28 @@ test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -5145,8 +5318,8 @@ if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in #( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5163,25 +5336,28 @@ test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -5202,8 +5378,8 @@ if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -5233,7 +5409,8 @@ fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -5323,8 +5500,8 @@ if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in #( + e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up @@ -5411,7 +5588,7 @@ # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: + # When given -MP, icc 7.0 and 7.1 complain thus: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported @@ -5428,7 +5605,8 @@ else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5470,8 +5648,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5493,7 +5671,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5519,8 +5698,8 @@ if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5542,7 +5721,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -5602,8 +5782,8 @@ if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -5620,12 +5800,14 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -5643,8 +5825,8 @@ if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -5662,8 +5844,8 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5678,8 +5860,8 @@ if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5696,12 +5878,15 @@ then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -5725,11 +5910,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in #( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5746,36 +5931,39 @@ test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in #( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5792,25 +5980,28 @@ test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -5827,8 +6018,8 @@ if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in #( + e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up @@ -5915,7 +6106,7 @@ # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: + # When given -MP, icc 7.0 and 7.1 complain thus: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported @@ -5932,7 +6123,8 @@ else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -5956,11 +6148,13 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +CPPFLAGS="-DDNSDIST $CPPFLAGS" -printf "%s\n" "#define DNSDIST 1" >>confdefs.h +# Warn when pkg.m4 is missing +# Rust runtime uses dlopen from its static lib case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 @@ -5998,15 +6192,16 @@ if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias +else case e in #( + e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } @@ -6033,14 +6228,15 @@ if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then +else case e in #( + e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } @@ -6136,8 +6332,8 @@ if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ +else case e in #( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done @@ -6162,9 +6358,10 @@ as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in +case `"$ac_path_SED" --version 2>&1` in #( *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -6199,7 +6396,8 @@ else ac_cv_path_SED=$SED fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } @@ -6224,8 +6422,8 @@ if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then +else case e in #( + e) if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6244,9 +6442,10 @@ as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in +case `"$ac_path_GREP" --version 2>&1` in #( *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -6281,7 +6480,8 @@ else ac_cv_path_GREP=$GREP fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } @@ -6293,8 +6493,8 @@ if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 +else case e in #( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then @@ -6316,9 +6516,10 @@ as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in +case `"$ac_path_EGREP" --version 2>&1` in #( *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -6354,20 +6555,23 @@ ac_cv_path_EGREP=$EGREP fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 +else case e in #( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then @@ -6389,9 +6593,10 @@ as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in +case `"$ac_path_FGREP" --version 2>&1` in #( *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -6427,7 +6632,8 @@ ac_cv_path_FGREP=$FGREP fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$ac_cv_path_FGREP" >&6; } @@ -6458,8 +6664,9 @@ if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in #( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -6504,8 +6711,8 @@ if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in #( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -6528,7 +6735,8 @@ IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -6545,8 +6753,8 @@ if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 @@ -6573,8 +6782,8 @@ if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in #( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -6621,7 +6830,8 @@ IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -6642,8 +6852,8 @@ if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in #( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6665,7 +6875,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -6691,8 +6902,8 @@ if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in #( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6714,7 +6925,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -6768,8 +6980,8 @@ if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in #( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -6782,7 +6994,8 @@ if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -6804,8 +7017,8 @@ if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in #( + e) i=0 teststring=ABCD case $build_os in @@ -6927,7 +7140,8 @@ fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -6984,8 +7198,8 @@ if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in #( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -7016,7 +7230,8 @@ lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -7032,8 +7247,8 @@ if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in #( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -7044,7 +7259,8 @@ esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -7060,8 +7276,9 @@ if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in #( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -7102,8 +7319,8 @@ if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in #( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7125,7 +7342,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -7147,8 +7365,8 @@ if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in #( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7170,7 +7388,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -7210,8 +7429,8 @@ if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in #( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7233,7 +7452,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -7255,8 +7475,8 @@ if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in #( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7278,7 +7498,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -7319,8 +7540,8 @@ if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in #( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -7513,7 +7734,8 @@ lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -7565,8 +7787,8 @@ if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in #( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7588,7 +7810,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -7610,8 +7833,8 @@ if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in #( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7633,7 +7856,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -7675,8 +7899,8 @@ if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in #( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -7696,7 +7920,8 @@ lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -7720,8 +7945,8 @@ if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7743,7 +7968,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -7769,8 +7995,8 @@ if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in #( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7792,7 +8018,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -7854,8 +8081,8 @@ if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in #( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7892,7 +8119,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -7917,8 +8145,8 @@ if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7940,7 +8168,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -7962,8 +8191,8 @@ if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7985,7 +8214,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -8026,8 +8256,8 @@ if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8049,7 +8279,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -8071,8 +8302,8 @@ if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in #( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8094,7 +8325,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -8205,8 +8437,8 @@ if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -8461,7 +8693,8 @@ lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -8525,8 +8758,9 @@ if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in #( + e) with_sysroot=no ;; +esac fi @@ -8561,8 +8795,8 @@ if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in #( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -8598,7 +8832,8 @@ ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -8609,8 +8844,8 @@ if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in #( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -8618,7 +8853,8 @@ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -8829,8 +9065,8 @@ if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in #( + e) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -8850,8 +9086,9 @@ if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in #( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -8860,7 +9097,8 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -8918,8 +9156,8 @@ if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in #( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8941,7 +9179,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -8963,8 +9202,8 @@ if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in #( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8986,7 +9225,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -9018,15 +9258,16 @@ if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in #( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -9049,8 +9290,8 @@ if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in #( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9072,7 +9313,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -9094,8 +9336,8 @@ if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in #( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9117,7 +9359,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -9151,8 +9394,8 @@ if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in #( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9174,7 +9417,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -9196,8 +9440,8 @@ if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in #( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9219,7 +9463,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -9253,8 +9498,8 @@ if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in #( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9276,7 +9521,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -9298,8 +9544,8 @@ if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in #( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9321,7 +9567,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -9355,8 +9602,8 @@ if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in #( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9378,7 +9625,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -9400,8 +9648,8 @@ if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in #( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9423,7 +9671,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -9457,8 +9706,8 @@ if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in #( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9480,7 +9729,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -9502,8 +9752,8 @@ if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in #( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9525,7 +9775,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -9582,8 +9833,8 @@ if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in #( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -9609,7 +9860,8 @@ fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -9619,8 +9871,8 @@ if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in #( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -9638,13 +9890,15 @@ if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in #( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -9654,8 +9908,8 @@ if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in #( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -9680,7 +9934,8 @@ fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -9821,8 +10076,9 @@ IFS=$lt_save_ifs ;; esac -else $as_nop - enable_static=no +else case e in #( + e) enable_static=no ;; +esac fi @@ -9831,11 +10087,10 @@ +enable_dlopen=yes - enable_dlopen=no - enable_win32_dll=no @@ -9860,8 +10115,9 @@ IFS=$lt_save_ifs ;; esac -else $as_nop - enable_shared=yes +else case e in #( + e) enable_shared=yes ;; +esac fi @@ -9893,8 +10149,9 @@ IFS=$lt_save_ifs ;; esac -else $as_nop - pic_mode=default +else case e in #( + e) pic_mode=default ;; +esac fi @@ -9924,8 +10181,9 @@ IFS=$lt_save_ifs ;; esac -else $as_nop - enable_fast_install=yes +else case e in #( + e) enable_fast_install=yes ;; +esac fi @@ -9952,15 +10210,17 @@ ;; esac lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +else case e in #( + e) if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in #( + e) lt_cv_with_aix_soname=aix ;; +esac fi - with_aix_soname=$lt_cv_with_aix_soname + with_aix_soname=$lt_cv_with_aix_soname ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 @@ -10051,8 +10311,8 @@ if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in #( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -10060,7 +10320,8 @@ # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -10121,8 +10382,8 @@ if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -10165,6 +10426,7 @@ IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -10188,8 +10450,8 @@ if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -10232,6 +10494,7 @@ IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -10331,8 +10594,8 @@ if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in #( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -10360,7 +10623,8 @@ fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -10725,8 +10989,9 @@ if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in #( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -10741,8 +11006,8 @@ if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in #( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -10770,7 +11035,8 @@ fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -10806,8 +11072,8 @@ if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in #( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -10828,7 +11094,8 @@ fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -10850,8 +11117,8 @@ if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in #( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -10891,7 +11158,8 @@ cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -10906,8 +11174,8 @@ if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in #( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -10947,7 +11215,8 @@ cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -11542,8 +11811,8 @@ if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -11575,7 +11844,8 @@ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -11597,8 +11867,8 @@ if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -11630,7 +11900,8 @@ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -11881,8 +12152,8 @@ if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in #( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -11903,7 +12174,8 @@ fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -11951,8 +12223,8 @@ if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in #( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11961,12 +12233,14 @@ if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in #( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -12292,8 +12566,8 @@ if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in #( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -12329,7 +12603,8 @@ cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -13056,8 +13331,8 @@ if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in #( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -13084,7 +13359,8 @@ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -13509,16 +13785,22 @@ if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -13530,24 +13812,27 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in #( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -13565,22 +13850,28 @@ if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -13592,39 +13883,47 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in #( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in #( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -13636,34 +13935,42 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -13675,34 +13982,42 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in #( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -13714,12 +14029,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in #( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -13728,19 +14045,24 @@ lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -13768,8 +14090,8 @@ if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in #( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -13863,7 +14185,8 @@ fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -13875,8 +14198,8 @@ if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in #( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -13970,7 +14293,8 @@ fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -14128,8 +14452,8 @@ if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in #( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -14147,9 +14471,10 @@ if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -14163,15 +14488,16 @@ then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : @@ -14180,7 +14506,8 @@ done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -14203,9 +14530,10 @@ if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -14219,24 +14547,26 @@ then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=cpp @@ -14373,8 +14703,9 @@ if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in #( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -14419,8 +14750,8 @@ if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in #( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -14443,7 +14774,8 @@ IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -14460,8 +14792,8 @@ if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 @@ -14668,8 +15001,8 @@ if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -14701,7 +15034,8 @@ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -14724,8 +15058,8 @@ if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -14757,7 +15091,8 @@ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16129,8 +16464,9 @@ if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in #( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -16145,8 +16481,8 @@ if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in #( + e) lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -16174,7 +16510,8 @@ fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -16204,8 +16541,8 @@ if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in #( + e) lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -16226,7 +16563,8 @@ fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -16245,8 +16583,8 @@ if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in #( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -16286,7 +16624,8 @@ cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -16298,8 +16637,8 @@ if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in #( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -16339,7 +16678,8 @@ cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -16444,8 +16784,8 @@ if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in #( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -16481,7 +16821,8 @@ cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -17045,8 +17386,8 @@ if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in #( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -17073,7 +17414,8 @@ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -17452,9 +17794,17 @@ # Only expand once: +LIBDL=$lt_cv_dlopen_libs + + +CFLAGS="-g -O3 -Wall -Wextra -Wshadow -fvisibility=hidden $CFLAGS" +CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wmissing-declarations -Wredundant-decls -fvisibility=hidden $CXXFLAGS" + +pdns_configure_args="$ac_configure_args" + + +printf "%s\n" "#define DNSDIST_CONFIG_ARGS \"$pdns_configure_args\"" >>confdefs.h -CFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -fvisibility=hidden $CFLAGS" -CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden $CXXFLAGS" @@ -17472,8 +17822,8 @@ if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in #( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -17498,6 +17848,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -17520,8 +17871,8 @@ if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in #( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -17546,6 +17897,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -17586,6 +17938,9 @@ PKG_CONFIG="" fi fi +if test -z "$PKG_CONFIG"; then + as_fn_error $? "pkg-config not found" "$LINENO" 5 +fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in libsodium" >&5 printf %s "checking whether we will be linking in libsodium... " >&6; } @@ -17594,8 +17949,9 @@ if test ${with_libsodium+y} then : withval=$with_libsodium; with_libsodium=$withval -else $as_nop - with_libsodium=auto +else case e in #( + e) with_libsodium=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libsodium" >&5 @@ -17752,8 +18108,9 @@ if test ${with_quiche+y} then : withval=$with_quiche; with_quiche=$withval -else $as_nop - with_quiche=auto +else case e in #( + e) with_quiche=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_quiche" >&5 @@ -18319,6 +18676,25 @@ fi + if test "x$HAVE_QUICHE" = "x1" +then : + + save_CFLAGS=$CFLAGS + save_LIBS=$LIBS + CFLAGS="$QUICHE_CFLAGS $CFLAGS" + LIBS="$QUICHE_LIBS $LIBS" + ac_fn_cxx_check_func "$LINENO" "quiche_conn_server_name" "ac_cv_func_quiche_conn_server_name" +if test "x$ac_cv_func_quiche_conn_server_name" = xyes +then : + printf "%s\n" "#define HAVE_QUICHE_CONN_SERVER_NAME 1" >>confdefs.h + +fi + + CFLAGS=$save_CFLAGS + LIBS=$save_LIBS + + +fi fi @@ -18350,8 +18726,9 @@ if test ${enable_dnstap+y} then : enableval=$enable_dnstap; enable_dnstap=$enableval -else $as_nop - enable_dnstap=auto +else case e in #( + e) enable_dnstap=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dnstap" >&5 @@ -18484,8 +18861,8 @@ if test ${ac_cv_prog_RAGEL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RAGEL"; then +else case e in #( + e) if test -n "$RAGEL"; then ac_cv_prog_RAGEL="$RAGEL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -18507,7 +18884,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi RAGEL=$ac_cv_prog_RAGEL if test -n "$RAGEL"; then @@ -18533,9 +18911,10 @@ if test ${with_libedit+y} then : withval=$with_libedit; with_libedit=$enableval -else $as_nop - with_libedit=yes - +else case e in #( + e) with_libedit=yes + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libedit" >&5 @@ -18654,8 +19033,8 @@ if test ${ac_cv_search_clock_gettime+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18692,11 +19071,13 @@ if test ${ac_cv_search_clock_gettime+y} then : -else $as_nop - ac_cv_search_clock_gettime=no +else case e in #( + e) ac_cv_search_clock_gettime=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } @@ -18815,8 +19196,8 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } -else $as_nop - LIBS="$LIBS -latomic" +else case e in #( + e) LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -18833,16 +19214,18 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "libatomic needed, but linking with -latomic failed, cannot continue -See \`config.log' for more details" "$LINENO" 5; } - +See 'config.log' for more details" "$LINENO" 5; } + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -18894,8 +19277,8 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } @@ -18929,8 +19312,8 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } @@ -18964,8 +19347,8 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } @@ -18999,8 +19382,8 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } @@ -19034,27 +19417,32 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -19065,8 +19453,8 @@ if test ${ac_cv_cxx_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS +else case e in #( + e) ac_save_CFLAGS=$CFLAGS ac_cv_cxx_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" @@ -19085,8 +19473,8 @@ if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - # This test program should compile successfully. +else case e in #( + e) # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the @@ -19114,26 +19502,29 @@ if test x"$ac_arg" = x then : ac_cv_cxx_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_cxx_undeclared_builtin_options=$ac_arg +else case e in #( + e) ac_cv_cxx_undeclared_builtin_options=$ac_arg ;; +esac fi break fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done CFLAGS=$ac_save_CFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5 printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; } case $ac_cv_cxx_undeclared_builtin_options in #( 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot make $CXX report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; #( +See 'config.log' for more details" "$LINENO" 5; } ;; #( 'none needed') : ac_cxx_undeclared_builtin_options='' ;; #( *) : @@ -19146,8 +19537,8 @@ if test ${ac_cv_search_inet_aton+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19184,11 +19575,13 @@ if test ${ac_cv_search_inet_aton+y} then : -else $as_nop - ac_cv_search_inet_aton=no +else case e in #( + e) ac_cv_search_inet_aton=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 printf "%s\n" "$ac_cv_search_inet_aton" >&6; } @@ -19204,8 +19597,8 @@ if test ${ac_cv_search_gethostbyname+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19242,11 +19635,13 @@ if test ${ac_cv_search_gethostbyname+y} then : -else $as_nop - ac_cv_search_gethostbyname=no +else case e in #( + e) ac_cv_search_gethostbyname=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } @@ -19262,8 +19657,8 @@ if test ${ac_cv_search_socket+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19300,11 +19695,13 @@ if test ${ac_cv_search_socket+y} then : -else $as_nop - ac_cv_search_socket=no +else case e in #( + e) ac_cv_search_socket=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 printf "%s\n" "$ac_cv_search_socket" >&6; } @@ -19320,8 +19717,8 @@ if test ${ac_cv_search_gethostent+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19358,11 +19755,13 @@ if test ${ac_cv_search_gethostent+y} then : -else $as_nop - ac_cv_search_gethostent=no +else case e in #( + e) ac_cv_search_gethostent=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 printf "%s\n" "$ac_cv_search_gethostent" >&6; } @@ -19407,8 +19806,8 @@ if test ${ac_cv_search_pthread_setaffinity_np+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19445,11 +19844,13 @@ if test ${ac_cv_search_pthread_setaffinity_np+y} then : -else $as_nop - ac_cv_search_pthread_setaffinity_np=no +else case e in #( + e) ac_cv_search_pthread_setaffinity_np=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setaffinity_np" >&5 printf "%s\n" "$ac_cv_search_pthread_setaffinity_np" >&6; } @@ -19467,8 +19868,8 @@ if test ${ac_cv_search_pthread_getattr_np+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19505,11 +19906,13 @@ if test ${ac_cv_search_pthread_getattr_np+y} then : -else $as_nop - ac_cv_search_pthread_getattr_np=no +else case e in #( + e) ac_cv_search_pthread_getattr_np=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getattr_np" >&5 printf "%s\n" "$ac_cv_search_pthread_getattr_np" >&6; } @@ -19527,8 +19930,8 @@ if test ${ac_cv_search_pthread_get_stackaddr_np+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19565,11 +19968,13 @@ if test ${ac_cv_search_pthread_get_stackaddr_np+y} then : -else $as_nop - ac_cv_search_pthread_get_stackaddr_np=no +else case e in #( + e) ac_cv_search_pthread_get_stackaddr_np=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_get_stackaddr_np" >&5 printf "%s\n" "$ac_cv_search_pthread_get_stackaddr_np" >&6; } @@ -19587,8 +19992,8 @@ if test ${ac_cv_search_pthread_get_stacksize_np+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19625,11 +20030,13 @@ if test ${ac_cv_search_pthread_get_stacksize_np+y} then : -else $as_nop - ac_cv_search_pthread_get_stacksize_np=no +else case e in #( + e) ac_cv_search_pthread_get_stacksize_np=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_get_stacksize_np" >&5 printf "%s\n" "$ac_cv_search_pthread_get_stacksize_np" >&6; } @@ -19668,8 +20075,9 @@ if test "x$ac_cv_have_decl_strerror_r" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h @@ -19688,8 +20096,8 @@ if test ${ac_cv_func_strerror_r_char_p+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19715,7 +20123,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } @@ -19727,9 +20136,9 @@ -echo "$as_me: this is boost.m4 serial 38" >&5 +echo "$as_me: this is boost.m4 serial 39" >&5 boost_save_IFS=$IFS -boost_version_req=1.42 +boost_version_req=1.54 IFS=. set x $boost_version_req 0 0 0 IFS=$boost_save_IFS @@ -19761,8 +20170,8 @@ if test ${boost_cv_inc_path+y} then : printf %s "(cached) " >&6 -else $as_nop - boost_cv_inc_path=no +else case e in #( + e) boost_cv_inc_path=no ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -19831,8 +20240,9 @@ if ac_fn_cxx_try_compile "$LINENO" then : boost_cv_inc_path=yes -else $as_nop - boost_cv_version=no +else case e in #( + e) boost_cv_version=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam if test x"$boost_cv_inc_path" = xyes; then @@ -19848,7 +20258,8 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 printf "%s\n" "$boost_cv_inc_path" >&6; } @@ -19874,8 +20285,8 @@ if test ${boost_cv_lib_version+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=cpp +else case e in #( + e) ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -19890,7 +20301,7 @@ grep -v '^[[:space:]]*$' | tr -d '\r' | tr -s '\n' ' ' | - $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1 + $SED -n -e "/^.*boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1 then : boost_cv_lib_version=`cat conftest.i` fi @@ -19900,7 +20311,8 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 printf "%s\n" "$boost_cv_lib_version" >&6; } @@ -19920,8 +20332,8 @@ if test ${boost_cv_lib_tag+y} then : printf %s "(cached) " >&6 -else $as_nop - boost_cv_lib_tag=unknown +else case e in #( + e) boost_cv_lib_tag=unknown if test x$boost_cv_inc_path != xno; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -19942,6 +20354,7 @@ # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines # the same defines as GCC's). for i in \ + "defined __clang__ && __clang_major__ == 18 && __clang_minor__ == 1 @ clang181" \ "defined __clang__ && __clang_major__ == 17 && __clang_minor__ == 0 @ clang170" \ "defined __clang__ && __clang_major__ == 16 && __clang_minor__ == 0 @ clang160" \ "defined __clang__ && __clang_major__ == 15 && __clang_minor__ == 0 @ clang150" \ @@ -19960,10 +20373,50 @@ "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 9 @ clang39" \ "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 8 @ clang38" \ "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 7 @ clang37" \ + "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 2 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw132" \ + "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc132" \ + "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 1 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw131" \ + "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc131" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 3 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw123" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc123" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 2 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw122" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc122" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 1 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw121" \ + "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc121" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 4 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw114" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc114" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 3 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw113" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc113" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw112" \ + "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc112" \ "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 1 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw111" \ "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc111" \ + "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 5 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw105" \ + "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc105" \ + "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw104" \ + "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc104" \ "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 3 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw103" \ @@ -19976,6 +20429,14 @@ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw101" \ "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc101" \ + "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 5 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw95" \ + "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc95" \ + "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 4 && !defined __ICC && \ + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw94" \ + "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc94" \ "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 3 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw93" \ @@ -20202,7 +20663,8 @@ boost_cv_lib_tag= ;; esac -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 printf "%s\n" "$boost_cv_lib_tag" >&6; } @@ -20210,8 +20672,9 @@ if test ${enable_static_boost+y} then : enableval=$enable_static_boost; enable_static_boost=yes -else $as_nop - enable_static_boost=no +else case e in #( + e) enable_static_boost=no ;; +esac fi # Check whether we do better use `mt' even though we weren't ask to. @@ -20240,8 +20703,9 @@ if ac_fn_cxx_try_compile "$LINENO" then : boost_guess_use_mt=: -else $as_nop - boost_guess_use_mt=false +else case e in #( + e) boost_guess_use_mt=false ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=cpp @@ -20257,9 +20721,10 @@ if test ${enable_unit_tests+y} then : enableval=$enable_unit_tests; enable_unit_tests=$enableval -else $as_nop - enable_unit_tests=no - +else case e in #( + e) enable_unit_tests=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 @@ -20305,8 +20770,9 @@ printf "%s\n" "#define HAVE_BOOST_TEST_UNIT_TEST_HPP 1" >>confdefs.h -else $as_nop - $not_found_header +else case e in #( + e) $not_found_header ;; +esac fi CPPFLAGS=$boost_save_CPPFLAGS @@ -20324,8 +20790,8 @@ if test ${boost_cv_lib_unit_test_framework+y} then : printf %s "(cached) " >&6 -else $as_nop - boost_cv_lib_unit_test_framework=no +else case e in #( + e) boost_cv_lib_unit_test_framework=no case "mt" in #( (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #( @@ -20368,14 +20834,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_objext=do_not_rm_me_plz -else $as_nop - if test x"" != x"no" +else case e in #( + e) if test x"" != x"no" then : as_fn_error $? "cannot compile a test that uses Boost unit_test_framework" "$LINENO" 5 fi - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam ac_objext=$boost_save_ac_objext @@ -20455,13 +20922,14 @@ } then : boost_cv_lib_unit_test_framework=yes -else $as_nop - if $boost_use_source; then +else case e in #( + e) if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi - boost_cv_lib_unit_test_framework=no + boost_cv_lib_unit_test_framework=no ;; +esac fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext @@ -20478,8 +20946,8 @@ if test ${boost_cv_rpath_link_ldflag+y} then : printf %s "(cached) " >&6 -else $as_nop - case $boost_ldpath in +else case e in #( + e) case $boost_ldpath in '') # Nothing to do. boost_cv_rpath_link_ldflag= boost_rpath_link_ldflag_found=yes;; @@ -20519,13 +20987,14 @@ then : boost_rpath_link_ldflag_found=yes break -else $as_nop - if $boost_use_source; then +else case e in #( + e) if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi - boost_rpath_link_ldflag_found=no + boost_rpath_link_ldflag_found=no ;; +esac fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext @@ -20540,7 +21009,8 @@ fi LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS - + ;; +esac fi test x"$boost_ldpath" != x && @@ -20559,7 +21029,8 @@ done done # boost_lib_ rm -f conftest.$ac_objext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_unit_test_framework" >&5 printf "%s\n" "$boost_cv_lib_unit_test_framework" >&6; } @@ -20611,9 +21082,10 @@ if test ${enable_fuzz_targets+y} then : enableval=$enable_fuzz_targets; enable_fuzz_targets=$enableval -else $as_nop - enable_fuzz_targets=no - +else case e in #( + e) enable_fuzz_targets=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fuzz_targets" >&5 @@ -20636,9 +21108,10 @@ if test ${with_re2+y} then : withval=$with_re2; with_re2=$withval -else $as_nop - with_re2=no - +else case e in #( + e) with_re2=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_re2" >&5 @@ -20715,8 +21188,8 @@ if test ${ac_cv_lib_re2_main+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lre2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20735,12 +21208,14 @@ if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_re2_main=yes -else $as_nop - ac_cv_lib_re2_main=no +else case e in #( + e) ac_cv_lib_re2_main=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5 printf "%s\n" "$ac_cv_lib_re2_main" >&6; } @@ -20749,8 +21224,9 @@ HAVE_RE2=1 RE2_LIBS="-lre2" -else $as_nop - : +else case e in #( + e) : ;; +esac fi @@ -20770,8 +21246,8 @@ if test ${ac_cv_lib_re2_main+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lre2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20790,12 +21266,14 @@ if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_re2_main=yes -else $as_nop - ac_cv_lib_re2_main=no +else case e in #( + e) ac_cv_lib_re2_main=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5 printf "%s\n" "$ac_cv_lib_re2_main" >&6; } @@ -20804,8 +21282,9 @@ HAVE_RE2=1 RE2_LIBS="-lre2" -else $as_nop - : +else case e in #( + e) : ;; +esac fi @@ -20848,9 +21327,10 @@ if test ${enable_dnscrypt+y} then : enableval=$enable_dnscrypt; enable_dnscrypt=$enableval -else $as_nop - enable_dnscrypt=no - +else case e in #( + e) enable_dnscrypt=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dnscrypt" >&5 @@ -20888,8 +21368,9 @@ if test ${with_ebpf+y} then : withval=$with_ebpf; with_ebpf=$withval -else $as_nop - with_ebpf=auto +else case e in #( + e) with_ebpf=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ebpf" >&5 @@ -20908,8 +21389,9 @@ then : printf "%s\n" "#define HAVE_LINUX_BPF_H 1" >>confdefs.h bpf_headers=yes -else $as_nop - bpf_headers=no +else case e in #( + e) bpf_headers=no ;; +esac fi done @@ -20953,21 +21435,23 @@ printf "%s\n" "#define HAVE_EBPF 1" >>confdefs.h -else $as_nop - if test "x$with_ebpf" = "xyes" +else case e in #( + e) if test "x$with_ebpf" = "xyes" then : as_fn_error $? "EBPF support requested but SO_ATTACH_BPF not found" "$LINENO" 5 +fi ;; +esac fi -fi -else $as_nop - if test "x$with_ebpf" = "xyes" +else case e in #( + e) if test "x$with_ebpf" = "xyes" then : as_fn_error $? "EBPF support requested but BPF_FUNC_tail_call not found in the eBPF headers" "$LINENO" 5 -fi +fi ;; +esac fi fi @@ -20980,8 +21464,9 @@ if test ${with_xsk+y} then : withval=$with_xsk; with_xsk=$withval -else $as_nop - with_xsk=auto +else case e in #( + e) with_xsk=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xsk" >&5 @@ -21197,8 +21682,9 @@ if test ${with_net_snmp+y} then : withval=$with_net_snmp; with_net_snmp=$withval -else $as_nop - with_net_snmp=no +else case e in #( + e) with_net_snmp=no ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_net_snmp" >&5 @@ -21217,8 +21703,8 @@ if test ${ac_cv_prog_NET_SNMP_LIBS+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NET_SNMP_LIBS"; then +else case e in #( + e) if test -n "$NET_SNMP_LIBS"; then ac_cv_prog_NET_SNMP_LIBS="$NET_SNMP_LIBS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -21240,7 +21726,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi NET_SNMP_LIBS=$ac_cv_prog_NET_SNMP_LIBS if test -n "$NET_SNMP_LIBS"; then @@ -21264,8 +21751,9 @@ if test "x$ac_cv_have_decl_snmp_select_info2" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_SNMP_SELECT_INFO2 $ac_have_decl" >>confdefs.h if test $ac_have_decl = 1 @@ -21275,8 +21763,9 @@ printf "%s\n" "#define HAVE_SNMP_SELECT_INFO2 1" >>confdefs.h -else $as_nop - : +else case e in #( + e) : ;; +esac fi @@ -21318,8 +21807,9 @@ if test ${with_libcap+y} then : withval=$with_libcap; with_libcap=$withval -else $as_nop - with_libcap=auto +else case e in #( + e) with_libcap=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libcap" >&5 @@ -21467,8 +21957,9 @@ if test ${with_systemd+y} then : withval=$with_systemd; SYSTEMD_DIR="$withval" -else $as_nop - SYSTEMD_DIR="" +else case e in #( + e) SYSTEMD_DIR="" ;; +esac fi @@ -21478,8 +21969,9 @@ if test ${with_systemd+y} then : withval=$with_systemd; SYSTEMD_MODULES_LOAD="$withval" -else $as_nop - SYSTEMD_MODULES_LOAD="" +else case e in #( + e) SYSTEMD_MODULES_LOAD="" ;; +esac fi @@ -21491,14 +21983,14 @@ then : for libname in systemd-daemon systemd; do - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libname""_sd_listen_fds" | $as_tr_sh` + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libname""_sd_listen_fds" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sd_listen_fds in -l$libname" >&5 printf %s "checking for sd_listen_fds in -l$libname... " >&6; } if eval test \${$as_ac_Lib+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$libname $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -21517,12 +22009,14 @@ if ac_fn_cxx_try_link "$LINENO" then : eval "$as_ac_Lib=yes" -else $as_nop - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -21633,8 +22127,8 @@ elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -21644,7 +22138,7 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS @@ -21684,12 +22178,14 @@ fi -else $as_nop - systemd=n +else case e in #( + e) systemd=n ;; +esac fi -else $as_nop - systemd=n +else case e in #( + e) systemd=n ;; +esac fi @@ -21704,8 +22200,8 @@ if test ${ac_cv_path_SYSTEMCTL+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SYSTEMCTL in +else case e in #( + e) case $SYSTEMCTL in [\\/]* | ?:[\\/]*) ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path. ;; @@ -21731,6 +22227,7 @@ test -z "$ac_cv_path_SYSTEMCTL" && ac_cv_path_SYSTEMCTL="no" ;; +esac ;; esac fi SYSTEMCTL=$ac_cv_path_SYSTEMCTL @@ -21746,8 +22243,8 @@ if test "$SYSTEMCTL" = "no" then : as_fn_error $? "systemctl not found" "$LINENO" 5 -else $as_nop - +else case e in #( + e) _systemd_version=`${SYSTEMCTL} --version|head -1 | tr ".~" " " | cut -d" " -f 2` if test $_systemd_version -ge 183; then systemd_private_tmp=y @@ -21813,7 +22310,8 @@ if test $_systemd_version -ge 248; then systemd_private_ipc=y fi - + ;; +esac fi fi @@ -22051,10 +22549,11 @@ then : withval=$with_service_user; service_user=$withval -else $as_nop - service_user=dnsdist - +else case e in #( + e) service_user=dnsdist + ;; +esac fi @@ -22064,18 +22563,20 @@ then : withval=$with_service_group; service_group=$withval -else $as_nop - service_group=dnsdist - +else case e in #( + e) service_group=dnsdist + ;; +esac fi if test -z "$service_user" then : as_fn_error $? "No service user has been defined!" "$LINENO" 5 -else $as_nop - : +else case e in #( + e) : ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $service_user" >&5 printf "%s\n" "$service_user" >&6; } @@ -22110,6 +22611,10 @@ IPCRYPT_LIBS='$(top_builddir)/ext/ipcrypt/libipcrypt.la' +IPCRYPT2_CFLAGS='-I$(top_srcdir)/ext/ipcrypt2/include' + +IPCRYPT2_LIBS='$(top_builddir)/ext/ipcrypt2/libipcrypt2.la' + ARC4RANDOM_LIBS='$(top_builddir)/ext/arc4random/libarc4random.la' @@ -22127,8 +22632,8 @@ if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then +else case e in #( + e) if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -22147,9 +22652,10 @@ as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in +case `"$ac_path_GREP" --version 2>&1` in #( *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -22184,7 +22690,8 @@ else ac_cv_path_GREP=$GREP fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } @@ -22199,10 +22706,11 @@ withval=$with_lua; with_lua=$withval -else $as_nop - +else case e in #( + e) with_lua=auto - + ;; +esac fi @@ -22216,7 +22724,7 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5 printf "%s\n" "$with_lua" >&6; } - if test "x$with_lua" = "xno" -a "mandatory" = "mandatory" + if test "x$with_lua" = "xno" then : as_fn_error $? "--without-lua specified, but Lua is not optional" "$LINENO" 5 @@ -22227,14 +22735,11 @@ luajit_min_version='2.0.2' lua_min_version='5.1' - if test "x$with_lua" != "xno" -then : - - if test "x$with_lua" != "xauto" + if test "x$with_lua" != "xauto" then : - with_lua_version=${lua_min_version} - if echo "x$with_lua" | ${GREP} 'jit' >/dev/null 2>&1 + with_lua_version=${lua_min_version} + if echo "x$with_lua" | ${GREP} 'jit' >/dev/null 2>&1 then : with_lua_version=${luajit_min_version} fi @@ -22298,13 +22803,13 @@ echo "$LUA_PKG_ERRORS" >&5 - as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5 + as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5 elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5 + as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5 else LUA_CFLAGS=$pkg_cv_LUA_CFLAGS @@ -22315,12 +22820,12 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - LUAPC=$with_lua + LUAPC=$with_lua fi -else $as_nop - +else case e in #( + e) pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luajit >= ${luajit_min_version}" >&5 @@ -22391,18 +22896,18 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } - LUAPC=luajit + LUAPC=luajit printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h fi - if test -z "$LUAPC" + if test -z "$LUAPC" then : - found_lua=n + found_lua=n - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22478,14 +22983,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua5.3 + found_lua=y + LUAPC=lua5.3 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22561,14 +23066,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua-5.3 + found_lua=y + LUAPC=lua-5.3 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22644,14 +23149,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua53 + found_lua=y + LUAPC=lua53 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22727,14 +23232,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua5.2 + found_lua=y + LUAPC=lua5.2 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22810,14 +23315,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua-5.2 + found_lua=y + LUAPC=lua-5.2 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22893,14 +23398,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua52 + found_lua=y + LUAPC=lua52 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -22976,14 +23481,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua5.1 + found_lua=y + LUAPC=lua5.1 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -23059,14 +23564,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua-5.1 + found_lua=y + LUAPC=lua-5.1 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -23142,14 +23647,14 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua51 + found_lua=y + LUAPC=lua51 fi fi - if test "$found_lua" != "y" + if test "$found_lua" != "y" then : @@ -23225,8 +23730,8 @@ printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h - found_lua=y - LUAPC=lua + found_lua=y + LUAPC=lua fi @@ -23234,12 +23739,11 @@ fi - -fi - + ;; +esac fi - if test -z "$LUAPC" -a "mandatory" = "mandatory" + if test -z "$LUAPC" then : as_fn_error $? "No Lua not found, but is mandatory" "$LINENO" 5 @@ -23307,14 +23811,6 @@ fi if false; then - HAVE_LIBH2OEVLOOP_TRUE= - HAVE_LIBH2OEVLOOP_FALSE='#' -else - HAVE_LIBH2OEVLOOP_TRUE='#' - HAVE_LIBH2OEVLOOP_FALSE= -fi - - if false; then HAVE_LIBSSL_TRUE= HAVE_LIBSSL_FALSE='#' else @@ -23354,8 +23850,8 @@ ;; esac -else $as_nop - +else case e in #( + e) # if pkg-config is installed and openssl has installed a .pc file, # then use that information and don't search ssldirs if test -n "$ac_tool_prefix"; then @@ -23366,8 +23862,8 @@ if test ${ac_cv_prog_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PKG_CONFIG"; then +else case e in #( + e) if test -n "$PKG_CONFIG"; then ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -23389,7 +23885,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi PKG_CONFIG=$ac_cv_prog_PKG_CONFIG if test -n "$PKG_CONFIG"; then @@ -23411,8 +23908,8 @@ if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_PKG_CONFIG"; then +else case e in #( + e) if test -n "$ac_ct_PKG_CONFIG"; then ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -23434,7 +23931,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG if test -n "$ac_ct_PKG_CONFIG"; then @@ -23466,6 +23964,7 @@ LIBCRYPTO_LIBS=`$PKG_CONFIG libcrypto --libs-only-l 2>/dev/null` LIBCRYPTO_INCLUDES=`$PKG_CONFIG libcrypto --cflags-only-I 2>/dev/null` ssldir=`$PKG_CONFIG libcrypto --variable=prefix 2>/dev/null` + sslincdir=`$PKG_CONFIG libcrypto --variable=includedir 2>/dev/null` found=true fi fi @@ -23475,7 +23974,8 @@ ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" fi - + ;; +esac fi @@ -23492,6 +23992,7 @@ LIBCRYPTO_INCLUDES="-I$ssldir/include" LIBCRYPTO_LDFLAGS="-L$ssldir/lib" LIBCRYPTO_LIBS="-lcrypto" + sslincdir="$ssldir/include" found=true { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } @@ -23600,12 +24101,13 @@ fi -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -23633,9 +24135,10 @@ if test ${enable_tls_providers+y} then : enableval=$enable_tls_providers; enable_tls_providers=$enableval -else $as_nop - enable_tls_providers=no - +else case e in #( + e) enable_tls_providers=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tls_providers" >&5 @@ -23748,9 +24251,10 @@ if test ${enable_dns_over_tls+y} then : enableval=$enable_dns_over_tls; enable_dns_over_tls=$enableval -else $as_nop - enable_dns_over_tls=no - +else case e in #( + e) enable_dns_over_tls=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_tls" >&5 @@ -23779,9 +24283,10 @@ if test ${enable_dns_over_https+y} then : enableval=$enable_dns_over_https; enable_dns_over_https=$enableval -else $as_nop - enable_dns_over_https=no - +else case e in #( + e) enable_dns_over_https=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_https" >&5 @@ -23810,9 +24315,10 @@ if test ${enable_dns_over_quic+y} then : enableval=$enable_dns_over_quic; enable_dns_over_quic=$enableval -else $as_nop - enable_dns_over_quic=no - +else case e in #( + e) enable_dns_over_quic=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_quic" >&5 @@ -23841,9 +24347,10 @@ if test ${enable_dns_over_http3+y} then : enableval=$enable_dns_over_http3; enable_dns_over_http3=$enableval -else $as_nop - enable_dns_over_http3=no - +else case e in #( + e) enable_dns_over_http3=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_http3" >&5 @@ -23878,8 +24385,9 @@ if test ${with_libssl+y} then : withval=$with_libssl; with_libssl=$withval -else $as_nop - with_libssl=auto +else case e in #( + e) with_libssl=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libssl" >&5 @@ -24089,8 +24597,9 @@ if test ${with_gnutls+y} then : withval=$with_gnutls; with_gnutls=$withval -else $as_nop - with_gnutls=auto +else case e in #( + e) with_gnutls=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_gnutls" >&5 @@ -24264,8 +24773,9 @@ if test ${with_nghttp2+y} then : withval=$with_nghttp2; with_nghttp2=$withval -else $as_nop - with_nghttp2=auto +else case e in #( + e) with_nghttp2=auto ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_nghttp2" >&5 @@ -24402,218 +24912,196 @@ fi + if test "x$HAVE_NGHTTP2" != "x1" +then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in libh2o-evloop" >&5 -printf %s "checking whether we will be linking in libh2o-evloop... " >&6; } - HAVE_LIBH2OEVLOOP=0 + as_fn_error $? "DNS over HTTPS support requested but nghttp2 was not found" "$LINENO" 5 -# Check whether --with-h2o was given. -if test ${with_h2o+y} -then : - withval=$with_h2o; with_h2o=$withval -else $as_nop - with_h2o=no fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_h2o" >&5 -printf "%s\n" "$with_h2o" >&6; } - - if test "x$with_h2o" = "xyes" -o "x$with_h2o" = "xauto" + if test "x$HAVE_GNUTLS" != "x1" -a "x$HAVE_LIBSSL" != "x1" then : + as_fn_error $? "DNS over HTTPS support requested but neither GnuTLS nor OpenSSL are available" "$LINENO" 5 -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libh2o-evloop" >&5 -printf %s "checking for libh2o-evloop... " >&6; } - -if test -n "$LIBH2OEVLOOP_CFLAGS"; then - pkg_cv_LIBH2OEVLOOP_CFLAGS="$LIBH2OEVLOOP_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libh2o-evloop\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libh2o-evloop") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBH2OEVLOOP_CFLAGS=`$PKG_CONFIG --cflags "libh2o-evloop" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$LIBH2OEVLOOP_LIBS"; then - pkg_cv_LIBH2OEVLOOP_LIBS="$LIBH2OEVLOOP_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libh2o-evloop\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libh2o-evloop") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBH2OEVLOOP_LIBS=`$PKG_CONFIG --libs "libh2o-evloop" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes fi - else - pkg_failed=untried + fi +if test "x$enable_dns_over_quic" != "xno" +then : + if test "x$HAVE_QUICHE" != "x1" +then : -if test $pkg_failed = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + as_fn_error $? "DNS over QUIC support requested but quiche was not found" "$LINENO" 5 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no fi - if test $_pkg_short_errors_supported = yes; then - LIBH2OEVLOOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libh2o-evloop" 2>&1` - else - LIBH2OEVLOOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libh2o-evloop" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBH2OEVLOOP_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - LIBH2OEVLOOP_CFLAGS=$pkg_cv_LIBH2OEVLOOP_CFLAGS - LIBH2OEVLOOP_LIBS=$pkg_cv_LIBH2OEVLOOP_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - - HAVE_LIBH2OEVLOOP=1 + if test "x$HAVE_LIBSSL" != "x1" +then : -printf "%s\n" "#define HAVE_LIBH2OEVLOOP 1" >>confdefs.h + as_fn_error $? "DNS over QUIC support requested but OpenSSL is not available" "$LINENO" 5 - save_CFLAGS=$CFLAGS - save_LIBS=$LIBS - CFLAGS="$LIBH2OEVLOOP_CFLAGS $CFLAGS" - LIBS="$LIBH2OEVLOOP_LIBS $LIBS" - ac_fn_check_decl "$LINENO" "h2o_socket_get_ssl_server_name" "ac_cv_have_decl_h2o_socket_get_ssl_server_name" "$ac_includes_default - #include +fi -" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" -if test "x$ac_cv_have_decl_h2o_socket_get_ssl_server_name" = xyes -then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 fi -printf "%s\n" "#define HAVE_DECL_H2O_SOCKET_GET_SSL_SERVER_NAME $ac_have_decl" >>confdefs.h -if test $ac_have_decl = 1 + +if test "x$enable_dns_over_http3" != "xno" then : + if test "x$HAVE_QUICHE" != "x1" +then : -printf "%s\n" "#define HAVE_H2O_SOCKET_GET_SSL_SERVER_NAME 1" >>confdefs.h + as_fn_error $? "DNS over HTTP/3 support requested but quiche was not found" "$LINENO" 5 +fi -else $as_nop - : fi - CFLAGS=$save_CFLAGS - LIBS=$save_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable YAML configuration" >&5 +printf %s "checking whether to enable YAML configuration... " >&6; } + # Check whether --enable-yaml was given. +if test ${enable_yaml+y} +then : + enableval=$enable_yaml; enable_yaml=$enableval +else case e in #( + e) enable_yaml=no + ;; +esac fi -fi - if test "x$LIBH2OEVLOOP_LIBS" != "x"; then - HAVE_LIBH2OEVLOOP_TRUE= - HAVE_LIBH2OEVLOOP_FALSE='#' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_yaml" >&5 +printf "%s\n" "$enable_yaml" >&6; } + if test "x$enable_yaml" != "xno"; then + HAVE_YAML_CONFIGURATION_TRUE= + HAVE_YAML_CONFIGURATION_FALSE='#' else - HAVE_LIBH2OEVLOOP_TRUE='#' - HAVE_LIBH2OEVLOOP_FALSE= + HAVE_YAML_CONFIGURATION_TRUE='#' + HAVE_YAML_CONFIGURATION_FALSE= fi - if test -z "$HAVE_LIBH2OEVLOOP_TRUE"; then : + + if test -z "$HAVE_YAML_CONFIGURATION_TRUE"; then : -printf "%s\n" "#define HAVE_LIBH2OEVLOOP 1" >>confdefs.h +printf "%s\n" "#define HAVE_YAML_CONFIGURATION 1" >>confdefs.h fi - if test "x$with_h2o" = "xyes" -then : - if test x"LIBH2OEVLOOP_LIBS" = "x" +if test "x$enable_yaml" != "xno" then : - as_fn_error $? "h2o-evloop requested but libraries were not found" "$LINENO" 5 -fi + + # Extract the first word of "cargo", so it can be a program name with args. +set dummy cargo; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CARGO+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$CARGO"; then + ac_cv_prog_CARGO="$CARGO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CARGO="cargo" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_CARGO" && ac_cv_prog_CARGO="$CARGO" +fi ;; +esac +fi +CARGO=$ac_cv_prog_CARGO +if test -n "$CARGO"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5 +printf "%s\n" "$CARGO" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - if test "x$HAVE_LIBH2OEVLOOP" != "x1" -a "x$HAVE_NGHTTP2" != "x1" + if test x$CARGO = x then : - - as_fn_error $? "DNS over HTTPS support requested but neither libh2o-evloop nor nghttp2 was not found" "$LINENO" 5 + as_fn_error $? "cargo is required" "$LINENO" 5 fi + minimum=1.64 + cargo_version=`$CARGO --version | $SED -e 's/^cargo //g'` - if test "x$HAVE_GNUTLS" != "x1" -a "x$HAVE_LIBSSL" != "x1" -then : - as_fn_error $? "DNS over HTTPS support requested but neither GnuTLS nor OpenSSL are available" "$LINENO" 5 -fi + # Used to indicate true or false condition + ax_compare_version=false -fi + # Convert the two version strings to be compared into a format that + # allows a simple string comparison. The end result is that a version + # string of the form 1.12.5-r617 will be converted to the form + # 0001001200050617. In other words, each number is zero padded to four + # digits, and non digits are removed. -if test "x$enable_dns_over_quic" != "xno" -then : + ax_compare_version_A=`echo "$cargo_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ + -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ + -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ + -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ + -e 's/[^0-9]//g'` - if test "x$HAVE_QUICHE" != "x1" -then : - as_fn_error $? "DNS over QUIC support requested but quiche was not found" "$LINENO" 5 + ax_compare_version_B=`echo "$minimum" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ + -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ + -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ + -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ + -e 's/[^0-9]//g'` -fi - if test "x$HAVE_LIBSSL" != "x1" -then : - as_fn_error $? "DNS over QUIC support requested but OpenSSL is not available" "$LINENO" 5 + ax_compare_version=`echo "x$ax_compare_version_A +x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` -fi -fi -if test "x$enable_dns_over_http3" != "xno" -then : + if test "$ax_compare_version" = "true" ; then - if test "x$HAVE_QUICHE" != "x1" -then : + as_fn_error $? "need at least cargo version $minimum" "$LINENO" 5 + + fi - as_fn_error $? "DNS over HTTP/3 support requested but quiche was not found" "$LINENO" 5 -fi fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will we liniking with libcdb" >&5 -printf %s "checking whether we will we liniking with libcdb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will we linking with libcdb" >&5 +printf %s "checking whether we will we linking with libcdb... " >&6; } HAVE_CDB=0 # Check whether --with-cdb was given. if test ${with_cdb+y} then : withval=$with_cdb; with_cdb=$withval -else $as_nop - with_cdb=auto - +else case e in #( + e) with_cdb=auto + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cdb" >&5 @@ -24695,8 +25183,8 @@ if test ${ac_cv_lib_cdb_cdb_find+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcdb $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24715,12 +25203,14 @@ if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_cdb_cdb_find=yes -else $as_nop - ac_cv_lib_cdb_cdb_find=no +else case e in #( + e) ac_cv_lib_cdb_cdb_find=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_find" >&5 printf "%s\n" "$ac_cv_lib_cdb_cdb_find" >&6; } @@ -24733,14 +25223,16 @@ HAVE_CDB=1 -else $as_nop - : - +else case e in #( + e) : + ;; +esac fi -else $as_nop - : - +else case e in #( + e) : + ;; +esac fi done @@ -24759,8 +25251,8 @@ if test ${ac_cv_lib_cdb_cdb_find+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcdb $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24779,12 +25271,14 @@ if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_cdb_cdb_find=yes -else $as_nop - ac_cv_lib_cdb_cdb_find=no +else case e in #( + e) ac_cv_lib_cdb_cdb_find=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_find" >&5 printf "%s\n" "$ac_cv_lib_cdb_cdb_find" >&6; } @@ -24797,14 +25291,16 @@ HAVE_CDB=1 -else $as_nop - : - +else case e in #( + e) : + ;; +esac fi -else $as_nop - : - +else case e in #( + e) : + ;; +esac fi done @@ -24857,10 +25353,11 @@ withval=$with_lmdb; with_lmdb=$withval -else $as_nop - +else case e in #( + e) with_lmdb=auto - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lmdb" >&5 @@ -24951,8 +25448,8 @@ fi -else $as_nop - +else case e in #( + e) save_CPPFLAGS=$CPPFLAGS save_LIBS=$LIBS if test -d "$with_lmdb/include" @@ -24961,11 +25458,12 @@ LMDB_CFLAGS="-I$with_lmdb/include" LMDB_LIBS="-L$with_lmdb/lib" -else $as_nop - +else case e in #( + e) LMDB_CFLAGS="-I$with_lmdb" LMDB_LIBS="-L$with_lmdb" - + ;; +esac fi CPPFLAGS="$LMDB_CFLAGS" LIBS="$LMDB_LIBS" @@ -24975,8 +25473,8 @@ if test ${ac_cv_search_mdb_env_open+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -25013,11 +25511,13 @@ if test ${ac_cv_search_mdb_env_open+y} then : -else $as_nop - ac_cv_search_mdb_env_open=no +else case e in #( + e) ac_cv_search_mdb_env_open=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_open" >&5 printf "%s\n" "$ac_cv_search_mdb_env_open" >&6; } @@ -25039,10 +25539,11 @@ HAVE_LMDB=1 -else $as_nop - +else case e in #( + e) as_fn_error $? "lmdb headers not found in $with_lmdb" "$LINENO" 5 - + ;; +esac fi done @@ -25053,7 +25554,8 @@ fi - + ;; +esac fi fi @@ -25074,9 +25576,10 @@ if test ${enable_ipcipher+y} then : enableval=$enable_ipcipher; enable_ipcipher=$enableval -else $as_nop - enable_ipcipher=auto - +else case e in #( + e) enable_ipcipher=auto + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ipcipher" >&5 @@ -25122,6 +25625,117 @@ fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ipcrypt2 support" >&5 +printf %s "checking whether to enable ipcrypt2 support... " >&6; } + # Check whether --enable-ipcrypt2 was given. +if test ${enable_ipcrypt2+y} +then : + enableval=$enable_ipcrypt2; enable_ipcrypt2=$enableval +else case e in #( + e) enable_ipcrypt2=no + ;; +esac +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ipcrypt2" >&5 +printf "%s\n" "$enable_ipcrypt2" >&6; } + + HAVE_IPCRYPT2=0 + + if test "x$enable_ipcrypt2" != "xno" +then : + + + if test "$build_cpu" = "aarch64" +then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports calculations with uint64x2_t" >&5 +printf %s "checking whether the compiler supports calculations with uint64x2_t... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(_MSC_VER) && defined(_M_ARM64) +# include +# else +# include +# endif +int main() { + uint64x2_t foo = {0, 0}; + uint64x2_t bar = vshrq_n_u8(foo, 1); + return 0; +} + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + + HAVE_IPCRYPT2=1 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } + +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +else case e in #( + e) + HAVE_IPCRYPT2=1 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } + ;; +esac +fi + +fi + + if test "x$HAVE_IPCRYPT2" != "x0"; then + HAVE_IPCRYPT2_TRUE= + HAVE_IPCRYPT2_FALSE='#' +else + HAVE_IPCRYPT2_TRUE='#' + HAVE_IPCRYPT2_FALSE= +fi + + + if test "x$enable_ipcrypt2" != "xno" +then : + + if test x"$HAVE_IPCRYPT2" = "x0" +then : + + as_fn_error $? "ipcrypt2 support requested but is not available" "$LINENO" 5 + +fi + +fi + + if test -z "$HAVE_IPCRYPT2_TRUE"; then : + + +printf "%s\n" "#define HAVE_IPCRYPT2 1" >>confdefs.h + + +fi + + ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -25132,17 +25746,24 @@ + + if test x$ac_success = xno; then - for alternative in ${ax_cxx_compile_alternatives}; do - for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do - cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` + for alternative in ${ax_cxx_compile_alternatives}; do + for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do + if test x"$switch" = xMSVC; then + switch=-std:c++${alternative} + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | sed "$as_sed_sh"` + else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"` + fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } if eval test \${$cachevar+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_CXX="$CXX" +else case e in #( + e) ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -25155,7 +25776,11 @@ #error "This is not a C++ compiler" -#elif __cplusplus < 201103L +// MSVC always sets __cplusplus to 199711L in older versions; newer versions +// only set it correctly if /Zc:__cplusplus is specified as well as a +// /std:c++NN switch: +// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ +#elif __cplusplus < 201103L && !defined _MSC_VER #error "This is not a C++11 compiler" @@ -25442,7 +26067,7 @@ #error "This is not a C++ compiler" -#elif __cplusplus < 201402L +#elif __cplusplus < 201402L && !defined _MSC_VER #error "This is not a C++14 compiler" @@ -25562,7 +26187,7 @@ #error "This is not a C++ compiler" -#elif __cplusplus < 201703L +#elif __cplusplus < 201703L && !defined _MSC_VER #error "This is not a C++17 compiler" @@ -25577,7 +26202,8 @@ namespace test_constexpr_lambdas { - [[maybe_unused]] constexpr int foo = [](){return 42;}(); + + constexpr int foo = [](){return 42;}(); } @@ -25927,7 +26553,7 @@ } // namespace cxx17 -#endif // __cplusplus < 201703L +#endif // __cplusplus < 201703L && !defined _MSC_VER @@ -25935,11 +26561,13 @@ if ac_fn_cxx_try_compile "$LINENO" then : eval $cachevar=yes -else $as_nop - eval $cachevar=no +else case e in #( + e) eval $cachevar=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CXX="$ac_save_CXX" + CXX="$ac_save_CXX" ;; +esac fi eval ac_res=\$$cachevar { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -25988,9 +26616,10 @@ if test ${enable_hardening+y} then : enableval=$enable_hardening; enable_hardening=$enableval -else $as_nop - enable_hardening=yes - +else case e in #( + e) enable_hardening=yes + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_hardening" >&5 @@ -26001,8 +26630,8 @@ if test ${gl_cv_warn_cxx__Werror__Wunknown_warning_option+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26019,21 +26648,24 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__Werror__Wunknown_warning_option=yes -else $as_nop - gl_cv_warn_cxx__Werror__Wunknown_warning_option=no +else case e in #( + e) gl_cv_warn_cxx__Werror__Wunknown_warning_option=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&5 printf "%s\n" "$gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&6; } if test "x$gl_cv_warn_cxx__Werror__Wunknown_warning_option" = xyes then : gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' -else $as_nop - gl_unknown_warnings_are_errors= +else case e in #( + e) gl_unknown_warnings_are_errors= ;; +esac fi if test "x$enable_hardening" != "xno" @@ -26053,8 +26685,8 @@ if test ${gl_cv_warn_cxx__pie+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -pie" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26075,13 +26707,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__pie=yes -else $as_nop - gl_cv_warn_cxx__pie=no +else case e in #( + e) gl_cv_warn_cxx__pie=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__pie" >&5 printf "%s\n" "$gl_cv_warn_cxx__pie" >&6; } @@ -26091,15 +26725,15 @@ PIE_CFLAGS="-fPIE -DPIE" PIE_LDFLAGS="-pie" -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wl,-pie" >&5 printf %s "checking whether C++ compiler handles -Wl,-pie... " >&6; } if test ${gl_cv_warn_cxx__Wl__pie+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -Wl,-pie" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26120,13 +26754,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__Wl__pie=yes -else $as_nop - gl_cv_warn_cxx__Wl__pie=no +else case e in #( + e) gl_cv_warn_cxx__Wl__pie=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wl__pie" >&5 printf "%s\n" "$gl_cv_warn_cxx__Wl__pie" >&6; } @@ -26138,7 +26774,8 @@ fi - + ;; +esac fi esac @@ -26152,8 +26789,8 @@ if test ${gl_cv_warn_cxx__fstack_protector+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fstack-protector" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26170,13 +26807,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fstack_protector=yes -else $as_nop - gl_cv_warn_cxx__fstack_protector=no +else case e in #( + e) gl_cv_warn_cxx__fstack_protector=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fstack_protector" >&5 printf "%s\n" "$gl_cv_warn_cxx__fstack_protector" >&6; } @@ -26195,8 +26834,8 @@ if test ${gl_cv_warn_cxx___param_ssp_buffer_size_4+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors --param ssp-buffer-size=4" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26213,13 +26852,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx___param_ssp_buffer_size_4=yes -else $as_nop - gl_cv_warn_cxx___param_ssp_buffer_size_4=no +else case e in #( + e) gl_cv_warn_cxx___param_ssp_buffer_size_4=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx___param_ssp_buffer_size_4" >&5 printf "%s\n" "$gl_cv_warn_cxx___param_ssp_buffer_size_4" >&6; } @@ -26237,9 +26878,10 @@ if test ${enable_fortify_source+y} then : enableval=$enable_fortify_source; enable_fortify_source=$enableval -else $as_nop - enable_fortify_source=2 - +else case e in #( + e) enable_fortify_source=2 + ;; +esac fi @@ -26247,12 +26889,12 @@ then : - if test "x$enable_fortify_source" == "xauto" + if test "$enable_fortify_source" = "auto" then : enable_fortify_source=3 fi - if test "x$enable_fortify_source" == "x3" + if test "$enable_fortify_source" = "3" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=3" >&5 @@ -26260,8 +26902,8 @@ if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_3+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=3" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26278,13 +26920,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__D_FORTIFY_SOURCE_3=yes -else $as_nop - gl_cv_warn_cxx__D_FORTIFY_SOURCE_3=no +else case e in #( + e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_3=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_3" >&5 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_3" >&6; } @@ -26294,14 +26938,15 @@ CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 $CFLAGS" CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 $CXXFLAGS" -else $as_nop - enable_fortify_source=2 +else case e in #( + e) enable_fortify_source=2 ;; +esac fi fi - if test "x$enable_fortify_source" == "x2" + if test "$enable_fortify_source" = "2" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=2" >&5 @@ -26309,8 +26954,8 @@ if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_2+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26327,13 +26972,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__D_FORTIFY_SOURCE_2=yes -else $as_nop - gl_cv_warn_cxx__D_FORTIFY_SOURCE_2=no +else case e in #( + e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_2=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_2" >&5 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_2" >&6; } @@ -26343,14 +26990,15 @@ CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS" CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CXXFLAGS" -else $as_nop - enable_fortify_source=1 +else case e in #( + e) enable_fortify_source=1 ;; +esac fi fi - if test "x$enable_fortify_source" == "x1" + if test "$enable_fortify_source" = "1" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=1" >&5 @@ -26358,8 +27006,8 @@ if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_1+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=1" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26376,13 +27024,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__D_FORTIFY_SOURCE_1=yes -else $as_nop - gl_cv_warn_cxx__D_FORTIFY_SOURCE_1=no +else case e in #( + e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_1=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_1" >&5 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_1" >&6; } @@ -26392,8 +27042,9 @@ CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 $CFLAGS" CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 $CXXFLAGS" -else $as_nop - enable_fortify_source=no +else case e in #( + e) enable_fortify_source=no ;; +esac fi @@ -26424,10 +27075,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RELRO_LDFLAGS" >&5 printf "%s\n" "$RELRO_LDFLAGS" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 printf "%s\n" "unknown" >&6; } - + ;; +esac fi @@ -26440,8 +27092,9 @@ if test ${enable_auto_var_init+y} then : enableval=$enable_auto_var_init; enable_initautovars=$enableval -else $as_nop - enable_initautovars=no +else case e in #( + e) enable_initautovars=no ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_initautovars" >&5 @@ -26462,8 +27115,8 @@ if test ${gl_cv_warn_cxx__ftrivial_auto_var_init_zero+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -ftrivial-auto-var-init=zero" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26480,13 +27133,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__ftrivial_auto_var_init_zero=yes -else $as_nop - gl_cv_warn_cxx__ftrivial_auto_var_init_zero=no +else case e in #( + e) gl_cv_warn_cxx__ftrivial_auto_var_init_zero=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__ftrivial_auto_var_init_zero" >&5 printf "%s\n" "$gl_cv_warn_cxx__ftrivial_auto_var_init_zero" >&6; } @@ -26509,8 +27164,8 @@ if test ${gl_cv_warn_cxx__ftrivial_auto_var_init_pattern+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -ftrivial-auto-var-init=pattern" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26527,13 +27182,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__ftrivial_auto_var_init_pattern=yes -else $as_nop - gl_cv_warn_cxx__ftrivial_auto_var_init_pattern=no +else case e in #( + e) gl_cv_warn_cxx__ftrivial_auto_var_init_pattern=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__ftrivial_auto_var_init_pattern" >&5 printf "%s\n" "$gl_cv_warn_cxx__ftrivial_auto_var_init_pattern" >&6; } @@ -26558,9 +27215,10 @@ if test ${enable_asan+y} then : enableval=$enable_asan; enable_asan=$enableval -else $as_nop - enable_asan=no - +else case e in #( + e) enable_asan=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_asan" >&5 @@ -26574,8 +27232,8 @@ if test ${gl_cv_warn_cxx__fsanitize_address+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=address" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26592,13 +27250,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fsanitize_address=yes -else $as_nop - gl_cv_warn_cxx__fsanitize_address=no +else case e in #( + e) gl_cv_warn_cxx__fsanitize_address=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_address" >&5 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_address" >&6; } @@ -26613,8 +27273,9 @@ then : printf "%s\n" "#define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1" >>confdefs.h asan_headers=yes -else $as_nop - asan_headers=no +else case e in #( + e) asan_headers=no ;; +esac fi done @@ -26655,8 +27316,8 @@ printf "%s\n" "#define HAVE_SANITIZER_FINISH_SWITCH_FIBER_SINGLE_PTR 1" >>confdefs.h -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26684,31 +27345,47 @@ printf "%s\n" "#define HAVE_SANITIZER_FINISH_SWITCH_FIBER_THREE_PTRS 1" >>confdefs.h -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 printf "%s\n" "unknown" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ASAN fiber switching is not available due to an unknown API version" >&5 printf "%s\n" "$as_me: ASAN fiber switching is not available due to an unknown API version" >&6;} - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ASAN fiber switching is not available" >&5 printf "%s\n" "$as_me: ASAN fiber switching is not available" >&6;} + ;; +esac +fi fi + for ac_header in sanitizer/lsan_interface.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default" +if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes +then : + printf "%s\n" "#define HAVE_SANITIZER_LSAN_INTERFACE_H 1" >>confdefs.h + +printf "%s\n" "#define HAVE_LEAK_SANITIZER_INTERFACE 1" >>confdefs.h fi -else $as_nop - as_fn_error $? "Cannot enable AddressSanitizer" "$LINENO" 5 +done +else case e in #( + e) as_fn_error $? "Cannot enable AddressSanitizer" "$LINENO" 5 + ;; +esac fi @@ -26723,9 +27400,10 @@ if test ${enable_msan+y} then : enableval=$enable_msan; enable_msan=$enableval -else $as_nop - enable_msan=no - +else case e in #( + e) enable_msan=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_msan" >&5 @@ -26739,8 +27417,8 @@ if test ${gl_cv_warn_cxx__fsanitize_memory+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=memory" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26757,22 +27435,25 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fsanitize_memory=yes -else $as_nop - gl_cv_warn_cxx__fsanitize_memory=no +else case e in #( + e) gl_cv_warn_cxx__fsanitize_memory=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_memory" >&5 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_memory" >&6; } if test "x$gl_cv_warn_cxx__fsanitize_memory" = xyes then : SANITIZER_FLAGS="-fsanitize=memory $SANITIZER_FLAGS" -else $as_nop - as_fn_error $? "Cannot enable MemorySanitizer" "$LINENO" 5 - +else case e in #( + e) as_fn_error $? "Cannot enable MemorySanitizer" "$LINENO" 5 + ;; +esac fi @@ -26787,9 +27468,10 @@ if test ${enable_tsan+y} then : enableval=$enable_tsan; enable_tsan=$enableval -else $as_nop - enable_tsan=no - +else case e in #( + e) enable_tsan=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tsan" >&5 @@ -26803,8 +27485,8 @@ if test ${gl_cv_warn_cxx__fsanitize_thread+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=thread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26821,22 +27503,25 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fsanitize_thread=yes -else $as_nop - gl_cv_warn_cxx__fsanitize_thread=no +else case e in #( + e) gl_cv_warn_cxx__fsanitize_thread=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_thread" >&5 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_thread" >&6; } if test "x$gl_cv_warn_cxx__fsanitize_thread" = xyes then : SANITIZER_FLAGS="-fsanitize=thread $SANITIZER_FLAGS" -else $as_nop - as_fn_error $? "Cannot enable ThreadSanitizer" "$LINENO" 5 - +else case e in #( + e) as_fn_error $? "Cannot enable ThreadSanitizer" "$LINENO" 5 + ;; +esac fi @@ -26851,9 +27536,10 @@ if test ${enable_lsan+y} then : enableval=$enable_lsan; enable_lsan=$enableval -else $as_nop - enable_lsan=no - +else case e in #( + e) enable_lsan=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lsan" >&5 @@ -26867,8 +27553,8 @@ if test ${gl_cv_warn_cxx__fsanitize_leak+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=leak" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26885,24 +27571,39 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fsanitize_leak=yes -else $as_nop - gl_cv_warn_cxx__fsanitize_leak=no +else case e in #( + e) gl_cv_warn_cxx__fsanitize_leak=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_leak" >&5 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_leak" >&6; } if test "x$gl_cv_warn_cxx__fsanitize_leak" = xyes then : SANITIZER_FLAGS="-fsanitize=leak $SANITIZER_FLAGS" -else $as_nop - as_fn_error $? "Cannot enable LeakSanitizer" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Cannot enable LeakSanitizer" "$LINENO" 5 + ;; +esac +fi + + for ac_header in sanitizer/lsan_interface.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default" +if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes +then : + printf "%s\n" "#define HAVE_SANITIZER_LSAN_INTERFACE_H 1" >>confdefs.h + +printf "%s\n" "#define HAVE_LEAK_SANITIZER_INTERFACE 1" >>confdefs.h fi +done fi @@ -26915,9 +27616,10 @@ if test ${enable_ubsan+y} then : enableval=$enable_ubsan; enable_ubsan=$enableval -else $as_nop - enable_ubsan=no - +else case e in #( + e) enable_ubsan=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5 @@ -26931,8 +27633,8 @@ if test ${gl_cv_warn_cxx__fsanitize_undefined+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=undefined" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26949,22 +27651,25 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fsanitize_undefined=yes -else $as_nop - gl_cv_warn_cxx__fsanitize_undefined=no +else case e in #( + e) gl_cv_warn_cxx__fsanitize_undefined=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_undefined" >&5 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_undefined" >&6; } if test "x$gl_cv_warn_cxx__fsanitize_undefined" = xyes then : SANITIZER_FLAGS="-fsanitize=undefined $SANITIZER_FLAGS" -else $as_nop - as_fn_error $? "Cannot enable Undefined Behaviour Sanitizer" "$LINENO" 5 - +else case e in #( + e) as_fn_error $? "Cannot enable Undefined Behaviour Sanitizer" "$LINENO" 5 + ;; +esac fi @@ -27009,8 +27714,8 @@ if test ${gl_cv_warn_cxx__fno_omit_frame_pointer+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fno-omit-frame-pointer" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27027,13 +27732,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fno_omit_frame_pointer=yes -else $as_nop - gl_cv_warn_cxx__fno_omit_frame_pointer=no +else case e in #( + e) gl_cv_warn_cxx__fno_omit_frame_pointer=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fno_omit_frame_pointer" >&5 printf "%s\n" "$gl_cv_warn_cxx__fno_omit_frame_pointer" >&6; } @@ -27051,17 +27758,18 @@ if test ${enable_lto+y} then : enableval=$enable_lto; enable_lto=$enableval -else $as_nop - enable_lto=no - +else case e in #( + e) enable_lto=no + ;; +esac fi - if test "x$enable_lto" != "xno" + if test "$enable_lto" != "no" then : - if test "x$enable_lto" == "xthin" + if test "$enable_lto" = "thin" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto=thin" >&5 @@ -27069,8 +27777,8 @@ if test ${gl_cv_warn_cxx__flto_thin+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto=thin" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27087,13 +27795,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__flto_thin=yes -else $as_nop - gl_cv_warn_cxx__flto_thin=no +else case e in #( + e) gl_cv_warn_cxx__flto_thin=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto_thin" >&5 printf "%s\n" "$gl_cv_warn_cxx__flto_thin" >&6; } @@ -27104,14 +27814,15 @@ CXXFLAGS="-flto=thin $CXXFLAGS" LDFLAGS="-flto=thin $LDFLAGS" -else $as_nop - enable_lto=auto +else case e in #( + e) enable_lto=auto ;; +esac fi fi - if test "x$enable_lto" == "xauto" + if test "$enable_lto" = "auto" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto=auto" >&5 @@ -27119,8 +27830,8 @@ if test ${gl_cv_warn_cxx__flto_auto+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto=auto" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27137,13 +27848,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__flto_auto=yes -else $as_nop - gl_cv_warn_cxx__flto_auto=no +else case e in #( + e) gl_cv_warn_cxx__flto_auto=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto_auto" >&5 printf "%s\n" "$gl_cv_warn_cxx__flto_auto" >&6; } @@ -27154,14 +27867,15 @@ CXXFLAGS="-flto=auto $CXXFLAGS" LDFLAGS="-flto=auto $LDFLAGS" -else $as_nop - enable_lto=yes +else case e in #( + e) enable_lto=yes ;; +esac fi fi - if test "x$enable_lto" == "xyes" + if test "$enable_lto" = "yes" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto" >&5 @@ -27169,8 +27883,8 @@ if test ${gl_cv_warn_cxx__flto+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27187,13 +27901,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__flto=yes -else $as_nop - gl_cv_warn_cxx__flto=no +else case e in #( + e) gl_cv_warn_cxx__flto=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto" >&5 printf "%s\n" "$gl_cv_warn_cxx__flto" >&6; } @@ -27204,8 +27920,9 @@ CXXFLAGS="-flto $CXXFLAGS" LDFLAGS="-flto $LDFLAGS" -else $as_nop - enable_lto=no +else case e in #( + e) enable_lto=no ;; +esac fi @@ -27225,9 +27942,10 @@ if test ${enable_coverage+y} then : enableval=$enable_coverage; enable_coverage=$enableval -else $as_nop - enable_coverage=no - +else case e in #( + e) enable_coverage=no + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5 @@ -27241,8 +27959,8 @@ if test ${gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fprofile-instr-generate -fcoverage-mapping" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27259,13 +27977,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping=yes -else $as_nop - gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping=no +else case e in #( + e) gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping" >&5 printf "%s\n" "$gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping" >&6; } @@ -27275,10 +27995,11 @@ CFLAGS="$CFLAGS -DCOVERAGE -DCLANG_COVERAGE -fprofile-instr-generate -fcoverage-mapping" CXXFLAGS="$CXXFLAGS -DCOVERAGE -DCLANG_COVERAGE -fprofile-instr-generate -fcoverage-mapping" -else $as_nop - +else case e in #( + e) as_fn_error $? "$CXX does not support gathering coverage data in the clang format" "$LINENO" 5 - + ;; +esac fi @@ -27292,8 +28013,8 @@ if test ${gl_cv_warn_cxx__fprofile_arcs__ftest_coverage+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) gl_save_compiler_FLAGS="$CXXFLAGS" as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fprofile-arcs -ftest-coverage" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -27310,13 +28031,15 @@ if ac_fn_cxx_try_link "$LINENO" then : gl_cv_warn_cxx__fprofile_arcs__ftest_coverage=yes -else $as_nop - gl_cv_warn_cxx__fprofile_arcs__ftest_coverage=no +else case e in #( + e) gl_cv_warn_cxx__fprofile_arcs__ftest_coverage=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$gl_save_compiler_FLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fprofile_arcs__ftest_coverage" >&5 printf "%s\n" "$gl_cv_warn_cxx__fprofile_arcs__ftest_coverage" >&6; } @@ -27327,10 +28050,11 @@ CXXFLAGS="$CXXFLAGS -DCOVERAGE --coverage" LDFLAGS="$LDFLAGS --coverage" -else $as_nop - +else case e in #( + e) as_fn_error $? "$CXX does not support gathering coverage data" "$LINENO" 5 - + ;; +esac fi @@ -27365,10 +28089,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - as_fn_error $? "Python interpreter is too old" "$LINENO" 5 + as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; +esac fi am_display_PYTHON=$PYTHON else @@ -27379,9 +28104,9 @@ if test ${am_cv_pathless_PYTHON+y} then : printf %s "(cached) " >&6 -else $as_nop - - for am_cv_pathless_PYTHON in python python2 python3 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do +else case e in #( + e) + for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys # split strings by '.' and convert to numeric. Append some zeros @@ -27400,7 +28125,8 @@ then : break fi - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } @@ -27415,8 +28141,8 @@ if test ${ac_cv_path_PYTHON+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PYTHON in +else case e in #( + e) case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. ;; @@ -27441,6 +28167,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi PYTHON=$ac_cv_path_PYTHON @@ -27467,8 +28194,9 @@ if test ${am_cv_python_version+y} then : printf %s "(cached) " >&6 -else $as_nop - am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` +else case e in #( + e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 printf "%s\n" "$am_cv_python_version" >&6; } @@ -27480,8 +28208,9 @@ if test ${am_cv_python_platform+y} then : printf %s "(cached) " >&6 -else $as_nop - am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` +else case e in #( + e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 printf "%s\n" "$am_cv_python_platform" >&6; } @@ -27501,8 +28230,9 @@ if test ${with_python_sys_prefix+y} then : withval=$with_python_sys_prefix; am_use_python_sys=: -else $as_nop - am_use_python_sys=false +else case e in #( + e) am_use_python_sys=false ;; +esac fi @@ -27517,8 +28247,8 @@ printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 printf "%s\n" "$am_cv_python_prefix" >&6; } -else $as_nop - +else case e in #( + e) if $am_use_python_sys; then # using python sys.prefix value, not GNU { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 @@ -27526,8 +28256,9 @@ if test ${am_cv_python_prefix+y} then : printf %s "(cached) " >&6 -else $as_nop - am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` +else case e in #( + e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 printf "%s\n" "$am_cv_python_prefix" >&6; } @@ -27548,7 +28279,8 @@ printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 printf "%s\n" "$am_python_prefix" >&6; } - fi + fi ;; +esac fi # Substituting python_prefix_subst value. @@ -27567,8 +28299,8 @@ printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } -else $as_nop - +else case e in #( + e) # no explicit --with-python_exec_prefix, but if # --with-python_prefix was given, use its value for python_exec_prefix too. if test -n "$with_python_prefix" @@ -27579,8 +28311,8 @@ printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } -else $as_nop - +else case e in #( + e) # Set am__usable_exec_prefix whether using GNU or Python values, # since we use that variable for pyexecdir. if test "x$exec_prefix" = xNONE; then @@ -27595,8 +28327,9 @@ if test ${am_cv_python_exec_prefix+y} then : printf %s "(cached) " >&6 -else $as_nop - am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` +else case e in #( + e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } @@ -27616,8 +28349,10 @@ printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 printf "%s\n" "$am_python_exec_prefix" >&6; } - fi -fi + fi ;; +esac +fi ;; +esac fi # Substituting python_exec_prefix_subst. @@ -27642,7 +28377,21 @@ if python_implementation() == 'CPython' and sys.version[:3] == '2.7': can_use_sysconfig = 0 except ImportError: - pass" + pass" # end of am_python_setup_sysconfig + + # More repeated code, for figuring out the installation scheme to use. + am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): + scheme = sysconfig.get_default_scheme() + else: + scheme = sysconfig._get_default_scheme() + if scheme == 'posix_local': + if '$am_py_prefix' == '/usr': + scheme = 'deb_system' # should only happen during Debian package builds + else: + # Debian's default scheme installs to /usr/local/ but we want to + # follow the prefix, as we always have. + # See bugs#54412, #64837, et al. + scheme = 'posix_prefix'" # end of am_python_setup_scheme { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 @@ -27650,8 +28399,8 @@ if test ${am_cv_python_pythondir+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$am_cv_python_prefix" = x; then +else case e in #( + e) if test "x$am_cv_python_prefix" = x; then am_py_prefix=$am__usable_prefix else am_py_prefix=$am_cv_python_prefix @@ -27659,7 +28408,11 @@ am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: - sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) + try: + $am_python_setup_scheme + sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) + except: + sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') @@ -27678,7 +28431,8 @@ esac ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 printf "%s\n" "$am_cv_python_pythondir" >&6; } @@ -27688,13 +28442,13 @@ pkgpythondir=\${pythondir}/$PACKAGE - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } if test ${am_cv_python_pyexecdir+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$am_cv_python_exec_prefix" = x; then +else case e in #( + e) if test "x$am_cv_python_exec_prefix" = x; then am_py_exec_prefix=$am__usable_exec_prefix else am_py_exec_prefix=$am_cv_python_exec_prefix @@ -27702,7 +28456,11 @@ am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: - sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) + try: + $am_python_setup_scheme + sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) + except: + sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') @@ -27721,7 +28479,8 @@ esac ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } @@ -27825,7 +28584,7 @@ fi -ac_config_files="$ac_config_files Makefile ext/arc4random/Makefile ext/yahttp/Makefile ext/yahttp/yahttp/Makefile ext/ipcrypt/Makefile" +ac_config_files="$ac_config_files Makefile dnsdist-rust-lib/Makefile dnsdist-rust-lib/rust/Makefile ext/arc4random/Makefile ext/yahttp/Makefile ext/yahttp/yahttp/Makefile ext/ipcrypt/Makefile ext/ipcrypt2/Makefile" cat >confcache <<\_ACEOF @@ -27838,8 +28597,8 @@ # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -27869,14 +28628,14 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -27945,6 +28704,18 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; +esac +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi + if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -28161,10 +28932,6 @@ as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${HAVE_LIBH2OEVLOOP_TRUE}" && test -z "${HAVE_LIBH2OEVLOOP_FALSE}"; then - as_fn_error $? "conditional \"HAVE_LIBH2OEVLOOP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -28213,8 +28980,8 @@ as_fn_error $? "conditional \"HAVE_NGHTTP2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${HAVE_LIBH2OEVLOOP_TRUE}" && test -z "${HAVE_LIBH2OEVLOOP_FALSE}"; then - as_fn_error $? "conditional \"HAVE_LIBH2OEVLOOP\" was never defined. +if test -z "${HAVE_YAML_CONFIGURATION_TRUE}" && test -z "${HAVE_YAML_CONFIGURATION_FALSE}"; then + as_fn_error $? "conditional \"HAVE_YAML_CONFIGURATION\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_CDB_TRUE}" && test -z "${HAVE_CDB_FALSE}"; then @@ -28229,6 +28996,10 @@ as_fn_error $? "conditional \"IPCIPHER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_IPCRYPT2_TRUE}" && test -z "${HAVE_IPCRYPT2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_IPCRYPT2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_VENV_TRUE}" && test -z "${HAVE_VENV_FALSE}"; then as_fn_error $? "conditional \"HAVE_VENV\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -28266,7 +29037,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -28275,12 +29045,13 @@ # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -28352,7 +29123,7 @@ ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -28381,7 +29152,6 @@ } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -28421,11 +29191,12 @@ { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -28439,11 +29210,12 @@ { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -28526,9 +29298,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -28609,10 +29381,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -28627,8 +29401,8 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by dnsdist $as_me 1.9.16, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by dnsdist $as_me 2.1.3, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -28660,7 +29434,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -28695,11 +29469,11 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -dnsdist config.status 1.9.16 -configured by $0, generated by GNU Autoconf 2.71, +dnsdist config.status 2.1.3 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -28761,8 +29535,8 @@ ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -28770,8 +29544,8 @@ ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -29211,12 +29985,15 @@ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "dnsdist-rust-lib/Makefile") CONFIG_FILES="$CONFIG_FILES dnsdist-rust-lib/Makefile" ;; + "dnsdist-rust-lib/rust/Makefile") CONFIG_FILES="$CONFIG_FILES dnsdist-rust-lib/rust/Makefile" ;; "ext/arc4random/Makefile") CONFIG_FILES="$CONFIG_FILES ext/arc4random/Makefile" ;; "ext/yahttp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/yahttp/Makefile" ;; "ext/yahttp/yahttp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/yahttp/yahttp/Makefile" ;; "ext/ipcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ipcrypt/Makefile" ;; + "ext/ipcrypt2/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ipcrypt2/Makefile" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -29236,7 +30013,7 @@ # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -29260,7 +30037,7 @@ # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -29418,13 +30195,13 @@ # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -29534,7 +30311,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -29556,19 +30333,19 @@ -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -29701,7 +30478,7 @@ esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -29732,9 +30509,9 @@ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -29889,15 +30666,15 @@ (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -30673,9 +31450,10 @@ if test "x$ac_configure_args" != "x" then : summary_conf_opts=$ac_configure_args -else $as_nop - summary_conf_opts="(no options)" - +else case e in #( + e) summary_conf_opts="(no options)" + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnsdist configured with: $summary_conf_opts" >&5 printf "%s\n" "$as_me: dnsdist configured with: $summary_conf_opts" >&6;} @@ -30713,127 +31491,151 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd: yes" >&5 printf "%s\n" "$as_me: systemd: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd: no" >&5 printf "%s\n" "$as_me: systemd: no" >&6;} - + ;; +esac fi if test x"$BPF_LIBS" != "x" -a x"$XDP_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_XDP/XSK: yes" >&5 printf "%s\n" "$as_me: AF_XDP/XSK: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_XDP/XSK: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_XDP/XSK: no" >&5 printf "%s\n" "$as_me: AF_XDP/XSK: no" >&6;} - + ;; +esac fi if test "x$HAVE_IPCIPHER" = "x1" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcipher: yes" >&5 printf "%s\n" "$as_me: ipcipher: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcipher: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcipher: no" >&5 printf "%s\n" "$as_me: ipcipher: no" >&6;} - + ;; +esac +fi +if test "x$enable_ipcrypt2" != "xno" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcrypt2: yes" >&5 +printf "%s\n" "$as_me: ipcrypt2: yes" >&6;} +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcrypt2: no" >&5 +printf "%s\n" "$as_me: ipcrypt2: no" >&6;} + ;; +esac fi if test "x$LIBEDIT_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libedit: yes" >&5 printf "%s\n" "$as_me: libedit: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libedit: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libedit: no" >&5 printf "%s\n" "$as_me: libedit: no" >&6;} - + ;; +esac fi if test "x$LIBSODIUM_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libsodium: yes" >&5 printf "%s\n" "$as_me: libsodium: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libsodium: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libsodium: no" >&5 printf "%s\n" "$as_me: libsodium: no" >&6;} - + ;; +esac fi if test "x$enable_dnscrypt" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNSCrypt: yes" >&5 printf "%s\n" "$as_me: DNSCrypt: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNSCrypt: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNSCrypt: no" >&5 printf "%s\n" "$as_me: DNSCrypt: no" >&6;} - + ;; +esac fi if test "x$FSTRM_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnstap: yes" >&5 printf "%s\n" "$as_me: dnstap: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnstap: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnstap: no" >&5 printf "%s\n" "$as_me: dnstap: no" >&6;} - + ;; +esac fi if test "x$QUICHE_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: quiche: yes" >&5 printf "%s\n" "$as_me: quiche: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: quiche: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: quiche: no" >&5 printf "%s\n" "$as_me: quiche: no" >&6;} - + ;; +esac fi if test "x$RE2_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: re2: yes" >&5 printf "%s\n" "$as_me: re2: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: re2: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: re2: no" >&5 printf "%s\n" "$as_me: re2: no" >&6;} - + ;; +esac fi if test "x$NET_SNMP_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SNMP: yes" >&5 printf "%s\n" "$as_me: SNMP: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SNMP: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SNMP: no" >&5 printf "%s\n" "$as_me: SNMP: no" >&6;} - + ;; +esac fi if test "x$enable_dns_over_tls" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over TLS: yes" >&5 printf "%s\n" "$as_me: DNS over TLS: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over TLS: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over TLS: no" >&5 printf "%s\n" "$as_me: DNS over TLS: no" >&6;} - + ;; +esac fi if test "x$enable_dns_over_https" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTPS (DoH): yes" >&5 printf "%s\n" "$as_me: DNS over HTTPS (DoH): yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTPS (DoH): no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTPS (DoH): no" >&5 printf "%s\n" "$as_me: DNS over HTTPS (DoH): no" >&6;} - + ;; +esac fi if test "x$enable_dns_over_quic" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over QUIC (DoQ): yes" >&5 printf "%s\n" "$as_me: DNS over QUIC (DoQ): yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over QUIC (DoQ): no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over QUIC (DoQ): no" >&5 printf "%s\n" "$as_me: DNS over QUIC (DoQ): no" >&6;} - + ;; +esac fi if test "x$enable_dns_over_http3" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTP/3 (DoH3): yes" >&5 printf "%s\n" "$as_me: DNS over HTTP/3 (DoH3): yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTP/3 (DoH3): no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTP/3 (DoH3): no" >&5 printf "%s\n" "$as_me: DNS over HTTP/3 (DoH3): no" >&6;} - + ;; +esac fi if test "x$enable_dns_over_tls" != "xno" then : @@ -30842,10 +31644,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GnuTLS: yes" >&5 printf "%s\n" "$as_me: GnuTLS: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GnuTLS: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GnuTLS: no" >&5 printf "%s\n" "$as_me: GnuTLS: no" >&6;} - + ;; +esac fi fi @@ -30856,48 +31659,53 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL: yes" >&5 printf "%s\n" "$as_me: OpenSSL: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL: no" >&5 printf "%s\n" "$as_me: OpenSSL: no" >&6;} - -fi - + ;; +esac fi -if test "x$LIBH2OEVLOOP_LIBS" != "x" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: h2o-evloop: yes" >&5 -printf "%s\n" "$as_me: h2o-evloop: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: h2o-evloop: no" >&5 -printf "%s\n" "$as_me: h2o-evloop: no" >&6;} fi if test "x$NGHTTP2_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: nghttp2: yes" >&5 printf "%s\n" "$as_me: nghttp2: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: nghttp2: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: nghttp2: no" >&5 printf "%s\n" "$as_me: nghttp2: no" >&6;} - + ;; +esac fi if test "x$CDB_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cdb: yes" >&5 printf "%s\n" "$as_me: cdb: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cdb: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cdb: no" >&5 printf "%s\n" "$as_me: cdb: no" >&6;} - + ;; +esac fi if test "x$LMDB_LIBS" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lmdb: yes" >&5 printf "%s\n" "$as_me: lmdb: yes" >&6;} -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lmdb: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lmdb: no" >&5 printf "%s\n" "$as_me: lmdb: no" >&6;} - + ;; +esac +fi +if test "x$enable_yaml" != "xno" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: YAML configuration: yes" >&5 +printf "%s\n" "$as_me: YAML configuration: yes" >&6;} +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: YAML configuration: no" >&5 +printf "%s\n" "$as_me: YAML configuration: no" >&6;} + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5 diff -Nru dnsdist-1.9.16/configure.ac dnsdist-2.1.3/configure.ac --- dnsdist-1.9.16/configure.ac 2026-08-05 14:29:19.000000000 +0000 +++ dnsdist-2.1.3/configure.ac 2026-10-12 07:14:45.404264500 +0000 @@ -1,6 +1,6 @@ AC_PREREQ([2.69]) -AC_INIT([dnsdist], [1.9.16]) +AC_INIT([dnsdist], [2.1.3]) AM_INIT_AUTOMAKE([foreign tar-ustar dist-bzip2 no-dist-gzip parallel-tests 1.11 subdir-objects]) AM_SILENT_RULES([yes]) AC_CONFIG_MACRO_DIR([m4]) @@ -9,15 +9,24 @@ AC_PROG_CXX AC_LANG([C++]) -AC_DEFINE([DNSDIST], [1], - [This is dnsdist] -) +CPPFLAGS="-DDNSDIST $CPPFLAGS" -LT_PREREQ([2.2.2]) -LT_INIT([disable-static]) +# Warn when pkg.m4 is missing +m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config]) -CFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -fvisibility=hidden $CFLAGS" -CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden $CXXFLAGS" +LT_PREREQ([2.2.2]) +# Rust runtime uses dlopen from its static lib +LT_INIT([disable-static dlopen]) +AC_SUBST([LIBDL], [$lt_cv_dlopen_libs]) + +CFLAGS="-g -O3 -Wall -Wextra -Wshadow -fvisibility=hidden $CFLAGS" +CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wmissing-declarations -Wredundant-decls -fvisibility=hidden $CXXFLAGS" + +AC_SUBST([pdns_configure_args], ["$ac_configure_args"]) +AC_DEFINE_UNQUOTED([DNSDIST_CONFIG_ARGS], + ["$pdns_configure_args"], + [pdns configure arguments] +) PDNS_WITH_LIBSODIUM PDNS_WITH_QUICHE @@ -33,7 +42,7 @@ PDNS_CHECK_SECURE_MEMSET AC_FUNC_STRERROR_R -BOOST_REQUIRE([1.42]) +BOOST_REQUIRE([1.54]) PDNS_ENABLE_UNIT_TESTS PDNS_ENABLE_FUZZ_TARGETS @@ -57,11 +66,13 @@ AC_SUBST([YAHTTP_LIBS], ['$(top_builddir)/ext/yahttp/yahttp/libyahttp.la']) AC_SUBST([IPCRYPT_CFLAGS], ['-I$(top_srcdir)/ext/ipcrypt']) AC_SUBST([IPCRYPT_LIBS], ['$(top_builddir)/ext/ipcrypt/libipcrypt.la']) +AC_SUBST([IPCRYPT2_CFLAGS], ['-I$(top_srcdir)/ext/ipcrypt2/include']) +AC_SUBST([IPCRYPT2_LIBS], ['$(top_builddir)/ext/ipcrypt2/libipcrypt2.la']) AC_SUBST([ARC4RANDOM_LIBS], ['$(top_builddir)/ext/arc4random/libarc4random.la']) AC_CHECK_HEADERS([sys/random.h]) -PDNS_WITH_LUA([mandatory]) +PDNS_WITH_LUA AS_IF([test "x$LUAPC" = "xluajit"], [ # export all symbols with default visibility, to be able to use the Lua FFI interface AC_MSG_NOTICE([Adding -rdynamic to export all symbols for the Lua FFI interface]) @@ -71,7 +82,6 @@ AM_CONDITIONAL([HAVE_CDB], [false]) AM_CONDITIONAL([HAVE_GNUTLS], [false]) -AM_CONDITIONAL([HAVE_LIBH2OEVLOOP], [false]) AM_CONDITIONAL([HAVE_LIBSSL], [false]) AM_CONDITIONAL([HAVE_LMDB], [false]) AM_CONDITIONAL([HAVE_NGHTTP2], [false]) @@ -100,10 +110,8 @@ AS_IF([test "x$enable_dns_over_https" != "xno"], [ PDNS_WITH_NGHTTP2 - PDNS_WITH_LIBH2OEVLOOP - - AS_IF([test "x$HAVE_LIBH2OEVLOOP" != "x1" -a "x$HAVE_NGHTTP2" != "x1" ], [ - AC_MSG_ERROR([DNS over HTTPS support requested but neither libh2o-evloop nor nghttp2 was not found]) + AS_IF([test "x$HAVE_NGHTTP2" != "x1" ], [ + AC_MSG_ERROR([DNS over HTTPS support requested but nghttp2 was not found]) ]) AS_IF([test "x$HAVE_GNUTLS" != "x1" -a "x$HAVE_LIBSSL" != "x1"], [ @@ -126,9 +134,16 @@ ]) ]) +DNSDIST_ENABLE_YAML + +AS_IF([test "x$enable_yaml" != "xno"], [ + PDNS_CHECK_CARGO([1.64]) +]) + DNSDIST_WITH_CDB PDNS_CHECK_LMDB PDNS_ENABLE_IPCIPHER +PDNS_ENABLE_IPCRYPT2 AX_CXX_COMPILE_STDCXX_17([noext], [mandatory]) @@ -184,10 +199,13 @@ ) AC_CONFIG_FILES([Makefile + dnsdist-rust-lib/Makefile + dnsdist-rust-lib/rust/Makefile ext/arc4random/Makefile ext/yahttp/Makefile ext/yahttp/yahttp/Makefile - ext/ipcrypt/Makefile]) + ext/ipcrypt/Makefile + ext/ipcrypt2/Makefile]) AC_OUTPUT @@ -227,6 +245,10 @@ [AC_MSG_NOTICE([ipcipher: yes])], [AC_MSG_NOTICE([ipcipher: no])] ) +AS_IF([test "x$enable_ipcrypt2" != "xno"], + [AC_MSG_NOTICE([ipcrypt2: yes])], + [AC_MSG_NOTICE([ipcrypt2: no])] +) AS_IF([test "x$LIBEDIT_LIBS" != "x"], [AC_MSG_NOTICE([libedit: yes])], [AC_MSG_NOTICE([libedit: no])] @@ -283,10 +305,6 @@ [AC_MSG_NOTICE([OpenSSL: no])] )] ) -AS_IF([test "x$LIBH2OEVLOOP_LIBS" != "x"], - [AC_MSG_NOTICE([h2o-evloop: yes])], - [AC_MSG_NOTICE([h2o-evloop: no])] -) AS_IF([test "x$NGHTTP2_LIBS" != "x"], [AC_MSG_NOTICE([nghttp2: yes])], [AC_MSG_NOTICE([nghttp2: no])] @@ -299,5 +317,9 @@ [AC_MSG_NOTICE([lmdb: yes])], [AC_MSG_NOTICE([lmdb: no])] ) +AS_IF([test "x$enable_yaml" != "xno"], + [AC_MSG_NOTICE([YAML configuration: yes])], + [AC_MSG_NOTICE([YAML configuration: no])] +) AC_MSG_NOTICE([]) diff -Nru dnsdist-1.9.16/connection-management.hh dnsdist-2.1.3/connection-management.hh --- dnsdist-1.9.16/connection-management.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/connection-management.hh 2026-10-08 15:17:50.000000000 +0000 @@ -57,7 +57,8 @@ } private: - struct Data { + struct Data + { size_t d_maxConcurrentConnections{0}; size_t d_currentConnectionsCount{0}; }; diff -Nru dnsdist-1.9.16/credentials.cc dnsdist-2.1.3/credentials.cc --- dnsdist-1.9.16/credentials.cc 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/credentials.cc 2026-10-12 07:14:27.000000000 +0000 @@ -56,10 +56,6 @@ static size_t const pwhash_prefix_size = pwhash_prefix.size(); #endif -uint64_t const CredentialsHolder::s_defaultWorkFactor{1024U}; /* N */ -uint64_t const CredentialsHolder::s_defaultParallelFactor{1U}; /* p */ -uint64_t const CredentialsHolder::s_defaultBlockSize{8U}; /* r */ - SensitiveData::SensitiveData(std::string&& data) : d_data(std::move(data)) { @@ -110,10 +106,11 @@ } // OpenSSL 3.0 changed the string arg to const unsigned char*, other versions use const char * + // NOLINTBEGIN(cppcoreguidelines-pro-type-reinterpret-cast) #if OPENSSL_VERSION_MAJOR >= 3 - auto passwordData = reinterpret_cast(password.data()); + const auto* passwordData = reinterpret_cast(password.data()); #else - auto passwordData = reinterpret_cast(password.data()); + const auto* passwordData = reinterpret_cast(password.data()); #endif if (EVP_PKEY_CTX_set1_pbe_pass(pctx.get(), passwordData, password.size()) <= 0) { throw std::runtime_error("Error adding the password to the scrypt context to hash the supplied password"); @@ -122,6 +119,7 @@ if (EVP_PKEY_CTX_set1_scrypt_salt(pctx.get(), reinterpret_cast(salt.data()), salt.size()) <= 0) { throw std::runtime_error("Error adding the salt to the scrypt context to hash the supplied password"); } + // NOLINTEND(cppcoreguidelines-pro-type-reinterpret-cast) if (EVP_PKEY_CTX_set_scrypt_N(pctx.get(), workFactor) <= 0) { throw std::runtime_error("Error setting the work factor to the scrypt context to hash the supplied password"); @@ -139,6 +137,7 @@ out.resize(pwhash_output_size); size_t outlen = out.size(); + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) if (EVP_PKEY_derive(pctx.get(), reinterpret_cast(out.data()), &outlen) <= 0 || outlen != pwhash_output_size) { throw std::runtime_error("Error deriving the output from the scrypt context to hash the supplied password"); } @@ -156,7 +155,8 @@ std::string salt; salt.resize(pwhash_salt_size); - if (RAND_bytes(reinterpret_cast(salt.data()), salt.size()) != 1) { + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) + if (RAND_bytes(reinterpret_cast(salt.data()), static_cast(salt.size())) != 1) { throw std::runtime_error("Error while generating a salt to hash the supplied password"); } @@ -375,6 +375,7 @@ if (!d_isHashed) { d_fallbackHashPerturb = dns_random_uint32(); + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) d_fallbackHash = burtle(reinterpret_cast(d_credentials.getString().data()), d_credentials.getString().size(), d_fallbackHashPerturb); } } @@ -390,14 +391,13 @@ if (d_isHashed) { return verifyPassword(d_credentials.getString(), d_salt, d_workFactor, d_parallelFactor, d_blockSize, password); } - else { - uint32_t fallback = burtle(reinterpret_cast(password.data()), password.size(), d_fallbackHashPerturb); - if (fallback != d_fallbackHash) { - return false; - } - - return constantTimeStringEquals(password, d_credentials.getString()); + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) + uint32_t fallback = burtle(reinterpret_cast(password.data()), password.size(), d_fallbackHashPerturb); + if (fallback != d_fallbackHash) { + return false; } + + return constantTimeStringEquals(password, d_credentials.getString()); } bool CredentialsHolder::isHashingAvailable() @@ -414,8 +414,8 @@ SensitiveData CredentialsHolder::readFromTerminal() { - struct termios term; - struct termios oterm; + termios term{}; + termios oterm{}; bool restoreTermSettings = false; int termAction = TCSAFLUSH; #ifdef TCSASOFT @@ -442,19 +442,20 @@ } struct std::map signals; - struct sigaction sa; - sigemptyset(&sa.sa_mask); - sa.sa_flags = 0; - sa.sa_handler = [](int /* s */) {}; - sigaction(SIGALRM, &sa, &signals[SIGALRM]); - sigaction(SIGHUP, &sa, &signals[SIGHUP]); - sigaction(SIGINT, &sa, &signals[SIGINT]); - sigaction(SIGPIPE, &sa, &signals[SIGPIPE]); - sigaction(SIGQUIT, &sa, &signals[SIGQUIT]); - sigaction(SIGTERM, &sa, &signals[SIGTERM]); - sigaction(SIGTSTP, &sa, &signals[SIGTSTP]); - sigaction(SIGTTIN, &sa, &signals[SIGTTIN]); - sigaction(SIGTTOU, &sa, &signals[SIGTTOU]); + struct sigaction sigact // just sigaction does not work, it clashes with sigaction(2) + {}; + sigemptyset(&sigact.sa_mask); + sigact.sa_flags = 0; + sigact.sa_handler = [](int /* s */) {}; + sigaction(SIGALRM, &sigact, &signals[SIGALRM]); + sigaction(SIGHUP, &sigact, &signals[SIGHUP]); + sigaction(SIGINT, &sigact, &signals[SIGINT]); + sigaction(SIGPIPE, &sigact, &signals[SIGPIPE]); + sigaction(SIGQUIT, &sigact, &signals[SIGQUIT]); + sigaction(SIGTERM, &sigact, &signals[SIGTERM]); + sigaction(SIGTSTP, &sigact, &signals[SIGTSTP]); + sigaction(SIGTTIN, &sigact, &signals[SIGTTIN]); + sigaction(SIGTTOU, &sigact, &signals[SIGTTOU]); std::string buffer; /* let's allocate a huge buffer now to prevent reallocation, @@ -462,10 +463,10 @@ buffer.reserve(512); for (;;) { - char ch = '\0'; - auto got = read(input, &ch, 1); - if (got == 1 && ch != '\n' && ch != '\r') { - buffer.push_back(ch); + char character = '\0'; + auto got = read(input, &character, 1); + if (got == 1 && character != '\n' && character != '\r') { + buffer.push_back(character); } else { break; @@ -480,5 +481,5 @@ sigaction(sig.first, &sig.second, nullptr); } - return SensitiveData(std::move(buffer)); + return {std::move(buffer)}; } diff -Nru dnsdist-1.9.16/credentials.hh dnsdist-2.1.3/credentials.hh --- dnsdist-1.9.16/credentials.hh 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/credentials.hh 2026-10-12 07:14:27.000000000 +0000 @@ -27,13 +27,16 @@ class SensitiveData { public: + SensitiveData(const SensitiveData&) = delete; + SensitiveData(SensitiveData&&) = delete; + SensitiveData& operator=(const SensitiveData&) = delete; SensitiveData(size_t bytes); SensitiveData(std::string&& data); SensitiveData& operator=(SensitiveData&&) noexcept; ~SensitiveData(); void clear(); - const std::string& getString() const + [[nodiscard]] const std::string& getString() const { return d_data; } @@ -55,10 +58,12 @@ class CredentialsHolder { public: + CredentialsHolder(CredentialsHolder&&) = delete; + CredentialsHolder& operator=(CredentialsHolder&&) = delete; /* if hashPlaintext is true, the password is in cleartext and hashing is available, the hashed form will be kept in memory. Note that accepting hashed password from an untrusted source might open - us to a denial of service, since we currently don't cap the the parameters, + us to a denial of service, since we currently don't cap the parameters, including the work factor */ CredentialsHolder(std::string&& password, bool hashPlaintext); ~CredentialsHolder(); @@ -66,14 +71,14 @@ CredentialsHolder(const CredentialsHolder&) = delete; CredentialsHolder& operator=(const CredentialsHolder&) = delete; - bool matches(const std::string& password) const; + [[nodiscard]] bool matches(const std::string& password) const; /* whether it was constructed from a hashed and salted string */ - bool wasHashed() const + [[nodiscard]] bool wasHashed() const { return d_wasHashed; } /* whether it is hashed in memory */ - bool isHashed() const + [[nodiscard]] bool isHashed() const { return d_isHashed; } @@ -81,9 +86,9 @@ static bool isHashingAvailable(); static SensitiveData readFromTerminal(); - static uint64_t const s_defaultWorkFactor; - static uint64_t const s_defaultParallelFactor; - static uint64_t const s_defaultBlockSize; + static uint64_t constexpr s_defaultWorkFactor{1024U}; /* N */ + static uint64_t constexpr s_defaultParallelFactor{1U}; /* p */ + static uint64_t constexpr s_defaultBlockSize{8U}; /* r */ private: SensitiveData d_credentials; diff -Nru dnsdist-1.9.16/debian/.gitlab-ci.yml dnsdist-2.1.3/debian/.gitlab-ci.yml --- dnsdist-1.9.16/debian/.gitlab-ci.yml 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/.gitlab-ci.yml 2026-08-15 19:07:29.000000000 +0000 @@ -3,8 +3,9 @@ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml variables: - RELEASE: 'trixie' + RELEASE: 'unstable' SALSA_CI_DISABLE_APTLY: 1 + SALSA_CI_DISABLE_BLHC: 1 SALSA_CI_DISABLE_PIUPARTS: 1 SALSA_CI_DISABLE_REPROTEST: 1 SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 1 diff -Nru dnsdist-1.9.16/debian/changelog dnsdist-2.1.3/debian/changelog --- dnsdist-1.9.16/debian/changelog 2026-08-07 16:09:22.000000000 +0000 +++ dnsdist-2.1.3/debian/changelog 2026-11-03 17:14:09.000000000 +0000 @@ -1,37 +1,203 @@ -dnsdist (1.9.16-0+deb13u1) trixie-security; urgency=medium +dnsdist (2.1.3-1~deb13u1) trixie-security; urgency=medium - * New upstream version 1.9.16, fixing security issue - CVE-2026-52682 + * Target trixie. + * Revert "Build with lld 22, matching rustc LLVM 22 usage" + * Partially revert "Use debhelper-compat v14": We keep the new example + handling and the meson options. They are harmless with debhelper v13. + The v14-specifics stay reverted. + * Revert "Always build with luajit": Avoid breaking users using Lua 5.3 + language features on non-{amd64,arm64}. + * Revert "Filter out -fno-stack-clash-protection on armhf" + * Revert "Enable LTO" + * Relax cargo dependencies for trixie + * Add smoke tests - -- Chris Hofstaedtler Fri, 07 Aug 2026 18:09:22 +0200 + -- Chris Hofstaedtler Tue, 03 Nov 2026 18:14:09 +0100 -dnsdist (1.9.15-0+deb13u1) trixie-security; urgency=medium +dnsdist (2.1.3-1) unstable; urgency=medium - * New upstream version 1.9.15, fixing security issues - CVE-2026-40011, CVE-2026-42004, CVE-2026-42005, CVE-2026-40208, - CVE-2026-40209, CVE-2026-40210, CVE-2026-40211 + [ Chris Hofstaedtler ] + * New upstream version 2.1.3 + * Build with lld 22, matching rustc LLVM 22 usage (Closes: #1149737) + * Update librust-cxx-dev build-dep to match upstream constraints + (Closes: #1141584) - -- Chris Hofstaedtler Wed, 17 Jun 2026 00:17:43 +0200 + [ Hector Cao ] + * Filter out -fno-stack-clash-protection on armhf (Closes: #1140146) -dnsdist (1.9.14-0+deb13u1) trixie-security; urgency=medium + -- Chris Hofstaedtler Mon, 12 Oct 2026 17:01:24 +0200 - * New upstream version 1.9.14, fixing (from 1.9.13) CVE-2026-33257, - CVE-2026-33260, CVE-2026-33596, CVE-2026-33597, CVE-2026-33598, - CVE-2026-33599, CVE-2026-33602, CVE-2026-33595, CVE-2026-33254, - CVE-2026-33594, CVE-2026-33593, (from 1.9.12) CVE-2026-0396, - CVE-2026-0397, CVE-2026-24028, CVE-2026-24029, CVE-2026-24030, - CVE-2026-27853, CVE-2026-27854. - * Drop upstream-applied patches. +dnsdist (2.1.2-1) unstable; urgency=medium - -- Chris Hofstaedtler Sun, 26 Apr 2026 20:59:04 +0200 + * New upstream version 2.1.2 -dnsdist (1.9.10-1+deb13u1) trixie; urgency=medium + -- Chris Hofstaedtler Tue, 08 Sep 2026 11:03:12 +0200 - * d/{gbp.conf,.gitlab-ci.yml}: setup for trixie - * Apply upstream fix for CVE-2025-8671, CVE-2025-30187 - (Closes: #1115643) +dnsdist (2.1.1-1) unstable; urgency=medium - -- Chris Hofstaedtler Fri, 12 Sep 2025 10:39:35 +0200 + * New upstream version 2.1.1, fixing CVE-2026-52682 + + -- Chris Hofstaedtler Thu, 06 Aug 2026 17:44:48 +0200 + +dnsdist (2.1.0-2) unstable; urgency=medium + + * lintian: ignore embedded-library libyaml false-positive + * Bump Standards-Version + * Use debhelper-compat v14 + + -- Chris Hofstaedtler Sun, 05 Jul 2026 14:32:25 +0200 + +dnsdist (2.1.0-1) unstable; urgency=medium + + * New upstream version 2.1.0 + * Rebase patches + + -- Chris Hofstaedtler Thu, 02 Jul 2026 15:17:08 +0200 + +dnsdist (2.0.6-1) unstable; urgency=medium + + * New upstream version 2.0.6 + + -- Chris Hofstaedtler Fri, 26 Jun 2026 18:54:42 +0200 + +dnsdist (2.0.5-3) unstable; urgency=medium + + [ Luca Boccassi ] + * Install and use sysusers.d/tmpfiles.d config files + + [ Chris Hofstaedtler ] + * d/watch: reformat + * Build-Depend: architecture-is-64-bit to avoid broken 32bit builds + + -- Chris Hofstaedtler Sun, 21 Jun 2026 11:27:06 +0200 + +dnsdist (2.0.5-2) unstable; urgency=medium + + * Setup branches for multiple debian releases + * Remove obsolete override_dh_gencontrol + * Build-Depend on individual boost libraries. + In a discussion with upstream we discovered that libboost-all-dev pulls + in openmpi, gfortran, et al. This chain can sometimes pull in a + different gcc than the default, leading to interesting build failures + when combined with rust staticlibs. + We need libboost-container-dev to avoid a quirk in meson, see + https://github.com/mesonbuild/meson/issues/15858. + * Enable LTO. + Needs clang/lld so we can link Rust and C++ with LTO. Import this + approach from Upstream, but add RUSTFLAGS and adapt for our Debian + crate-using build. + * Always build with luajit, available on all release archs. + * d/watch: update to version 5 + + -- Chris Hofstaedtler Sat, 30 May 2026 01:01:02 +0200 + +dnsdist (2.0.5-1) unstable; urgency=medium + + * New upstream version 2.0.5, fixing a regression introduced + in 2.0.4. + + -- Chris Hofstaedtler Thu, 23 Apr 2026 12:37:08 +0200 + +dnsdist (2.0.4-1) unstable; urgency=medium + + * New upstream version 2.0.4, fixing security issues: + CVE-2026-33254, CVE-2026-33257, CVE-2026-33260, CVE-2026-33593, + CVE-2026-33594, CVE-2026-33595, CVE-2026-33596, CVE-2026-33597, + CVE-2026-33598, CVE-2026-33599, CVE-2026-33602 + + -- Chris Hofstaedtler Wed, 22 Apr 2026 14:54:10 +0200 + +dnsdist (2.0.3-1) unstable; urgency=medium + + * Drop upstream signing keys due to SHA1 usage + * New upstream version 2.0.3, fixing security issues: + CVE-2026-0396, CVE-2026-0397, CVE-2026-24028, CVE-2026-24029, + CVE-2026-24030, CVE-2026-27853, CVE-2026-27854 + + -- Chris Hofstaedtler Tue, 31 Mar 2026 14:39:16 +0200 + +dnsdist (2.0.2-1) unstable; urgency=medium + + * Add Recommends: ca-certificates so DoT can perform cert validation + * Add X-Style: black + * Build with GnuTLS again + * New upstream version 2.0.2 + * Fix build with protobuf enabled + + -- Chris Hofstaedtler Tue, 02 Dec 2025 16:12:17 +0100 + +dnsdist (2.0.1-1) unstable; urgency=medium + + * New upstream version 2.0.1, includes fix for CVE-2025-30187 + Closes: #1115643 + * Drop upstream-applied patch + + -- Chris Hofstaedtler Mon, 22 Sep 2025 17:35:43 +0200 + +dnsdist (2.0.0-6) unstable; urgency=medium + + * d/copyright: Remove old FSF address + + -- Chris Hofstaedtler Sun, 07 Sep 2025 13:17:29 +0200 + +dnsdist (2.0.0-5) unstable; urgency=medium + + [ Fabian Grünbichler ] + * d/rules: drop CARGO_REGISTRY, improves Static-Built-Using + + -- Chris Hofstaedtler Sat, 06 Sep 2025 17:10:24 +0200 + +dnsdist (2.0.0-4) unstable; urgency=medium + + * d/rules: fix DEB_VERSION/DEB_VENDOR being empty + + -- Chris Hofstaedtler Tue, 02 Sep 2025 23:14:19 +0200 + +dnsdist (2.0.0-3) unstable; urgency=medium + + * Upload to unstable + + -- Chris Hofstaedtler Tue, 12 Aug 2025 10:52:18 +0200 + +dnsdist (2.0.0-2) experimental; urgency=medium + + * Fix Build-Depends on systemd-dev + * Use meson to build, instead of autotools + + -- Chris Hofstaedtler Thu, 31 Jul 2025 00:52:27 +0200 + +dnsdist (2.0.0-1) experimental; urgency=medium + + * New upstream version 2.0.0 + + -- Chris Hofstaedtler Mon, 21 Jul 2025 20:28:28 +0200 + +dnsdist (2.0.0~rc2-1) experimental; urgency=medium + + * New upstream version 2.0.0~rc2 + * d/watch: update tarball suffix + * d/rules: disable dh_dwz as it breaks + * Drop upstream applied patch + * d/control: add Built-Using, Static-Built-Using + + -- Chris Hofstaedtler Sun, 20 Jul 2025 12:17:04 +0200 + +dnsdist (2.0.0~rc1-2) experimental; urgency=medium + + * Drop accidental B-D: architecture-is-64-bit + + -- Chris Hofstaedtler Sat, 12 Jul 2025 21:00:44 +0200 + +dnsdist (2.0.0~rc1-1) experimental; urgency=medium + + * New upstream version 2.0.0~rc1 + * Simplify Build-Depends already satisfied in stable + * Use lua5.3 on non-luajit archs, mirroring upstream + * Build-Depend: python3-yaml, necessary now + * Build with rust, enable yaml config + * Remove libh2o leftovers + + -- Chris Hofstaedtler Sat, 12 Jul 2025 15:50:09 +0200 dnsdist (1.9.10-1) unstable; urgency=medium diff -Nru dnsdist-1.9.16/debian/control dnsdist-2.1.3/debian/control --- dnsdist-1.9.16/debian/control 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/control 2026-11-03 17:14:09.000000000 +0000 @@ -1,49 +1,69 @@ Source: dnsdist Section: net Priority: optional -Standards-Version: 4.5.1 +Standards-Version: 4.7.4 Maintainer: dnsdist packagers Uploaders: - Chris Hofstaedtler + Chris Hofstaedtler , Build-Depends: - cmake, debhelper-compat (= 13), + dh-cargo, + dh-sequence-installsysusers, dpkg-dev (>= 1.22.5), - libboost-all-dev, + architecture-is-64-bit, + cargo, + libboost-container-dev, + libboost-dev, + libboost-test-dev, libbpf-dev, libcap-dev [linux-any], libcdb-dev, libedit-dev, libfstrm-dev, + libgnutls28-dev, liblmdb-dev, - libluajit-5.1-dev (>= 2.1.0~beta3+dfsg-5.3) [amd64 arm64] | libluajit-5.1-dev [amd64] | liblua5.1-0-dev, + libluajit-5.1-dev [amd64 arm64] | liblua5.3-dev, libnghttp2-dev, libprotobuf-dev, libre2-dev, + librust-cxx-build-dev (>= 1.0.130-1~), + librust-cxx-dev (>= 1.0.130-1~), + librust-cxx-dev (<= 1.0.175~) | librust-cxx-dev (>= 1.0.181-1~), + librust-serde-derive-dev, + librust-serde-dev, + librust-serde-yaml-dev (>= 0.9.34~), libsnmp-dev, libsodium-dev, libssl-dev, libsystemd-dev, libxdp-dev, + meson, pkgconf, protobuf-compiler, + python3-yaml, ragel, systemd, - systemd-dev | systemd, - zlib1g-dev + systemd-dev | systemd (<< 257), + zlib1g-dev, Vcs-Git: https://salsa.debian.org/debian/dnsdist.git Vcs-Browser: https://salsa.debian.org/debian/dnsdist Homepage: https://dnsdist.org Rules-Requires-Root: no +X-Style: black Package: dnsdist Architecture: any Pre-Depends: - ${misc:Pre-Depends} + ${misc:Pre-Depends}, Depends: - adduser, ${misc:Depends}, - ${shlibs:Depends} + ${shlibs:Depends}, +Recommends: + ca-certificates, +Built-Using: + ${cargo:Built-Using}, +Static-Built-Using: + ${cargo:Static-Built-Using}, Description: DNS loadbalancer Highly DoS- and abuse-aware load balancing tool for DNS traffic, with Lua scripting and configuration capability. diff -Nru dnsdist-1.9.16/debian/copyright dnsdist-2.1.3/debian/copyright --- dnsdist-1.9.16/debian/copyright 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/copyright 2026-08-15 19:07:29.000000000 +0000 @@ -96,10 +96,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. @@ -188,10 +184,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. @@ -207,10 +199,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. diff -Nru dnsdist-1.9.16/debian/dnsdist.examples dnsdist-2.1.3/debian/dnsdist.examples --- dnsdist-1.9.16/debian/dnsdist.examples 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/dnsdist.examples 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -dnsdist.conf diff -Nru dnsdist-1.9.16/debian/dnsdist.lintian-overrides dnsdist-2.1.3/debian/dnsdist.lintian-overrides --- dnsdist-1.9.16/debian/dnsdist.lintian-overrides 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/dnsdist.lintian-overrides 2026-08-15 19:07:29.000000000 +0000 @@ -1,2 +1,5 @@ # Often this file will contain passwords. dnsdist: non-standard-file-perm 0640 != 0644 [etc/dnsdist/dnsdist.conf] + +# serde_yaml uses a rust port of libyaml, not the C libyaml +dnsdist: embedded-library libyaml [usr/bin/dnsdist] diff -Nru dnsdist-1.9.16/debian/dnsdist.postinst dnsdist-2.1.3/debian/dnsdist.postinst --- dnsdist-1.9.16/debian/dnsdist.postinst 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/dnsdist.postinst 1970-01-01 00:00:00.000000000 +0000 @@ -1,40 +0,0 @@ -#! /bin/sh - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - -case "$1" in - configure) - - adduser --force-badname --system --home /nonexistent --group \ - --no-create-home --quiet _dnsdist || true - - chown root:_dnsdist /etc/dnsdist/dnsdist.conf - chmod g+r /etc/dnsdist/dnsdist.conf - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff -Nru dnsdist-1.9.16/debian/dnsdist.sysusers dnsdist-2.1.3/debian/dnsdist.sysusers --- dnsdist-1.9.16/debian/dnsdist.sysusers 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/debian/dnsdist.sysusers 2026-08-15 19:07:29.000000000 +0000 @@ -0,0 +1 @@ +u! _dnsdist - - /nonexistent /usr/sbin/nologin diff -Nru dnsdist-1.9.16/debian/dnsdist.tmpfiles dnsdist-2.1.3/debian/dnsdist.tmpfiles --- dnsdist-1.9.16/debian/dnsdist.tmpfiles 1970-01-01 00:00:00.000000000 +0000 +++ dnsdist-2.1.3/debian/dnsdist.tmpfiles 2026-08-15 19:07:29.000000000 +0000 @@ -0,0 +1 @@ +z /etc/dnsdist/dnsdist.conf 0640 root _dnsdist diff -Nru dnsdist-1.9.16/debian/gbp.conf dnsdist-2.1.3/debian/gbp.conf --- dnsdist-1.9.16/debian/gbp.conf 2026-08-07 16:09:01.000000000 +0000 +++ dnsdist-2.1.3/debian/gbp.conf 2026-08-15 19:07:29.000000000 +0000 @@ -2,5 +2,5 @@ pristine-tar = True multimaint-merge = True patch-numbers = False -debian-branch = debian/trixie -upstream-branch = upstream/trixie +debian-branch = debian/latest +upstream-branch = upstream/latest diff -Nru dnsdist-1.9.16/debian/missing-sources/jquery.js dnsdist-2.1.3/debian/missing-sources/jquery.js --- dnsdist-1.9.16/debian/missing-sources/jquery.js 2026-08-05 14:29:01.000000000 +0000 +++ dnsdist-2.1.3/debian/missing-sources/jquery.js 2026-10-08 15:17:50.000000000 +0000 @@ -1,27 +1,26 @@ /*! - * jQuery JavaScript Library v1.12.0 - * http://jquery.com/ + * jQuery JavaScript Library v3.7.1 + * https://jquery.com/ * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license - * http://jquery.org/license + * https://jquery.org/license * - * Date: 2016-01-08T19:56Z + * Date: 2023-08-28T13:37Z */ +( function( global, factory ) { -(function( global, factory ) { + "use strict"; if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper `window` // is present, execute the factory and get jQuery. // For environments that do not have a `window` with a `document` // (such as Node.js), expose a factory as module.exports. // This accentuates the need for the creation of a real `window`. // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. + // See ticket trac-14549 for more info. module.exports = global.document ? factory( global, true ) : function( w ) { @@ -35,24 +34,30 @@ } // Pass this if window is not defined yet -}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { +} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { -// Support: Firefox 18+ -// Can't be in strict mode, several libs including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -//"use strict"; -var deletedIds = []; +// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 +// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode +// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common +// enough that all such attempts are guarded in a try block. +"use strict"; -var document = window.document; +var arr = []; -var slice = deletedIds.slice; +var getProto = Object.getPrototypeOf; + +var slice = arr.slice; + +var flat = arr.flat ? function( array ) { + return arr.flat.call( array ); +} : function( array ) { + return arr.concat.apply( [], array ); +}; -var concat = deletedIds.concat; -var push = deletedIds.push; +var push = arr.push; -var indexOf = deletedIds.indexOf; +var indexOf = arr.indexOf; var class2type = {}; @@ -60,12 +65,91 @@ var hasOwn = class2type.hasOwnProperty; +var fnToString = hasOwn.toString; + +var ObjectFunctionString = fnToString.call( Object ); + var support = {}; +var isFunction = function isFunction( obj ) { + + // Support: Chrome <=57, Firefox <=52 + // In some browsers, typeof returns "function" for HTML elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 + // Plus for old WebKit, typeof returns "function" for HTML collections + // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) + return typeof obj === "function" && typeof obj.nodeType !== "number" && + typeof obj.item !== "function"; + }; -var - version = "1.12.0", +var isWindow = function isWindow( obj ) { + return obj != null && obj === obj.window; + }; + + +var document = window.document; + + + + var preservedScriptAttributes = { + type: true, + src: true, + nonce: true, + noModule: true + }; + + function DOMEval( code, node, doc ) { + doc = doc || document; + + var i, val, + script = doc.createElement( "script" ); + + script.text = code; + if ( node ) { + for ( i in preservedScriptAttributes ) { + + // Support: Firefox 64+, Edge 18+ + // Some browsers don't support the "nonce" property on scripts. + // On the other hand, just using `getAttribute` is not enough as + // the `nonce` attribute is reset to an empty string whenever it + // becomes browsing-context connected. + // See https://github.com/whatwg/html/issues/2369 + // See https://html.spec.whatwg.org/#nonce-attributes + // The `node.getAttribute` check was added for the sake of + // `jQuery.globalEval` so that it can fake a nonce-containing node + // via an object. + val = node[ i ] || node.getAttribute && node.getAttribute( i ); + if ( val ) { + script.setAttribute( i, val ); + } + } + } + doc.head.appendChild( script ).parentNode.removeChild( script ); + } + + +function toType( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; +} +/* global Symbol */ +// Defining this global in .eslintrc.json would create a danger of using the global +// unguarded in another place, it seems safer to define global only for this module + + + +var version = "3.7.1", + + rhtmlSuffix = /HTML$/i, // Define a local copy of jQuery jQuery = function( selector, context ) { @@ -73,19 +157,6 @@ // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); - }, - - // Support: Android<4.1, IE<9 - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); }; jQuery.fn = jQuery.prototype = { @@ -95,9 +166,6 @@ constructor: jQuery, - // Start with an empty selector - selector: "", - // The default length of a jQuery object is 0 length: 0, @@ -108,13 +176,14 @@ // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { - return num != null ? - // Return just the one element from the set - ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + // Return all the elements in a clean array + if ( num == null ) { + return slice.call( this ); + } - // Return all the elements in a clean array - slice.call( this ); + // Return just the one element from the set + return num < 0 ? this[ num + this.length ] : this[ num ]; }, // Take an array of elements and push it onto the stack @@ -126,7 +195,6 @@ // Add the old object onto the stack (as a reference) ret.prevObject = this; - ret.context = this.context; // Return the newly-formed element set return ret; @@ -155,6 +223,18 @@ return this.eq( -1 ); }, + even: function() { + return this.pushStack( jQuery.grep( this, function( _elem, i ) { + return ( i + 1 ) % 2; + } ) ); + }, + + odd: function() { + return this.pushStack( jQuery.grep( this, function( _elem, i ) { + return i % 2; + } ) ); + }, + eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); @@ -168,12 +248,12 @@ // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, - sort: deletedIds.sort, - splice: deletedIds.splice + sort: arr.sort, + splice: arr.splice }; jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, + var options, name, src, copy, copyIsArray, clone, target = arguments[ 0 ] || {}, i = 1, length = arguments.length, @@ -183,17 +263,17 @@ if ( typeof target === "boolean" ) { deep = target; - // skip the boolean and the target + // Skip the boolean and the target target = arguments[ i ] || {}; i++; } // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { + if ( typeof target !== "object" && !isFunction( target ) ) { target = {}; } - // extend jQuery itself if only one argument is passed + // Extend jQuery itself if only one argument is passed if ( i === length ) { target = this; i--; @@ -206,25 +286,28 @@ // Extend the base object for ( name in options ) { - src = target[ name ]; copy = options[ name ]; + // Prevent Object.prototype pollution // Prevent never-ending loop - if ( target === copy ) { + if ( name === "__proto__" || target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = jQuery.isArray( copy ) ) ) ) { - - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray( src ) ? src : []; + ( copyIsArray = Array.isArray( copy ) ) ) ) { + src = target[ name ]; + // Ensure proper type for the source value + if ( copyIsArray && !Array.isArray( src ) ) { + clone = []; + } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { + clone = {}; } else { - clone = src && jQuery.isPlainObject( src ) ? src : {}; + clone = src; } + copyIsArray = false; // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); @@ -255,110 +338,40 @@ noop: function() {}, - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type( obj ) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type( obj ) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - - // parseFloat NaNs numeric-cast false positives (null|true|false|"") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - // adding 1 corrects loss of precision from parseFloat (#15100) - var realStringObj = obj && obj.toString(); - return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0; - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - isPlainObject: function( obj ) { - var key; + var proto, Ctor; - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { return false; } - try { + proto = getProto( obj ); - // Not own constructor property must be Object - if ( obj.constructor && - !hasOwn.call( obj, "constructor" ) && - !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { - return false; - } - } catch ( e ) { - - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( !support.ownFirst ) { - for ( key in obj ) { - return hasOwn.call( obj, key ); - } + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; } - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || hasOwn.call( obj, key ); - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; }, - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { + isEmptyObject: function( obj ) { + var name; - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); // jscs:ignore requireDotNotation - } )( data ); + for ( name in obj ) { + return false; } + return true; }, - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + // Evaluates a script in a provided context; falls back to the global one + // if not specified. + globalEval: function( code, options, doc ) { + DOMEval( code, { nonce: options && options.nonce }, doc ); }, each: function( obj, callback ) { @@ -382,11 +395,36 @@ return obj; }, - // Support: Android<4.1, IE<9 - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); + + // Retrieve the text value of an array of DOM nodes + text: function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + + // If no nodeType, this is expected to be an array + while ( ( node = elem[ i++ ] ) ) { + + // Do not traverse comment nodes + ret += jQuery.text( node ); + } + } + if ( nodeType === 1 || nodeType === 11 ) { + return elem.textContent; + } + if ( nodeType === 9 ) { + return elem.documentElement.textContent; + } + if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + + // Do not include comment or processing instruction nodes + + return ret; }, // results is for internal usage only @@ -397,7 +435,7 @@ if ( isArrayLike( Object( arr ) ) ) { jQuery.merge( ret, typeof arr === "string" ? - [ arr ] : arr + [ arr ] : arr ); } else { push.call( ret, arr ); @@ -408,43 +446,27 @@ }, inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( indexOf ) { - return indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, - for ( ; i < len; i++ ) { + isXMLDoc: function( elem ) { + var namespace = elem && elem.namespaceURI, + docElem = elem && ( elem.ownerDocument || elem ).documentElement; - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; + // Assume HTML when documentElement doesn't yet exist, such as inside + // document fragments. + return !rhtmlSuffix.test( namespace || docElem && docElem.nodeName || "HTML" ); }, + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit merge: function( first, second ) { var len = +second.length, j = 0, i = first.length; - while ( j < len ) { - first[ i++ ] = second[ j++ ]; - } - - // Support: IE<9 - // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) - if ( len !== len ) { - while ( second[ j ] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; } first.length = i; @@ -500,125 +522,141 @@ } // Flatten any nested arrays - return concat.apply( [], ret ); + return flat( ret ); }, // A global GUID counter for objects guid: 1, - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: function() { - return +( new Date() ); - }, - // jQuery.support is not used in Core but other projects attach their // properties to it so it needs to exist. support: support } ); -// JSHint would error on this code due to the Symbol not being defined in ES5. -// Defining this global in .jshintrc would create a danger of using the global -// unguarded in another place, it seems safer to just disable JSHint for these -// three lines. -/* jshint ignore: start */ if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = deletedIds[ Symbol.iterator ]; + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; } -/* jshint ignore: end */ // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), -function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -} ); + function( _i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); + } ); function isArrayLike( obj ) { - // Support: iOS 8.2 (not reproducible in simulator) + // Support: real iOS 8.2 only (not reproducible in simulator) // `in` check used to prevent JIT error (gh-2145) // hasOwn isn't used here due to false negatives // regarding Nodelist length in IE var length = !!obj && "length" in obj && obj.length, - type = jQuery.type( obj ); + type = toType( obj ); - if ( type === "function" || jQuery.isWindow( obj ) ) { + if ( isFunction( obj ) || isWindow( obj ) ) { return false; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj; } -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.2.1 - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2015-10-17 - */ -(function( window ) { + + +function nodeName( elem, name ) { + + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + +} +var pop = arr.pop; + + +var sort = arr.sort; + + +var splice = arr.splice; + + +var whitespace = "[\\x20\\t\\r\\n\\f]"; + + +var rtrimCSS = new RegExp( + "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", + "g" +); + + + + +// Note: an element does not contain itself +jQuery.contains = function( a, b ) { + var bup = b && b.parentNode; + + return a === bup || !!( bup && bup.nodeType === 1 && ( + + // Support: IE 9 - 11+ + // IE doesn't have `contains` on SVG. + a.contains ? + a.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + ) ); +}; + + + + +// CSS string/identifier serialization +// https://drafts.csswg.org/cssom/#common-serializing-idioms +var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; + +function fcssescape( ch, asCodePoint ) { + if ( asCodePoint ) { + + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER + if ( ch === "\0" ) { + return "\uFFFD"; + } + + // Control characters and (dependent upon position) numbers get escaped as code points + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + } + + // Other potentially-special ASCII characters get backslash-escaped + return "\\" + ch; +} + +jQuery.escapeSelector = function( sel ) { + return ( sel + "" ).replace( rcssescape, fcssescape ); +}; + + + + +var preferredDoc = document, + pushNative = push; + +( function() { var i, - support, Expr, - getText, - isXML, - tokenize, - compile, - select, outermostContext, sortInput, hasDuplicate, + push = pushNative, // Local document vars - setDocument, document, - docElem, + documentElement, documentIsHTML, rbuggyQSA, - rbuggyMatches, matches, - contains, // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, + expando = jQuery.expando, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), + nonnativeSelectorCache = createCache(), sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; @@ -626,151 +664,146 @@ return 0; }, - // General-purpose constants - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // http://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|" + + "loop|multiple|open|readonly|required|scoped", // Regular expressions - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram + identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + // Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + + whitespace + "*\\]", pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: // 1. quoted (capture 3; capture 4 or capture 5) "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) ".*" + ")\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + + whitespace + "*" ), + rdescend = new RegExp( whitespace + "|>" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + ID: new RegExp( "^#(" + identifier + ")" ), + CLASS: new RegExp( "^\\.(" + identifier + ")" ), + TAG: new RegExp( "^(" + identifier + "|[*])" ), + ATTR: new RegExp( "^" + attributes ), + PSEUDO: new RegExp( "^" + pseudos ), + CHILD: new RegExp( + "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + bool: new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + needsContext: new RegExp( "^" + whitespace + + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, - rnative = /^[^{]+\{\s*\[native \w/, - // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, - rescape = /'|\\/g, - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + // CSS escapes + // https://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + + "?|\\\\([^\\r\\n\\f])", "g" ), + funescape = function( escape, nonHex ) { + var high = "0x" + escape.slice( 1 ) - 0x10000; + + if ( nonHex ) { + + // Strip the backslash prefix from a non-hex escape sequence + return nonHex; + } + + // Replace a hexadecimal escape sequence with the encoded Unicode code point + // Support: IE <=11+ + // For values outside the Basic Multilingual Plane (BMP), manually construct a + // surrogate pair + return high < 0 ? + String.fromCharCode( high + 0x10000 ) : + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }, - // Used for iframes - // See setDocument() + // Used for iframes; see `setDocument`. + // Support: IE 9 - 11+, Edge 12 - 18+ // Removing the function wrapper causes a "Permission Denied" - // error in IE + // error in IE/Edge. unloadHandler = function() { setDocument(); - }; + }, + + inDisabledFieldset = addCombinator( + function( elem ) { + return elem.disabled === true && nodeName( elem, "fieldset" ); + }, + { dir: "parentNode", next: "legend" } + ); + +// Support: IE <=9 only +// Accessing document.activeElement can throw unexpectedly +// https://bugs.jquery.com/ticket/13393 +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} // Optimize for push.apply( _, NodeList ) try { push.apply( - (arr = slice.call( preferredDoc.childNodes )), + ( arr = slice.call( preferredDoc.childNodes ) ), preferredDoc.childNodes ); - // Support: Android<4.0 + + // Support: Android <=4.0 // Detect silently failing push.apply + // eslint-disable-next-line no-unused-expressions arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; + push = { + apply: function( target, els ) { + pushNative.apply( target, slice.call( els ) ); + }, + call: function( target ) { + pushNative.apply( target, slice.call( arguments, 1 ) ); } }; } -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, nidselect, match, groups, newSelector, +function find( selector, context, results, seed ) { + var m, i, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, // nodeType defaults to 9, since context defaults to document @@ -787,30 +820,26 @@ // Try to shortcut find operations (as opposed to filters) in HTML documents if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } + setDocument( context ); context = context || document; if ( documentIsHTML ) { // If the selector is sufficiently simple, try using a "get*By*" DOM method // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { // ID selector - if ( (m = match[1]) ) { + if ( ( m = match[ 1 ] ) ) { // Document context if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { + if ( ( elem = context.getElementById( m ) ) ) { - // Support: IE, Opera, Webkit - // TODO: identify versions + // Support: IE 9 only // getElementById can match elements by name instead of ID if ( elem.id === m ) { - results.push( elem ); + push.call( results, elem ); return results; } } else { @@ -820,79 +849,86 @@ // Element context } else { - // Support: IE, Opera, Webkit - // TODO: identify versions + // Support: IE 9 only // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && + if ( newContext && ( elem = newContext.getElementById( m ) ) && + find.contains( context, elem ) && elem.id === m ) { - results.push( elem ); + push.call( results, elem ); return results; } } // Type selector - } else if ( match[2] ) { + } else if ( match[ 2 ] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - + } else if ( ( m = match[ 3 ] ) && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // Take advantage of querySelectorAll - if ( support.qsa && - !compilerCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - - if ( nodeType !== 1 ) { - newContext = context; - newSelector = selector; - - // qSA looks outside Element context, which is not what we want - // Thanks to Andrew Dupont for this workaround technique - // Support: IE <=8 - // Exclude object elements - } else if ( context.nodeName.toLowerCase() !== "object" ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", (nid = expando) ); + if ( !nonnativeSelectorCache[ selector + " " ] && + ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) { + + newSelector = selector; + newContext = context; + + // qSA considers elements outside a scoping root when evaluating child or + // descendant combinators, which is not what we want. + // In such cases, we work around the behavior by prefixing every selector in the + // list with an ID selector referencing the scope context. + // The technique has to be used as well when a leading combinator is used + // as such selectors are not recognized by querySelectorAll. + // Thanks to Andrew Dupont for this technique. + if ( nodeType === 1 && + ( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) { + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + + // We can use :scope instead of the ID hack if the browser + // supports it & if we're not changing the context. + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when + // strict-comparing two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( newContext != context || !support.scope ) { + + // Capture the context ID, setting it first if necessary + if ( ( nid = context.getAttribute( "id" ) ) ) { + nid = jQuery.escapeSelector( nid ); + } else { + context.setAttribute( "id", ( nid = expando ) ); + } } // Prefix every selector in the list groups = tokenize( selector ); i = groups.length; - nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']"; while ( i-- ) { - groups[i] = nidselect + " " + toSelector( groups[i] ); + groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + + toSelector( groups[ i ] ); } newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; } - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + nonnativeSelectorCache( selector, true ); + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); } } } @@ -900,7 +936,7 @@ } // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); + return select( selector.replace( rtrimCSS, "$1" ), context, results, seed ); } /** @@ -913,18 +949,21 @@ var keys = []; function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + + // Use (key + " ") to avoid collision with native prototype properties + // (see https://github.com/jquery/sizzle/issues/157) if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries delete cache[ keys.shift() ]; } - return (cache[ key + " " ] = value); + return ( cache[ key + " " ] = value ); } return cache; } /** - * Mark a function for special use by Sizzle + * Mark a function for special use by jQuery selector module * @param {Function} fn The function to mark */ function markFunction( fn ) { @@ -934,66 +973,25 @@ /** * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result + * @param {Function} fn Passed the created element and returns a boolean result */ function assert( fn ) { - var div = document.createElement("div"); + var el = document.createElement( "fieldset" ); try { - return !!fn( div ); - } catch (e) { + return !!fn( el ); + } catch ( e ) { return false; } finally { + // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); + if ( el.parentNode ) { + el.parentNode.removeChild( el ); } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } + // release memory in IE + el = null; } - - return a ? 1 : -1; } /** @@ -1002,8 +1000,7 @@ */ function createInputPseudo( type ) { return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; + return nodeName( elem, "input" ) && elem.type === type; }; } @@ -1013,8 +1010,63 @@ */ function createButtonPseudo( type ) { return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; + return ( nodeName( elem, "input" ) || nodeName( elem, "button" ) ) && + elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for :enabled/:disabled + * @param {Boolean} disabled true for :disabled; false for :enabled + */ +function createDisabledPseudo( disabled ) { + + // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable + return function( elem ) { + + // Only certain elements can match :enabled or :disabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled + if ( "form" in elem ) { + + // Check for inherited disabledness on relevant non-disabled elements: + // * listed form-associated elements in a disabled fieldset + // https://html.spec.whatwg.org/multipage/forms.html#category-listed + // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled + // * option elements in a disabled optgroup + // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled + // All such elements have a "form" property. + if ( elem.parentNode && elem.disabled === false ) { + + // Option elements defer to a parent optgroup if present + if ( "label" in elem ) { + if ( "label" in elem.parentNode ) { + return elem.parentNode.disabled === disabled; + } else { + return elem.disabled === disabled; + } + } + + // Support: IE 6 - 11+ + // Use the isDisabled shortcut property to check for disabled fieldset ancestors + return elem.isDisabled === disabled || + + // Where there is no isDisabled, check manually + elem.isDisabled !== !disabled && + inDisabledFieldset( elem ) === disabled; + } + + return elem.disabled === disabled; + + // Try to winnow out elements that can't be disabled before trusting the disabled property. + // Some victims get caught in our net (label, legend, menu, track), but it shouldn't + // even exist on them, let alone have a boolean value. + } else if ( "label" in elem ) { + return elem.disabled === disabled; + } + + // Remaining elements are neither :enabled nor :disabled + return false; }; } @@ -1023,25 +1075,25 @@ * @param {Function} fn */ function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { + return markFunction( function( argument ) { argument = +argument; - return markFunction(function( seed, matches ) { + return markFunction( function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); + if ( seed[ ( j = matchIndexes[ i ] ) ] ) { + seed[ j ] = !( matches[ j ] = seed[ j ] ); } } - }); - }); + } ); + } ); } /** - * Checks a node for validity as a Sizzle context + * Checks a node for validity as a jQuery selector context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ @@ -1049,148 +1101,162 @@ return context && typeof context.getElementsByTagName !== "undefined" && context; } -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - /** * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document + * @param {Element|Object} [node] An element or document object to use to set the document * @returns {Object} Returns the current document */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, parent, +function setDocument( node ) { + var subWindow, doc = node ? node.ownerDocument || node : preferredDoc; // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Update global variables document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); + documentElement = document.documentElement; + documentIsHTML = !jQuery.isXMLDoc( document ); - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( (parent = document.defaultView) && parent.top !== parent ) { - // Support: IE 11 - if ( parent.addEventListener ) { - parent.addEventListener( "unload", unloadHandler, false ); + // Support: iOS 7 only, IE 9 - 11+ + // Older browsers didn't support unprefixed `matches`. + matches = documentElement.matches || + documentElement.webkitMatchesSelector || + documentElement.msMatchesSelector; + + // Support: IE 9 - 11+, Edge 12 - 18+ + // Accessing iframe documents after unload throws "permission denied" errors + // (see trac-13936). + // Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`, + // all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well. + if ( documentElement.msMatchesSelector && + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + preferredDoc != document && + ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { - // Support: IE 9 - 10 only - } else if ( parent.attachEvent ) { - parent.attachEvent( "onunload", unloadHandler ); - } + // Support: IE 9 - 11+, Edge 12 - 18+ + subWindow.addEventListener( "unload", unloadHandler ); } - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ + // Support: IE <10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programmatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert( function( el ) { + documentElement.appendChild( el ).id = jQuery.expando; + return !document.getElementsByName || + !document.getElementsByName( jQuery.expando ).length; + } ); - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( document.createComment("") ); - return !div.getElementsByTagName("*").length; - }); + // Support: IE 9 only + // Check to see if it's possible to do matchesSelector + // on a disconnected node. + support.disconnectedMatch = assert( function( el ) { + return matches.call( el, "*" ); + } ); - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + // Support: IE 9 - 11+, Edge 12 - 18+ + // IE/Edge don't support the :scope pseudo-class. + support.scope = assert( function() { + return document.querySelectorAll( ":scope" ); + } ); - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); + // Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only + // Make sure the `:has()` argument is parsed unforgivingly. + // We include `*` in the test to detect buggy implementations that are + // _selectively_ forgiving (specifically when the list includes at least + // one valid selector). + // Note that we treat complete lack of support for `:has()` as if it were + // spec-compliant support, which is fine because use of `:has()` in such + // environments will fail in the qSA path and fall back to jQuery traversal + // anyway. + support.cssHas = assert( function() { + try { + document.querySelector( ":has(*,:jqfake)" ); + return false; + } catch ( e ) { + return true; + } + } ); - // ID find and filter + // ID filter and find if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var m = context.getElementById( id ); - return m ? [ m ] : []; - } - }; - Expr.filter["ID"] = function( id ) { + Expr.filter.ID = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { - return elem.getAttribute("id") === attrId; + return elem.getAttribute( "id" ) === attrId; }; }; + Expr.find.ID = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var elem = context.getElementById( id ); + return elem ? [ elem ] : []; + } + }; } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { + Expr.filter.ID = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); + elem.getAttributeNode( "id" ); return node && node.value === attrId; }; }; - } - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : + // Support: IE 6 - 7 only + // getElementById is not reliable as a find shortcut + Expr.find.ID = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var node, i, elems, + elem = context.getElementById( id ); - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); + if ( elem ) { - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); + // Verify the id attribute + node = elem.getAttributeNode( "id" ); + if ( node && node.value === id ) { + return [ elem ]; + } + + // Fall back on getElementsByName + elems = context.getElementsByName( id ); + i = 0; + while ( ( elem = elems[ i++ ] ) ) { + node = elem.getAttributeNode( "id" ); + if ( node && node.value === id ) { + return [ elem ]; + } } } - return tmp; + return []; } - return results; }; + } + + // Tag + Expr.find.TAG = function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else { + return context.querySelectorAll( tag ); + } + }; // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + Expr.find.CLASS = function( className, context ) { if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { return context.getElementsByClassName( className ); } @@ -1201,143 +1267,94 @@ // QSA and matchesSelector support - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 rbuggyQSA = []; - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - docElem.appendChild( div ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( div.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibing-combinator selector` fails - if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( div ) { - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( div.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert( function( el ) { - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + var input; - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); + documentElement.appendChild( el ).innerHTML = + "" + + ""; - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; + // Support: iOS <=7 - 8 only + // Boolean attributes and "value" are not treated correctly in some XML documents + if ( !el.querySelectorAll( "[selected]" ).length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: iOS <=7 - 8 only + if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push( "~=" ); + } + + // Support: iOS 8 only + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibling-combinator selector` fails + if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push( ".#.+[+~]" ); + } + + // Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+ + // In some of the document kinds, these selectors wouldn't work natively. + // This is probably OK but for backwards compatibility we want to maintain + // handling them through jQuery traversal in jQuery 3.x. + if ( !el.querySelectorAll( ":checked" ).length ) { + rbuggyQSA.push( ":checked" ); + } + + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + input = document.createElement( "input" ); + input.setAttribute( "type", "hidden" ); + el.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE 9 - 11+ + // IE's :disabled selector does not pick up the children of disabled fieldsets + // Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+ + // In some of the document kinds, these selectors wouldn't work natively. + // This is probably OK but for backwards compatibility we want to maintain + // handling them through jQuery traversal in jQuery 3.x. + documentElement.appendChild( el ).disabled = true; + if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: IE 11+, Edge 15 - 18+ + // IE 11/Edge don't find elements on a `[name='']` query in some cases. + // Adding a temporary attribute to the document before the selection works + // around the issue. + // Interestingly, IE 10 & older don't seem to have the issue. + input = document.createElement( "input" ); + input.setAttribute( "name", "" ); + el.appendChild( input ); + if ( !el.querySelectorAll( "[name='']" ).length ) { + rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + + whitespace + "*(?:''|\"\")" ); + } + } ); + + if ( !support.cssHas ) { + + // Support: Chrome 105 - 110+, Safari 15.4 - 16.3+ + // Our regular `try-catch` mechanism fails to detect natively-unsupported + // pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`) + // in browsers that parse the `:has()` argument as a forgiving selector list. + // https://drafts.csswg.org/selectors/#relational now requires the argument + // to be parsed unforgivingly, but browsers have not yet fully adjusted. + rbuggyQSA.push( ":has" ); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); /* Sorting ---------------------------------------------------------------------- */ // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { + sortOrder = function( a, b ) { // Flag for duplicate removal if ( a === b ) { @@ -1352,7 +1369,11 @@ } // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? a.compareDocumentPosition( b ) : // Otherwise we know they are disconnected @@ -1360,145 +1381,109 @@ // Disconnected nodes if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( a === document || a.ownerDocument == preferredDoc && + find.contains( preferredDoc, a ) ) { return -1; } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( b === document || b.ownerDocument == preferredDoc && + find.contains( preferredDoc, b ) ) { return 1; } // Maintain original order return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; }; return document; -}; +} -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); +find.matches = function( expr, elements ) { + return find( expr, null, null, elements ); }; -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } +find.matchesSelector = function( elem, expr ) { + setDocument( elem ); - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - !compilerCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + if ( documentIsHTML && + !nonnativeSelectorCache[ expr + " " ] && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } - } catch (e) {} + } catch ( e ) { + nonnativeSelectorCache( expr, true ); + } } - return Sizzle( expr, document, null, [ elem ] ).length > 0; + return find( expr, document, null, [ elem ] ).length > 0; }; -Sizzle.contains = function( context, elem ) { +find.contains = function( context, elem ) { + // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( ( context.ownerDocument || context ) != document ) { setDocument( context ); } - return contains( context, elem ); + return jQuery.contains( context, elem ); }; -Sizzle.attr = function( elem, name ) { + +find.attr = function( elem, name ) { + // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( ( elem.ownerDocument || elem ) != document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) + + // Don't get fooled by Object.prototype properties (see trac-13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; + if ( val !== undefined ) { + return val; + } + + return elem.getAttribute( name ); }; -Sizzle.error = function( msg ) { +find.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; @@ -1506,25 +1491,29 @@ * Document sorting and removing duplicates * @param {ArrayLike} results */ -Sizzle.uniqueSort = function( results ) { +jQuery.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); + // + // Support: Android <=4.0+ + // Testing for detecting duplicates is unpredictable so instead assume we can't + // depend on duplicate detection in all browsers without a stable sort. + hasDuplicate = !support.sortStable; + sortInput = !support.sortStable && slice.call( results, 0 ); + sort.call( results, sortOrder ); if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { + while ( ( elem = results[ i++ ] ) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { - results.splice( duplicates[ j ], 1 ); + splice.call( results, duplicates[ j ], 1 ); } } @@ -1535,42 +1524,11 @@ return results; }; -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; +jQuery.fn.uniqueSort = function() { + return this.pushStack( jQuery.uniqueSort( slice.apply( this ) ) ); }; -Expr = Sizzle.selectors = { +Expr = jQuery.expr = { // Can be adjusted by the user cacheLength: 50, @@ -1591,20 +1549,22 @@ }, preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); + ATTR: function( match ) { + match[ 1 ] = match[ 1 ].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + match[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || "" ) + .replace( runescape, funescape ); - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; + if ( match[ 2 ] === "~=" ) { + match[ 3 ] = " " + match[ 3 ] + " "; } return match.slice( 0, 4 ); }, - "CHILD": function( match ) { + CHILD: function( match ) { + /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) @@ -1615,49 +1575,55 @@ 7 sign of y-component 8 y of y-component */ - match[1] = match[1].toLowerCase(); + match[ 1 ] = match[ 1 ].toLowerCase(); + + if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { - if ( match[1].slice( 0, 3 ) === "nth" ) { // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); + if ( !match[ 3 ] ) { + find.error( match[ 0 ] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + match[ 4 ] = +( match[ 4 ] ? + match[ 5 ] + ( match[ 6 ] || 1 ) : + 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) + ); + match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); + } else if ( match[ 3 ] ) { + find.error( match[ 0 ] ); } return match; }, - "PSEUDO": function( match ) { + PSEUDO: function( match ) { var excess, - unquoted = !match[6] && match[2]; + unquoted = !match[ 6 ] && match[ 2 ]; - if ( matchExpr["CHILD"].test( match[0] ) ) { + if ( matchExpr.CHILD.test( match[ 0 ] ) ) { return null; } // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; + if ( match[ 3 ] ) { + match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && + ( excess = tokenize( unquoted, true ) ) && + // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); + match[ 0 ] = match[ 0 ].slice( 0, excess ); + match[ 2 ] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) @@ -1667,28 +1633,36 @@ filter: { - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + TAG: function( nodeNameSelector ) { + var expectedNodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? - function() { return true; } : + function() { + return true; + } : function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + return nodeName( elem, expectedNodeName ); }; }, - "CLASS": function( className ) { + CLASS: function( className ) { var pattern = classCache[ className + " " ]; return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + ( pattern = new RegExp( "(^|" + whitespace + ")" + className + + "(" + whitespace + "|$)" ) ) && classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); + return pattern.test( + typeof elem.className === "string" && elem.className || + typeof elem.getAttribute !== "undefined" && + elem.getAttribute( "class" ) || + "" + ); + } ); }, - "ATTR": function( name, operator, check ) { + ATTR: function( name, operator, check ) { return function( elem ) { - var result = Sizzle.attr( elem, name ); + var result = find.attr( elem, name ); if ( result == null ) { return operator === "!="; @@ -1699,18 +1673,34 @@ result += ""; - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; + if ( operator === "=" ) { + return result === check; + } + if ( operator === "!=" ) { + return result !== check; + } + if ( operator === "^=" ) { + return check && result.indexOf( check ) === 0; + } + if ( operator === "*=" ) { + return check && result.indexOf( check ) > -1; + } + if ( operator === "$=" ) { + return check && result.slice( -check.length ) === check; + } + if ( operator === "~=" ) { + return ( " " + result.replace( rwhitespace, " " ) + " " ) + .indexOf( check ) > -1; + } + if ( operator === "|=" ) { + return result === check || result.slice( 0, check.length + 1 ) === check + "-"; + } + + return false; }; }, - "CHILD": function( type, what, argument, first, last ) { + CHILD: function( type, what, _argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; @@ -1722,8 +1712,8 @@ return !!elem.parentNode; } : - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, + function( elem, _context, xml ) { + var cache, outerCache, node, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), @@ -1736,14 +1726,15 @@ if ( simple ) { while ( dir ) { node = elem; - while ( (node = node[ dir ]) ) { + while ( ( node = node[ dir ] ) ) { if ( ofType ? - node.nodeName.toLowerCase() === name : + nodeName( node, name ) : node.nodeType === 1 ) { return false; } } + // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } @@ -1756,46 +1747,30 @@ if ( forward && useCache ) { // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; + outerCache = parent[ expando ] || ( parent[ expando ] = {} ); + cache = outerCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex && cache[ 2 ]; node = nodeIndex && parent.childNodes[ nodeIndex ]; - while ( (node = ++nodeIndex && node && node[ dir ] || + while ( ( node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { + ( diff = nodeIndex = 0 ) || start.pop() ) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } } else { + // Use previously-cached element index if available if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; + outerCache = elem[ expando ] || ( elem[ expando ] = {} ); + cache = outerCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex; } @@ -1803,25 +1778,21 @@ // xml :nth-child(...) // or :nth-last-child(...) or :nth(-last)?-of-type(...) if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { + while ( ( node = ++nodeIndex && node && node[ dir ] || + ( diff = nodeIndex = 0 ) || start.pop() ) ) { if ( ( ofType ? - node.nodeName.toLowerCase() === name : + nodeName( node, name ) : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; + outerCache = node[ expando ] || + ( node[ expando ] = {} ); + outerCache[ type ] = [ dirruns, diff ]; } if ( node === elem ) { @@ -1839,18 +1810,19 @@ }; }, - "PSEUDO": function( pseudo, argument ) { + PSEUDO: function( pseudo, argument ) { + // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes + // https://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); + find.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function - // just as Sizzle does + // just as jQuery does if ( fn[ expando ] ) { return fn( argument ); } @@ -1859,15 +1831,15 @@ if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { + markFunction( function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); + idx = indexOf.call( seed, matched[ i ] ); + seed[ idx ] = !( matches[ idx ] = matched[ i ] ); } - }) : + } ) : function( elem ) { return fn( elem, 0, args ); }; @@ -1878,49 +1850,53 @@ }, pseudos: { + // Potentially complex pseudos - "not": markFunction(function( selector ) { + not: markFunction( function( selector ) { + // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); + matcher = compile( selector.replace( rtrimCSS, "$1" ) ); return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { + markFunction( function( seed, matches, _context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); + if ( ( elem = unmatched[ i ] ) ) { + seed[ i ] = !( matches[ i ] = elem ); } } - }) : - function( elem, context, xml ) { - input[0] = elem; + } ) : + function( elem, _context, xml ) { + input[ 0 ] = elem; matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; + + // Don't keep the element + // (see https://github.com/jquery/sizzle/issues/299) + input[ 0 ] = null; return !results.pop(); }; - }), + } ), - "has": markFunction(function( selector ) { + has: markFunction( function( selector ) { return function( elem ) { - return Sizzle( selector, elem ).length > 0; + return find( selector, elem ).length > 0; }; - }), + } ), - "contains": markFunction(function( text ) { + contains: markFunction( function( text ) { text = text.replace( runescape, funescape ); return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + return ( elem.textContent || jQuery.text( elem ) ).indexOf( text ) > -1; }; - }), + } ), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value @@ -1928,62 +1904,65 @@ // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { + // https://www.w3.org/TR/selectors/#lang-pseudo + lang: markFunction( function( lang ) { + // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); + if ( !ridentifier.test( lang || "" ) ) { + find.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { - if ( (elemLang = documentIsHTML ? + if ( ( elemLang = documentIsHTML ? elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); return false; }; - }), + } ), // Miscellaneous - "target": function( elem ) { + target: function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, - "root": function( elem ) { - return elem === docElem; + root: function( elem ) { + return elem === documentElement; }, - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + focus: function( elem ) { + return elem === safeActiveElement() && + document.hasFocus() && + !!( elem.type || elem.href || ~elem.tabIndex ); }, // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, + enabled: createDisabledPseudo( false ), + disabled: createDisabledPseudo( true ), - "disabled": function( elem ) { - return elem.disabled === true; - }, + checked: function( elem ) { - "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + // https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + return ( nodeName( elem, "input" ) && !!elem.checked ) || + ( nodeName( elem, "option" ) && !!elem.selected ); }, - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly + selected: function( elem ) { + + // Support: IE <=11+ + // Accessing the selectedIndex property + // forces the browser to treat the default option as + // selected when in an optgroup. if ( elem.parentNode ) { + // eslint-disable-next-line no-unused-expressions elem.parentNode.selectedIndex; } @@ -1991,8 +1970,9 @@ }, // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo + empty: function( elem ) { + + // https://www.w3.org/TR/selectors/#empty-pseudo // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), // but not by others (comment: 8; processing instruction: 7; etc.) // nodeType < 6 works because attributes (2) do not appear as children @@ -2004,82 +1984,92 @@ return true; }, - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); + parent: function( elem ) { + return !Expr.pseudos.empty( elem ); }, // Element/input types - "header": function( elem ) { + header: function( elem ) { return rheader.test( elem.nodeName ); }, - "input": function( elem ) { + input: function( elem ) { return rinputs.test( elem.nodeName ); }, - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; + button: function( elem ) { + return nodeName( elem, "input" ) && elem.type === "button" || + nodeName( elem, "button" ); }, - "text": function( elem ) { + text: function( elem ) { var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && + return nodeName( elem, "input" ) && elem.type === "text" && - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + // Support: IE <10 only + // New HTML5 attribute values (e.g., "search") appear + // with elem.type === "text" + ( ( attr = elem.getAttribute( "type" ) ) == null || + attr.toLowerCase() === "text" ); }, // Position-in-collection - "first": createPositionalPseudo(function() { + first: createPositionalPseudo( function() { return [ 0 ]; - }), + } ), - "last": createPositionalPseudo(function( matchIndexes, length ) { + last: createPositionalPseudo( function( _matchIndexes, length ) { return [ length - 1 ]; - }), + } ), - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + eq: createPositionalPseudo( function( _matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; - }), + } ), - "even": createPositionalPseudo(function( matchIndexes, length ) { + even: createPositionalPseudo( function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; - }), + } ), - "odd": createPositionalPseudo(function( matchIndexes, length ) { + odd: createPositionalPseudo( function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; - }), + } ), + + lt: createPositionalPseudo( function( matchIndexes, length, argument ) { + var i; + + if ( argument < 0 ) { + i = argument + length; + } else if ( argument > length ) { + i = length; + } else { + i = argument; + } - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; - }), + } ), - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + gt: createPositionalPseudo( function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; - }) + } ) } }; -Expr.pseudos["nth"] = Expr.pseudos["eq"]; +Expr.pseudos.nth = Expr.pseudos.eq; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { @@ -2094,7 +2084,7 @@ setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { +function tokenize( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; @@ -2110,37 +2100,39 @@ while ( soFar ) { // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( !matched || ( match = rcomma.exec( soFar ) ) ) { if ( match ) { + // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; + soFar = soFar.slice( match[ 0 ].length ) || soFar; } - groups.push( (tokens = []) ); + groups.push( ( tokens = [] ) ); } matched = false; // Combinators - if ( (match = rcombinators.exec( soFar )) ) { + if ( ( match = rleadingCombinator.exec( soFar ) ) ) { matched = match.shift(); - tokens.push({ + tokens.push( { value: matched, + // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); + type: match[ 0 ].replace( rtrimCSS, " " ) + } ); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { + if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || + ( match = preFilters[ type ]( match ) ) ) ) { matched = match.shift(); - tokens.push({ + tokens.push( { value: matched, type: type, matches: match - }); + } ); soFar = soFar.slice( matched.length ); } } @@ -2153,47 +2145,54 @@ // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; + if ( parseOnly ) { + return soFar.length; + } + + return soFar ? + find.error( selector ) : + + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +} function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { - selector += tokens[i].value; + selector += tokens[ i ].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", + skip = combinator.next, + key = skip || dir, + checkNonElements = base && key === "parentNode", doneName = done++; return combinator.first ? + // Check against closest ancestor/preceding element function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { + while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } + return false; } : // Check against all ancestor/preceding elements function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, + var oldCache, outerCache, newCache = [ dirruns, doneName ]; // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching if ( xml ) { - while ( (elem = elem[ dir ]) ) { + while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; @@ -2201,31 +2200,31 @@ } } } else { - while ( (elem = elem[ dir ]) ) { + while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); + outerCache = elem[ expando ] || ( elem[ expando ] = {} ); - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( (oldCache = uniqueCache[ dir ]) && + if ( skip && nodeName( elem, skip ) ) { + elem = elem[ dir ] || elem; + } else if ( ( oldCache = outerCache[ key ] ) && oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); + return ( newCache[ 2 ] = oldCache[ 2 ] ); } else { + // Reuse newcache so results back-propagate to previous elements - uniqueCache[ dir ] = newCache; + outerCache[ key ] = newCache; // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { return true; } } } } } + return false; }; } @@ -2234,20 +2233,20 @@ function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { + if ( !matchers[ i ]( elem, context, xml ) ) { return false; } } return true; } : - matchers[0]; + matchers[ 0 ]; } function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); + find( selector, contexts[ i ], results ); } return results; } @@ -2260,7 +2259,7 @@ mapped = map != null; for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { + if ( ( elem = unmatched[ i ] ) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { @@ -2280,34 +2279,38 @@ if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, + return markFunction( function( seed, results, context, xml ) { + var temp, i, elem, matcherOut, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + elems = seed || + multipleContexts( selector || "*", + context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : - elems, + elems; - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + if ( matcher ) { - // ...intermediate processing is necessary - [] : + // If we have a postFinder, or filtered seed, or non-seed postFilter + // or preexisting results, + matcherOut = postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - // ...otherwise use results directly - results : - matcherIn; + // ...intermediate processing is necessary + [] : - // Find primary matches - if ( matcher ) { + // ...otherwise use results directly + results; + + // Find primary matches matcher( matcherIn, matcherOut, context, xml ); + } else { + matcherOut = matcherIn; } // Apply postFilter @@ -2318,8 +2321,8 @@ // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + if ( ( elem = temp[ i ] ) ) { + matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); } } } @@ -2327,25 +2330,27 @@ if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { - if ( (elem = matcherOut[i]) ) { + if ( ( elem = matcherOut[ i ] ) ) { + // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); + temp.push( ( matcherIn[ i ] = elem ) ); } } - postFinder( null, (matcherOut = []), temp, xml ); + postFinder( null, ( matcherOut = [] ), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + if ( ( elem = matcherOut[ i ] ) && + ( temp = postFinder ? indexOf.call( seed, elem ) : preMap[ i ] ) > -1 ) { - seed[temp] = !(results[temp] = elem); + seed[ temp ] = !( results[ temp ] = elem ); } } } @@ -2363,14 +2368,14 @@ push.apply( results, matcherOut ); } } - }); + } ); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], + leadingRelative = Expr.relative[ tokens[ 0 ].type ], + implicitRelative = leadingRelative || Expr.relative[ " " ], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) @@ -2378,42 +2383,52 @@ return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; + return indexOf.call( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + var ret = ( !leadingRelative && ( xml || context != outermostContext ) ) || ( + ( checkContext = context ).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) + + // Avoid hanging onto element + // (see https://github.com/jquery/sizzle/issues/299) checkContext = null; return ret; } ]; for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { + matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { + if ( Expr.relative[ tokens[ j ].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), + tokens.slice( 0, i - 1 ) + .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) + ).replace( rtrimCSS, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), j < len && toSelector( tokens ) ); } @@ -2434,29 +2449,42 @@ unmatched = seed && [], setMatched = [], contextBackup = outermostContext, + // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + elems = seed || byElement && Expr.find.TAG( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), len = elems.length; if ( outermost ) { - outermostContext = context === document || context || outermost; + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + outermostContext = context == document || context || outermost; } // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + // Support: iOS <=7 - 9 only + // Tolerate NodeList properties (IE: "length"; Safari: ) matching + // elements by id. (see trac-14142) + for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { if ( byElement && elem ) { j = 0; - if ( !context && elem.ownerDocument !== document ) { + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( !context && elem.ownerDocument != document ) { setDocument( elem ); xml = !documentIsHTML; } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); + while ( ( matcher = elementMatchers[ j++ ] ) ) { + if ( matcher( elem, context || document, xml ) ) { + push.call( results, elem ); break; } } @@ -2467,8 +2495,9 @@ // Track unmatched elements for set filters if ( bySet ) { + // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { + if ( ( elem = !matcher && elem ) ) { matchedCount--; } @@ -2492,16 +2521,17 @@ // numerically zero. if ( bySet && i !== matchedCount ) { j = 0; - while ( (matcher = setMatchers[j++]) ) { + while ( ( matcher = setMatchers[ j++ ] ) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); + if ( !( unmatched[ i ] || setMatched[ i ] ) ) { + setMatched[ i ] = pop.call( results ); } } } @@ -2517,7 +2547,7 @@ if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { - Sizzle.uniqueSort( results ); + jQuery.uniqueSort( results ); } } @@ -2535,20 +2565,21 @@ superMatcher; } -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { +function compile( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } i = match.length; while ( i-- ) { - cached = matcherFromTokens( match[i] ); + cached = matcherFromTokens( match[ i ] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { @@ -2557,27 +2588,28 @@ } // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + cached = compilerCache( selector, + matcherFromGroupMatchers( elementMatchers, setMatchers ) ); // Save selector and tokenization cached.selector = selector; } return cached; -}; +} /** - * A low-level selection function that works with Sizzle's compiled + * A low-level selection function that works with jQuery's compiled * selector functions * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile + * selector function built with jQuery selector compile * @param {Element} context * @param {Array} [results] * @param {Array} [seed] A set of elements to match against */ -select = Sizzle.select = function( selector, context, results, seed ) { +function select( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); + match = !seed && tokenize( ( selector = compiled.selector || selector ) ); results = results || []; @@ -2586,12 +2618,14 @@ if ( match.length === 1 ) { // Reduce context if the leading compound selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + tokens = match[ 0 ] = match[ 0 ].slice( 0 ); + if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && + context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { + + context = ( Expr.find.ID( + token.matches[ 0 ].replace( runescape, funescape ), + context + ) || [] )[ 0 ]; if ( !context ) { return results; @@ -2604,20 +2638,22 @@ } // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + i = matchExpr.needsContext.test( selector ) ? 0 : tokens.length; while ( i-- ) { - token = tokens[i]; + token = tokens[ i ]; // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { + if ( Expr.relative[ ( type = token.type ) ] ) { break; } - if ( (find = Expr.find[ type ]) ) { + if ( ( find = Expr.find[ type ] ) ) { + // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { + if ( ( seed = find( + token.matches[ 0 ].replace( runescape, funescape ), + rsibling.test( tokens[ 0 ].type ) && + testContext( context.parentNode ) || context + ) ) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); @@ -2643,85 +2679,48 @@ !context || rsibling.test( selector ) && testContext( context.parentNode ) || context ); return results; -}; +} // One-time assignments +// Support: Android <=4.0 - 4.1+ // Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; +support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; // Initialize against the default document setDocument(); -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Support: Android <=4.0 - 4.1+ // Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); +support.sortDetached = assert( function( el ) { -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; + // Should return 1, but returns 4 (following) + return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; +} ); -})( window ); +jQuery.find = find; +// Deprecated +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.unique = jQuery.uniqueSort; +// These have always been private, but they used to be documented as part of +// Sizzle so let's maintain them for now for backwards compatibility purposes. +find.compile = compile; +find.select = select; +find.setDocument = setDocument; +find.tokenize = tokenize; + +find.escape = jQuery.escapeSelector; +find.getText = jQuery.text; +find.isXML = jQuery.isXMLDoc; +find.selectors = jQuery.expr; +find.support = jQuery.support; +find.uniqueSort = jQuery.uniqueSort; -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; + /* eslint-enable */ +} )(); var dir = function( elem, dir, until ) { @@ -2755,40 +2754,34 @@ var rneedsContext = jQuery.expr.match.needsContext; -var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ ); - +var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); -var risSimple = /^.[^:#\[\.,]*$/; // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { + if ( isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ return !!qualifier.call( elem, i, elem ) !== not; } ); - } + // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; } ); - } - if ( typeof qualifier === "string" ) { - if ( risSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); + // Arraylike of elements (jQuery, arguments, Array) + if ( typeof qualifier !== "string" ) { + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); } - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) > -1 ) !== not; - } ); + // Filtered directly for both simple and complex selectors + return jQuery.filter( qualifier, elements, not ); } jQuery.filter = function( expr, elems, not ) { @@ -2798,19 +2791,20 @@ expr = ":not(" + expr + ")"; } - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); + if ( elems.length === 1 && elem.nodeType === 1 ) { + return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; + } + + return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); }; jQuery.fn.extend( { find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; + var i, ret, + len = this.length, + self = this; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter( function() { @@ -2822,14 +2816,13 @@ } ) ); } + ret = this.pushStack( [] ); + for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; + return len > 1 ? jQuery.uniqueSort( ret ) : ret; }, filter: function( selector ) { return this.pushStack( winnow( this, selector || [], false ) ); @@ -2859,9 +2852,10 @@ var rootjQuery, // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + // Prioritize #id over to avoid XSS via location.hash (trac-9521) + // Strict HTML recognition (trac-11290: must start with <) + // Shortcut simple #id case for speed + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function( selector, context, root ) { var match, elem; @@ -2871,14 +2865,14 @@ return this; } - // init accepts an alternate rootjQuery + // Method init() accepts an alternate rootjQuery // so migrate can support jQuery.sub (gh-2101) root = root || rootjQuery; // Handle HTML strings if ( typeof selector === "string" ) { - if ( selector.charAt( 0 ) === "<" && - selector.charAt( selector.length - 1 ) === ">" && + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check @@ -2895,7 +2889,7 @@ if ( match[ 1 ] ) { context = context instanceof jQuery ? context[ 0 ] : context; - // scripts is true for back-compat + // Option to run scripts is true for back-compat // Intentionally let the error be thrown if parseHTML is not present jQuery.merge( this, jQuery.parseHTML( match[ 1 ], @@ -2908,7 +2902,7 @@ for ( match in context ) { // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { + if ( isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes @@ -2924,23 +2918,12 @@ } else { elem = document.getElementById( match[ 2 ] ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[ 2 ] ) { - return rootjQuery.find( selector ); - } + if ( elem ) { - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; + // Inject the element directly into the jQuery object this[ 0 ] = elem; + this.length = 1; } - - this.context = document; - this.selector = selector; return this; } @@ -2956,25 +2939,20 @@ // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { - this.context = this[ 0 ] = selector; + this[ 0 ] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return typeof root.ready !== "undefined" ? + } else if ( isFunction( selector ) ) { + return root.ready !== undefined ? root.ready( selector ) : // Execute immediately if ready is not present selector( jQuery ); } - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - return jQuery.makeArray( selector, this ); }; @@ -2987,7 +2965,7 @@ var rparentsprev = /^(?:parents|prev(?:Until|All))/, - // methods guaranteed to produce a unique set when starting from a unique set + // Methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, @@ -2997,12 +2975,12 @@ jQuery.fn.extend( { has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; + var targets = jQuery( target, this ), + l = targets.length; return this.filter( function() { - for ( i = 0; i < len; i++ ) { + var i = 0; + for ( ; i < l; i++ ) { if ( jQuery.contains( this, targets[ i ] ) ) { return true; } @@ -3015,23 +2993,24 @@ i = 0, l = this.length, matched = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; + targets = typeof selectors !== "string" && jQuery( selectors ); + + // Positional selectors never match, since there's no _selection_ context + if ( !rneedsContext.test( selectors ) ) { + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + // Always skip document fragments + if ( cur.nodeType < 11 && ( targets ? + targets.index( cur ) > -1 : - // Always skip document fragments - if ( cur.nodeType < 11 && ( pos ? - pos.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { + // Don't pass non-elements to jQuery#find + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { - matched.push( cur ); - break; + matched.push( cur ); + break; + } } } } @@ -3039,8 +3018,7 @@ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); }, - // Determine the position of an element within - // the matched set of elements + // Determine the position of an element within the set index: function( elem ) { // No argument, return index in parent @@ -3048,16 +3026,17 @@ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } - // index in selector + // Index in selector if ( typeof elem === "string" ) { - return jQuery.inArray( this[ 0 ], jQuery( elem ) ); + return indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element - return jQuery.inArray( + return indexOf.call( this, // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem, this ); + elem.jquery ? elem[ 0 ] : elem + ); }, add: function( selector, context ) { @@ -3076,10 +3055,7 @@ } ); function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; } @@ -3091,7 +3067,7 @@ parents: function( elem ) { return dir( elem, "parentNode" ); }, - parentsUntil: function( elem, i, until ) { + parentsUntil: function( elem, _i, until ) { return dir( elem, "parentNode", until ); }, next: function( elem ) { @@ -3106,10 +3082,10 @@ prevAll: function( elem ) { return dir( elem, "previousSibling" ); }, - nextUntil: function( elem, i, until ) { + nextUntil: function( elem, _i, until ) { return dir( elem, "nextSibling", until ); }, - prevUntil: function( elem, i, until ) { + prevUntil: function( elem, _i, until ) { return dir( elem, "previousSibling", until ); }, siblings: function( elem ) { @@ -3119,46 +3095,61 @@ return siblings( elem.firstChild ); }, contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); + if ( elem.contentDocument != null && + + // Support: IE 11+ + // elements with no `data` attribute has an object + // `contentDocument` with a `null` prototype. + getProto( elem.contentDocument ) ) { + + return elem.contentDocument; + } + + // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only + // Treat the template element as a regular one in browsers that + // don't support it. + if ( nodeName( elem, "template" ) ) { + elem = elem.content || elem; + } + + return jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); + var matched = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); + matched = jQuery.filter( selector, matched ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { - ret = jQuery.uniqueSort( ret ); + jQuery.uniqueSort( matched ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); + matched.reverse(); } } - return this.pushStack( ret ); + return this.pushStack( matched ); }; } ); -var rnotwhite = ( /\S+/g ); +var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); // Convert String-formatted options into Object-formatted ones function createOptions( options ) { var object = {}; - jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { + jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; @@ -3219,7 +3210,7 @@ fire = function() { // Enforce single-firing - locked = options.once; + locked = locked || options.once; // Execute callbacks for all pending executions, // respecting firingIndex overrides and runtime changes @@ -3275,11 +3266,11 @@ ( function add( args ) { jQuery.each( args, function( _, arg ) { - if ( jQuery.isFunction( arg ) ) { + if ( isFunction( arg ) ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } - } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { + } else if ( arg && arg.length && toType( arg ) !== "string" ) { // Inspect recursively add( arg ); @@ -3342,9 +3333,9 @@ // Also disable .add unless we have memory (since it would have no effect) // Abort any pending executions lock: function() { - locked = true; - if ( !memory ) { - self.disable(); + locked = queue = []; + if ( !memory && !firing ) { + list = memory = ""; } return this; }, @@ -3381,15 +3372,59 @@ }; +function Identity( v ) { + return v; +} +function Thrower( ex ) { + throw ex; +} + +function adoptValue( value, resolve, reject, noValue ) { + var method; + + try { + + // Check for promise aspect first to privilege synchronous behavior + if ( value && isFunction( ( method = value.promise ) ) ) { + method.call( value ).done( resolve ).fail( reject ); + + // Other thenables + } else if ( value && isFunction( ( method = value.then ) ) ) { + method.call( value, resolve, reject ); + + // Other non-thenables + } else { + + // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: + // * false: [ value ].slice( 0 ) => resolve( value ) + // * true: [ value ].slice( 1 ) => resolve() + resolve.apply( undefined, [ value ].slice( noValue ) ); + } + + // For Promises/A+, convert exceptions into rejections + // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in + // Deferred#then to conditionally suppress rejection. + } catch ( value ) { + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + reject.apply( undefined, [ value ] ); + } +} + jQuery.extend( { Deferred: function( func ) { var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ], - [ "notify", "progress", jQuery.Callbacks( "memory" ) ] + // action, add listener, callbacks, + // ... .then handlers, argument index, [final state] + [ "notify", "progress", jQuery.Callbacks( "memory" ), + jQuery.Callbacks( "memory" ), 2 ], + [ "resolve", "done", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 0, "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 1, "rejected" ] ], state = "pending", promise = { @@ -3400,23 +3435,33 @@ deferred.done( arguments ).fail( arguments ); return this; }, - then: function( /* fnDone, fnFail, fnProgress */ ) { + "catch": function( fn ) { + return promise.then( null, fn ); + }, + + // Keep pipe for back-compat + pipe: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; + return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + jQuery.each( tuples, function( _i, tuple ) { + + // Map tuples (progress, done, fail) to arguments (done, fail, progress) + var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer + // deferred.progress(function() { bind to newDefer or newDefer.notify }) + // deferred.done(function() { bind to newDefer or newDefer.resolve }) + // deferred.fail(function() { bind to newDefer or newDefer.reject }) deferred[ tuple[ 1 ] ]( function() { var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { + if ( returned && isFunction( returned.promise ) ) { returned.promise() .progress( newDefer.notify ) .done( newDefer.resolve ) .fail( newDefer.reject ); } else { newDefer[ tuple[ 0 ] + "With" ]( - this === promise ? newDefer.promise() : this, + this, fn ? [ returned ] : arguments ); } @@ -3425,6 +3470,177 @@ fns = null; } ).promise(); }, + then: function( onFulfilled, onRejected, onProgress ) { + var maxDepth = 0; + function resolve( depth, deferred, handler, special ) { + return function() { + var that = this, + args = arguments, + mightThrow = function() { + var returned, then; + + // Support: Promises/A+ section 2.3.3.3.3 + // https://promisesaplus.com/#point-59 + // Ignore double-resolution attempts + if ( depth < maxDepth ) { + return; + } + + returned = handler.apply( that, args ); + + // Support: Promises/A+ section 2.3.1 + // https://promisesaplus.com/#point-48 + if ( returned === deferred.promise() ) { + throw new TypeError( "Thenable self-resolution" ); + } + + // Support: Promises/A+ sections 2.3.3.1, 3.5 + // https://promisesaplus.com/#point-54 + // https://promisesaplus.com/#point-75 + // Retrieve `then` only once + then = returned && + + // Support: Promises/A+ section 2.3.4 + // https://promisesaplus.com/#point-64 + // Only check objects and functions for thenability + ( typeof returned === "object" || + typeof returned === "function" ) && + returned.then; + + // Handle a returned thenable + if ( isFunction( then ) ) { + + // Special processors (notify) just wait for resolution + if ( special ) { + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ) + ); + + // Normal processors (resolve) also hook into progress + } else { + + // ...and disregard older resolution values + maxDepth++; + + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ), + resolve( maxDepth, deferred, Identity, + deferred.notifyWith ) + ); + } + + // Handle all other returned values + } else { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Identity ) { + that = undefined; + args = [ returned ]; + } + + // Process the value(s) + // Default process is resolve + ( special || deferred.resolveWith )( that, args ); + } + }, + + // Only normal processors (resolve) catch and reject exceptions + process = special ? + mightThrow : + function() { + try { + mightThrow(); + } catch ( e ) { + + if ( jQuery.Deferred.exceptionHook ) { + jQuery.Deferred.exceptionHook( e, + process.error ); + } + + // Support: Promises/A+ section 2.3.3.3.4.1 + // https://promisesaplus.com/#point-61 + // Ignore post-resolution exceptions + if ( depth + 1 >= maxDepth ) { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Thrower ) { + that = undefined; + args = [ e ]; + } + + deferred.rejectWith( that, args ); + } + } + }; + + // Support: Promises/A+ section 2.3.3.3.1 + // https://promisesaplus.com/#point-57 + // Re-resolve promises immediately to dodge false rejection from + // subsequent errors + if ( depth ) { + process(); + } else { + + // Call an optional hook to record the error, in case of exception + // since it's otherwise lost when execution goes async + if ( jQuery.Deferred.getErrorHook ) { + process.error = jQuery.Deferred.getErrorHook(); + + // The deprecated alias of the above. While the name suggests + // returning the stack, not an error instance, jQuery just passes + // it directly to `console.warn` so both will work; an instance + // just better cooperates with source maps. + } else if ( jQuery.Deferred.getStackHook ) { + process.error = jQuery.Deferred.getStackHook(); + } + window.setTimeout( process ); + } + }; + } + + return jQuery.Deferred( function( newDefer ) { + + // progress_handlers.add( ... ) + tuples[ 0 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onProgress ) ? + onProgress : + Identity, + newDefer.notifyWith + ) + ); + + // fulfilled_handlers.add( ... ) + tuples[ 1 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onFulfilled ) ? + onFulfilled : + Identity + ) + ); + + // rejected_handlers.add( ... ) + tuples[ 2 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onRejected ) ? + onRejected : + Thrower + ) + ); + } ).promise(); + }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object @@ -3434,33 +3650,58 @@ }, deferred = {}; - // Keep pipe for back-compat - promise.pipe = promise.then; - // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], - stateString = tuple[ 3 ]; + stateString = tuple[ 5 ]; - // promise[ done | fail | progress ] = list.add + // promise.progress = list.add + // promise.done = list.add + // promise.fail = list.add promise[ tuple[ 1 ] ] = list.add; // Handle state if ( stateString ) { - list.add( function() { + list.add( + function() { + + // state = "resolved" (i.e., fulfilled) + // state = "rejected" + state = stateString; + }, + + // rejected_callbacks.disable + // fulfilled_callbacks.disable + tuples[ 3 - i ][ 2 ].disable, + + // rejected_handlers.disable + // fulfilled_handlers.disable + tuples[ 3 - i ][ 3 ].disable, - // state = [ resolved | rejected ] - state = stateString; + // progress_callbacks.lock + tuples[ 0 ][ 2 ].lock, - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + // progress_handlers.lock + tuples[ 0 ][ 3 ].lock + ); } - // deferred[ resolve | reject | notify ] + // progress_handlers.fire + // fulfilled_handlers.fire + // rejected_handlers.fire + list.add( tuple[ 3 ].fire ); + + // deferred.notify = function() { deferred.notifyWith(...) } + // deferred.resolve = function() { deferred.resolveWith(...) } + // deferred.reject = function() { deferred.rejectWith(...) } deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments ); + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); return this; }; + + // deferred.notifyWith = list.fireWith + // deferred.resolveWith = list.fireWith + // deferred.rejectWith = list.fireWith deferred[ tuple[ 0 ] + "With" ] = list.fireWith; } ); @@ -3477,69 +3718,99 @@ }, // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, + when: function( singleValue ) { + var + + // count of uncompleted subordinates + remaining = arguments.length, + + // count of unprocessed arguments + i = remaining, + + // subordinate fulfillment data + resolveContexts = Array( i ), resolveValues = slice.call( arguments ), - length = resolveValues.length, - // the count of uncompleted subordinates - remaining = length !== 1 || - ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. - // If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + // the primary Deferred + primary = jQuery.Deferred(), - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { + // subordinate callback factory + updateFunc = function( i ) { return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( values === progressValues ) { - deferred.notifyWith( contexts, values ); - - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); + resolveContexts[ i ] = this; + resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( !( --remaining ) ) { + primary.resolveWith( resolveContexts, resolveValues ); } }; - }, + }; - progressValues, progressContexts, resolveContexts; + // Single- and empty arguments are adopted like Promise.resolve + if ( remaining <= 1 ) { + adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject, + !remaining ); - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .progress( updateFunc( i, progressContexts, progressValues ) ) - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ); - } else { - --remaining; - } + // Use .then() to unwrap secondary thenables (cf. gh-3000) + if ( primary.state() === "pending" || + isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { + + return primary.then(); } } - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); + // Multiple arguments are aggregated like Promise.all array elements + while ( i-- ) { + adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject ); } - return deferred.promise(); + return primary.promise(); } } ); +// These usually indicate a programmer mistake during development, +// warn about them ASAP rather than swallowing them by default. +var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; + +// If `jQuery.Deferred.getErrorHook` is defined, `asyncError` is an error +// captured before the async barrier to get the original error cause +// which may otherwise be hidden. +jQuery.Deferred.exceptionHook = function( error, asyncError ) { + + // Support: IE 8 - 9 only + // Console exists when dev tools are open, which can happen at any time + if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { + window.console.warn( "jQuery.Deferred exception: " + error.message, + error.stack, asyncError ); + } +}; + + + + +jQuery.readyException = function( error ) { + window.setTimeout( function() { + throw error; + } ); +}; + + + + // The deferred used on DOM ready -var readyList; +var readyList = jQuery.Deferred(); jQuery.fn.ready = function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); + readyList + .then( fn ) + + // Wrap jQuery.readyException in a function so that the lookup + // happens at the time of error handling instead of callback + // registration. + .catch( function( error ) { + jQuery.readyException( error ); + } ); return this; }; @@ -3550,18 +3821,9 @@ isReady: false, // A counter to track how many items to wait for before - // the ready event fires. See #6781 + // the ready event fires. See trac-6781 readyWait: 1, - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - // Handle when the DOM is ready ready: function( wait ) { @@ -3580,469 +3842,369 @@ // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.triggerHandler ) { - jQuery( document ).triggerHandler( "ready" ); - jQuery( document ).off( "ready" ); - } } } ); -/** - * Clean-up method for dom ready events - */ -function detach() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } -} +jQuery.ready.then = readyList.then; -/** - * The ready event handler and self cleanup method - */ +// The ready event handler and self cleanup method function completed() { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || - window.event.type === "load" || - document.readyState === "complete" ) { - - detach(); - jQuery.ready(); - } + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); } -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { +// Catch cases where $(document).ready() is called +// after the browser event has already occurred. +// Support: IE <=9 - 10 only +// Older IE sometimes signals "interactive" too soon +if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - readyList = jQuery.Deferred(); + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); - // Catch cases where $(document).ready() is called - // after the browser event has already occurred. - // we once tried to use readyState "interactive" here, - // but it caused issues like the one - // discovered by ChrisS here: - // http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { +} else { - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); +} - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; - // If IE and not a frame - // continually check to see if the document is ready - var top = false; + // Sets many values + if ( toType( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } - try { - top = window.frameElement == null && document.documentElement; - } catch ( e ) {} + // Sets one value + } else if ( value !== undefined ) { + chainable = true; - if ( top && top.doScroll ) { - ( function doScrollCheck() { - if ( !jQuery.isReady ) { + if ( !isFunction( value ) ) { + raw = true; + } - try { + if ( bulk ) { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll( "left" ); - } catch ( e ) { - return window.setTimeout( doScrollCheck, 50 ); - } + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; - // detach all dom ready events - detach(); + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, _key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } - // and execute any waiting functions - jQuery.ready(); - } - } )(); + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); } } } - return readyList.promise( obj ); -}; - -// Kick off the DOM ready check even if the user does not -jQuery.ready.promise(); - - + if ( chainable ) { + return elems; + } -// Support: IE<9 -// Iteration over object's inherited properties before its own -var i; -for ( i in jQuery( support ) ) { - break; -} -support.ownFirst = i === "0"; - -// Note: most support tests are defined in their respective modules. -// false until the test is run -support.inlineBlockNeedsLayout = false; - -// Execute ASAP in case we need to set body.style.zoom -jQuery( function() { - - // Minified: var a,b,c,d - var val, div, body, container; - - body = document.getElementsByTagName( "body" )[ 0 ]; - if ( !body || !body.style ) { - - // Return for frameset docs that don't have a body - return; + // Gets + if ( bulk ) { + return fn.call( elems ); } - // Setup - div = document.createElement( "div" ); - container = document.createElement( "div" ); - container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; - body.appendChild( container ).appendChild( div ); + return len ? fn( elems[ 0 ], key ) : emptyGet; +}; - if ( typeof div.style.zoom !== "undefined" ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; +// Matches dashed string for camelizing +var rmsPrefix = /^-ms-/, + rdashAlpha = /-([a-z])/g; - support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; - if ( val ) { +// Used by camelCase as callback to replace() +function fcamelCase( _all, letter ) { + return letter.toUpperCase(); +} - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } +// Convert dashed to camelCase; used by the css and data modules +// Support: IE <=9 - 11, Edge 12 - 15 +// Microsoft forgot to hump their vendor prefix (trac-9572) +function camelCase( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); +} +var acceptData = function( owner ) { - body.removeChild( container ); -} ); + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; -( function() { - var div = document.createElement( "div" ); - // Support: IE<9 - support.deleteExpando = true; - try { - delete div.test; - } catch ( e ) { - support.deleteExpando = false; - } - // Null elements to avoid leaks in IE. - div = null; -} )(); -var acceptData = function( elem ) { - var noData = jQuery.noData[ ( elem.nodeName + " " ).toLowerCase() ], - nodeType = +elem.nodeType || 1; - - // Do not set data on non-element DOM nodes because it will not be cleared (#8335). - return nodeType !== 1 && nodeType !== 9 ? - false : +function Data() { + this.expando = jQuery.expando + Data.uid++; +} - // Nodes accept data unless otherwise specified; rejection can be conditional - !noData || noData !== true && elem.getAttribute( "classid" ) === noData; -}; +Data.uid = 1; +Data.prototype = { + cache: function( owner ) { + // Check if the owner object already has a cache + var value = owner[ this.expando ]; -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /([A-Z])/g; + // If not, create one + if ( !value ) { + value = {}; -function dataAttr( elem, key, data ) { + // We can accept data for non-element nodes in modern browsers, + // but we should not, see trac-8335. + // Always return an empty object. + if ( acceptData( owner ) ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } - data = elem.getAttribute( name ); + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + // Handle: [ owner, key, value ] args + // Always use camelCase key (gh-2257) if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); + cache[ camelCase( data ) ] = value; + // Handle: [ owner, { properties } ] args } else { - data = undefined; + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ camelCase( prop ) ] = data[ prop ]; + } } - } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : - return data; -} + // Always use camelCase key (gh-2257) + owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; + }, + access: function( owner, key, value ) { -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[ name ] ) ) { - continue; + return this.get( owner, key ); } - if ( name !== "toJSON" ) { - return false; - } - } - return true; -} + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); -function internalData( elem, name, data, pvt /* Internal Use Only */ ) { - if ( !acceptData( elem ) ) { - return; - } + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, + cache = owner[ this.expando ]; - var ret, thisCache, - internalKey = jQuery.expando, + if ( cache === undefined ) { + return; + } - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( ( !id || !cache[ id ] || ( !pvt && !cache[ id ].data ) ) && - data === undefined && typeof name === "string" ) { - return; - } + if ( key !== undefined ) { - if ( !id ) { + // Support array or space separated string of keys + if ( Array.isArray( key ) ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } + // If key is an array of keys... + // We always set camelCase keys, so remove that. + key = key.map( camelCase ); + } else { + key = camelCase( key ); - if ( !cache[ id ] ) { + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + key = key in cache ? + [ key ] : + ( key.match( rnothtmlwhite ) || [] ); + } - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } + i = key.length; - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + while ( i-- ) { + delete cache[ key[ i ] ]; + } } - } - thisCache = cache[ id ]; + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; + // Support: Chrome <=35 - 45 + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); } +}; +var dataPriv = new Data(); - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { +var dataUser = new Data(); - // First Try to find as-is property data - ret = thisCache[ name ]; - // Test for null|undefined property data - if ( ret == null ) { - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - return ret; -} +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; -function internalRemoveData( elem, name, pvt ) { - if ( !acceptData( elem ) ) { - return; +function getData( data ) { + if ( data === "true" ) { + return true; } - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; + if ( data === "false" ) { + return false; } - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { + if ( data === "null" ) { + return null; + } - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { + // Only convert to a number if it doesn't change the string + if ( data === +data + "" ) { + return +data; + } - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { + if ( rbrace.test( data ) ) { + return JSON.parse( data ); + } - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split( " " ); - } - } - } else { + return data; +} - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } +function dataAttr( elem, key, data ) { + var name; - i = name.length; - while ( i-- ) { - delete thisCache[ name[ i ] ]; - } + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject( thisCache ) : !jQuery.isEmptyObject( thisCache ) ) { - return; - } - } - } + if ( typeof data === "string" ) { + try { + data = getData( data ); + } catch ( e ) {} - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; } } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, undefined - } else { - cache[ id ] = undefined; - } + return data; } jQuery.extend( { - cache: {}, - - // The following elements (space-suffixed to avoid Object.prototype collisions) - // throw uncatchable exceptions if you attempt to set expando properties - noData: { - "applet ": true, - "embed ": true, - - // ...but Flash objects (which have this classid) *can* handle expandos - "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[ jQuery.expando ] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); }, data: function( elem, name, data ) { - return internalData( elem, name, data ); + return dataUser.access( elem, name, data ); }, removeData: function( elem, name ) { - return internalRemoveData( elem, name ); + dataUser.remove( elem, name ); }, - // For internal use only. + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); + return dataPriv.access( elem, name, data ); }, _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); + dataPriv.remove( elem, name ); } } ); @@ -4052,29 +4214,26 @@ elem = this[ 0 ], attrs = elem && elem.attributes; - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - // Gets all values if ( key === undefined ) { if ( this.length ) { - data = jQuery.data( elem ); + data = dataUser.get( elem ); - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { i = attrs.length; while ( i-- ) { - // Support: IE11+ - // The attrs elements can be null (#14894) + // Support: IE 11 only + // The attrs elements can be null (trac-14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.slice( 5 ) ); + name = camelCase( name.slice( 5 ) ); dataAttr( elem, name, data[ name ] ); } } } - jQuery._data( elem, "parsedAttrs", true ); + dataPriv.set( elem, "hasDataAttrs", true ); } } @@ -4084,25 +4243,50 @@ // Sets multiple values if ( typeof key === "object" ) { return this.each( function() { - jQuery.data( this, key ); + dataUser.set( this, key ); } ); } - return arguments.length > 1 ? + return access( this, function( value ) { + var data; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // The key will always be camelCased in Data + data = dataUser.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, key ); + if ( data !== undefined ) { + return data; + } - // Sets one value + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... this.each( function() { - jQuery.data( this, key, value ); - } ) : - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined; + // We always store the camelCased key + dataUser.set( this, key, value ); + } ); + }, null, value, arguments.length > 1, null, true ); }, removeData: function( key ) { return this.each( function() { - jQuery.removeData( this, key ); + dataUser.remove( this, key ); } ); } } ); @@ -4114,12 +4298,12 @@ if ( elem ) { type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); + queue = dataPriv.get( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { - if ( !queue || jQuery.isArray( data ) ) { - queue = jQuery._data( elem, type, jQuery.makeArray( data ) ); + if ( !queue || Array.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); } else { queue.push( data ); } @@ -4153,7 +4337,7 @@ queue.unshift( "inprogress" ); } - // clear up the last queue stop function + // Clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } @@ -4163,14 +4347,12 @@ } }, - // not intended for public consumption - generates a queueHooks object, - // or returns the current one + // Not public - generate a queueHooks object, or return the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { empty: jQuery.Callbacks( "once memory" ).add( function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); + dataPriv.remove( elem, [ type + "queue", key ] ); } ) } ); } @@ -4195,7 +4377,7 @@ this.each( function() { var queue = jQuery.queue( this, type, data ); - // ensure a hooks for this queue + // Ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { @@ -4233,7 +4415,7 @@ type = type || "fx"; while ( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); @@ -4243,115 +4425,101 @@ return defer.promise( obj ); } } ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); -( function() { - var shrinkWrapBlocksVal; - - support.shrinkWrapBlocks = function() { - if ( shrinkWrapBlocksVal != null ) { - return shrinkWrapBlocksVal; - } - - // Will be changed later if needed. - shrinkWrapBlocksVal = false; - - // Minified: var b,c,d - var div, body, container; - - body = document.getElementsByTagName( "body" )[ 0 ]; - if ( !body || !body.style ) { - - // Test fired too early or in an unsupported environment, exit. - return; - } - - // Setup - div = document.createElement( "div" ); - container = document.createElement( "div" ); - container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; - body.appendChild( container ).appendChild( div ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - if ( typeof div.style.zoom !== "undefined" ) { - - // Reset CSS: box-sizing; display; margin; border - div.style.cssText = - - // Support: Firefox<29, Android 2.3 - // Vendor-prefix box-sizing - "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + - "box-sizing:content-box;display:block;margin:0;border:0;" + - "padding:1px;width:1px;zoom:1"; - div.appendChild( document.createElement( "div" ) ).style.width = "5px"; - shrinkWrapBlocksVal = div.offsetWidth !== 3; - } - - body.removeChild( container ); - return shrinkWrapBlocksVal; - }; +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; -} )(); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; +var documentElement = document.documentElement; -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + var isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ); + }, + composed = { composed: true }; -var isHidden = function( elem, el ) { + // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only + // Check attachment across shadow DOM boundaries when possible (gh-3504) + // Support: iOS 10.0-10.2 only + // Early iOS 10 versions support `attachShadow` but not `getRootNode`, + // leading to errors. We need to check for `getRootNode`. + if ( documentElement.getRootNode ) { + isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ) || + elem.getRootNode( composed ) === elem.ownerDocument; + }; + } +var isHiddenWithinTree = function( elem, el ) { - // isHidden might be called from jQuery#filter function; + // isHiddenWithinTree might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || - !jQuery.contains( elem.ownerDocument, elem ); + + // Inline style trumps all + return elem.style.display === "none" || + elem.style.display === "" && + + // Otherwise, check computed style + // Support: Firefox <=43 - 45 + // Disconnected elements can have computed display: none, so first confirm that elem is + // in the document. + isAttached( elem ) && + + jQuery.css( elem, "display" ) === "none"; }; function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, - scale = 1, + var adjusted, scale, maxIterations = 20, currentValue = tween ? - function() { return tween.cur(); } : - function() { return jQuery.css( elem, prop, "" ); }, + function() { + return tween.cur(); + } : + function() { + return jQuery.css( elem, prop, "" ); + }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + initialInUnit = elem.nodeType && + ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && rcssNum.exec( jQuery.css( elem, prop ) ); if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + // Support: Firefox <=54 + // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) + initial = initial / 2; + // Trust units reported by jQuery.css unit = unit || initialInUnit[ 3 ]; - // Make sure we update the tween properties later on - valueParts = valueParts || []; - // Iteratively approximate from a nonzero starting point initialInUnit = +initial || 1; - do { - - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; + while ( maxIterations-- ) { - // Adjust and apply - initialInUnit = initialInUnit / scale; + // Evaluate and update our best guess (doubling guesses that zero out). + // Finish if the scale equals or crosses 1 (making the old*new product non-positive). jQuery.style( elem, prop, initialInUnit + unit ); + if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { + maxIterations = 0; + } + initialInUnit = initialInUnit / scale; - // Update scale, tolerating zero or NaN from tween.cur() - // Break the loop if scale is unchanged or perfect, or if we've just had enough. - } while ( - scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations - ); + } + + initialInUnit = initialInUnit * 2; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Make sure we update the tween properties later on + valueParts = valueParts || []; } if ( valueParts ) { @@ -4371,242 +4539,210 @@ } -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } +var defaultDisplayMap = {}; - if ( bulk ) { +function getDefaultDisplay( elem ) { + var temp, + doc = elem.ownerDocument, + nodeName = elem.nodeName, + display = defaultDisplayMap[ nodeName ]; - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( - elems[ i ], - key, - raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } + if ( display ) { + return display; } - return chainable ? - elems : + temp = doc.body.appendChild( doc.createElement( nodeName ) ); + display = jQuery.css( temp, "display" ); - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[ 0 ], key ) : emptyGet; -}; -var rcheckableType = ( /^(?:checkbox|radio)$/i ); + temp.parentNode.removeChild( temp ); -var rtagName = ( /<([\w:-]+)/ ); + if ( display === "none" ) { + display = "block"; + } + defaultDisplayMap[ nodeName ] = display; -var rscriptType = ( /^$|\/(?:java|ecma)script/i ); + return display; +} -var rleadingWhitespace = ( /^\s+/ ); +function showHide( elements, show ) { + var display, elem, + values = [], + index = 0, + length = elements.length; -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|" + - "details|dialog|figcaption|figure|footer|header|hgroup|main|" + - "mark|meter|nav|output|picture|progress|section|summary|template|time|video"; + // Determine new display value for elements that need to change + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + display = elem.style.display; + if ( show ) { + // Since we force visibility upon cascade-hidden elements, an immediate (and slow) + // check is required in this first loop unless we have a nonempty display value (either + // inline or about-to-be-restored) + if ( display === "none" ) { + values[ index ] = dataPriv.get( elem, "display" ) || null; + if ( !values[ index ] ) { + elem.style.display = ""; + } + } + if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { + values[ index ] = getDefaultDisplay( elem ); + } + } else { + if ( display !== "none" ) { + values[ index ] = "none"; -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); + // Remember what we're overwriting + dataPriv.set( elem, "display", display ); + } + } + } - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); + // Set the display of the elements in a second loop to avoid constant reflow + for ( index = 0; index < length; index++ ) { + if ( values[ index ] != null ) { + elements[ index ].style.display = values[ index ]; } } - return safeFrag; -} + return elements; +} -( function() { - var div = document.createElement( "div" ), - fragment = document.createDocumentFragment(), - input = document.createElement( "input" ); +jQuery.fn.extend( { + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } - // Setup - div.innerHTML = "
a"; + return this.each( function() { + if ( isHiddenWithinTree( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + } ); + } +} ); +var rcheckableType = ( /^(?:checkbox|radio)$/i ); - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; +var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName( "tbody" ).length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName( "link" ).length; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = - document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav>"; +var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - input.type = "checkbox"; - input.checked = true; - fragment.appendChild( input ); - support.appendChecked = input.checked; - // Make sure textarea (and checkbox) defaultValue is properly cloned - // Support: IE6-IE11+ - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; - // #11217 - WebKit loses check when the name is after the checked attribute - fragment.appendChild( div ); +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + // Support: Android 4.0 - 4.3 only + // Check state lost if the name is set (trac-11217) // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input = document.createElement( "input" ); + // `name` and `type` must use .setAttribute for WWA (trac-14901) input.setAttribute( "type", "radio" ); input.setAttribute( "checked", "checked" ); input.setAttribute( "name", "t" ); div.appendChild( input ); - // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 - // old WebKit doesn't clone checked state correctly in fragments + // Support: Android <=4.1 only + // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - // Support: IE<9 - // Cloned elements keep attachEvent handlers, we use addEventListener on IE9+ - support.noCloneEvent = !!div.addEventListener; - - // Support: IE<9 - // Since attributes and properties are the same in IE, - // cleanData must set properties to undefined rather than use removeAttribute - div[ jQuery.expando ] = 1; - support.attributes = !div.getAttribute( jQuery.expando ); + // Support: IE <=11 only + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + + // Support: IE <=9 only + // IE <=9 replaces "; + support.option = !!div.lastChild; } )(); -// We have to close these tags to support XHTML (#13200) +// We have to close these tags to support XHTML (trac-13200) var wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
", "
" ], - area: [ 1, "", "" ], - // Support: IE8 - param: [ 1, "", "" ], + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting or other required elements. thead: [ 1, "", "
" ], + col: [ 2, "", "
" ], tr: [ 2, "", "
" ], - col: [ 2, "", "
" ], td: [ 3, "", "
" ], - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] + _default: [ 0, "", "" ] }; -// Support: IE8-IE9 -wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; +// Support: IE <=9 only +if ( !support.option ) { + wrapMap.optgroup = wrapMap.option = [ 1, "" ]; +} + function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== "undefined" ? - context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== "undefined" ? - context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; - ( elem = elems[ i ] ) != null; - i++ - ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } + + // Support: IE <=9 - 11 only + // Use typeof to avoid zero-argument method invocation on host objects (trac-15151) + var ret; + + if ( typeof context.getElementsByTagName !== "undefined" ) { + ret = context.getElementsByTagName( tag || "*" ); + + } else if ( typeof context.querySelectorAll !== "undefined" ) { + ret = context.querySelectorAll( tag || "*" ); + + } else { + ret = []; } - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; + if ( tag === undefined || tag && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; ( elem = elems[ i ] ) != null; i++ ) { - jQuery._data( - elem, + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], "globalEval", - !refElements || jQuery._data( refElements[ i ], "globalEval" ) + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } } -var rhtml = /<|&#?\w+;/, - rtbody = / from table fragments - if ( !support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[ 1 ] === "
" && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) && - !tbody.childNodes.length ) { - - elem.removeChild( tbody ); - } - } - } - + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, tmp.childNodes ); - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } + // Remember the top-level container + tmp = fragment.firstChild; - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; + // Ensure the created nodes are orphaned (trac-12392) + tmp.textContent = ""; } } } - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } + // Remove wrapper from fragment + fragment.textContent = ""; i = 0; while ( ( elem = nodes[ i++ ] ) ) { @@ -4699,17 +4799,16 @@ if ( ignored ) { ignored.push( elem ); } - continue; } - contains = jQuery.contains( elem.ownerDocument, elem ); + attached = isAttached( elem ); // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); + tmp = getAll( fragment.appendChild( elem ), "script" ); // Preserve script evaluation history - if ( contains ) { + if ( attached ) { setGlobalEval( tmp ); } @@ -4724,38 +4823,11 @@ } } - tmp = null; - - return safe; + return fragment; } -( function() { - var i, eventName, - div = document.createElement( "div" ); - - // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events) - for ( i in { submit: true, change: true, focusin: true } ) { - eventName = "on" + i; - - if ( !( support[ i ] = eventName in window ) ) { - - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - div.setAttribute( eventName, "t" ); - support[ i ] = div.attributes[ eventName ].expando === false; - } - } - - // Null elements to avoid leaks in IE. - div = null; -} )(); - - -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; +var rtypenamespace = /^([^.]*)(?:\.(.+)|)/; function returnTrue() { return true; @@ -4765,14 +4837,6 @@ return false; } -// Support: IE9 -// See #13393 for more info -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - function on( elem, types, selector, data, fn, one ) { var origFn, type; @@ -4843,13 +4907,14 @@ global: {}, add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Only attach events to objects that accept data + if ( !acceptData( elem ) ) { return; } @@ -4860,6 +4925,12 @@ selector = handleObjIn.selector; } + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; @@ -4867,26 +4938,20 @@ // Init the element's event structure and main handler, if this is the first if ( !( events = elemData.events ) ) { - events = elemData.events = {}; + events = elemData.events = Object.create( null ); } if ( !( eventHandle = elemData.handle ) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && - ( !e || jQuery.event.triggered !== e.type ) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; }; - - // Add elem as a property of the handle fn to prevent a memory leak - // with IE non-native events - eventHandle.elem = elem; } // Handle multiple events separated by a space - types = ( types || "" ).match( rnotwhite ) || [ "" ]; + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; @@ -4924,16 +4989,12 @@ handlers = events[ type ] = []; handlers.delegateCount = 0; - // Only use addEventListener/attachEvent if the special events handler returns false + // Only use addEventListener if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); + elem.addEventListener( type, eventHandle ); } } } @@ -4957,24 +5018,22 @@ jQuery.event.global[ type ] = true; } - // Nullify elem to prevent memory leaks in IE - elem = null; }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); if ( !elemData || !( events = elemData.events ) ) { return; } // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnotwhite ) || [ "" ]; + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; @@ -5029,174 +5088,32 @@ } } - // Remove the expando if it's no longer used + // Remove data and the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); + dataPriv.remove( elem, "handle events" ); } }, - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } + dispatch: function( nativeEvent ) { - if ( type.indexOf( "." ) > -1 ) { + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( nativeEvent ), - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && - jQuery._data( cur, "handle" ); - - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( - ( !special._default || - special._default.apply( eventPath.pop(), data ) === false - ) && acceptData( elem ) - ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, j, ret, matched, handleObj, - handlerQueue = [], - args = slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + handlers = ( + dataPriv.get( this, "events" ) || Object.create( null ) + )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired @@ -5216,9 +5133,10 @@ while ( ( handleObj = matched.handlers[ j++ ] ) && !event.isImmediatePropagationStopped() ) { - // Triggered event must either 1) have no namespace, or 2) have namespace(s) - // a subset or equal to those in the bound event (both can have no namespace). - if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { + // If the event is namespaced, then each handler is only invoked if it is + // specially universal or its namespaces are a superset of the event's. + if ( !event.rnamespace || handleObj.namespace === false || + event.rnamespace.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; @@ -5245,160 +5163,95 @@ }, handlers: function( event, handlers ) { - var i, matches, sel, handleObj, + var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; - // Support (at least): Chrome, IE9 // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // - // Support: Firefox<=42+ - // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343) - if ( delegateCount && cur.nodeType && - ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) { - matches = []; + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (trac-13208) + // Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; - // Don't conflict with Object.prototype properties (#13203) + // Don't conflict with Object.prototype properties (trac-13203) sel = handleObj.selector + " "; - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) > -1 : jQuery.find( sel, this, null, [ cur ] ).length; } - if ( matches[ sel ] ) { - matches.push( handleObj ); + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); } } - if ( matches.length ) { - handlerQueue.push( { elem: cur, handlers: matches } ); + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); } } } } // Add the remaining (directly-bound) handlers + cur = this; if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } ); + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); } return handlerQueue; }, - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Safari 6-8+ - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " + - "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split( " " ), - filter: function( event, original ) { + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); } - - return event; - } + } ); }, - mouseHooks: { - props: ( "button buttons clientX clientY fromElement offsetX offsetY " + - "pageX pageY screenX screenY toElement" ).split( " " ), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + - ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + - ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? - original.toElement : - fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); }, special: { @@ -5407,46 +5260,51 @@ // Prevent triggered image.load events from bubbling to window.load noBubble: true }, - focus: { + click: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; + // Utilize native event to ensure correct state for checkable inputs + setup: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Claim the first handler + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + // dataPriv.set( el, "click", ... ) + leverageNative( el, "click", true ); } + + // Return false to allow normal processing in the caller + return false; }, - delegateType: "focusout" - }, - click: { + trigger: function( data ) { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Force setup before triggering a click + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + leverageNative( el, "click" ); } + + // Return non-false to allow normal event-path propagation + return true; }, - // For cross-browser consistency, don't fire native .click() on links + // For cross-browser consistency, suppress native .click() on links + // Also prevent it if we're currently inside a leveraged native-event stack _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); + var target = event.target; + return rcheckableType.test( target.type ) && + target.click && nodeName( target, "input" ) && + dataPriv.get( target, "click" ) || + nodeName( target, "a" ); } }, @@ -5460,59 +5318,99 @@ } } } - }, - - // Piggyback on a donor event to simulate a different one - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - - // Previously, `originalEvent: {}` was set here, so stopPropagation call - // would not be triggered on donor event, since in our own - // jQuery.event.stopPropagation function we had a check for existence of - // originalEvent.stopPropagation method, so, consequently it would be a noop. - // - // Guard for simulated events was moved to jQuery.event.stopPropagation function - // since `originalEvent` should point to the original event for the - // constancy with other events and for more focused logic - } - ); - - jQuery.event.trigger( e, null, elem ); - - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } } }; -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); +// Ensure the presence of an event listener that handles manually-triggered +// synthetic events by interrupting progress until reinvoked in response to +// *native* events that it fires directly, ensuring that state changes have +// already occurred before other listeners are invoked. +function leverageNative( el, type, isSetup ) { + + // Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add + if ( !isSetup ) { + if ( dataPriv.get( el, type ) === undefined ) { + jQuery.event.add( el, type, returnTrue ); } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { + return; + } - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, - // to properly expose it to GC - if ( typeof elem[ name ] === "undefined" ) { - elem[ name ] = null; + // Register the controller as a special universal handler for all event namespaces + dataPriv.set( el, type, false ); + jQuery.event.add( el, type, { + namespace: false, + handler: function( event ) { + var result, + saved = dataPriv.get( this, type ); + + if ( ( event.isTrigger & 1 ) && this[ type ] ) { + + // Interrupt processing of the outer synthetic .trigger()ed event + if ( !saved ) { + + // Store arguments for use when handling the inner native event + // There will always be at least one argument (an event object), so this array + // will not be confused with a leftover capture object. + saved = slice.call( arguments ); + dataPriv.set( this, type, saved ); + + // Trigger the native event and capture its result + this[ type ](); + result = dataPriv.get( this, type ); + dataPriv.set( this, type, false ); + + if ( saved !== result ) { + + // Cancel the outer synthetic event + event.stopImmediatePropagation(); + event.preventDefault(); + + return result; + } + + // If this is an inner synthetic event for an event with a bubbling surrogate + // (focus or blur), assume that the surrogate already propagated from triggering + // the native event and prevent that from happening again here. + // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the + // bubbling surrogate propagates *after* the non-bubbling base), but that seems + // less bad than duplication. + } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { + event.stopPropagation(); + } + + // If this is a native event triggered above, everything is now in order + // Fire an inner synthetic event with the original arguments + } else if ( saved ) { + + // ...and capture the result + dataPriv.set( this, type, jQuery.event.trigger( + saved[ 0 ], + saved.slice( 1 ), + this + ) ); + + // Abort handling of the native event by all jQuery handlers while allowing + // native handlers on the same element to run. On target, this is achieved + // by stopping immediate propagation just on the jQuery event. However, + // the native event is re-wrapped by a jQuery one on each level of the + // propagation so the only way to stop it for jQuery is to stop it for + // everyone via native `stopPropagation()`. This is not a problem for + // focus/blur which don't bubble, but it does also stop click on checkboxes + // and radios. We accept this limitation. + event.stopPropagation(); + event.isImmediatePropagationStopped = returnTrue; } - - elem.detachEvent( name, handle ); } - }; + } ); +} + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; jQuery.Event = function( src, props ) { @@ -5531,11 +5429,21 @@ this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined && - // Support: IE < 9, Android < 4.0 + // Support: Android <=2.3 only src.returnValue === false ? returnTrue : returnFalse; + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (trac-504, trac-13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + // Event type } else { this.type = src; @@ -5547,36 +5455,28 @@ } // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); + this.timeStamp = src && src.timeStamp || Date.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { constructor: jQuery.Event, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, + isSimulated: false, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { + if ( e && !this.isSimulated ) { e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; } }, stopPropagation: function() { @@ -5584,25 +5484,16 @@ this.isPropagationStopped = returnTrue; - if ( !e || this.isSimulated ) { - return; - } - - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { + if ( e && !this.isSimulated ) { e.stopPropagation(); } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; }, stopImmediatePropagation: function() { var e = this.originalEvent; this.isImmediatePropagationStopped = returnTrue; - if ( e && e.stopImmediatePropagation ) { + if ( e && !this.isSimulated ) { e.stopImmediatePropagation(); } @@ -5610,13 +5501,206 @@ } }; +// Includes all common event props including KeyEvent and MouseEvent specific props +jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + code: true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + which: true +}, jQuery.event.addProp ); + +jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { + + function focusMappedHandler( nativeEvent ) { + if ( document.documentMode ) { + + // Support: IE 11+ + // Attach a single focusin/focusout handler on the document while someone wants + // focus/blur. This is because the former are synchronous in IE while the latter + // are async. In other browsers, all those handlers are invoked synchronously. + + // `handle` from private data would already wrap the event, but we need + // to change the `type` here. + var handle = dataPriv.get( this, "handle" ), + event = jQuery.event.fix( nativeEvent ); + event.type = nativeEvent.type === "focusin" ? "focus" : "blur"; + event.isSimulated = true; + + // First, handle focusin/focusout + handle( nativeEvent ); + + // ...then, handle focus/blur + // + // focus/blur don't bubble while focusin/focusout do; simulate the former by only + // invoking the handler at the lower level. + if ( event.target === event.currentTarget ) { + + // The setup part calls `leverageNative`, which, in turn, calls + // `jQuery.event.add`, so event handle will already have been set + // by this point. + handle( event ); + } + } else { + + // For non-IE browsers, attach a single capturing handler on the document + // while someone wants focusin/focusout. + jQuery.event.simulate( delegateType, nativeEvent.target, + jQuery.event.fix( nativeEvent ) ); + } + } + + jQuery.event.special[ type ] = { + + // Utilize native event if possible so blur/focus sequence is correct + setup: function() { + + var attaches; + + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative( this, type, true ); + + if ( document.documentMode ) { + + // Support: IE 9 - 11+ + // We use the same native handler for focusin & focus (and focusout & blur) + // so we need to coordinate setup & teardown parts between those events. + // Use `delegateType` as the key as `type` is already used by `leverageNative`. + attaches = dataPriv.get( this, delegateType ); + if ( !attaches ) { + this.addEventListener( delegateType, focusMappedHandler ); + } + dataPriv.set( this, delegateType, ( attaches || 0 ) + 1 ); + } else { + + // Return false to allow normal processing in the caller + return false; + } + }, + trigger: function() { + + // Force setup before trigger + leverageNative( this, type ); + + // Return non-false to allow normal event-path propagation + return true; + }, + + teardown: function() { + var attaches; + + if ( document.documentMode ) { + attaches = dataPriv.get( this, delegateType ) - 1; + if ( !attaches ) { + this.removeEventListener( delegateType, focusMappedHandler ); + dataPriv.remove( this, delegateType ); + } else { + dataPriv.set( this, delegateType, attaches ); + } + } else { + + // Return false to indicate standard teardown should be applied + return false; + } + }, + + // Suppress native focus or blur if we're currently inside + // a leveraged native-event stack + _default: function( event ) { + return dataPriv.get( event.target, type ); + }, + + delegateType: delegateType + }; + + // Support: Firefox <=44 + // Firefox doesn't have focus(in | out) events + // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 + // + // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 + // focus(in | out) events fire after focus & blur events, + // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order + // Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 + // + // Support: IE 9 - 11+ + // To preserve relative focusin/focus & focusout/blur event order guaranteed on the 3.x branch, + // attach a single handler for both events in IE. + jQuery.event.special[ delegateType ] = { + setup: function() { + + // Handle: regular nodes (via `this.ownerDocument`), window + // (via `this.document`) & document (via `this`). + var doc = this.ownerDocument || this.document || this, + dataHolder = document.documentMode ? this : doc, + attaches = dataPriv.get( dataHolder, delegateType ); + + // Support: IE 9 - 11+ + // We use the same native handler for focusin & focus (and focusout & blur) + // so we need to coordinate setup & teardown parts between those events. + // Use `delegateType` as the key as `type` is already used by `leverageNative`. + if ( !attaches ) { + if ( document.documentMode ) { + this.addEventListener( delegateType, focusMappedHandler ); + } else { + doc.addEventListener( type, focusMappedHandler, true ); + } + } + dataPriv.set( dataHolder, delegateType, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this.document || this, + dataHolder = document.documentMode ? this : doc, + attaches = dataPriv.get( dataHolder, delegateType ) - 1; + + if ( !attaches ) { + if ( document.documentMode ) { + this.removeEventListener( delegateType, focusMappedHandler ); + } else { + doc.removeEventListener( type, focusMappedHandler, true ); + } + dataPriv.remove( dataHolder, delegateType ); + } else { + dataPriv.set( dataHolder, delegateType, attaches ); + } + } + }; +} ); + // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. // Do the same for pointerenter/pointerleave and pointerover/pointerout // // Support: Safari 7 only // Safari sends mouseenter too often; see: -// https://code.google.com/p/chromium/issues/detail?id=470258 +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 // for the description of the bug (it existed in older Chrome versions as well). jQuery.each( { mouseenter: "mouseover", @@ -5646,171 +5730,6 @@ }; } ); -// IE submit delegation -if ( !support.submit ) { - - jQuery.event.special.submit = { - setup: function() { - - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? - - // Support: IE <=8 - // We use jQuery.prop instead of elem.form - // to allow fixing the IE8 delegated submit issue (gh-2332) - // by 3rd party polyfills/workarounds. - jQuery.prop( elem, "form" ) : - undefined; - - if ( form && !jQuery._data( form, "submit" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submitBubble = true; - } ); - jQuery._data( form, "submit", true ); - } - } ); - - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - - // If form was submitted by the user, bubble the event up the tree - if ( event._submitBubble ) { - delete event._submitBubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event ); - } - } - }, - - teardown: function() { - - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !support.change ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._justChanged = true; - } - } ); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._justChanged && !event.isTrigger ) { - this._justChanged = false; - } - - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event ); - } ); - } - return false; - } - - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "change" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event ); - } - } ); - jQuery._data( elem, "change", true ); - } - } ); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || - ( elem.type !== "radio" && elem.type !== "checkbox" ) ) { - - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Support: Firefox -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome, Safari -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = jQuery._data( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = jQuery._data( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - jQuery._removeData( doc, fix ); - } else { - jQuery._data( doc, fix, attaches ); - } - } - }; - } ); -} - jQuery.fn.extend( { on: function( types, selector, data, fn ) { @@ -5854,154 +5773,89 @@ return this.each( function() { jQuery.event.remove( this, types, fn, selector ); } ); - }, - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } } } ); -var rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp( "<(?:" + nodeNames + ")[\\s/>]", "i" ), - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi, +var - // Support: IE 10-11, Edge 10240+ + // Support: IE <=10 - 11, Edge 12 - 13 only // In IE/Edge using regex groups here causes severe slowdowns. // See https://connect.microsoft.com/IE/feedback/details/1736512/ rnoInnerhtml = /\s*$/g, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement( "div" ) ); -// Support: IE<8 -// Manipulating tables requires a tbody + rcleanScript = /^\s*\s*$/g; + +// Prefer a tbody over its parent table for containing new rows function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; + } - elem.getElementsByTagName( "tbody" )[ 0 ] || - elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) : - elem; + return elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { - elem.type = ( jQuery.find.attr( elem, "type" ) !== null ) + "/" + elem.type; + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; } function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[ 1 ]; + if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { + elem.type = elem.type.slice( 5 ); } else { elem.removeAttribute( "type" ); } + return elem; } function cloneCopyEvent( src, dest ) { - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } + var i, l, type, pdataOld, udataOld, udataCur, events; - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } - nodeName = dest.nodeName.toLowerCase(); + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.get( src ); + events = pdataOld.events; - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); + if ( events ) { + dataPriv.remove( dest, "handle events" ); - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); } - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( support.html5Clone && ( src.innerHTML && !jQuery.trim( dest.innerHTML ) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); - dest.defaultChecked = dest.checked = src.checked; + dataUser.set( dest, udataCur ); + } +} - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields + // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } @@ -6010,23 +5864,22 @@ function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays - args = concat.apply( [], args ); + args = flat( args ); - var first, node, hasScripts, - scripts, doc, fragment, + var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[ 0 ], - isFunction = jQuery.isFunction( value ); + valueIsFunction = isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || + if ( valueIsFunction || ( l > 1 && typeof value === "string" && !support.checkClone && rchecked.test( value ) ) ) { return collection.each( function( index ) { var self = collection.eq( index ); - if ( isFunction ) { + if ( valueIsFunction ) { args[ 0 ] = value.call( this, index, self.html() ); } domManip( self, args, callback, ignored ); @@ -6048,7 +5901,7 @@ // Use the original fragment for the last item // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). + // being emptied incorrectly in certain situations (trac-8070). for ( ; i < l; i++ ) { node = fragment; @@ -6058,7 +5911,7 @@ // Keep references to cloned scripts for later restoration if ( hasScripts ) { - // Support: Android<4.1, PhantomJS<2 + // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( scripts, getAll( node, "script" ) ); } @@ -6070,34 +5923,36 @@ if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; - // Reenable scripts + // Re-enable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && + !dataPriv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - if ( node.src ) { + if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); + if ( jQuery._evalUrl && !node.noModule ) { + jQuery._evalUrl( node.src, { + nonce: node.nonce || node.getAttribute( "nonce" ) + }, doc ); } } else { - jQuery.globalEval( - ( node.text || node.textContent || node.innerHTML || "" ) - .replace( rcleanScript, "" ) - ); + + // Unwrap a CDATA section containing script contents. This shouldn't be + // needed as in XML documents they're already not visible when + // inspecting element contents and in HTML documents they have no + // meaning but we're preserving that logic for backwards compatibility. + // This will be removed completely in 4.0. See gh-4904. + DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); } } } } - - // Fix #11809: Avoid leaking memory - fragment = first = null; } } @@ -6106,17 +5961,16 @@ function remove( elem, selector, keepData ) { var node, - elems = selector ? jQuery.filter( selector, elem ) : elem, + nodes = selector ? jQuery.filter( selector, elem ) : elem, i = 0; - for ( ; ( node = elems[ i ] ) != null; i++ ) { - + for ( ; ( node = nodes[ i ] ) != null; i++ ) { if ( !keepData && node.nodeType === 1 ) { jQuery.cleanData( getAll( node ) ); } if ( node.parentNode ) { - if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { + if ( keepData && isAttached( node ) ) { setGlobalEval( getAll( node, "script" ) ); } node.parentNode.removeChild( node ); @@ -6128,38 +5982,25 @@ jQuery.extend( { htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); + return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( support.html5Clone || jQuery.isXMLDoc( elem ) || - !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = isAttached( elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( ( !support.noCloneEvent || !support.noCloneChecked ) && - ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + // We eschew jQuery#find here for performance reasons: + // https://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); - // Fix all IE cloning issues - for ( i = 0; ( node = srcElements[ i ] ) != null; ++i ) { - - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[ i ] ) { - fixCloneNodeIssues( node, destElements[ i ] ); - } + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); } } @@ -6169,8 +6010,8 @@ srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); - for ( i = 0; ( node = srcElements[ i ] ) != null; i++ ) { - cloneCopyEvent( node, destElements[ i ] ); + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); } } else { cloneCopyEvent( elem, clone ); @@ -6183,27 +6024,18 @@ setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } - destElements = srcElements = node = null; - // Return the cloned set return clone; }, - cleanData: function( elems, /* internal */ forceAcceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - attributes = support.attributes, - special = jQuery.event.special; - - for ( ; ( elem = elems[ i ] ) != null; i++ ) { - if ( forceAcceptData || acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; - if ( data ) { + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { @@ -6216,27 +6048,15 @@ } } - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // Support: IE<9 - // IE does not allow us to delete expando properties from nodes - // IE creates expando attributes along with the property - // IE does not have a removeAttribute function on Document nodes - if ( !attributes && typeof elem.removeAttribute !== "undefined" ) { - elem.removeAttribute( internalKey ); - - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://code.google.com/p/chromium/issues/detail?id=378607 - } else { - elem[ internalKey ] = undefined; - } - - deletedIds.push( id ); - } + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; } } } @@ -6244,10 +6064,6 @@ } ); jQuery.fn.extend( { - - // Keep domManip exposed until 3.0 (gh-2225) - domManip: domManip, - detach: function( selector ) { return remove( this, selector, true ); }, @@ -6260,9 +6076,11 @@ return access( this, function( value ) { return value === undefined ? jQuery.text( this ) : - this.empty().append( - ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) - ); + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); }, null, value, arguments.length ); }, @@ -6305,21 +6123,13 @@ i = 0; for ( ; ( elem = this[ i ] ) != null; i++ ) { - - // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; + // Remove any remaining nodes + elem.textContent = ""; } } @@ -6341,25 +6151,21 @@ i = 0, l = this.length; - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { value = jQuery.htmlPrefilter( value ); try { for ( ; i < l; i++ ) { + elem = this[ i ] || {}; // Remove element nodes and prevent memory leaks - elem = this[ i ] || {}; if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; @@ -6406,92 +6212,43 @@ }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, - i = 0, ret = [], insert = jQuery( selector ), - last = insert.length - 1; + last = insert.length - 1, + i = 0; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone( true ); jQuery( insert[ i ] )[ original ]( elems ); - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; } ); +var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); +var rcustomProp = /^--/; -var iframe, - elemdisplay = { - - // Support: Firefox - // We have to pre-define these values for FF (#10227) - HTML: "block", - BODY: "block" - }; - -/** - * Retrieve the actual display of a element - * @param {String} name nodeName of the element - * @param {Object} doc Document object - */ - -// Called only from within defaultDisplay -function actualDisplay( name, doc ) { - var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), - - display = jQuery.css( elem[ 0 ], "display" ); - - // We don't have any data stored on the element, - // so use "detach" method as fast way to get rid of the element - elem.detach(); - - return display; -} - -/** - * Try to determine the default display value of an element - * @param {String} nodeName - */ -function defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - - // Use the already-created iframe if possible - iframe = ( iframe || jQuery( "