Accept flex > 2.5.x on Windows, too.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Dec 2015 15:19:13 +0000 (10:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Dec 2015 15:19:13 +0000 (10:19 -0500)
Commit 32f15d05c fixed this in configure, but missed the similar check
in the MSVC scripts.

Michael Paquier, per report from Victor Wagner

src/tools/msvc/pgflex.pl

index c5b90adb81daf99fdcfe1a53eae8414d9936f410..0410e3aa02b036d99d30537bf029374e9333dc1b 100644 (file)
@@ -16,7 +16,8 @@ my ($flexver) = `flex -V`;    # grab first line
 $flexver = (split(/\s+/, $flexver))[1];
 $flexver =~ s/[^0-9.]//g;
 my @verparts = split(/\./, $flexver);
-unless ($verparts[0] == 2 && $verparts[1] == 5 && $verparts[2] >= 31)
+unless ($verparts[0] == 2 &&
+       ($verparts[1] > 5 || ($verparts[1] == 5 && $verparts[2] >= 31)))
 {
    print "WARNING! Flex install not found, or unsupported Flex version.\n";
    print "echo Attempting to build without.\n";