diff --git a/config.h.win32 b/config.h.win32 index db7cd12f2f..97f3fd40da 100644 --- a/config.h.win32 +++ b/config.h.win32 @@ -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) diff --git a/win32utils/Configure b/win32utils/Configure index 8fb75b529b..aaaf087185 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -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 {