From patchwork Fri Oct 5 09:51:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] classes/autotools-autoreconf: Allow owerwrite the autoreconf command From: Morten Svendsen X-Patchwork-Id: 189453 Message-Id: To: Date: Fri, 5 Oct 2012 11:51:34 +0200 Allows for recipes needing special auto tools command sequence --- classes/autotools-autoreconf.oeclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/classes/autotools-autoreconf.oeclass b/classes/autotools-autoreconf.oeclass index 825e8e4..6ff7469 100644 --- a/classes/autotools-autoreconf.oeclass +++ b/classes/autotools-autoreconf.oeclass @@ -6,6 +6,10 @@ CLASS_DEPENDS += "${DEPENDS_AUTORECONF}" DEPENDS_AUTORECONF ?= "native:glib-dev" EXTRA_AUTORECONF = "" +AUTORECONF ?= "autoreconf --verbose --install --force \ + ${EXTRA_AUTORECONF} $acpaths \ + " + acpaths = "__default__" pkgltdldir = "${STAGE_DIR}/${HOST_CROSS}${stage_datadir}/libtool" @@ -76,9 +80,7 @@ do_autoreconf () { export _lt_pkgdatadir="${pkgltdldir}" fi oenote Executing autoreconf - autoreconf --verbose --install --force \ - ${EXTRA_AUTORECONF} $acpaths \ - || oefatal "autoreconf execution failed." + eval "${AUTORECONF}" || oefatal 'autoreconf execution failed.' if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then oenote Executing intltoolize intltoolize --copy --force --automake