~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

Viewing changes to js/src/build/autoconf/wrapper.m4

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl This Source Code Form is subject to the terms of the Mozilla Public
 
2
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
 
3
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
4
 
 
5
dnl =======================================================================
 
6
dnl = Enable compiling with various compiler wrappers (distcc, ccache, etc)
 
7
dnl =======================================================================
 
8
AC_DEFUN([MOZ_CHECK_COMPILER_WRAPPER],
 
9
[
 
10
MOZ_ARG_WITH_STRING(compiler_wrapper,
 
11
[  --with-compiler-wrapper[=path/to/wrapper]
 
12
    Enable compiling with wrappers such as distcc and ccache],
 
13
    COMPILER_WRAPPER=$withval, COMPILER_WRAPPER="no")
 
14
 
 
15
if test "$COMPILER_WRAPPER" != "no"; then
 
16
    CC="$COMPILER_WRAPPER $CC"
 
17
    CXX="$COMPILER_WRAPPER $CXX"
 
18
    MOZ_USING_COMPILER_WRAPPER=1
 
19
fi
 
20
 
 
21
AC_SUBST(MOZ_USING_COMPILER_WRAPPER)
 
22
])