]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: Report the missing configure path
authorDarren Hart <dvhart@linux.intel.com>
Wed, 30 Nov 2011 21:49:44 +0000 (13:49 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Nov 2011 22:20:49 +0000 (22:20 +0000)
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.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index 37e7d4b482b6bcc3d6a27a4f05817845e2e2f356..7536bac3963421f5825ee93f14deedd57fa3b43e 100644 (file)
@@ -70,11 +70,12 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking"
 
 
 oe_runconf () {
-       if [ -x ${S}/configure ] ; then
-               bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-               ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
+       cfgscript="${S}/configure"
+       if [ -x "$cfgscript" ] ; then
+               bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
+               $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
        else
-               bbfatal "no configure script found"
+               bbfatal "no configure script found at $cfgscript"
        fi
 }