autotools.bblass: mkdir also AC_CONFIG_MACRO_DIR
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 12 Jan 2011 19:57:00 +0000 (20:57 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 13 Jan 2011 21:49:28 +0000 (22:49 +0100)
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
classes/autotools.bbclass

index 77bd37d..45b75df 100644 (file)
@@ -176,7 +176,9 @@ autotools_do_configure() {
                        fi
 
                        fi
-                       mkdir -p m4
+                       for aux in m4 `sed -n -e '/^[[:space:]]*AC_CONFIG_MACRO_DIR/s|[^(]*([[]*\([^])]*\)[]]*)|\1|p' $CONFIGURE_AC`; do
+                               mkdir -p ${aux}
+                       done
                        oenote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
                        autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || oefatal "autoreconf execution failed."
                        if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then