From: Tom Lane Date: Thu, 7 Jan 2010 03:24:57 +0000 (+0000) Subject: Fail in a nicer way if we have --with-perl and no Perl. X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=732ba4ef02c97b3c3234244d9e8c9fcc0ee0a3c6;p=users%2Fandresfreund%2Fpostgres.git Fail in a nicer way if we have --with-perl and no Perl. --- diff --git a/configure b/configure index 88689be1ed..0b34b6d73b 100755 --- a/configure +++ b/configure @@ -6897,6 +6897,11 @@ $as_echo "$as_me: WARNING: fi if test "$with_perl" = yes; then + if test -z "$PERL"; then + { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5 +$as_echo "$as_me: error: Perl not found" >&2;} + { (exit 1); exit 1; }; } + fi { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5 $as_echo_n "checking for Perl archlibexp... " >&6; } diff --git a/configure.in b/configure.in index 47581db418..0abf7a3477 100644 --- a/configure.in +++ b/configure.in @@ -825,6 +825,9 @@ PGAC_PATH_FLEX PGAC_PATH_PERL if test "$with_perl" = yes; then + if test -z "$PERL"; then + AC_MSG_ERROR([Perl not found]) + fi PGAC_CHECK_PERL_CONFIGS([archlibexp,privlibexp,useshrplib]) PGAC_CHECK_PERL_EMBED_LDFLAGS fi