Commit 84f95ddb authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

Update win32 configure for --enable-querytrace (#37520)

Also enable querytrace when --enable-developer is specified.
parent 0ea9f803
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
[RT #38056] [RT #38056]
4072. [func] Add a --enable-querytrace configure switch for 4072. [func] Add a --enable-querytrace configure switch for
very verbose query tracelogging. [RT #37520] very verbose query tracelogging. (This option
has a negative performance impact and should be
used only for debugging.) [RT #37520]
4071. [cleanup] Initialize pthread mutex attrs just once, instead of 4071. [cleanup] Initialize pthread mutex attrs just once, instead of
doing it per mutex creation. [RT #38547] doing it per mutex creation. [RT #38547]
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: config.h.win32,v 1.28 2011/10/30 23:39:39 marka Exp $ */
/* /*
* win32 configuration file * win32 configuration file
* All definitions, declarations, macros and includes are * All definitions, declarations, macros and includes are
...@@ -396,6 +394,9 @@ typedef __int64 off_t; ...@@ -396,6 +394,9 @@ typedef __int64 off_t;
/* Large system tuning */ /* Large system tuning */
@TUNE_LARGE@ @TUNE_LARGE@
/* Verbose query trace logging */
@WANT_QUERYTRACE@
/* /*
* Define to nothing if C supports flexible array members, and to 1 if it does * Define to nothing if C supports flexible array members, and to 1 if it does
* not. That way, with a declaration like `struct s { int n; double * not. That way, with a declaration like `struct s { int n; double
......
...@@ -11436,6 +11436,7 @@ case "$enable_developer" in ...@@ -11436,6 +11436,7 @@ case "$enable_developer" in
yes) yes)
STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1" STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1"
test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
test "${enable_querytrace+set}" = set || enable_querytrace=yes
test "${with_atf+set}" = set || with_atf=yes test "${with_atf+set}" = set || with_atf=yes
test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes
test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
......
...@@ -86,6 +86,7 @@ case "$enable_developer" in ...@@ -86,6 +86,7 @@ case "$enable_developer" in
yes) yes)
STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1" STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1"
test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
test "${enable_querytrace+set}" = set || enable_querytrace=yes
test "${with_atf+set}" = set || with_atf=yes test "${with_atf+set}" = set || with_atf=yes
test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes
test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
......
...@@ -327,6 +327,15 @@ ...@@ -327,6 +327,15 @@
easier-to-read comments. [RT #38458] easier-to-read comments. [RT #38458]
</para> </para>
</listitem> </listitem>
<listitem>
<para>
An <command>--enable-querytrace</command> configure switch is
now available to enable very verbose query tracelogging. This
option can only be set at compile time. This option has a
negative performance impact and should be used only for
debugging.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</sect2> </sect2>
<sect2 id="relnotes_changes"> <sect2 id="relnotes_changes">
......
...@@ -375,6 +375,7 @@ my @substdefh = ("AES_SIT", ...@@ -375,6 +375,7 @@ my @substdefh = ("AES_SIT",
"ISC_LIST_CHECKINIT", "ISC_LIST_CHECKINIT",
"PREFER_GOSTASN1", "PREFER_GOSTASN1",
"TUNE_LARGE", "TUNE_LARGE",
"WANT_QUERYTRACE",
"WITH_IDN"); "WITH_IDN");
# for platform.h # for platform.h
...@@ -488,6 +489,7 @@ my @enablelist = ("developer", ...@@ -488,6 +489,7 @@ my @enablelist = ("developer",
"native-pkcs11", "native-pkcs11",
"openssl-hash", "openssl-hash",
"filter-aaaa", "filter-aaaa",
"querytrace",
"rpz-nsdname", "rpz-nsdname",
"rpz-nsip", "rpz-nsip",
"sit"); "sit");
...@@ -545,6 +547,7 @@ my @help = ( ...@@ -545,6 +547,7 @@ my @help = (
" enable-filter-aaaa enable filtering of AAAA records [default=no]\n", " enable-filter-aaaa enable filtering of AAAA records [default=no]\n",
" enable-fixed-rrset enable fixed rrset ordering [default=no]\n", " enable-fixed-rrset enable fixed rrset ordering [default=no]\n",
" enable-developer enable developer build settings [default=no]\n", " enable-developer enable developer build settings [default=no]\n",
" enable-querytrace enable very verbose query trace [default=no]\n",
" enable-rpz-nsip enable rpz-nsip rules [default=yes]\n", " enable-rpz-nsip enable rpz-nsip rules [default=yes]\n",
" enable-rpz-nsdname enable rpz-nsdname rules [default=yes]\n", " enable-rpz-nsdname enable rpz-nsdname rules [default=yes]\n",
" enable-sit enable source identity token [default=yes]\n", " enable-sit enable source identity token [default=yes]\n",
...@@ -586,6 +589,7 @@ my $enable_filter_aaaa = "no"; ...@@ -586,6 +589,7 @@ my $enable_filter_aaaa = "no";
my $enable_isc_spnego = "yes"; my $enable_isc_spnego = "yes";
my $enable_fixed_rrset = "no"; my $enable_fixed_rrset = "no";
my $enable_developer = "no"; my $enable_developer = "no";
my $enable_querytrace = "no";
my $enable_rpz_nsip = "yes"; my $enable_rpz_nsip = "yes";
my $enable_rpz_nsdname = "yes"; my $enable_rpz_nsdname = "yes";
my $enable_sit = "yes"; my $enable_sit = "yes";
...@@ -744,6 +748,10 @@ sub myenable { ...@@ -744,6 +748,10 @@ sub myenable {
if ($val =~ /^yes$/i) { if ($val =~ /^yes$/i) {
$enable_developer = "yes"; $enable_developer = "yes";
} }
} elsif ($key =~ /^querytrace$/i) {
if ($val =~ /^yes$/i) {
$enable_querytrace = "yes";
}
} elsif ($key =~ /^rpz-nsip$/i) { } elsif ($key =~ /^rpz-nsip$/i) {
if ($val =~ /^no$/i) { if ($val =~ /^no$/i) {
$enable_rpz_nsip = "no"; $enable_rpz_nsip = "no";
...@@ -771,6 +779,7 @@ sub myenable { ...@@ -771,6 +779,7 @@ sub myenable {
if ($enable_developer eq "yes") { if ($enable_developer eq "yes") {
$configdefh{"ISC_LIST_CHECKINIT"} = 1; $configdefh{"ISC_LIST_CHECKINIT"} = 1;
$enable_filter_aaaa = "yes"; $enable_filter_aaaa = "yes";
$enable_querytrace = "yes";
# no atf on WIN32 # no atf on WIN32
$enable_fixed_rrset = "yes"; $enable_fixed_rrset = "yes";
# TODO: dlz filesystem # TODO: dlz filesystem
...@@ -1001,6 +1010,11 @@ if ($verbose) { ...@@ -1001,6 +1010,11 @@ if ($verbose) {
} else { } else {
print "developer: disabled\n"; print "developer: disabled\n";
} }
if ($enable_querytrace eq "yes") {
print "querytrace: enabled\n";
} else {
print "querytrace: disabled\n";
}
if ($enable_rpz_nsip eq "yes") { if ($enable_rpz_nsip eq "yes") {
print "rpz-nsip: enabled\n"; print "rpz-nsip: enabled\n";
} else { } else {
...@@ -1365,6 +1379,11 @@ if ($enable_rpz_nsip ne "no") { ...@@ -1365,6 +1379,11 @@ if ($enable_rpz_nsip ne "no") {
$configdefh{"ENABLE_RPZ_NSIP"} = 1; $configdefh{"ENABLE_RPZ_NSIP"} = 1;
} }
# enable-querytrace
if ($enable_querytrace eq "yes") {
$configdefh{"WANT_QUERYTRACE"} = 1;
}
# enable-rpz-nsdname # enable-rpz-nsdname
if ($enable_rpz_nsdname ne "no") { if ($enable_rpz_nsdname ne "no") {
$configdefh{"ENABLE_RPZ_NSDNAME"} = 1; $configdefh{"ENABLE_RPZ_NSDNAME"} = 1;
...@@ -2942,6 +2961,7 @@ exit 0; ...@@ -2942,6 +2961,7 @@ exit 0;
# --enable-atomic supported (renamed to intrinsic) # --enable-atomic supported (renamed to intrinsic)
# --enable-spnego support (part of GSSAPI) # --enable-spnego support (part of GSSAPI)
# --enable-fixed-rrset supported # --enable-fixed-rrset supported
# --enable-querytrace supported
# --disable-rpz-nsip supported # --disable-rpz-nsip supported
# --disable-rpz-nsdname supported # --disable-rpz-nsdname supported
# --enable-filter-aaaa supported # --enable-filter-aaaa supported
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment