author Joshua Cranmer <>
Wed, 27 Aug 2014 10:09:55 -0500
changeset 20787 8f57b03404285702405cfb4516765e5ad83e4193
parent 20708 949e0465b1c39f629dc4e2ecb1d9cf607432d0c3
child 20914 5540d3b4eb234376fcd74a6a9022f57bba8dc36d
permissions -rw-r--r--
Bug 1040009 - Run mozilla-central's configure from the objdir, not objdir/mozilla, r=Standard8 CLOSED TREE. This bug moves the objdir from the current location of MOZ_OBJDIR/mozilla to MOZ_OBJDIR, which fixes a series of longstanding bugs about mozconfigs not working due to the presence of two distinct objdirs. A temporary workaround to keep automation working is included. An important implication of this change is that mozconfigs are now required for comm-central: if they are not provided, Firefox, not Thunderbird, will be built.

dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; -*-
dnl vi: set tabstop=4 shiftwidth=4 expandtab:
dnl This Source Code Form is subject to the terms of the Mozilla Public
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
dnl file, You can obtain one at

dnl Process this file with autoconf to produce a configure script.
dnl ========================================================


# If MOZCONFIG isn't set, use the .mozconfig from the current directory. This
# overrides the lookup in mozilla-central's configure, which looks in the wrong
# directory for this file.
if test -z "$MOZCONFIG" -a -f $(dirname $0)/.mozconfig; then
    export MOZCONFIG=$(dirname $0)/.mozconfig

# Our automation expects to find things in $MOZ_OBJDIR/mozilla. Oblige it by
# symlinking the directories together.
if test "$MOZ_AUTOMATION" -eq 1; then
    ln -s $PWD mozilla

# Execute the mozilla configure script in the current directory, adding the
# parameter we need to run comm-central.
exec ${MOZILLA_SRCDIR}/configure "$@" --with-external-source-dir="$(dirname $0)"