File tree 2 files changed +24
-3
lines changed
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/config/perl.m4,v 1.3 2003 /11/29 19:51:17 pgsql Exp $
1
+ # $PostgreSQL: pgsql/config/perl.m4,v 1.4 2008 /11/12 00:00:05 adunstan Exp $
2
2
3
3
4
4
# PGAC_PATH_PERL
@@ -32,4 +32,12 @@ pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
32
32
pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
33
33
perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
34
34
AC_SUBST ( perl_embed_ldflags ) dnl
35
- AC_MSG_RESULT ( [ $perl_embed_ldflags] ) ] )
35
+ if test -z "$perl_embed_ldflags" ; then
36
+ AC_MSG_RESULT ( no )
37
+ AC_MSG_ERROR ( [ could not determine flags for linking embedded Perl.
38
+ This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
39
+ installed.] )
40
+ else
41
+ AC_MSG_RESULT ( [ $perl_embed_ldflags] )
42
+ fi
43
+ ] ) # PGAC_CHECK_PERL_EMBED_LDFLAGS
Original file line number Diff line number Diff line change @@ -6420,10 +6420,23 @@ echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420
6420
pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6421
6421
pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422
6422
perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6423
- { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6423
+ if test -z "$perl_embed_ldflags" ; then
6424
+ { echo "$as_me:$LINENO: result: no" >&5
6425
+ echo "${ECHO_T}no" >&6; }
6426
+ { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6427
+ This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6428
+ installed." >&5
6429
+ echo "$as_me: error: could not determine flags for linking embedded Perl.
6430
+ This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6431
+ installed." >&2;}
6432
+ { (exit 1); exit 1; }; }
6433
+ else
6434
+ { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6424
6435
echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6425
6436
fi
6426
6437
6438
+ fi
6439
+
6427
6440
if test "$with_python" = yes; then
6428
6441
# Extract the first word of "python", so it can be a program name with args.
6429
6442
set dummy python; ac_word=$2
You can’t perform that action at this time.
0 commit comments