Bug 969164 - Create subconfigure directory in the AC_OUTPUT_SUBDIRS wrapper. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 11 Feb 2014 10:37:47 +0900
changeset 168007 4a90387184174c673332acd5e878ab1dda5dbf24
parent 168006 ff614668cec33023bca622859a01594ea499d080
child 168008 06f5f22f1bb9d738849fc16bf99108ed641a2e9e
push id26194
push userryanvm@gmail.com
push dateTue, 11 Feb 2014 13:39:41 +0000
treeherdermozilla-central@edd724161ab4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs969164
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 969164 - Create subconfigure directory in the AC_OUTPUT_SUBDIRS wrapper. r=gps We happen to be lucky currently because e.g. build is created by config.status before we subconfigure in build/clang-plugin. But further changes break that luck.
build/autoconf/hooks.m4
--- a/build/autoconf/hooks.m4
+++ b/build/autoconf/hooks.m4
@@ -27,16 +27,18 @@ case "$host" in
     if test ! -e "$_CONFIG_SHELL" -a -e "${_CONFIG_SHELL}.exe"; then
         _CONFIG_SHELL="${_CONFIG_SHELL}.exe"
     fi
     ;;
 esac
 
 if test -d "$1"; then
     (cd "$1"; $PYTHON $_topsrcdir/build/subconfigure.py dump "$_CONFIG_SHELL")
+else
+    mkdir -p "$1"
 fi
 $2
 (cd "$1"; $PYTHON $_topsrcdir/build/subconfigure.py adjust $ac_sub_configure)
 ])
 
 define([AC_OUTPUT_SUBDIRS],
 [trap '' EXIT
 for moz_config_dir in $1; do