Bug 838915 - Add a JS_STANDALONE configure/make variable. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 08 Feb 2013 15:58:53 +0100
changeset 121356 d17e8470d7d96a290dd4ee44b85aa385d8877a12
parent 121355 46ee2f9e8f91aa2ca2cc8ba5b9e708d2e5f69390
child 121357 cf1fa0280708eda185747958a86e19efd5bf834d
push id22696
push usermh@glandium.org
push dateFri, 08 Feb 2013 17:21:13 +0000
treeherdermozilla-inbound@d17e8470d7d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs838915
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 838915 - Add a JS_STANDALONE configure/make variable. r=ted
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -9265,12 +9265,13 @@ export MOZ_ZLIB_CFLAGS
 export MOZ_ZLIB_LIBS
 export MOZ_APP_NAME
 export DONT_POPULATE_VIRTUALENV=1
 export PYTHON
 export MOZILLA_CENTRAL_PATH=$_topsrcdir
 export STLPORT_CPPFLAGS
 export STLPORT_LDFLAGS
 export STLPORT_LIBS
+export JS_STANDALONE=no
 AC_OUTPUT_SUBDIRS(js/src)
 ac_configure_args="$_SUBDIR_CONFIG_ARGS"
 
 fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -139,16 +139,23 @@ MOZ_ARG_ENABLE_BOOL(shared-js,
 
 if test "$DISABLE_SHARED_JS" = "1" ; then
   AC_DEFINE(STATIC_EXPORTABLE_JS_API)
 else
   JS_SHARED_LIBRARY=1
 fi
 AC_SUBST(JS_SHARED_LIBRARY)
 
+if test "$JS_STANDALONE" = no; then
+  JS_STANDALONE=
+else
+  JS_STANDALONE=1
+fi
+AC_SUBST(JS_STANDALONE)
+
 MOZ_ARG_WITH_STRING(gonk,
 [  --with-gonk=DIR
                location of gonk dir],
     gonkdir=$withval)
 
 MOZ_ARG_WITH_STRING(gonk-toolchain-prefix,
 [  --with-gonk-toolchain-prefix=DIR
                           prefix to gonk toolchain commands],