diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-11-30 13:49:44 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-30 22:22:05 +0000 |
commit | 4592af4c89d52c5982f49bf4004a71d27b1296ac (patch) | |
tree | 09aa4b580face71650eb6d50566d5138f7c34fe2 /meta/classes | |
parent | 37f98f590d45333b03ecc7062ac07ee1b3fdf5b4 (diff) | |
download | poky-4592af4c89d52c5982f49bf4004a71d27b1296ac.tar.gz |
autotools.bbclass: Report the missing configure path
If the configure script isn't found, report the explicit path tried.
This can help debug subtle errors where the ${S} sourcedir may not
be exactly what is expected.
(From OE-Core rev: 8cdee4c9b8ffcba69134258eff72eede61acd12f)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/autotools.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 37e7d4b482..7536bac396 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -70,11 +70,12 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking" | |||
70 | 70 | ||
71 | 71 | ||
72 | oe_runconf () { | 72 | oe_runconf () { |
73 | if [ -x ${S}/configure ] ; then | 73 | cfgscript="${S}/configure" |
74 | bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" | 74 | if [ -x "$cfgscript" ] ; then |
75 | ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" | 75 | bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" |
76 | $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" | ||
76 | else | 77 | else |
77 | bbfatal "no configure script found" | 78 | bbfatal "no configure script found at $cfgscript" |
78 | fi | 79 | fi |
79 | } | 80 | } |
80 | 81 | ||