Skip to content
Snippets Groups Projects
Commit dc43e2f5 authored by Tom Lane's avatar Tom Lane
Browse files

Fix configure's regexp for extracting the Perl version number from perl -v

output.  Per bug #5339, Perl 5.11 has changed the format of that output
enough to break the previous coding.

Alex Hunsaker
parent 1bc8acca
No related branches found
No related tags found
No related merge requests found
# $PostgreSQL: pgsql/config/perl.m4,v 1.8 2010/02/22 21:16:50 momjian Exp $ # $PostgreSQL: pgsql/config/perl.m4,v 1.9 2010/02/23 18:35:06 tgl Exp $
# PGAC_PATH_PERL # PGAC_PATH_PERL
...@@ -10,7 +10,7 @@ if test -z "$PERL"; then ...@@ -10,7 +10,7 @@ if test -z "$PERL"; then
fi fi
if test "$PERL"; then if test "$PERL"; then
pgac_perl_version=`$PERL -v 2>/dev/null | sed -n ['s/This is perl, v[a-z ]*//p'] | sed ['s/ .*//']` pgac_perl_version=`$PERL -v 2>/dev/null | sed -n ['s/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p']`
AC_MSG_NOTICE([using perl $pgac_perl_version]) AC_MSG_NOTICE([using perl $pgac_perl_version])
if echo "$pgac_perl_version" | sed ['s/[.a-z_]/ /g'] | \ if echo "$pgac_perl_version" | sed ['s/[.a-z_]/ /g'] | \
$AWK '{ if ([$]1 = 5 && [$]2 >= 8) exit 1; else exit 0;}' $AWK '{ if ([$]1 = 5 && [$]2 >= 8) exit 1; else exit 0;}'
......
...@@ -6867,7 +6867,7 @@ fi ...@@ -6867,7 +6867,7 @@ fi
fi fi
   
if test "$PERL"; then if test "$PERL"; then
pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl, v[a-z ]*//p' | sed 's/ .*//'` pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
{ $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
$as_echo "$as_me: using perl $pgac_perl_version" >&6;} $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \ if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment