[oe-commits] Tom Rini : autoconf.inc: Use 'which' to find m4
git version control
git at git.openembedded.org
Thu Nov 18 15:28:44 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8da17586c547f365ae667eb2608ba89a1c375afc
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8da17586c547f365ae667eb2608ba89a1c375afc
Author: Tom Rini <tom_rini at mentor.com>
Date: Thu Nov 18 07:01:56 2010 -0700
autoconf.inc: Use 'which' to find m4
We need to make sure that if m4-native is built, it's used here
as there are hosts that otherwise have too old of an m4. When
@M4@ is replaced here it's not used in conjunction with #! so this
is safe.
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
recipes/autoconf/autoconf.inc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/recipes/autoconf/autoconf.inc b/recipes/autoconf/autoconf.inc
index 79a8108..ca6504f 100644
--- a/recipes/autoconf/autoconf.inc
+++ b/recipes/autoconf/autoconf.inc
@@ -21,8 +21,9 @@ SUBDIRS = "bin . lib"
do_configure_prepend () {
if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
then
+ M4=`which m4`
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_path_M4="${ac_cv_path_M4=${M4}}"
export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}"
fi
}
More information about the Openembedded-commits
mailing list