From 384c880cc67fef92599a47ffab45af0c4c8f78f6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 28 Feb 2021 19:54:12 +0000 Subject: Warn users of old compiler versions about the upcoming version bump. --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure') diff --git a/configure b/configure index a980aee98..63256f87a 100755 --- a/configure +++ b/configure @@ -308,6 +308,20 @@ to Perl v5.26 or newer. EOW } +# Warn about compiler versions that will not be supported in the future. +my %future_compilers = ( + AppleClang => version->parse('10.0'), + Clang => version->parse('5.0'), + GCC => version->parse('7.0'), +); +if (exists $future_compilers{$compiler{NAME}} && $compiler{VERSION} lt $future_compilers{$compiler{NAME}}) { + print_warning <<"EOW"; +You are building InspIRCd with $compiler{NAME} v$compiler{VERSION}. This is very old and +will not be supported by the next major version of InspIRCd. Please consider +updating to $compiler{NAME} v$future_compilers{$compiler{NAME}} or newer. +EOW +} + # Check that the user actually wants this version. if (defined $version{REAL_LABEL}) { print_warning <<'EOW'; -- cgit v1.2.3