aclocal.m4
author Nick Alexander <nalexander@mozilla.com>
Thu, 09 May 2019 20:38:48 +0000
changeset 473327 55b7de7850bebd08d85caeb719de711a32f71369
parent 453887 129e9f6b6295da4ed2a2e7bfb73f1c75200ad9ef
child 478549 f0f958b29d69ceaa0faa34955e98c63ecd94af7b
permissions -rw-r--r--
Bug 1543982 - Part 1: Avoid re-configuring from within Gradle. r=emilio The inline comment explains what is happening here. The issue is that client.mk is setting MOZ_OBJDIR (and autoconf.mk is setting CC/CXX and others) as part of `mach build`, which means that recursively invoking `mach build` sees a different environment, and that triggers reconfigure. In some situations we can avoid this by recognizing that the environment has changed and setting it back to what it was at the time of `mach build` before client.mk adjusts it. Differential Revision: https://phabricator.services.mozilla.com/D30425

dnl
dnl Local autoconf macros used with mozilla
dnl The contents of this file are under the Public Domain.
dnl

builtin(include, build/autoconf/hotfixes.m4)dnl
builtin(include, build/autoconf/hooks.m4)dnl
builtin(include, build/autoconf/config.status.m4)dnl
builtin(include, build/autoconf/toolchain.m4)dnl
builtin(include, build/autoconf/nspr.m4)dnl
builtin(include, build/autoconf/nspr-build.m4)dnl
builtin(include, build/autoconf/nss.m4)dnl
builtin(include, build/autoconf/pkg.m4)dnl
builtin(include, build/autoconf/codeset.m4)dnl
builtin(include, build/autoconf/altoptions.m4)dnl
builtin(include, build/autoconf/mozprog.m4)dnl
builtin(include, build/autoconf/mozheader.m4)dnl
builtin(include, build/autoconf/frameptr.m4)dnl
builtin(include, build/autoconf/compiler-opts.m4)dnl
builtin(include, build/autoconf/expandlibs.m4)dnl
builtin(include, build/autoconf/arch.m4)dnl
builtin(include, build/autoconf/android.m4)dnl
builtin(include, build/autoconf/zlib.m4)dnl
builtin(include, build/autoconf/icu.m4)dnl
builtin(include, build/autoconf/clang-plugin.m4)dnl
builtin(include, build/autoconf/alloc.m4)dnl
builtin(include, build/autoconf/ios.m4)dnl
builtin(include, build/autoconf/sanitize.m4)dnl

MOZ_PROG_CHECKMSYS()

# Read the user's .mozconfig script.  We can't do this in
# configure.in: autoconf puts the argument parsing code above anything
# expanded from configure.in, and we need to get the configure options
# from .mozconfig in place before that argument parsing code.
MOZ_READ_MOZCONFIG(.)