$OpenBSD$ index 7139fa4..3093a3f 100644 --- configure.in.orig Fri Feb 20 15:40:36 2015 +++ configure.in Fri Feb 20 15:40:36 2015 @@ -3574,15 +3574,12 @@ AC_SUBST(GRE_MILESTONE) # set RELEASE_BUILD and NIGHTLY_BUILD variables depending on the cycle we're in # The logic works like this: # - if we have "a1" in GRE_MILESTONE, we're building Nightly (define NIGHTLY_BUILD) -# - otherwise, if we have "a" in GRE_MILESTONE, we're building Nightly or Aurora # - otherwise, we're building Release/Beta (define RELEASE_BUILD) case "$GRE_MILESTONE" in *a1*) NIGHTLY_BUILD=1 AC_DEFINE(NIGHTLY_BUILD) ;; - *a*) - ;; *) RELEASE_BUILD=1 AC_DEFINE(RELEASE_BUILD) @@ -3655,7 +3652,7 @@ MOZ_ARG_WITH_BOOL(system-nss, _USE_SYSTEM_NSS=1 ) if test -n "$_USE_SYSTEM_NSS"; then - AM_PATH_NSS(3.16.2, [MOZ_NATIVE_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])]) + AM_PATH_NSS(3.16.2.3, [MOZ_NATIVE_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])]) fi if test -n "$MOZ_NATIVE_NSS"; then @@ -3992,7 +3989,6 @@ MOZ_AUDIO_CHANNEL_MANAGER= NSS_NO_LIBPKIX= MOZ_CONTENT_SANDBOX= MOZ_CONTENT_SANDBOX_REPORTER=1 -JSGC_USE_EXACT_ROOTING= case "$target_os" in mingw*) @@ -6355,11 +6351,7 @@ MOZ_ARG_ENABLE_BOOL(verify-mar, MOZ_VERIFY_MAR_SIGNATURE= ) if test -n "$MOZ_VERIFY_MAR_SIGNATURE"; then - if test "$OS_ARCH" = "WINNT"; then - AC_DEFINE(MOZ_VERIFY_MAR_SIGNATURE) - else - AC_MSG_ERROR([Can only build with --enable-verify-mar with a Windows target]) - fi + AC_DEFINE(MOZ_VERIFY_MAR_SIGNATURE) fi dnl ======================================================== @@ -6401,6 +6393,31 @@ MOZ_ARG_ENABLE_BOOL(update-packaging, AC_SUBST(MOZ_UPDATE_PACKAGING) dnl ======================================================== +dnl Tor Additions +dnl ======================================================== +MOZ_ARG_WITH_STRING(tor-browser-version, +[ --with-tor-browser-version=VERSION + Set Tor Browser version, e.g., 4.0b1], + TOR_BROWSER_VERSION="$withval") + +MOZ_ARG_ENABLE_BOOL(tor-browser-update, +[ --enable-tor-browser-update + Enable Tor Browser update], + TOR_BROWSER_UPDATE=1, + TOR_BROWSER_UPDATE= ) + +if test -n "$TOR_BROWSER_UPDATE"; then + if test -z "$TOR_BROWSER_VERSION"; then + AC_MSG_ERROR([--enable-tor-browser-update requires --with-tor-browser-version.]) + fi + AC_DEFINE(TOR_BROWSER_UPDATE) +fi + +AC_DEFINE_UNQUOTED(TOR_BROWSER_VERSION,"$TOR_BROWSER_VERSION") +AC_SUBST(TOR_BROWSER_VERSION) +AC_SUBST(TOR_BROWSER_UPDATE) + +dnl ======================================================== dnl build the tests by default dnl ======================================================== MOZ_ARG_DISABLE_BOOL(tests, @@ -7196,61 +7213,6 @@ if test -n "$JS_CRASH_DIAGNOSTICS"; then AC_DEFINE(JS_CRASH_DIAGNOSTICS) fi -dnl ======================================================== -dnl = Use incremental GC -dnl ======================================================== -JSGC_INCREMENTAL=1 -MOZ_ARG_DISABLE_BOOL(gcincremental, -[ --disable-gcincremental Disable incremental GC], - JSGC_INCREMENTAL= ) -if test -n "$JSGC_INCREMENTAL"; then - AC_DEFINE(JSGC_INCREMENTAL) -fi - -dnl ======================================================== -dnl = Use exact stack rooting for GC -dnl ======================================================== -MOZ_ARG_DISABLE_BOOL(exact-rooting, -[ --disable-exact-rooting Enable use of conservative stack scanning for GC], - JSGC_USE_EXACT_ROOTING= , - JSGC_USE_EXACT_ROOTING=1 ) -if test -n "$JSGC_USE_EXACT_ROOTING"; then - AC_DEFINE(JSGC_USE_EXACT_ROOTING) -fi - -dnl ======================================================== -dnl = Use generational GC -dnl ======================================================== -MOZ_ARG_ENABLE_BOOL(gcgenerational, -[ --enable-gcgenerational Enable generational GC], - JSGC_GENERATIONAL=1, - JSGC_GENERATIONAL= ) -if test -n "$JSGC_GENERATIONAL"; then - AC_DEFINE(JSGC_GENERATIONAL) -fi - -dnl ======================================================== -dnl Zealous JavaScript GC -dnl ======================================================== -MOZ_ARG_ENABLE_BOOL(gczeal, -[ --enable-gczeal Enable zealous JavaScript GCing], - JS_GC_ZEAL=1, - JS_GC_ZEAL= ) -if test -n "$JS_GC_ZEAL" -o -n "$MOZ_DEBUG"; then - AC_DEFINE(JS_GC_ZEAL) -fi - -dnl ======================================================== -dnl = Perform moving GC stack rooting analysis -dnl ======================================================== -MOZ_ARG_ENABLE_BOOL(root-analysis, -[ --enable-root-analysis Enable moving GC stack root analysis], - JSGC_ROOT_ANALYSIS=1, - JSGC_ROOT_ANALYSIS= ) -if test -n "$JSGC_ROOT_ANALYSIS"; then - AC_DEFINE(JSGC_ROOT_ANALYSIS) -fi - MOZ_CHECK_CCACHE dnl ======================================================== @@ -9101,8 +9063,11 @@ if test "$MOZ_TREE_FREETYPE"; then if ! test -e modules; then mkdir modules fi - - AC_OUTPUT_SUBDIRS(modules/freetype2) + # Only export CC, CXX and RANLIB for the subconfigure, and avoid spilling + # that further down the road. + (export CC CXX RANLIB; + AC_OUTPUT_SUBDIRS(modules/freetype2) + ) || exit 1 fi if test -z "$direct_nspr_config"; then @@ -9245,9 +9210,6 @@ if test -z "$JS_SHARED_LIBRARY" ; then ac_configure_args="$ac_configure_args --disable-export-js" fi fi -if test -z "$JSGC_USE_EXACT_ROOTING" ; then - ac_configure_args="$ac_configure_args --disable-exact-rooting" -fi if test -z "$MOZ_NATIVE_NSPR"; then ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'" ac_configure_args="$ac_configure_args --with-nspr-libs='$NSPR_LIBS'"