Bug 1036645 part 2 - Make using a separate config.cache the default for AC_OUTPUT_SUBDIRS. r=gps

All subconfigures are essentially doing it already, so just inverse the process. That would also limit problems with additional subconfigures (all the recent ones had to come with their own config.cache)
This commit is contained in:
Mike Hommey 2014-07-11 19:06:07 +09:00
parent 233511dfc9
commit fe76207882
4 changed files with 5 additions and 16 deletions

View File

@ -88,13 +88,9 @@ if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
# Use a separate cache file for libffi, since it does things differently # Use a separate cache file for libffi, since it does things differently
# from our configure. # from our configure.
mkdir -p $_objdir/js/src/ctypes/libffi
old_cache_file=$cache_file
cache_file=$_objdir/js/src/ctypes/libffi/config.cache
old_config_files=$CONFIG_FILES old_config_files=$CONFIG_FILES
unset CONFIG_FILES unset CONFIG_FILES
AC_OUTPUT_SUBDIRS(js/src/ctypes/libffi) AC_OUTPUT_SUBDIRS(js/src/ctypes/libffi)
cache_file=$old_cache_file
ac_configure_args="$_SUBDIR_CONFIG_ARGS" ac_configure_args="$_SUBDIR_CONFIG_ARGS"
CONFIG_FILES=$old_config_files CONFIG_FILES=$old_config_files
fi fi

View File

@ -52,7 +52,10 @@ for moz_config_dir in $1; do
else else
mkdir -p "$moz_config_dir" mkdir -p "$moz_config_dir"
fi fi
_save_cache_file="$cache_file"
ifelse($2,,cache_file="$moz_config_dir/config.cache",cache_file="$2")
_MOZ_AC_OUTPUT_SUBDIRS($moz_config_dir) _MOZ_AC_OUTPUT_SUBDIRS($moz_config_dir)
cache_file="$_save_cache_file"
(cd "$moz_config_dir"; $PYTHON $_topsrcdir/build/subconfigure.py adjust $ac_sub_configure) (cd "$moz_config_dir"; $PYTHON $_topsrcdir/build/subconfigure.py adjust $ac_sub_configure)
done done

View File

@ -189,7 +189,6 @@ if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
export LDFLAGS="$HOST_LDFLAGS" export LDFLAGS="$HOST_LDFLAGS"
ac_configure_args="$HOST_ICU_BUILD_OPTS" ac_configure_args="$HOST_ICU_BUILD_OPTS"
ac_configure_args="$ac_configure_args --enable-static --disable-shared --enable-extras=no --enable-icuio=no --enable-layout=no --enable-tests=no --enable-samples=no" ac_configure_args="$ac_configure_args --enable-static --disable-shared --enable-extras=no --enable-icuio=no --enable-layout=no --enable-tests=no --enable-samples=no"
cache_file=$_objdir/intl/icu/host/config.cache
AC_OUTPUT_SUBDIRS(intl/icu/source:intl/icu/host) AC_OUTPUT_SUBDIRS(intl/icu/source:intl/icu/host)
) || exit 1 ) || exit 1
# generate config/icucross.mk # generate config/icucross.mk
@ -297,7 +296,6 @@ if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
export LDFLAGS="$ICU_LDFLAGS $LDFLAGS" export LDFLAGS="$ICU_LDFLAGS $LDFLAGS"
ac_configure_args="$ICU_BUILD_OPTS $ICU_CROSS_BUILD_OPT $ICU_LINK_OPTS $ICU_TARGET_OPT" ac_configure_args="$ICU_BUILD_OPTS $ICU_CROSS_BUILD_OPT $ICU_LINK_OPTS $ICU_TARGET_OPT"
ac_configure_args="$ac_configure_args --disable-extras --disable-icuio --disable-layout --disable-tests --disable-samples" ac_configure_args="$ac_configure_args --disable-extras --disable-icuio --disable-layout --disable-tests --disable-samples"
cache_file=$_objdir/intl/icu/target/config.cache
AC_OUTPUT_SUBDIRS(intl/icu/source:intl/icu/target) AC_OUTPUT_SUBDIRS(intl/icu/source:intl/icu/target)
) || exit 1 ) || exit 1
fi fi

View File

@ -9050,8 +9050,6 @@ if test -z "$MOZ_NATIVE_JEMALLOC" -a "$MOZ_MEMORY" && test -n "$MOZ_JEMALLOC3" -
if test "$CROSS_COMPILE"; then if test "$CROSS_COMPILE"; then
ac_configure_args="$ac_configure_args je_cv_static_page_shift=12" ac_configure_args="$ac_configure_args je_cv_static_page_shift=12"
fi fi
_save_cache_file="$cache_file"
cache_file=$_objdir/memory/jemalloc/src/config.cache
if ! test -e memory/jemalloc; then if ! test -e memory/jemalloc; then
mkdir -p memory/jemalloc mkdir -p memory/jemalloc
@ -9064,7 +9062,6 @@ if test -z "$MOZ_NATIVE_JEMALLOC" -a "$MOZ_MEMORY" && test -n "$MOZ_JEMALLOC3" -
srcdir=`cd $srcdir; pwd` srcdir=`cd $srcdir; pwd`
AC_OUTPUT_SUBDIRS(memory/jemalloc/src) AC_OUTPUT_SUBDIRS(memory/jemalloc/src)
srcdir="$_save_srcdir" srcdir="$_save_srcdir"
cache_file="$_save_cache_file"
ac_configure_args="$_SUBDIR_CONFIG_ARGS" ac_configure_args="$_SUBDIR_CONFIG_ARGS"
fi fi
@ -9088,7 +9085,7 @@ if test "$MOZ_TREE_FREETYPE"; then
mkdir modules mkdir modules
fi fi
AC_OUTPUT_SUBDIRS(modules/freetype2) AC_OUTPUT_SUBDIRS(modules/freetype2,$cache_file)
fi fi
if test -z "$direct_nspr_config"; then if test -z "$direct_nspr_config"; then
@ -9180,14 +9177,9 @@ if test -z "$MOZ_NATIVE_NSPR"; then
export LDFLAGS="$LDFLAGS $NSPR_LDFLAGS" export LDFLAGS="$LDFLAGS $NSPR_LDFLAGS"
export CFLAGS="$CFLAGS $MOZ_FRAMEPTR_FLAGS" export CFLAGS="$CFLAGS $MOZ_FRAMEPTR_FLAGS"
# Use a separate cache file for NSPR since it uses autoconf 2.68.
_save_cache_file="$cache_file"
cache_file=$_objdir/nsprpub/config.cache
AC_OUTPUT_SUBDIRS(nsprpub) AC_OUTPUT_SUBDIRS(nsprpub)
# .. and restore them # .. and restore them
cache_file="$_save_cache_file"
CFLAGS="$_SAVE_CFLAGS" CFLAGS="$_SAVE_CFLAGS"
CPPFLAGS="$_SAVE_CPPFLAGS" CPPFLAGS="$_SAVE_CPPFLAGS"
LDFLAGS="$_SAVE_LDFLAGS" LDFLAGS="$_SAVE_LDFLAGS"
@ -9277,7 +9269,7 @@ if ! test -e js; then
mkdir js mkdir js
fi fi
AC_OUTPUT_SUBDIRS(js/src) AC_OUTPUT_SUBDIRS(js/src,$cache_file)
ac_configure_args="$_SUBDIR_CONFIG_ARGS" ac_configure_args="$_SUBDIR_CONFIG_ARGS"
fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR