The following commit has been merged in the master branch:
commit 2e1fc0e63d20f1bf125fabb0a0f1f57316d9a80e
Author: Guillem Jover <[email protected]>
Date:   Thu Sep 29 04:54:16 2011 +0200

    build: Abort if the perl interpreter is not found or usable
    
    The build system requires a perl interpreter to retrieve its library
    directory path and to execute dpkg-architecture.pl.

diff --git a/m4/dpkg-progs.m4 b/m4/dpkg-progs.m4
index c71a412..616a783 100644
--- a/m4/dpkg-progs.m4
+++ b/m4/dpkg-progs.m4
@@ -1,13 +1,16 @@
 # Copyright © 2005 Scott James Remnant <[email protected]>
 # Copyright © 2007 Frank Lichtenheld <[email protected]>
-# Copyright © 2007, 2009 Guillem Jover <[email protected]>
+# Copyright © 2007, 2009, 2011 Guillem Jover <[email protected]>
 
 # DPKG_PROG_PERL
 # --------------
 # Locate perl interpreter in the path
 AC_DEFUN([DPKG_PROG_PERL],
 [AC_ARG_VAR([PERL], [Perl interpreter])dnl
-AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])dnl
+AC_PATH_PROG([PERL], [perl], [no])
+if test "$PERL" = "no" || test ! -x "$PERL"; then
+  AC_MSG_ERROR([cannot find the Perl interpreter])
+fi
 AC_ARG_VAR([PERL_LIBDIR], [Perl library directory])dnl
 PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
                                  $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to