summaryrefslogtreecommitdiff
path: root/recipes/libtool/libtool.inc
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-09-17 22:28:27 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-09-17 22:28:27 +0000
commit698ae87ee44a2fa5bd427bf15052d17e43d6d311 (patch)
treedcc0321905c5e1991af277cd24124423ae419b62 /recipes/libtool/libtool.inc
parent5a790b1f8eaf649d9000f8834967870de5129286 (diff)
libtool: Use more clean way to set ac_cv_path_* variables. Never load libtool.inc twice.
Diffstat (limited to 'recipes/libtool/libtool.inc')
-rw-r--r--recipes/libtool/libtool.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes/libtool/libtool.inc b/recipes/libtool/libtool.inc
index 9cc74010c6..838f029236 100644
--- a/recipes/libtool/libtool.inc
+++ b/recipes/libtool/libtool.inc
@@ -6,6 +6,16 @@ HOMEPAGE = "http://www.gnu.org/software/libtool/libtool.html"
LICENSE = "GPL"
SECTION = "devel"
-INC_PR = "r24"
+INC_PR = "r25"
FILESPATHPKG=. "libtool-${PV}:"
+
+do_configure_prepend () {
+ if ${@['true', 'false'][bb.data.inherits_class('native', d) or bb.data.inherits_class('sdk', d) or (bb.data.getVar('PN', d, 1) == 'libtool-cross')]}
+ then
+ export ac_cv_path_SED="${ac_cv_path_SED=${base_bindir}/sed}"
+ export ac_cv_path_GREP="${ac_cv_path_GREP=${base_bindir}/grep}"
+ export ac_cv_path_EGREP="${ac_cv_path_EGREP=${base_bindir}/grep -E}"
+ export ac_cv_path_FGREP="${ac_cv_path_FGREP=${base_bindir}/grep -F}"
+ fi
+}