Bug 838915 - Add a JS_STANDALONE configure/make variable. r=ted, a=akeybl
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 08 Feb 2013 15:58:53 +0100
changeset 110079 58682dcf381a75873a9bc4e14d9dedab4c9aba83
parent 110078 f4c33b5d6b2d7dfe9794ea2c64843993c00a5f54
child 110080 441b8aa4bc663c9a8527b6dc902c190162ece82c
push id166
push usersean.stangl@gmail.com
push dateTue, 05 Mar 2013 00:51:11 +0000
reviewersted, akeybl
bugs838915
milestone17.0.3
Bug 838915 - Add a JS_STANDALONE configure/make variable. r=ted, a=akeybl
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -8985,12 +8985,13 @@ if test "$MOZ_NATIVE_ZLIB" != 1 -a "$OS_
 fi
 export MOZ_NATIVE_ZLIB
 export MOZ_ZLIB_CFLAGS
 export MOZ_ZLIB_LIBS
 export MOZ_APP_NAME
 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
@@ -140,16 +140,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],