diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2008-11-12 00:00:05 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2008-11-12 00:00:05 +0000 |
commit | 466368b8d00cf4a8d54270c3d12149d81badd1ab (patch) | |
tree | 1c778b38e0bf601b315edbef1217c9b1e6376531 /config/perl.m4 | |
parent | bd059c2d1d961275da4588de6c4842e109ce230a (diff) | |
download | postgresql-466368b8d00cf4a8d54270c3d12149d81badd1ab.tar.gz |
Detect and error out on inability to get proper linkage information required for plperl, usually due to absence of perl ExtUtils::Embed module. Backpatch as far as 8.1.
Diffstat (limited to 'config/perl.m4')
-rw-r--r-- | config/perl.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/perl.m4 b/config/perl.m4 index 55c34574eb..6ca8b524fa 100644 --- a/config/perl.m4 +++ b/config/perl.m4 @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/config/perl.m4,v 1.3 2003/11/29 19:51:17 pgsql Exp $ +# $PostgreSQL: pgsql/config/perl.m4,v 1.4 2008/11/12 00:00:05 adunstan Exp $ # PGAC_PATH_PERL @@ -32,4 +32,12 @@ pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"` AC_SUBST(perl_embed_ldflags)dnl -AC_MSG_RESULT([$perl_embed_ldflags])]) +if test -z "$perl_embed_ldflags" ; then + AC_MSG_RESULT(no) + AC_MSG_ERROR([could not determine flags for linking embedded Perl. +This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not +installed.]) +else + AC_MSG_RESULT([$perl_embed_ldflags]) +fi +])# PGAC_CHECK_PERL_EMBED_LDFLAGS |