Accept flex > 2.5.x on Windows, too.
authorTom Lane <[email protected]>
Thu, 10 Dec 2015 15:19:13 +0000 (10:19 -0500)
committerTom Lane <[email protected]>
Thu, 10 Dec 2015 15:19:31 +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 259f2187ed38acbf009d400237a523cfb0060b60..50c5eb014e03119d70f845043f518f0afee314a4 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";