gecko-dev/build/autoconf
Nick Alexander 3cab90a5de Bug 1099501 - Export and use ANDROID_TOOLS where appropriate. r=snorp,bnicholson
In certain configurations, in particular when installing the Android SDK
using HomeBrew, one sees a configuration with symlinks like:

    [brian@brian-macbook git]$ ls -l /usr/local/Cellar/android-sdk/23.0.2/
    total 72
    ...
    lrwxr-xr-x   1 brian  admin    38 Nov 14 16:39 platforms -> ../../../var/lib/android-sdk/platforms
    ...
    drwxr-xr-x  26 brian  admin   884 Nov 14 17:43 tools

In this case, we have
ANDROID_SDK=/usr/local/Cellar/android-sdk/23.0.2/platforms/android-21.

It is an anti-pattern to use ANDORID_SDK/.. to find other paths in the
tree.  This pattern is used in at least two places:

1) When we try to find
/usr/local/Cellar/android-sdk/23.0.2/platforms/android-21/../../tools,
we end up in the /usr/local/var/lib subtree.  This patch works around
that by exporting and using ANDROID_TOOLS; ANDROID_TOOLS itself is
extracted using path matching, rather than following .. through the
filesystem.

2) We also need to use ANDROID_SDK_ROOT rather than
ANDROID_SDK/../.. through-out.

--HG--
extra : rebase_source : 5e0323a94f2b80550f17a624e16f338cdeec406d
2014-11-17 11:12:00 -08:00
..
acwinpaths.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
altoptions.m4 Bug 762358 - Re-run configure when mozconfig changed in a significant way. r=gps 2014-07-03 07:15:31 +09:00
android.m4 Bug 1099501 - Export and use ANDROID_TOOLS where appropriate. r=snorp,bnicholson 2014-11-17 11:12:00 -08:00
arch.m4 Bug 950261 - Fix ARM_ARCH computation with newer NDK. r=ted 2013-12-18 08:07:11 +09:00
clang-plugin.m4 Bug 1062219 - Don't build build/clang-plugin as an external directory. r=jcranmer 2014-09-04 17:44:01 +09:00
clean-config.sh Bug 784841 - Part 19: Remove allmakefiles.sh and friends; r=ted 2013-02-25 14:09:16 -08:00
codeset.m4
compiler-opts.m4 Bug 1082987 - Never use the debug runtime libraries for Windows ASAN builds; r=glandium 2014-10-16 09:13:27 -04:00
config.guess Bug 976648 - Toplevel build/config for powerpc64le-linux support. r=bsmedberg, r=blassey 2014-03-05 12:04:44 -05:00
config.status.m4 Bug 1091505 - Run subconfigures in parallel. r=gps 2014-11-04 13:50:18 +09:00
config.sub Bug 976648 - Toplevel build/config for powerpc64le-linux support. r=bsmedberg, r=blassey 2014-03-05 12:04:44 -05:00
expandlibs.m4 Bug 837618 - teach expandlibs_exec.py about OS X's -filelist linker option; r=glandium 2013-04-16 11:13:50 -04:00
ffi.m4 Bug 1036645 part 2 - Make using a separate config.cache the default for AC_OUTPUT_SUBDIRS. r=gps 2014-07-11 19:06:07 +09:00
frameptr.m4 Bug 1058500 - Add MSan support to the build system. r=ted,waldo 2014-09-11 23:21:46 +02:00
gcc-pr39608.m4 Bug 894717 - Fix 'plase upgrade' typo in autoconf files. r=khuey 2013-07-19 10:47:15 -07:00
gcc-pr49911.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
hooks.m4 Bug 1094080 - Add missing m4 quoting in MOZ_RUN_ALL_SUBCONFIGURES. r=mshal 2014-11-06 09:29:12 +09:00
hotfixes.m4 Bug 973310 - Accomodate for OpenBSD's m4 greedyness with patsub's regexp after bug 967556 r=glandium 2014-02-25 07:44:21 +01:00
icu.m4 Bug 1091505 - Run subconfigures in parallel. r=gps 2014-11-04 13:50:18 +09:00
install-sh Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
linux.m4 Bug 778740 - Allow to use Linux kernel headers for perf events. r=khuey 2012-08-04 08:55:00 +02:00
llvm-pr8927.m4 Bug 894717 - Fix 'plase upgrade' typo in autoconf files. r=khuey 2013-07-19 10:47:15 -07:00
lto.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
mozcommonheader.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
mozheader.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
mozprog.m4 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nspr-build.m4 Bug 1081682 - Make --with-ccache use --with-compiler-wrapper under the hood. r=mshal 2014-10-15 14:47:02 +09:00
nspr.m4 Bug 1045783 - Make most *_LIBS variables from configure lists in moz.build. r=mshal 2014-08-06 07:24:55 +09:00
nss.m4 Bug 1045783 - Make most *_LIBS variables from configure lists in moz.build. r=mshal 2014-08-06 07:24:55 +09:00
pkg.m4 Bug 1045783 - Make most *_LIBS variables from configure lists in moz.build. r=mshal 2014-08-06 07:24:55 +09:00
python-virtualenv.m4 Bug 920353 - Use PYCOMMANDPATH paths as site packages in pymake, and set it to the virtualenv site packages instead of $(topsrcdir)/config. r=gps 2013-09-26 16:43:53 +09:00
subconfigure.m4 Bug 648980 - Add a hook for projects to have custom configure scripts. r=glandium 2013-02-26 13:45:52 -06:00
toolchain.m4 Bug 1090512 - Emulate the clang-cl compiler version in toolchain.m4; r=glandium 2014-10-29 12:33:32 -04:00
winsdk.m4 Bug 752034 - Use the Windows SDK when building with Clang on Windows; r=ted 2013-06-13 13:09:22 -04:00
wrapper.m4 Bug 1081682 - Make --with-ccache use --with-compiler-wrapper under the hood. r=mshal 2014-10-15 14:47:02 +09:00
zlib.m4 Bug 1045783 - Make most *_LIBS variables from configure lists in moz.build. r=mshal 2014-08-06 07:24:55 +09:00