summaryrefslogtreecommitdiff
path: root/recipes/autoconf/autoconf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/autoconf/autoconf.inc')
-rw-r--r--recipes/autoconf/autoconf.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes/autoconf/autoconf.inc b/recipes/autoconf/autoconf.inc
index 7761af06d7..2fa12751a1 100644
--- a/recipes/autoconf/autoconf.inc
+++ b/recipes/autoconf/autoconf.inc
@@ -4,9 +4,19 @@ LICENSE = "GPL"
HOMEPAGE = "http://www.gnu.org/software/autoconf/"
SECTION = "devel"
DEPENDS += "m4-native"
-RDEPENDS_${PN} = "m4 gnu-config"
+RDEPENDS_${PN} = "m4 perl gnu-config"
+INC_PR = "r8"
SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \
file://program_prefix.patch;patch=1"
inherit autotools
+
+do_configure_prepend () {
+ if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
+ then
+ export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
+ export ac_cv_path_M4="${ac_cv_path_M4=${bindir}/m4}"
+ export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}"
+ fi
+}