summaryrefslogtreecommitdiff
path: root/config/programs.m4
diff options
context:
space:
mode:
authorTom Lane2016-05-02 15:18:10 +0000
committerTom Lane2016-05-02 15:18:10 +0000
commit7d7b129277eb545286aecf29ec22b5bb7fdf46bd (patch)
tree2932e547e7c688c3e0663e09a21f92cdda7232d1 /config/programs.m4
parent37d0c2cb1ab2d3da0cb9a6388450776fc31c16ee (diff)
Fix configure's incorrect version tests for flex and perl.
awk's equality-comparison operator is "==" not "=". We got this right in many places, but not in configure's checks for supported version numbers of flex and perl. It hadn't been noticed because unsupported versions are so old as to be basically extinct in the wild, and because the only consequence is whether or not a WARNING flies by during configure. Daniel Gustafsson noted the problem with respect to the test for flex, I found the other by reviewing other awk calls.
Diffstat (limited to 'config/programs.m4')
-rw-r--r--config/programs.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/programs.m4 b/config/programs.m4
index 87f63b6d10c..5fa03c37395 100644
--- a/config/programs.m4
+++ b/config/programs.m4
@@ -77,7 +77,7 @@ else
echo '%%' > conftest.l
if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
- if echo "$pgac_flex_version" | sed ['s/[.a-z]/ /g'] | $AWK '{ if ([$]1 = 2 && ([$]2 > 5 || ([$]2 = 5 && [$]3 >= 31))) exit 0; else exit 1;}'
+ if echo "$pgac_flex_version" | sed ['s/[.a-z]/ /g'] | $AWK '{ if ([$]1 == 2 && ([$]2 > 5 || ([$]2 == 5 && [$]3 >= 31))) exit 0; else exit 1;}'
then
pgac_cv_path_flex=$pgac_candidate
break 2