diff options
author | Guillem Jover <guillem@debian.org> | 2011-07-30 18:27:39 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-07-30 18:44:55 +0200 |
commit | 99b890c2eb6bfe955d85aedd40841366826c2f73 (patch) | |
tree | 557602f12fe3ca0ef100ce1e57b7e3ae42bca42c /m4 | |
parent | c90b620cd8c2836a3f5058dfa1527f9d7b5cf46e (diff) | |
download | dpkg-99b890c2eb6bfe955d85aedd40841366826c2f73.tar.gz |
build: Use the detected perl to invoke dpkg-architecture.pl
This will help building dpkg on systems where perl is not at
/usr/bin/perl, which we were already taking into consideration for the
resulting scripts but not during build.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dpkg-arch.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/dpkg-arch.m4 b/m4/dpkg-arch.m4 index ddeeae0fc..b94a883b9 100644 --- a/m4/dpkg-arch.m4 +++ b/m4/dpkg-arch.m4 @@ -6,9 +6,10 @@ # Use dpkg-architecture from the source tree to set sh_var using DEB_VAR for # the target architecture, to avoid duplicating its logic. AC_DEFUN([_DPKG_ARCHITECTURE], [ +AC_REQUIRE([DPKG_PROG_PERL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl $2=$(cd $srcdir/scripts; \ - PERL5LIB=$(pwd) ./dpkg-architecture.pl -t$host -q$1 2>/dev/null) + PERL5LIB=$(pwd) $PERL dpkg-architecture.pl -t$host -q$1 2>/dev/null) ])# _DPKG_ARCHITECURE # DPKG_CPU_TYPE |