diff options
-rw-r--r-- | meta/recipes-devtools/autoconf/autoconf.inc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf.inc b/meta/recipes-devtools/autoconf/autoconf.inc index 8b00fbddf5..78b77e8c98 100644 --- a/meta/recipes-devtools/autoconf/autoconf.inc +++ b/meta/recipes-devtools/autoconf/autoconf.inc | |||
@@ -32,20 +32,12 @@ SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ | |||
32 | 32 | ||
33 | inherit autotools texinfo | 33 | inherit autotools texinfo |
34 | 34 | ||
35 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL=${USRBINPATH}/perl" | ||
36 | |||
35 | do_configure() { | 37 | do_configure() { |
36 | oe_runconf | 38 | oe_runconf |
37 | } | 39 | } |
38 | 40 | ||
39 | do_install_append() { | 41 | do_install_append() { |
40 | rm -rf ${D}${datadir}/emacs | 42 | rm -rf ${D}${datadir}/emacs |
41 | 43 | } | |
42 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
43 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
44 | for i in autoheader autom4te autoreconf autoscan autoupdate ifnames; do | ||
45 | if [ -f ${D}${bindir}/$i ]; then | ||
46 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \ | ||
47 | -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \ | ||
48 | ${D}${bindir}/$i | ||
49 | fi | ||
50 | done | ||
51 | } | ||