2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

[master] add tuning option for win32

This commit is contained in:
Evan Hunt
2014-02-19 16:35:40 -08:00
parent 4357e13a4b
commit 98091cb21d
2 changed files with 17 additions and 1 deletions

View File

@@ -367,6 +367,9 @@ typedef __int64 off_t;
/* From enable developer */
@ISC_LIST_CHECKINIT@
/* Large system tuning */
@TUNE_LARGE@
/* Avoid warnings with strlen() */
#ifdef _WIN64
#define strlen(x) (unsigned int) strlen(x)

View File

@@ -334,7 +334,8 @@ my @substdefh = ("ALLOW_FILTER_AAAA",
"HAVE_READLINE",
"ISC_LIST_CHECKINIT",
"PREFER_GOSTASN1",
"WITH_IDN");
"WITH_IDN",
"TUNE_LARGE");
# for platform.h
@@ -464,6 +465,7 @@ my @withlist = ("cross-compile",
"python",
"readline",
"tests",
"tuning",
"vcredist");
# general arguments
@@ -514,6 +516,7 @@ my @help = (
" with-idn[=PATH] build with IDN kit support yes|no|path\n",
" with-iconv[=PATH] path of the iconv DLL [default=same than idn]\n",
" with-vcredist[=PATH] visual C++ redistributable package yes|path\n",
" with-tuning=OPTION tune for plaform size (large|default)\n",
" with-cross-compile 32 / 64 bit build / host plaforms\n");
# Parse arguments
@@ -560,6 +563,7 @@ my $iconv_path = " --idn-- ";
my $use_vcredist = "yes";
my $vcredist_path = " --infer-- ";
my $cross_compile = "no";
my $tuning = "default";
# no arguments -> usage
@@ -818,6 +822,10 @@ sub mywith {
if ($val =~ /^yes$/i) {
$cross_compile = "yes";
}
} elsif ($key =~ /^tuning$/i) {
if ($val =~ /^large$/i) {
$tuning = "large";
}
} else {
$want_unknown = "yes";
if ($val eq "no") {
@@ -2021,6 +2029,11 @@ if (!grep { -f and -x } $vcredist_path) {
$configvar{"VCREDIST_PATH"} = "$vcredist_path";
}
# tuning
if ($tuning eq "large") {
$configdefh{"TUNE_LARGE"} = 1;
}
# setup config.h with %configdefh
sub setupconfigh {