--- xulrunner-1.9.0.7.orig/configure.in
+++ xulrunner-1.9.0.7/configure.in
@@ -986,6 +986,7 @@
     case "${target_os}" in
         linux*)       OS_ARCH=Linux OS_TARGET=Linux ;;
         kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD OS_TARGET=GNU_kFreeBSD ;;
+        gnu*)         OS_ARCH=GNU ;;
         solaris*)     OS_ARCH=SunOS OS_RELEASE=5 ;;
         mingw*)       OS_ARCH=WINNT ;;
         wince*)       OS_ARCH=WINCE ;;
@@ -1296,6 +1297,7 @@
     WARNINGS_AS_ERRORS='-Werror'
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-fPIC'
+    ASFLAGS="$ASFLAGS -fPIC"
     _MOZ_RTTI_FLAGS_ON=${_COMPILER_PREFIX}-frtti
     _MOZ_RTTI_FLAGS_OFF=${_COMPILER_PREFIX}-fno-rtti
     _MOZ_EXCEPTIONS_FLAGS_ON='-fhandle-exceptions'
@@ -1528,7 +1530,7 @@
     LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(LIBXUL_DIST)/bin/XUL -lobjc'
     ;;
 
-*-linux*|*-kfreebsd*-gnu)
+*-linux*|*-kfreebsd*-gnu|*-gnu*)
     HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
     HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
@@ -1824,8 +1826,7 @@
         MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS=1
     ;;
     mips*)
-        CFLAGS="$CFLAGS -Wa,-xgot"
-        CXXFLAGS="$CXXFLAGS -Wa,-xgot"
+        MOZ_DEBUG_FLAGS="-g" # We want inlining
     ;;
     esac
     ;;
@@ -2566,7 +2567,7 @@
 dnl = Flags to strip unused symbols from .so components
 dnl ========================================================
 case "$target" in
-    *-linux*|*-kfreebsd*-gnu)
+    *-linux*|*-kfreebsd*-gnu|*-gnu*)
         MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
         ;;
     *-solaris*)
@@ -2777,7 +2778,7 @@
 if test "$ac_cv_have_usable_wchar_v2" = "yes"; then
     AC_DEFINE(HAVE_CPP_2BYTE_WCHAR_T)
     HAVE_CPP_2BYTE_WCHAR_T=1
-else
+elif false; then
 dnl This is really gcc-only
 dnl Do this test using CXX only since some versions of gcc
 dnl 2.95-2.97 have a signed wchar_t in c++ only and some versions
@@ -2791,7 +2792,7 @@
 
     AC_CACHE_CHECK(for compiler -fshort-wchar option, 
         ac_cv_have_usable_wchar_option_v2,
-        [AC_TRY_COMPILE([#include <stddef.h>
+        [AC_TRY_LINK([#include <stddef.h>
                          $configure_static_assert_macros],
                         [CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);
                          CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)],
@@ -2801,6 +2802,7 @@
     if test "$ac_cv_have_usable_wchar_option_v2" = "yes"; then
         AC_DEFINE(HAVE_CPP_2BYTE_WCHAR_T)
         HAVE_CPP_2BYTE_WCHAR_T=1
+        WCHAR_CFLAGS="-fshort-wchar"
     else    
         CXXFLAGS=$_SAVE_CXXFLAGS
     fi
@@ -3240,7 +3242,7 @@
 			fi
 			;;
 
-	    *-*-linux*|*-*-kfreebsd*-gnu)
+	    *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*)
 			AC_DEFINE(_REENTRANT) 
 			;;
 
@@ -4051,7 +4053,7 @@
 fi
 
 if test -n "$MOZ_NATIVE_NSS"; then
-   NSS_LIBS="$NSS_LIBS -lcrmf"
+   NSS_LIBS=`echo $NSS_LIBS | sed 's/-l/-lcrmf &/'`
 else
    NSS_CFLAGS='-I$(LIBXUL_DIST)/include/nss'
    NSS_DEP_LIBS="\
@@ -4096,7 +4098,7 @@
     AC_CHECK_LIB(jpeg, jpeg_destroy_compress, [SYSTEM_JPEG=1 JPEG_LIBS="-ljpeg $JPEG_LIBS"], SYSTEM_JPEG=, $JPEG_LIBS)
 fi
 
-if test "$SYSTEM_JPEG" = 1; then
+if test "$SYSTEM_JPEG" = 0; then
     LIBS="$JPEG_LIBS $LIBS"
     AC_TRY_COMPILE([ #include <stdio.h>
                      #include <sys/types.h>
@@ -4136,7 +4138,7 @@
     AC_CHECK_LIB(z, gzread, [SYSTEM_ZLIB=1 ZLIB_LIBS="-lz $ZLIB_LIBS"], 
 	[SYSTEM_ZLIB= ZLIB_CFLAGS= ZLIB_LIBS=], $ZLIB_LIBS)
 fi
-if test "$SYSTEM_ZLIB" = 1; then
+if test "$SYSTEM_ZLIB" = 0; then
     LIBS="$ZLIB_LIBS $LIBS"
     AC_TRY_COMPILE([ #include <stdio.h>
                      #include <string.h>
@@ -4201,6 +4203,7 @@
     CFLAGS="-I${PNG_DIR}/include $CFLAGS"
     LDFLAGS="-L${PNG_DIR}/lib $LDFLAGS"
 fi
+APNG=1
 if test -z "$PNG_DIR" -o "$PNG_DIR" = no; then
     SYSTEM_PNG=
 else
@@ -4209,10 +4212,11 @@
                  AC_MSG_ERROR([--with-system-png requested but no working libpng found]), 
                  $PNG_LIBS)
     AC_CHECK_LIB(png, png_get_acTL, ,
-                 AC_MSG_ERROR([--with-system-png won't work because the system's libpng doesn't have APNG support]),
+                 AC_MSG_WARN([system's libpng doesn't have APNG support])
+		 APNG=,
                  $_SAVE_PNG_LIBS)
 fi
-if test "$SYSTEM_PNG" = 1; then
+if test "$SYSTEM_PNG" = 0; then
     LIBS="$PNG_LIBS $LIBS"
     AC_TRY_COMPILE([ #include <stdio.h>
                      #include <sys/types.h>
@@ -6053,6 +6057,40 @@
 AC_SUBST(JS_ULTRASPARC_OPTS)
 
 dnl ========================================================
+dnl = Enable building of the js standalone binary
+dnl ========================================================
+MOZ_ARG_ENABLE_BOOL(js-binary,
+[  --enable-js-binary      Build the standalone JS program],
+    ENABLE_JS_BINARY=1,
+    ENABLE_JS_BINARY= )
+AC_SUBST(ENABLE_JS_BINARY)
+
+if test -n "$ENABLE_JS_BINARY"; then
+    dnl readline Support
+    dnl ========================================================
+    READLINE_DIR=no
+    MOZ_ARG_WITH_STRING(readline,
+    [  --with-readline[=PFX]
+                              Use libreadline [installed at prefix PFX]],
+        READLINE_DIR=$withval)
+
+    if test -n "${READLINE_DIR}" -a "${READLINE_DIR}" != "no"; then
+        _SAVE_LDFLAGS=$LDFLAGS
+        LDFLAGS="-L${READLINE_DIR}/lib $LDFLAGS"
+        AC_CHECK_LIB(readline, readline, [HAVE_READLINE=1 READLINE_LIBS="-lreadline"],
+           [HAVE_READLINE= READLINE_LIBS=])
+        LDFLAGS=$_SAVE_LDFLAGS
+    fi
+
+    if test "${READLINE_DIR}" -a -d "${READLINE_DIR}" -a "$HAVE_READLINE" = 1; then
+        READLINE_LIBS="-L${READLINE_DIR}/lib ${READLINE_LIBS}"
+    fi
+fi
+
+AC_SUBST(HAVE_READLINE)
+AC_SUBST(READLINE_LIBS)
+
+dnl ========================================================
 dnl =
 dnl = Feature options that require extra sources to be pulled
 dnl =
@@ -7448,7 +7486,7 @@
         LCMS_LIBS='-L$(LIBXUL_DIST)/bin -lmozlcms'
     fi
 else
-    PKG_CHECK_MODULES(LCMS, lcms >= $LCMS_VERSION)
+    PKG_CHECK_MODULES(LCMS, lcms)
 fi
 
 AC_SUBST(MOZ_NATIVE_LCMS)
@@ -7939,6 +7977,7 @@
 AC_SUBST(SYSTEM_MAKEDEPEND)
 AC_SUBST(SYSTEM_JPEG)
 AC_SUBST(SYSTEM_PNG)
+AC_SUBST(APNG)
 AC_SUBST(SYSTEM_ZLIB)
 AC_SUBST(SYSTEM_BZ2)
 
@@ -7977,6 +8016,7 @@
 AC_SUBST(LDFLAGS)
 AC_SUBST(LIBS)
 AC_SUBST(CROSS_COMPILE)
+AC_SUBST(WCHAR_CFLAGS)
 
 AC_SUBST(HOST_CC)
 AC_SUBST(HOST_CXX)
--- xulrunner-1.9.0.7.orig/configure
+++ xulrunner-1.9.0.7/configure
@@ -279,6 +279,11 @@
 ac_help="$ac_help
   --enable-js-ultrasparc  Use UltraSPARC optimizations in JS"
 ac_help="$ac_help
+  --enable-js-binary      Build the standalone JS program"
+ac_help="$ac_help
+  --with-readline[=PFX]
+                              Use libreadline [installed at prefix PFX]"
+ac_help="$ac_help
   --enable-debug[=DBG]    Enable building with developer debug info
                           (Using compiler flags DBG)"
 ac_help="$ac_help
@@ -998,7 +1003,7 @@
 fi
 
 echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:1002: checking host system type" >&5
+echo "configure:1007: checking host system type" >&5
 
 host_alias=$host
 case "$host_alias" in
@@ -1019,7 +1024,7 @@
 echo "$ac_t""$host" 1>&6
 
 echo $ac_n "checking target system type""... $ac_c" 1>&6
-echo "configure:1023: checking target system type" >&5
+echo "configure:1028: checking target system type" >&5
 
 target_alias=$target
 case "$target_alias" in
@@ -1037,7 +1042,7 @@
 echo "$ac_t""$target" 1>&6
 
 echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:1041: checking build system type" >&5
+echo "configure:1046: checking build system type" >&5
 
 build_alias=$build
 case "$build_alias" in
@@ -1112,12 +1117,12 @@
 MSMANIFEST_TOOL=
 
 MISSING_X=
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1121: checking for $ac_word" >&5
+echo "configure:1126: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1258,13 +1263,13 @@
     _SAVE_LDFLAGS="$LDFLAGS"
 
     echo $ac_n "checking for host c compiler""... $ac_c" 1>&6
-echo "configure:1262: checking for host c compiler" >&5
+echo "configure:1267: checking for host c compiler" >&5
     for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1268: checking for $ac_word" >&5
+echo "configure:1273: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1299,13 +1304,13 @@
     fi
     echo "$ac_t""$HOST_CC" 1>&6
     echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6
-echo "configure:1303: checking for host c++ compiler" >&5
+echo "configure:1308: checking for host c++ compiler" >&5
     for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1309: checking for $ac_word" >&5
+echo "configure:1314: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1354,7 +1359,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1358: checking for $ac_word" >&5
+echo "configure:1363: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1389,7 +1394,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1393: checking for $ac_word" >&5
+echo "configure:1398: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1424,16 +1429,16 @@
     LDFLAGS="$HOST_LDFLAGS"
 
     echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1428: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
+echo "configure:1433: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
     cat > conftest.$ac_ext <<EOF
-#line 1430 "configure"
+#line 1435 "configure"
 #include "confdefs.h"
 
 int main() {
 return(0);
 ; return 0; }
 EOF
-if { (eval echo configure:1437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6
 else
@@ -1448,16 +1453,16 @@
     CFLAGS="$HOST_CXXFLAGS"
 
     echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1452: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
+echo "configure:1457: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
     cat > conftest.$ac_ext <<EOF
-#line 1454 "configure"
+#line 1459 "configure"
 #include "confdefs.h"
 
 int main() {
 return(0);
 ; return 0; }
 EOF
-if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6
 else
@@ -1486,7 +1491,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1490: checking for $ac_word" >&5
+echo "configure:1495: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1520,7 +1525,7 @@
     # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1524: checking for $ac_word" >&5
+echo "configure:1529: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1550,7 +1555,7 @@
   # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1554: checking for $ac_word" >&5
+echo "configure:1559: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1601,7 +1606,7 @@
       # Extract the first word of "cl", so it can be a program name with args.
 set dummy cl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1605: checking for $ac_word" >&5
+echo "configure:1610: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1633,7 +1638,7 @@
 fi
 
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:1642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
 ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1644,12 +1649,12 @@
 
 cat > conftest.$ac_ext << EOF
 
-#line 1648 "configure"
+#line 1653 "configure"
 #include "confdefs.h"
 
 main(){return(0);}
 EOF
-if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then
@@ -1675,12 +1680,12 @@
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 fi
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 cross_compiling=$ac_cv_prog_cc_cross
 
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1684: checking whether we are using GNU C" >&5
+echo "configure:1689: checking whether we are using GNU C" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1689,7 +1694,7 @@
   yes;
 #endif
 EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -1708,7 +1713,7 @@
 ac_save_CFLAGS="$CFLAGS"
 CFLAGS=
 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1712: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1717: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1744,7 +1749,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1748: checking for $ac_word" >&5
+echo "configure:1753: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1780,7 +1785,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1784: checking for $ac_word" >&5
+echo "configure:1789: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1812,7 +1817,7 @@
 
 
 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1816: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:1821: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
 ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1823,12 +1828,12 @@
 
 cat > conftest.$ac_ext << EOF
 
-#line 1827 "configure"
+#line 1832 "configure"
 #include "confdefs.h"
 
 int main(){return(0);}
 EOF
-if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cxx_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then
@@ -1854,12 +1859,12 @@
   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 fi
 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1858: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1863: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 cross_compiling=$ac_cv_prog_cxx_cross
 
 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:1863: checking whether we are using GNU C++" >&5
+echo "configure:1868: checking whether we are using GNU C++" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1868,7 +1873,7 @@
   yes;
 #endif
 EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -1887,7 +1892,7 @@
 ac_save_CXXFLAGS="$CXXFLAGS"
 CXXFLAGS=
 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:1891: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:1896: checking whether ${CXX-g++} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1918,57 +1923,6 @@
   fi
 fi
 
-for ac_declaration in \
-   ''\
-   '#include <stdlib.h>' \
-   'extern "C" void std::exit (int) throw (); using std::exit;' \
-   'extern "C" void std::exit (int); using std::exit;' \
-   'extern "C" void exit (int) throw ();' \
-   'extern "C" void exit (int);' \
-   'void exit (int);'
-do
-  cat > conftest.$ac_ext <<EOF
-#line 1932 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-$ac_declaration
-int main() {
-exit (42);
-; return 0; }
-EOF
-if { (eval echo configure:1940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  :
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  continue
-fi
-rm -f conftest*
-  cat > conftest.$ac_ext <<EOF
-#line 1950 "configure"
-#include "confdefs.h"
-$ac_declaration
-int main() {
-exit (42);
-; return 0; }
-EOF
-if { (eval echo configure:1957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  rm -rf conftest*
-  break
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-done
-if test -n "$ac_declaration"; then
-  echo '#ifdef __cplusplus' >>confdefs.h
-  echo $ac_declaration      >>confdefs.h
-  echo '#endif'             >>confdefs.h
-fi
-
-
 
     case "$build:$target" in
       powerpc-apple-darwin8*:i?86-apple-darwin*)
@@ -1982,7 +1936,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1986: checking for $ac_word" >&5
+echo "configure:1940: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2017,7 +1971,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2021: checking for $ac_word" >&5
+echo "configure:1975: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2052,7 +2006,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2056: checking for $ac_word" >&5
+echo "configure:2010: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2093,7 +2047,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2097: checking for $ac_word" >&5
+echo "configure:2051: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2128,7 +2082,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2132: checking for $ac_word" >&5
+echo "configure:2086: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2163,7 +2117,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2167: checking for $ac_word" >&5
+echo "configure:2121: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2201,7 +2155,7 @@
     # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2205: checking for $ac_word" >&5
+echo "configure:2159: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2231,7 +2185,7 @@
   # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2235: checking for $ac_word" >&5
+echo "configure:2189: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2282,7 +2236,7 @@
       # Extract the first word of "cl", so it can be a program name with args.
 set dummy cl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2286: checking for $ac_word" >&5
+echo "configure:2240: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2314,7 +2268,7 @@
 fi
 
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:2318: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:2272: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
 ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -2325,12 +2279,12 @@
 
 cat > conftest.$ac_ext << EOF
 
-#line 2329 "configure"
+#line 2283 "configure"
 #include "confdefs.h"
 
 main(){return(0);}
 EOF
-if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then
@@ -2356,12 +2310,12 @@
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 fi
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:2360: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:2314: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 cross_compiling=$ac_cv_prog_cc_cross
 
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:2365: checking whether we are using GNU C" >&5
+echo "configure:2319: checking whether we are using GNU C" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2370,7 +2324,7 @@
   yes;
 #endif
 EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -2389,7 +2343,7 @@
 ac_save_CFLAGS="$CFLAGS"
 CFLAGS=
 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:2393: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:2347: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2425,7 +2379,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2429: checking for $ac_word" >&5
+echo "configure:2383: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2457,7 +2411,7 @@
 
 
 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:2461: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:2415: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
 ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -2468,12 +2422,12 @@
 
 cat > conftest.$ac_ext << EOF
 
-#line 2472 "configure"
+#line 2426 "configure"
 #include "confdefs.h"
 
 int main(){return(0);}
 EOF
-if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cxx_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then
@@ -2499,12 +2453,12 @@
   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 fi
 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:2503: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:2457: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 cross_compiling=$ac_cv_prog_cxx_cross
 
 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:2508: checking whether we are using GNU C++" >&5
+echo "configure:2462: checking whether we are using GNU C++" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2513,7 +2467,7 @@
   yes;
 #endif
 EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -2532,7 +2486,7 @@
 ac_save_CXXFLAGS="$CXXFLAGS"
 CXXFLAGS=
 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:2536: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:2490: checking whether ${CXX-g++} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2563,61 +2517,10 @@
   fi
 fi
 
-for ac_declaration in \
-   ''\
-   '#include <stdlib.h>' \
-   'extern "C" void std::exit (int) throw (); using std::exit;' \
-   'extern "C" void std::exit (int); using std::exit;' \
-   'extern "C" void exit (int) throw ();' \
-   'extern "C" void exit (int);' \
-   'void exit (int);'
-do
-  cat > conftest.$ac_ext <<EOF
-#line 2577 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-$ac_declaration
-int main() {
-exit (42);
-; return 0; }
-EOF
-if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  :
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  continue
-fi
-rm -f conftest*
-  cat > conftest.$ac_ext <<EOF
-#line 2595 "configure"
-#include "confdefs.h"
-$ac_declaration
-int main() {
-exit (42);
-; return 0; }
-EOF
-if { (eval echo configure:2602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  rm -rf conftest*
-  break
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-done
-if test -n "$ac_declaration"; then
-  echo '#ifdef __cplusplus' >>confdefs.h
-  echo $ac_declaration      >>confdefs.h
-  echo '#endif'             >>confdefs.h
-fi
-
-
     # Extract the first word of "ranlib", so it can be a program name with args.
 set dummy ranlib; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2621: checking for $ac_word" >&5
+echo "configure:2524: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2649,7 +2552,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2653: checking for $ac_word" >&5
+echo "configure:2556: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2690,7 +2593,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2694: checking for $ac_word" >&5
+echo "configure:2597: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2725,7 +2628,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2729: checking for $ac_word" >&5
+echo "configure:2632: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2760,7 +2663,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2764: checking for $ac_word" >&5
+echo "configure:2667: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2795,7 +2698,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2799: checking for $ac_word" >&5
+echo "configure:2702: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2928,7 +2831,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2932: checking for $ac_word" >&5
+echo "configure:2835: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_MIDL'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2970,14 +2873,14 @@
 cross_compiling=$ac_cv_prog_cc_cross
 
         cat > conftest.$ac_ext <<EOF
-#line 2974 "configure"
+#line 2877 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
  printf("Hello World\n"); 
 ; return 0; }
 EOF
-if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -2995,14 +2898,14 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
         cat > conftest.$ac_ext <<EOF
-#line 2999 "configure"
+#line 2902 "configure"
 #include "confdefs.h"
 #include <new.h>
 int main() {
  unsigned *test = new unsigned(42); 
 ; return 0; }
 EOF
-if { (eval echo configure:3006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -3118,7 +3021,7 @@
         _MIDL_REV_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $3 }'`
          # Add flags if necessary
          echo $ac_n "checking for midl flags""... $ac_c" 1>&6
-echo "configure:3122: checking for midl flags" >&5
+echo "configure:3025: checking for midl flags" >&5
          if test \( "$_MIDL_MAJOR_VERSION" -gt "6" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" -gt "0" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" -gt "359" \); then
              # Starting with MIDL version 6.0.359, the MIDL compiler
              # generates /Oicf /robust stubs by default, which is not
@@ -3140,9 +3043,9 @@
         _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
         _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`
         echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6
-echo "configure:3144: checking for w32api version >= $W32API_VERSION" >&5
+echo "configure:3047: checking for w32api version >= $W32API_VERSION" >&5
         cat > conftest.$ac_ext <<EOF
-#line 3146 "configure"
+#line 3049 "configure"
 #include "confdefs.h"
 #include <w32api.h>
 int main() {
@@ -3154,7 +3057,7 @@
             
 ; return 0; }
 EOF
-if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
    res=yes 
 else
@@ -3170,7 +3073,7 @@
         fi
         # Check windres version
         echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6
-echo "configure:3174: checking for windres version >= $WINDRES_VERSION" >&5
+echo "configure:3077: checking for windres version >= $WINDRES_VERSION" >&5
         _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`
         echo "$ac_t""$_WINDRES_VERSION" 1>&6
         _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
@@ -3209,10 +3112,10 @@
 if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then
     if test "x$CC" != xcc; then
   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
-echo "configure:3213: checking whether $CC and cc understand -c and -o together" >&5
+echo "configure:3116: checking whether $CC and cc understand -c and -o together" >&5
 else
   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
-echo "configure:3216: checking whether cc understands -c and -o together" >&5
+echo "configure:3119: checking whether cc understands -c and -o together" >&5
 fi
 set dummy $CC; ac_cc="`echo $2 |
 		       sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
@@ -3224,16 +3127,16 @@
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
-if { (eval echo configure:3228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
-   test -f conftest.o && { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
+if { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
+   test -f conftest.o && { (eval echo configure:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
     # Test first that cc exists at all.
-    if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+    if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
       ac_try='cc -c conftest.c -o conftest.o 1>&5'
-      if { (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
-	 test -f conftest.o && { (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
+      if { (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
+	 test -f conftest.o && { (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
       then
         # cc works too.
         :
@@ -3269,7 +3172,7 @@
 fi
 
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:3273: checking how to run the C preprocessor" >&5
+echo "configure:3176: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
@@ -3284,13 +3187,13 @@
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
   cat > conftest.$ac_ext <<EOF
-#line 3288 "configure"
+#line 3191 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -3301,13 +3204,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF
-#line 3305 "configure"
+#line 3208 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -3318,13 +3221,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF
-#line 3322 "configure"
+#line 3225 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -3349,7 +3252,7 @@
 echo "$ac_t""$CPP" 1>&6
 
 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
-echo "configure:3353: checking how to run the C++ preprocessor" >&5
+echo "configure:3256: checking how to run the C++ preprocessor" >&5
 if test -z "$CXXCPP"; then
 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -3362,12 +3265,12 @@
 cross_compiling=$ac_cv_prog_cxx_cross
   CXXCPP="${CXX-g++} -E"
   cat > conftest.$ac_ext <<EOF
-#line 3366 "configure"
+#line 3269 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -3422,7 +3325,7 @@
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:3426: checking for a BSD compatible install" >&5
+echo "configure:3329: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then
 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -3475,7 +3378,7 @@
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:3479: checking whether ln -s works" >&5
+echo "configure:3382: checking whether ln -s works" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3500,7 +3403,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3504: checking for $ac_word" >&5
+echo "configure:3407: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3541,7 +3444,7 @@
 
 if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then
 echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
-echo "configure:3545: checking for minimum required perl version >= $PERL_VERSION" >&5
+echo "configure:3448: checking for minimum required perl version >= $PERL_VERSION" >&5
 _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
 _perl_res=$?
 echo "$ac_t""$_perl_version" 1>&6
@@ -3552,7 +3455,7 @@
 fi
 
 echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
-echo "configure:3556: checking for full perl installation" >&5
+echo "configure:3459: checking for full perl installation" >&5
 _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
 _perl_res=$?
 if test "$_perl_res" != 0; then
@@ -3567,7 +3470,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3571: checking for $ac_word" >&5
+echo "configure:3474: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3612,7 +3515,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3616: checking for $ac_word" >&5
+echo "configure:3519: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_NSINSTALL_BIN'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3657,7 +3560,7 @@
 # Extract the first word of "doxygen", so it can be a program name with args.
 set dummy doxygen; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3661: checking for $ac_word" >&5
+echo "configure:3564: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3693,7 +3596,7 @@
 # Extract the first word of "whoami", so it can be a program name with args.
 set dummy whoami; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3697: checking for $ac_word" >&5
+echo "configure:3600: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3729,7 +3632,7 @@
 # Extract the first word of "autoconf", so it can be a program name with args.
 set dummy autoconf; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3733: checking for $ac_word" >&5
+echo "configure:3636: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3765,7 +3668,7 @@
 # Extract the first word of "unzip", so it can be a program name with args.
 set dummy unzip; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3769: checking for $ac_word" >&5
+echo "configure:3672: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3803,7 +3706,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3807: checking for $ac_word" >&5
+echo "configure:3710: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3844,7 +3747,7 @@
 # Extract the first word of "makedepend", so it can be a program name with args.
 set dummy makedepend; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3848: checking for $ac_word" >&5
+echo "configure:3751: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3879,7 +3782,7 @@
 # Extract the first word of "xargs", so it can be a program name with args.
 set dummy xargs; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3883: checking for $ac_word" >&5
+echo "configure:3786: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_XARGS'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3940,7 +3843,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3944: checking for $ac_word" >&5
+echo "configure:3847: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PBBUILD'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3990,7 +3893,7 @@
             # Extract the first word of "sdp", so it can be a program name with args.
 set dummy sdp; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3994: checking for $ac_word" >&5
+echo "configure:3897: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_SDP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4111,7 +4014,7 @@
 
   
   echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6
-echo "configure:4115: checking for valid compiler/Mac OS X SDK combination" >&5
+echo "configure:4018: checking for valid compiler/Mac OS X SDK combination" >&5
   ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
@@ -4120,7 +4023,7 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
   cat > conftest.$ac_ext <<EOF
-#line 4124 "configure"
+#line 4027 "configure"
 #include "confdefs.h"
 #include <new>
                  int main() { return 0; }
@@ -4128,7 +4031,7 @@
 result=yes
 ; return 0; }
 EOF
-if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   result=no
 else
@@ -4159,7 +4062,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4163: checking for $ac_word" >&5
+echo "configure:4066: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4202,7 +4105,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4206: checking for $ac_word" >&5
+echo "configure:4109: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4270,7 +4173,7 @@
 # Uses ac_ vars as temps to allow command line to override cache and checks.
 # --without-x overrides everything else, but does not touch the cache.
 echo $ac_n "checking for X""... $ac_c" 1>&6
-echo "configure:4274: checking for X" >&5
+echo "configure:4177: checking for X" >&5
 
 # Check whether --with-x or --without-x was given.
 if test "${with_x+set}" = set; then
@@ -4332,12 +4235,12 @@
 
   # First, try using that file with no special directory specified.
 cat > conftest.$ac_ext <<EOF
-#line 4336 "configure"
+#line 4239 "configure"
 #include "confdefs.h"
 #include <$x_direct_test_include>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4406,14 +4309,14 @@
   ac_save_LIBS="$LIBS"
   LIBS="-l$x_direct_test_library $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4410 "configure"
+#line 4313 "configure"
 #include "confdefs.h"
 
 int main() {
 ${x_direct_test_function}()
 ; return 0; }
 EOF
-if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   LIBS="$ac_save_LIBS"
 # We can link X programs with no special library path.
@@ -4519,17 +4422,17 @@
     case "`(uname -sr) 2>/dev/null`" in
     "SunOS 5"*)
       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
-echo "configure:4523: checking whether -R must be followed by a space" >&5
+echo "configure:4426: checking whether -R must be followed by a space" >&5
       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
       cat > conftest.$ac_ext <<EOF
-#line 4526 "configure"
+#line 4429 "configure"
 #include "confdefs.h"
 
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_R_nospace=yes
 else
@@ -4545,14 +4448,14 @@
       else
 	LIBS="$ac_xsave_LIBS -R $x_libraries"
 	cat > conftest.$ac_ext <<EOF
-#line 4549 "configure"
+#line 4452 "configure"
 #include "confdefs.h"
 
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_R_space=yes
 else
@@ -4584,7 +4487,7 @@
     # libraries were built with DECnet support.  And karl@cs.umb.edu says
     # the Alpha needs dnet_stub (dnet does not exist).
     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
-echo "configure:4588: checking for dnet_ntoa in -ldnet" >&5
+echo "configure:4491: checking for dnet_ntoa in -ldnet" >&5
 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4592,7 +4495,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldnet  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4596 "configure"
+#line 4499 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -4603,7 +4506,7 @@
 dnet_ntoa()
 ; return 0; }
 EOF
-if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -4625,7 +4528,7 @@
 
     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
-echo "configure:4629: checking for dnet_ntoa in -ldnet_stub" >&5
+echo "configure:4532: checking for dnet_ntoa in -ldnet_stub" >&5
 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4633,7 +4536,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldnet_stub  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4637 "configure"
+#line 4540 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -4644,7 +4547,7 @@
 dnet_ntoa()
 ; return 0; }
 EOF
-if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -4673,12 +4576,12 @@
     # The nsl library prevents programs from opening the X display
     # on Irix 5.2, according to dickey@clark.net.
     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
-echo "configure:4677: checking for gethostbyname" >&5
+echo "configure:4580: checking for gethostbyname" >&5
 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4682 "configure"
+#line 4585 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char gethostbyname(); below.  */
@@ -4701,7 +4604,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_gethostbyname=yes"
 else
@@ -4722,7 +4625,7 @@
 
     if test $ac_cv_func_gethostbyname = no; then
       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:4726: checking for gethostbyname in -lnsl" >&5
+echo "configure:4629: checking for gethostbyname in -lnsl" >&5
 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4730,7 +4633,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lnsl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4734 "configure"
+#line 4637 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -4741,7 +4644,7 @@
 gethostbyname()
 ; return 0; }
 EOF
-if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -4771,12 +4674,12 @@
     # -lsocket must be given before -lnsl if both are needed.
     # We assume that if connect needs -lnsl, so does gethostbyname.
     echo $ac_n "checking for connect""... $ac_c" 1>&6
-echo "configure:4775: checking for connect" >&5
+echo "configure:4678: checking for connect" >&5
 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4780 "configure"
+#line 4683 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char connect(); below.  */
@@ -4799,7 +4702,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_connect=yes"
 else
@@ -4820,7 +4723,7 @@
 
     if test $ac_cv_func_connect = no; then
       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
-echo "configure:4824: checking for connect in -lsocket" >&5
+echo "configure:4727: checking for connect in -lsocket" >&5
 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4828,7 +4731,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4832 "configure"
+#line 4735 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -4839,7 +4742,7 @@
 connect()
 ; return 0; }
 EOF
-if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -4863,12 +4766,12 @@
 
     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
     echo $ac_n "checking for remove""... $ac_c" 1>&6
-echo "configure:4867: checking for remove" >&5
+echo "configure:4770: checking for remove" >&5
 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4872 "configure"
+#line 4775 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char remove(); below.  */
@@ -4891,7 +4794,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_remove=yes"
 else
@@ -4912,7 +4815,7 @@
 
     if test $ac_cv_func_remove = no; then
       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
-echo "configure:4916: checking for remove in -lposix" >&5
+echo "configure:4819: checking for remove in -lposix" >&5
 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4920,7 +4823,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lposix  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4924 "configure"
+#line 4827 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -4931,7 +4834,7 @@
 remove()
 ; return 0; }
 EOF
-if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -4955,12 +4858,12 @@
 
     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
     echo $ac_n "checking for shmat""... $ac_c" 1>&6
-echo "configure:4959: checking for shmat" >&5
+echo "configure:4862: checking for shmat" >&5
 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4964 "configure"
+#line 4867 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char shmat(); below.  */
@@ -4983,7 +4886,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_shmat=yes"
 else
@@ -5004,7 +4907,7 @@
 
     if test $ac_cv_func_shmat = no; then
       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
-echo "configure:5008: checking for shmat in -lipc" >&5
+echo "configure:4911: checking for shmat in -lipc" >&5
 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -5012,7 +4915,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lipc  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 5016 "configure"
+#line 4919 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -5023,7 +4926,7 @@
 shmat()
 ; return 0; }
 EOF
-if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -5056,7 +4959,7 @@
   # libraries we check for below, so use a different variable.
   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
-echo "configure:5060: checking for IceConnectionNumber in -lICE" >&5
+echo "configure:4963: checking for IceConnectionNumber in -lICE" >&5
 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -5064,7 +4967,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 5068 "configure"
+#line 4971 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -5075,7 +4978,7 @@
 IceConnectionNumber()
 ; return 0; }
 EOF
-if { (eval echo configure:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -5164,6 +5067,7 @@
     case "${target_os}" in
         linux*)       OS_ARCH=Linux OS_TARGET=Linux ;;
         kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD OS_TARGET=GNU_kFreeBSD ;;
+        gnu*)         OS_ARCH=GNU ;;
         solaris*)     OS_ARCH=SunOS OS_RELEASE=5 ;;
         mingw*)       OS_ARCH=WINNT ;;
         wince*)       OS_ARCH=WINCE ;;
@@ -5471,6 +5375,7 @@
     WARNINGS_AS_ERRORS='-Werror'
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-fPIC'
+    ASFLAGS="$ASFLAGS -fPIC"
     _MOZ_RTTI_FLAGS_ON=${_COMPILER_PREFIX}-frtti
     _MOZ_RTTI_FLAGS_OFF=${_COMPILER_PREFIX}-fno-rtti
     _MOZ_EXCEPTIONS_FLAGS_ON='-fhandle-exceptions'
@@ -5543,7 +5448,7 @@
 if test "$COMPILE_ENVIRONMENT"; then
 if test "$GNU_CC"; then
   echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6
-echo "configure:5547: checking whether ld has archive extraction flags" >&5
+echo "configure:5452: checking whether ld has archive extraction flags" >&5
   if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -5560,14 +5465,14 @@
       LDFLAGS=$force
       LIBS=$unforce
       cat > conftest.$ac_ext <<EOF
-#line 5564 "configure"
+#line 5469 "configure"
 #include "confdefs.h"
 
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_mkshlib_force_and_unforce=$line; break
 else
@@ -5600,7 +5505,7 @@
 '
 
 echo $ac_n "checking that static assertion macros used in autoconf tests work""... $ac_c" 1>&6
-echo "configure:5604: checking that static assertion macros used in autoconf tests work" >&5
+echo "configure:5509: checking that static assertion macros used in autoconf tests work" >&5
 if eval "test \"`echo '$''{'ac_cv_static_assertion_macros_work'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -5614,14 +5519,14 @@
 
   ac_cv_static_assertion_macros_work="yes"
   cat > conftest.$ac_ext <<EOF
-#line 5618 "configure"
+#line 5523 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(1)
 ; return 0; }
 EOF
-if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -5631,14 +5536,14 @@
 fi
 rm -f conftest*
   cat > conftest.$ac_ext <<EOF
-#line 5635 "configure"
+#line 5540 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(0)
 ; return 0; }
 EOF
-if { (eval echo configure:5642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_static_assertion_macros_work="no"
 else
@@ -5654,14 +5559,14 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
   cat > conftest.$ac_ext <<EOF
-#line 5658 "configure"
+#line 5563 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(1)
 ; return 0; }
 EOF
-if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -5671,14 +5576,14 @@
 fi
 rm -f conftest*
   cat > conftest.$ac_ext <<EOF
-#line 5675 "configure"
+#line 5580 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(0)
 ; return 0; }
 EOF
-if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_static_assertion_macros_work="no"
 else
@@ -5713,16 +5618,16 @@
 cross_compiling=$ac_cv_prog_cc_cross
 
 echo $ac_n "checking for 64-bit OS""... $ac_c" 1>&6
-echo "configure:5717: checking for 64-bit OS" >&5
+echo "configure:5622: checking for 64-bit OS" >&5
 cat > conftest.$ac_ext <<EOF
-#line 5719 "configure"
+#line 5624 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(sizeof(long) == 8)
 ; return 0; }
 EOF
-if { (eval echo configure:5726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   result="yes"
 else
@@ -5814,7 +5719,7 @@
     LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(LIBXUL_DIST)/bin/XUL -lobjc'
     ;;
 
-*-linux*|*-kfreebsd*-gnu)
+*-linux*|*-kfreebsd*-gnu|*-gnu*)
     HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
     HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
@@ -5895,9 +5800,9 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
             echo $ac_n "checking for VisualAge C++ compiler version >= 6.0.0.3""... $ac_c" 1>&6
-echo "configure:5899: checking for VisualAge C++ compiler version >= 6.0.0.3" >&5
+echo "configure:5804: checking for VisualAge C++ compiler version >= 6.0.0.3" >&5
             cat > conftest.$ac_ext <<EOF
-#line 5901 "configure"
+#line 5806 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -5906,7 +5811,7 @@
                  #endif
 ; return 0; }
 EOF
-if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   _BAD_COMPILER=
 else
@@ -5944,17 +5849,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:5948: checking for $ac_hdr" >&5
+echo "configure:5853: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 5953 "configure"
+#line 5858 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -5996,7 +5901,7 @@
     LIBS="$LIBS -lbe"
     if test "$COMPILE_ENVIRONMENT"; then
         echo $ac_n "checking for main in -lbind""... $ac_c" 1>&6
-echo "configure:6000: checking for main in -lbind" >&5
+echo "configure:5905: checking for main in -lbind" >&5
 ac_lib_var=`echo bind'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -6004,14 +5909,14 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lbind  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 6008 "configure"
+#line 5913 "configure"
 #include "confdefs.h"
 
 int main() {
 main()
 ; return 0; }
 EOF
-if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -6032,7 +5937,7 @@
 fi
 
         echo $ac_n "checking for main in -lzeta""... $ac_c" 1>&6
-echo "configure:6036: checking for main in -lzeta" >&5
+echo "configure:5941: checking for main in -lzeta" >&5
 ac_lib_var=`echo zeta'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -6040,14 +5945,14 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lzeta  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 6044 "configure"
+#line 5949 "configure"
 #include "confdefs.h"
 
 int main() {
 main()
 ; return 0; }
 EOF
-if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -6116,18 +6021,18 @@
     MACOSX=1
 
         echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6
-echo "configure:6120: checking for -dead_strip option to ld" >&5
+echo "configure:6025: checking for -dead_strip option to ld" >&5
     _SAVE_LDFLAGS=$LDFLAGS
     LDFLAGS="$LDFLAGS -Wl,-dead_strip"
     cat > conftest.$ac_ext <<EOF
-#line 6124 "configure"
+#line 6029 "configure"
 #include "confdefs.h"
 
 int main() {
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   _HAVE_DEAD_STRIP=1
 else
@@ -6280,8 +6185,7 @@
         MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS=1
     ;;
     mips*)
-        CFLAGS="$CFLAGS -Wa,-xgot"
-        CXXFLAGS="$CXXFLAGS -Wa,-xgot"
+        MOZ_DEBUG_FLAGS="-g" # We want inlining
     ;;
     esac
     ;;
@@ -6652,17 +6556,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:6656: checking for $ac_hdr" >&5
+echo "configure:6560: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 6661 "configure"
+#line 6565 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -6701,17 +6605,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:6705: checking for $ac_hdr" >&5
+echo "configure:6609: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 6710 "configure"
+#line 6614 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -6957,19 +6861,19 @@
         _DEFINES_CXXFLAGS="$_DEFINES_CXXFLAGS -Uunix -U__unix -U__unix__"
 
         echo $ac_n "checking for __declspec(dllexport)""... $ac_c" 1>&6
-echo "configure:6961: checking for __declspec(dllexport)" >&5
+echo "configure:6865: checking for __declspec(dllexport)" >&5
 if eval "test \"`echo '$''{'ac_os2_declspec'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 6966 "configure"
+#line 6870 "configure"
 #include "confdefs.h"
 __declspec(dllexport) void ac_os2_declspec(void) {}
 int main() {
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_os2_declspec="yes"
 else
@@ -7155,14 +7059,14 @@
            _SAVE_LDFLAGS=$LDFLAGS
            LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS" 
            cat > conftest.$ac_ext <<EOF
-#line 7159 "configure"
+#line 7063 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
 printf("Hello World\n");
 ; return 0; }
 EOF
-if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -7191,7 +7095,7 @@
         CC_VERSION=`$CC -V 2>&1 | grep '^cc:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
         CXX_VERSION=`$CXX -V 2>&1 | grep '^CC:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
        echo $ac_n "checking for Forte compiler version >= WS6U2""... $ac_c" 1>&6
-echo "configure:7195: checking for Forte compiler version >= WS6U2" >&5
+echo "configure:7099: checking for Forte compiler version >= WS6U2" >&5
        
        ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -7201,7 +7105,7 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
        cat > conftest.$ac_ext <<EOF
-#line 7205 "configure"
+#line 7109 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -7210,7 +7114,7 @@
            #endif
 ; return 0; }
 EOF
-if { (eval echo configure:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   _BAD_COMPILER=
 else
@@ -7320,7 +7224,7 @@
 esac
 
 case "$target" in
-    *-linux*|*-kfreebsd*-gnu)
+    *-linux*|*-kfreebsd*-gnu|*-gnu*)
         MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
         ;;
     *-solaris*)
@@ -7361,12 +7265,12 @@
 cross_compiling=$ac_cv_prog_cc_cross
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:7365: checking for ANSI C header files" >&5
+echo "configure:7269: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7370 "configure"
+#line 7274 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <stdarg.h>
@@ -7374,7 +7278,7 @@
 #include <float.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:7282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -7391,7 +7295,7 @@
 if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 7395 "configure"
+#line 7299 "configure"
 #include "confdefs.h"
 #include <string.h>
 EOF
@@ -7409,7 +7313,7 @@
 if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 7413 "configure"
+#line 7317 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
@@ -7430,7 +7334,7 @@
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 7434 "configure"
+#line 7338 "configure"
 #include "confdefs.h"
 #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -7441,7 +7345,7 @@
 exit (0); }
 
 EOF
-if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -7465,12 +7369,12 @@
 fi
 
 echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:7469: checking for working const" >&5
+echo "configure:7373: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7474 "configure"
+#line 7378 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -7519,7 +7423,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:7523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_const=yes
 else
@@ -7540,12 +7444,12 @@
 fi
 
 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:7544: checking for mode_t" >&5
+echo "configure:7448: checking for mode_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7549 "configure"
+#line 7453 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -7573,12 +7477,12 @@
 fi
 
 echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:7577: checking for off_t" >&5
+echo "configure:7481: checking for off_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7582 "configure"
+#line 7486 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -7606,12 +7510,12 @@
 fi
 
 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:7610: checking for pid_t" >&5
+echo "configure:7514: checking for pid_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7615 "configure"
+#line 7519 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -7639,12 +7543,12 @@
 fi
 
 echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:7643: checking for size_t" >&5
+echo "configure:7547: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7648 "configure"
+#line 7552 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -7672,12 +7576,12 @@
 fi
 
 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
-echo "configure:7676: checking for st_blksize in struct stat" >&5
+echo "configure:7580: checking for st_blksize in struct stat" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7681 "configure"
+#line 7585 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -7685,7 +7589,7 @@
 struct stat s; s.st_blksize;
 ; return 0; }
 EOF
-if { (eval echo configure:7689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_st_blksize=yes
 else
@@ -7706,12 +7610,12 @@
 fi
 
 echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6
-echo "configure:7710: checking for siginfo_t" >&5
+echo "configure:7614: checking for siginfo_t" >&5
 if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7715 "configure"
+#line 7619 "configure"
 #include "confdefs.h"
 #define _POSIX_C_SOURCE 199506L
                   #include <signal.h>
@@ -7719,7 +7623,7 @@
 siginfo_t* info;
 ; return 0; }
 EOF
-if { (eval echo configure:7723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_siginfo_t=true
 else
@@ -7753,12 +7657,12 @@
 fi
 
 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
-echo "configure:7757: checking for int16_t" >&5
+echo "configure:7661: checking for int16_t" >&5
 if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7762 "configure"
+#line 7666 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7766,7 +7670,7 @@
 int16_t foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_int16_t=true
 else
@@ -7788,12 +7692,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
-echo "configure:7792: checking for int32_t" >&5
+echo "configure:7696: checking for int32_t" >&5
 if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7797 "configure"
+#line 7701 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7801,7 +7705,7 @@
 int32_t foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_int32_t=true
 else
@@ -7823,12 +7727,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
-echo "configure:7827: checking for int64_t" >&5
+echo "configure:7731: checking for int64_t" >&5
 if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7832 "configure"
+#line 7736 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7836,7 +7740,7 @@
 int64_t foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_int64_t=true
 else
@@ -7858,12 +7762,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for int64""... $ac_c" 1>&6
-echo "configure:7862: checking for int64" >&5
+echo "configure:7766: checking for int64" >&5
 if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7867 "configure"
+#line 7771 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7871,7 +7775,7 @@
 int64 foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_int64=true
 else
@@ -7893,12 +7797,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for uint""... $ac_c" 1>&6
-echo "configure:7897: checking for uint" >&5
+echo "configure:7801: checking for uint" >&5
 if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7902 "configure"
+#line 7806 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7906,7 +7810,7 @@
 uint foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_uint=true
 else
@@ -7928,12 +7832,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for uint_t""... $ac_c" 1>&6
-echo "configure:7932: checking for uint_t" >&5
+echo "configure:7836: checking for uint_t" >&5
 if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7937 "configure"
+#line 7841 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7941,7 +7845,7 @@
 uint_t foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_uint_t=true
 else
@@ -7963,12 +7867,12 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
-echo "configure:7967: checking for uint16_t" >&5
+echo "configure:7871: checking for uint16_t" >&5
 if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 7972 "configure"
+#line 7876 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                   #include <sys/types.h>
@@ -7976,7 +7880,7 @@
 uint16_t foo = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:7980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_uint16_t=true
 else
@@ -8007,12 +7911,12 @@
 
 
 echo $ac_n "checking for uname.domainname""... $ac_c" 1>&6
-echo "configure:8011: checking for uname.domainname" >&5
+echo "configure:7915: checking for uname.domainname" >&5
 if eval "test \"`echo '$''{'ac_cv_have_uname_domainname_field'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8016 "configure"
+#line 7920 "configure"
 #include "confdefs.h"
 #include <sys/utsname.h>
 int main() {
@@ -8020,7 +7924,7 @@
             (void)uname(res);  if (res != 0) { domain = res->domainname; } 
 ; return 0; }
 EOF
-if { (eval echo configure:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_have_uname_domainname_field=true
 else
@@ -8044,12 +7948,12 @@
 fi
 
 echo $ac_n "checking for uname.__domainname""... $ac_c" 1>&6
-echo "configure:8048: checking for uname.__domainname" >&5
+echo "configure:7952: checking for uname.__domainname" >&5
 if eval "test \"`echo '$''{'ac_cv_have_uname_us_domainname_field'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8053 "configure"
+#line 7957 "configure"
 #include "confdefs.h"
 #include <sys/utsname.h>
 int main() {
@@ -8057,7 +7961,7 @@
             (void)uname(res);  if (res != 0) { domain = res->__domainname; } 
 ; return 0; }
 EOF
-if { (eval echo configure:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_have_uname_us_domainname_field=true
 else
@@ -8090,12 +7994,12 @@
 
 
 echo $ac_n "checking for usable wchar_t (2 bytes, unsigned)""... $ac_c" 1>&6
-echo "configure:8094: checking for usable wchar_t (2 bytes, unsigned)" >&5
+echo "configure:7998: checking for usable wchar_t (2 bytes, unsigned)" >&5
 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_v2'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8099 "configure"
+#line 8003 "configure"
 #include "confdefs.h"
 #include <stddef.h>
                      $configure_static_assert_macros
@@ -8104,7 +8008,7 @@
                      CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)
 ; return 0; }
 EOF
-if { (eval echo configure:8108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_have_usable_wchar_v2="yes"
 else
@@ -8123,7 +8027,7 @@
 EOF
 
     HAVE_CPP_2BYTE_WCHAR_T=1
-else
+elif false; then
 
     
     ac_ext=C
@@ -8137,12 +8041,12 @@
     CXXFLAGS="$CXXFLAGS -fshort-wchar"
 
     echo $ac_n "checking for compiler -fshort-wchar option""... $ac_c" 1>&6
-echo "configure:8141: checking for compiler -fshort-wchar option" >&5
+echo "configure:8045: checking for compiler -fshort-wchar option" >&5
 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_option_v2'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8146 "configure"
+#line 8050 "configure"
 #include "confdefs.h"
 #include <stddef.h>
                          $configure_static_assert_macros
@@ -8151,7 +8055,7 @@
                          CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)
 ; return 0; }
 EOF
-if { (eval echo configure:8155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_have_usable_wchar_option_v2="yes"
 else
@@ -8171,6 +8075,7 @@
 EOF
 
         HAVE_CPP_2BYTE_WCHAR_T=1
+        WCHAR_CFLAGS="-fshort-wchar"
     else    
         CXXFLAGS=$_SAVE_CXXFLAGS
     fi
@@ -8185,7 +8090,7 @@
 
 if test "$GNU_CC"; then
   echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
-echo "configure:8189: checking for visibility(hidden) attribute" >&5
+echo "configure:8094: checking for visibility(hidden) attribute" >&5
 if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8210,7 +8115,7 @@
 
 
     echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6
-echo "configure:8214: checking for visibility(default) attribute" >&5
+echo "configure:8119: checking for visibility(default) attribute" >&5
 if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8235,7 +8140,7 @@
 
 
       echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
-echo "configure:8239: checking for visibility pragma support" >&5
+echo "configure:8144: checking for visibility pragma support" >&5
 if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8260,7 +8165,7 @@
 echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
       if test "$ac_cv_visibility_pragma" = "yes"; then
         echo $ac_n "checking For gcc visibility bug with class-level attributes (GCC bug 26905)""... $ac_c" 1>&6
-echo "configure:8264: checking For gcc visibility bug with class-level attributes (GCC bug 26905)" >&5
+echo "configure:8169: checking For gcc visibility bug with class-level attributes (GCC bug 26905)" >&5
 if eval "test \"`echo '$''{'ac_cv_have_visibility_class_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8288,7 +8193,7 @@
 echo "$ac_t""$ac_cv_have_visibility_class_bug" 1>&6
 
         echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6
-echo "configure:8292: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5
+echo "configure:8197: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5
 if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8336,12 +8241,12 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:8340: checking for $ac_hdr that defines DIR" >&5
+echo "configure:8245: checking for $ac_hdr that defines DIR" >&5
 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8345 "configure"
+#line 8250 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <$ac_hdr>
@@ -8349,7 +8254,7 @@
 DIR *dirp = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:8353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   eval "ac_cv_header_dirent_$ac_safe=yes"
 else
@@ -8374,7 +8279,7 @@
 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 if test $ac_header_dirent = dirent.h; then
 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:8378: checking for opendir in -ldir" >&5
+echo "configure:8283: checking for opendir in -ldir" >&5
 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -8382,7 +8287,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldir  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 8386 "configure"
+#line 8291 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -8393,7 +8298,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -8415,7 +8320,7 @@
 
 else
 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:8419: checking for opendir in -lx" >&5
+echo "configure:8324: checking for opendir in -lx" >&5
 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -8423,7 +8328,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lx  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 8427 "configure"
+#line 8332 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -8434,7 +8339,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -8466,17 +8371,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8470: checking for $ac_hdr" >&5
+echo "configure:8375: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8475 "configure"
+#line 8380 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8506,17 +8411,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8510: checking for $ac_hdr" >&5
+echo "configure:8415: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8515 "configure"
+#line 8420 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8546,17 +8451,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8550: checking for $ac_hdr" >&5
+echo "configure:8455: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8555 "configure"
+#line 8460 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8586,17 +8491,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8590: checking for $ac_hdr" >&5
+echo "configure:8495: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8595 "configure"
+#line 8500 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8626,17 +8531,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8630: checking for $ac_hdr" >&5
+echo "configure:8535: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8635 "configure"
+#line 8540 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8667,17 +8572,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8671: checking for $ac_hdr" >&5
+echo "configure:8576: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8676 "configure"
+#line 8581 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8708,17 +8613,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8712: checking for $ac_hdr" >&5
+echo "configure:8617: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8717 "configure"
+#line 8622 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8755,17 +8660,17 @@
 NEW_H=new.h
 ac_safe=`echo "new" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for new""... $ac_c" 1>&6
-echo "configure:8759: checking for new" >&5
+echo "configure:8664: checking for new" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8764 "configure"
+#line 8669 "configure"
 #include "confdefs.h"
 #include <new>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8807,17 +8712,17 @@
 if test "x$enable_dtrace" = "xyes"; then
   ac_safe=`echo "sys/sdt.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for sys/sdt.h""... $ac_c" 1>&6
-echo "configure:8811: checking for sys/sdt.h" >&5
+echo "configure:8716: checking for sys/sdt.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8816 "configure"
+#line 8721 "configure"
 #include "confdefs.h"
 #include <sys/sdt.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8857,17 +8762,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8861: checking for $ac_hdr" >&5
+echo "configure:8766: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 8866 "configure"
+#line 8771 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -8901,7 +8806,7 @@
 	;;
 *)
 	echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
-echo "configure:8905: checking for gethostbyname_r in -lc_r" >&5
+echo "configure:8810: checking for gethostbyname_r in -lc_r" >&5
 ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -8909,7 +8814,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lc_r  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 8913 "configure"
+#line 8818 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -8920,7 +8825,7 @@
 gethostbyname_r()
 ; return 0; }
 EOF
-if { (eval echo configure:8924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -8957,7 +8862,7 @@
     ;;
 *)
     echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
-echo "configure:8961: checking for atan in -lm" >&5
+echo "configure:8866: checking for atan in -lm" >&5
 ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -8965,7 +8870,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lm  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 8969 "configure"
+#line 8874 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -8976,7 +8881,7 @@
 atan()
 ; return 0; }
 EOF
-if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9004,7 +8909,7 @@
 fi
 
     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:9008: checking for dlopen in -ldl" >&5
+echo "configure:8913: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9012,7 +8917,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9016 "configure"
+#line 8921 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9023,7 +8928,7 @@
 dlopen()
 ; return 0; }
 EOF
-if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9040,17 +8945,17 @@
   echo "$ac_t""yes" 1>&6
   ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
-echo "configure:9044: checking for dlfcn.h" >&5
+echo "configure:8949: checking for dlfcn.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9049 "configure"
+#line 8954 "configure"
 #include "confdefs.h"
 #include <dlfcn.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -9087,12 +8992,12 @@
 for ac_func in dladdr
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9091: checking for $ac_func" >&5
+echo "configure:8996: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9096 "configure"
+#line 9001 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -9115,7 +9020,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -9146,7 +9051,7 @@
     case $target in
     *-aix*)
 	echo $ac_n "checking for demangle in -lC_r""... $ac_c" 1>&6
-echo "configure:9150: checking for demangle in -lC_r" >&5
+echo "configure:9055: checking for demangle in -lC_r" >&5
 ac_lib_var=`echo C_r'_'demangle | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9154,7 +9059,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lC_r  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9158 "configure"
+#line 9063 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9165,7 +9070,7 @@
 demangle()
 ; return 0; }
 EOF
-if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9195,7 +9100,7 @@
 	;;
      *)
 	echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6
-echo "configure:9199: checking for demangle in -lC" >&5
+echo "configure:9104: checking for demangle in -lC" >&5
 ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9203,7 +9108,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lC  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9207 "configure"
+#line 9112 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9214,7 +9119,7 @@
 demangle()
 ; return 0; }
 EOF
-if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9245,7 +9150,7 @@
      esac
 fi
 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:9249: checking for socket in -lsocket" >&5
+echo "configure:9154: checking for socket in -lsocket" >&5
 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9253,7 +9158,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lsocket  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9257 "configure"
+#line 9162 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9264,7 +9169,7 @@
 socket()
 ; return 0; }
 EOF
-if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9309,7 +9214,7 @@
 	_SAVE_LDFLAGS="$LDFLAGS"
 	LDFLAGS="$XLDFLAGS $LDFLAGS"
 	echo $ac_n "checking for XDrawLines in -lX11""... $ac_c" 1>&6
-echo "configure:9313: checking for XDrawLines in -lX11" >&5
+echo "configure:9218: checking for XDrawLines in -lX11" >&5
 ac_lib_var=`echo X11'_'XDrawLines | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9317,7 +9222,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lX11 $XLIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9321 "configure"
+#line 9226 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9328,7 +9233,7 @@
 XDrawLines()
 ; return 0; }
 EOF
-if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9350,7 +9255,7 @@
 fi
 
 	echo $ac_n "checking for XextAddDisplay in -lXext""... $ac_c" 1>&6
-echo "configure:9354: checking for XextAddDisplay in -lXext" >&5
+echo "configure:9259: checking for XextAddDisplay in -lXext" >&5
 ac_lib_var=`echo Xext'_'XextAddDisplay | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9358,7 +9263,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lXext $XLIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9362 "configure"
+#line 9267 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9369,7 +9274,7 @@
 XextAddDisplay()
 ; return 0; }
 EOF
-if { (eval echo configure:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9393,7 +9298,7 @@
    
      
 	echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
-echo "configure:9397: checking for XtFree in -lXt" >&5
+echo "configure:9302: checking for XtFree in -lXt" >&5
 ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9401,7 +9306,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lXt  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9405 "configure"
+#line 9310 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9412,7 +9317,7 @@
 XtFree()
 ; return 0; }
 EOF
-if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9433,7 +9338,7 @@
 
         unset ac_cv_lib_Xt_XtFree
 	    echo $ac_n "checking for IceFlush in -lICE""... $ac_c" 1>&6
-echo "configure:9437: checking for IceFlush in -lICE" >&5
+echo "configure:9342: checking for IceFlush in -lICE" >&5
 ac_lib_var=`echo ICE'_'IceFlush | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9441,7 +9346,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lICE $XT_LIBS $XLIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9445 "configure"
+#line 9350 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9452,7 +9357,7 @@
 IceFlush()
 ; return 0; }
 EOF
-if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9473,7 +9378,7 @@
 fi
 
 	    echo $ac_n "checking for SmcCloseConnection in -lSM""... $ac_c" 1>&6
-echo "configure:9477: checking for SmcCloseConnection in -lSM" >&5
+echo "configure:9382: checking for SmcCloseConnection in -lSM" >&5
 ac_lib_var=`echo SM'_'SmcCloseConnection | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9481,7 +9386,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lSM $XT_LIBS $XLIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9485 "configure"
+#line 9390 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9492,7 +9397,7 @@
 SmcCloseConnection()
 ; return 0; }
 EOF
-if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9513,7 +9418,7 @@
 fi
  
         echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
-echo "configure:9517: checking for XtFree in -lXt" >&5
+echo "configure:9422: checking for XtFree in -lXt" >&5
 ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9521,7 +9426,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lXt $X_PRE_LIBS $XT_LIBS $XLIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9525 "configure"
+#line 9430 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9532,7 +9437,7 @@
 XtFree()
 ; return 0; }
 EOF
-if { (eval echo configure:9536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9566,7 +9471,7 @@
     esac
 
                 echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6
-echo "configure:9570: checking for XShmCreateImage in -lXext" >&5
+echo "configure:9475: checking for XShmCreateImage in -lXext" >&5
 ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9574,7 +9479,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lXext $XLIBS $XEXT_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9578 "configure"
+#line 9483 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9585,7 +9490,7 @@
 XShmCreateImage()
 ; return 0; }
 EOF
-if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9607,17 +9512,17 @@
 
     ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6
-echo "configure:9611: checking for X11/extensions/XShm.h" >&5
+echo "configure:9516: checking for X11/extensions/XShm.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9616 "configure"
+#line 9521 "configure"
 #include "confdefs.h"
 #include <X11/extensions/XShm.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:9526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -9647,7 +9552,7 @@
     fi
 
                 echo $ac_n "checking for XieFloGeometry in -lXIE""... $ac_c" 1>&6
-echo "configure:9651: checking for XieFloGeometry in -lXIE" >&5
+echo "configure:9556: checking for XieFloGeometry in -lXIE" >&5
 ac_lib_var=`echo XIE'_'XieFloGeometry | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9655,7 +9560,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lXIE $XLIBS $XEXT_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9659 "configure"
+#line 9564 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9666,7 +9571,7 @@
 XieFloGeometry()
 ; return 0; }
 EOF
-if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9688,17 +9593,17 @@
 
     ac_safe=`echo "X11/extensions/XIElib.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for X11/extensions/XIElib.h""... $ac_c" 1>&6
-echo "configure:9692: checking for X11/extensions/XIElib.h" >&5
+echo "configure:9597: checking for X11/extensions/XIElib.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9697 "configure"
+#line 9602 "configure"
 #include "confdefs.h"
 #include <X11/extensions/XIElib.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:9607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -9772,7 +9677,7 @@
 # Extract the first word of "freetype-config", so it can be a program name with args.
 set dummy freetype-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:9776: checking for $ac_word" >&5
+echo "configure:9681: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_FT2_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9808,7 +9713,7 @@
 
 min_ft_version=6.1.0
 echo $ac_n "checking for FreeType - version >= $min_ft_version""... $ac_c" 1>&6
-echo "configure:9812: checking for FreeType - version >= $min_ft_version" >&5
+echo "configure:9717: checking for FreeType - version >= $min_ft_version" >&5
 no_ft=""
 if test "$FT2_CONFIG" = "no" ; then
   no_ft=yes
@@ -9856,7 +9761,7 @@
   echo $ac_n "cross compiling; assumed OK... $ac_c"
 else
   cat > conftest.$ac_ext <<EOF
-#line 9860 "configure"
+#line 9765 "configure"
 #include "confdefs.h"
 
 #include <ft2build.h>
@@ -9882,7 +9787,7 @@
 }
 
 EOF
-if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -9932,12 +9837,12 @@
     	CFLAGS="$CFLAGS $FT2_CFLAGS"
 
         echo $ac_n "checking for FT_Bitmap_Size.y_ppem""... $ac_c" 1>&6
-echo "configure:9936: checking for FT_Bitmap_Size.y_ppem" >&5
+echo "configure:9841: checking for FT_Bitmap_Size.y_ppem" >&5
 if eval "test \"`echo '$''{'ac_cv_member_FT_Bitmap_Size_y_ppem'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9941 "configure"
+#line 9846 "configure"
 #include "confdefs.h"
 #include <ft2build.h>
                              #include FT_FREETYPE_H
@@ -9947,7 +9852,7 @@
                              return 1
 ; return 0; }
 EOF
-if { (eval echo configure:9951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_member_FT_Bitmap_Size_y_ppem=yes
 else
@@ -9973,12 +9878,12 @@
         for ac_func in FT_GlyphSlot_Embolden FT_Load_Sfnt_Table FT_Select_Size
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9977: checking for $ac_func" >&5
+echo "configure:9882: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 9982 "configure"
+#line 9887 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -10001,7 +9906,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:10005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -10044,7 +9949,7 @@
 *)
     
 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
-echo "configure:10048: checking for pthread_create in -lpthreads" >&5
+echo "configure:9953: checking for pthread_create in -lpthreads" >&5
 echo "
     #include <pthread.h>
     #include <stdlib.h>
@@ -10067,7 +9972,7 @@
         echo "$ac_t""no" 1>&6
         
 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:10071: checking for pthread_create in -lpthread" >&5
+echo "configure:9976: checking for pthread_create in -lpthread" >&5
 echo "
     #include <pthread.h>
     #include <stdlib.h>
@@ -10090,7 +9995,7 @@
         echo "$ac_t""no" 1>&6
         
 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
-echo "configure:10094: checking for pthread_create in -lc_r" >&5
+echo "configure:9999: checking for pthread_create in -lc_r" >&5
 echo "
     #include <pthread.h>
     #include <stdlib.h>
@@ -10113,7 +10018,7 @@
         echo "$ac_t""no" 1>&6
         
 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
-echo "configure:10117: checking for pthread_create in -lc" >&5
+echo "configure:10022: checking for pthread_create in -lc" >&5
 echo "
     #include <pthread.h>
     #include <stdlib.h>
@@ -10172,7 +10077,7 @@
 				rm -f conftest*
 	ac_cv_have_dash_pthread=no
 	echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
-echo "configure:10176: checking whether ${CC-cc} accepts -pthread" >&5
+echo "configure:10081: checking whether ${CC-cc} accepts -pthread" >&5
 	echo 'int main() { return 0; }' | cat > conftest.c
 	${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
 	if test $? -eq 0; then
@@ -10195,7 +10100,7 @@
 			    ac_cv_have_dash_pthreads=no
     if test "$ac_cv_have_dash_pthread" = "no"; then
 	    echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
-echo "configure:10199: checking whether ${CC-cc} accepts -pthreads" >&5
+echo "configure:10104: checking whether ${CC-cc} accepts -pthreads" >&5
     	echo 'int main() { return 0; }' | cat > conftest.c
 	    ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
     	if test $? -eq 0; then
@@ -10240,7 +10145,7 @@
 			fi
 			;;
 
-	    *-*-linux*|*-*-kfreebsd*-gnu)
+	    *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*)
 			cat >> confdefs.h <<\EOF
 #define _REENTRANT 1
 EOF
@@ -10290,7 +10195,7 @@
 fi
 
 echo $ac_n "checking whether mmap() sees write()s""... $ac_c" 1>&6
-echo "configure:10294: checking whether mmap() sees write()s" >&5
+echo "configure:10199: checking whether mmap() sees write()s" >&5
 
 
 mmap_test_prog='
@@ -10329,11 +10234,11 @@
   result="yes"
 else
   cat > conftest.$ac_ext <<EOF
-#line 10333 "configure"
+#line 10238 "configure"
 #include "confdefs.h"
 $mmap_test_prog 
 EOF
-if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   result="yes"
 else
@@ -10358,13 +10263,13 @@
 
 if test $ac_cv_prog_gcc = yes; then
     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:10362: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:10267: checking whether ${CC-cc} needs -traditional" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
     ac_pattern="Autoconf.*'x'"
   cat > conftest.$ac_ext <<EOF
-#line 10368 "configure"
+#line 10273 "configure"
 #include "confdefs.h"
 #include <sgtty.h>
 Autoconf TIOCGETP
@@ -10382,7 +10287,7 @@
 
   if test $ac_cv_prog_gcc_traditional = no; then
     cat > conftest.$ac_ext <<EOF
-#line 10386 "configure"
+#line 10291 "configure"
 #include "confdefs.h"
 #include <termio.h>
 Autoconf TCGETA
@@ -10404,7 +10309,7 @@
 fi
 
 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:10408: checking for 8-bit clean memcmp" >&5
+echo "configure:10313: checking for 8-bit clean memcmp" >&5
 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10412,7 +10317,7 @@
   ac_cv_func_memcmp_clean=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10416 "configure"
+#line 10321 "configure"
 #include "confdefs.h"
 
 main()
@@ -10422,7 +10327,7 @@
 }
 
 EOF
-if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_func_memcmp_clean=yes
 else
@@ -10442,12 +10347,12 @@
 for ac_func in random strerror lchown fchmod snprintf statvfs memmove rint stat64 lstat64 truncate64 statvfs64
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:10446: checking for $ac_func" >&5
+echo "configure:10351: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10451 "configure"
+#line 10356 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -10470,7 +10375,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -10497,12 +10402,12 @@
 for ac_func in flockfile getpagesize
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:10501: checking for $ac_func" >&5
+echo "configure:10406: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10506 "configure"
+#line 10411 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -10525,7 +10430,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:10529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -10554,12 +10459,12 @@
   for ac_func in localtime_r strtok_r
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:10558: checking for $ac_func" >&5
+echo "configure:10463: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10563 "configure"
+#line 10468 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -10582,7 +10487,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -10618,19 +10523,19 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
 echo $ac_n "checking for wcrtomb""... $ac_c" 1>&6
-echo "configure:10622: checking for wcrtomb" >&5
+echo "configure:10527: checking for wcrtomb" >&5
 if eval "test \"`echo '$''{'ac_cv_have_wcrtomb'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10627 "configure"
+#line 10532 "configure"
 #include "confdefs.h"
 #include <wchar.h>
 int main() {
 mbstate_t ps={0};wcrtomb(0,'f',&ps);
 ; return 0; }
 EOF
-if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_have_wcrtomb="yes"
 else
@@ -10650,19 +10555,19 @@
 
 fi
 echo $ac_n "checking for mbrtowc""... $ac_c" 1>&6
-echo "configure:10654: checking for mbrtowc" >&5
+echo "configure:10559: checking for mbrtowc" >&5
 if eval "test \"`echo '$''{'ac_cv_have_mbrtowc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10659 "configure"
+#line 10564 "configure"
 #include "confdefs.h"
 #include <wchar.h>
 int main() {
 mbstate_t ps={0};mbrtowc(0,0,0,&ps);
 ; return 0; }
 EOF
-if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_have_mbrtowc="yes"
 else
@@ -10691,12 +10596,12 @@
 fi
 
 echo $ac_n "checking for res_ninit()""... $ac_c" 1>&6
-echo "configure:10695: checking for res_ninit()" >&5
+echo "configure:10600: checking for res_ninit()" >&5
 if eval "test \"`echo '$''{'ac_cv_func_res_ninit'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10700 "configure"
+#line 10605 "configure"
 #include "confdefs.h"
 
         #ifdef linux
@@ -10708,7 +10613,7 @@
 int foo = res_ninit(&_res);
 ; return 0; }
 EOF
-if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_func_res_ninit=yes
 else
@@ -10738,12 +10643,12 @@
 cross_compiling=$ac_cv_prog_cxx_cross
 
 echo $ac_n "checking for gnu_get_libc_version()""... $ac_c" 1>&6
-echo "configure:10742: checking for gnu_get_libc_version()" >&5
+echo "configure:10647: checking for gnu_get_libc_version()" >&5
 if eval "test \"`echo '$''{'ac_cv_func_gnu_get_libc_version'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10747 "configure"
+#line 10652 "configure"
 #include "confdefs.h"
 
         #ifdef HAVE_GNU_LIBC_VERSION_H
@@ -10754,7 +10659,7 @@
 const char *glibc_version = gnu_get_libc_version();
 ; return 0; }
 EOF
-if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_func_gnu_get_libc_version=yes
 else
@@ -10783,7 +10688,7 @@
     *)
     
 echo $ac_n "checking for iconv in -lc""... $ac_c" 1>&6
-echo "configure:10787: checking for iconv in -lc" >&5
+echo "configure:10692: checking for iconv in -lc" >&5
 ac_lib_var=`echo c'_'iconv | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -10791,7 +10696,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lc  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 10795 "configure"
+#line 10700 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus
@@ -10805,7 +10710,7 @@
 iconv()
 ; return 0; }
 EOF
-if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -10824,7 +10729,7 @@
 else
   echo "$ac_t""no" 1>&6
 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
-echo "configure:10828: checking for iconv in -liconv" >&5
+echo "configure:10733: checking for iconv in -liconv" >&5
 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -10832,7 +10737,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-liconv  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 10836 "configure"
+#line 10741 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus
@@ -10846,7 +10751,7 @@
 iconv()
 ; return 0; }
 EOF
-if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -10865,7 +10770,7 @@
 else
   echo "$ac_t""no" 1>&6
 echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
-echo "configure:10869: checking for libiconv in -liconv" >&5
+echo "configure:10774: checking for libiconv in -liconv" >&5
 ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -10873,7 +10778,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-liconv  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 10877 "configure"
+#line 10782 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus
@@ -10887,7 +10792,7 @@
 libiconv()
 ; return 0; }
 EOF
-if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -10914,12 +10819,12 @@
 _SAVE_LIBS=$LIBS
 LIBS="$LIBS $_ICONV_LIBS"
 echo $ac_n "checking for iconv()""... $ac_c" 1>&6
-echo "configure:10918: checking for iconv()" >&5
+echo "configure:10823: checking for iconv()" >&5
 if eval "test \"`echo '$''{'ac_cv_func_iconv'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10923 "configure"
+#line 10828 "configure"
 #include "confdefs.h"
 
         #include <stdlib.h>
@@ -10933,7 +10838,7 @@
         
 ; return 0; }
 EOF
-if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_func_iconv=yes
 else
@@ -10957,12 +10862,12 @@
     LIBXUL_LIBS="$LIBXUL_LIBS $_ICONV_LIBS"
     LIBICONV="$_ICONV_LIBS"
     echo $ac_n "checking for iconv() with const input""... $ac_c" 1>&6
-echo "configure:10961: checking for iconv() with const input" >&5
+echo "configure:10866: checking for iconv() with const input" >&5
 if eval "test \"`echo '$''{'ac_cv_func_const_iconv'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10966 "configure"
+#line 10871 "configure"
 #include "confdefs.h"
 
             #include <stdlib.h>
@@ -10977,7 +10882,7 @@
             
 ; return 0; }
 EOF
-if { (eval echo configure:10981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_func_const_iconv=yes
 else
@@ -11006,19 +10911,19 @@
 
 
   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
-echo "configure:11010: checking for nl_langinfo and CODESET" >&5
+echo "configure:10915: checking for nl_langinfo and CODESET" >&5
 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11015 "configure"
+#line 10920 "configure"
 #include "confdefs.h"
 #include <langinfo.h>
 int main() {
 char* cs = nl_langinfo(CODESET);
 ; return 0; }
 EOF
-if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   am_cv_langinfo_codeset=yes
 else
@@ -11050,7 +10955,7 @@
 
 
 echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
-echo "configure:11054: checking for an implementation of va_copy()" >&5
+echo "configure:10959: checking for an implementation of va_copy()" >&5
 if eval "test \"`echo '$''{'ac_cv_va_copy'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -11060,7 +10965,7 @@
     
 else
   cat > conftest.$ac_ext <<EOF
-#line 11064 "configure"
+#line 10969 "configure"
 #include "confdefs.h"
 
         #include <stdarg.h>
@@ -11074,7 +10979,7 @@
         }
         int main() { f (0, 42); return 0; }
 EOF
-if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_va_copy=yes
 else
@@ -11091,7 +10996,7 @@
 
 echo "$ac_t""$ac_cv_va_copy" 1>&6
 echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
-echo "configure:11095: checking for an implementation of __va_copy()" >&5
+echo "configure:11000: checking for an implementation of __va_copy()" >&5
 if eval "test \"`echo '$''{'ac_cv___va_copy'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -11101,7 +11006,7 @@
     
 else
   cat > conftest.$ac_ext <<EOF
-#line 11105 "configure"
+#line 11010 "configure"
 #include "confdefs.h"
 
         #include <stdarg.h>
@@ -11115,7 +11020,7 @@
         }
         int main() { f (0, 42); return 0; }
 EOF
-if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv___va_copy=yes
 else
@@ -11132,7 +11037,7 @@
 
 echo "$ac_t""$ac_cv___va_copy" 1>&6
 echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
-echo "configure:11136: checking whether va_lists can be copied by value" >&5
+echo "configure:11041: checking whether va_lists can be copied by value" >&5
 if eval "test \"`echo '$''{'ac_cv_va_val_copy'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -11142,7 +11047,7 @@
     
 else
   cat > conftest.$ac_ext <<EOF
-#line 11146 "configure"
+#line 11051 "configure"
 #include "confdefs.h"
 
         #include <stdarg.h>
@@ -11156,7 +11061,7 @@
         }
         int main() { f (0, 42); return 0; }
 EOF
-if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_va_val_copy=yes
 else
@@ -11255,7 +11160,7 @@
 if test "$GNU_CXX"; then
 
   echo $ac_n "checking for C++ exceptions flag""... $ac_c" 1>&6
-echo "configure:11259: checking for C++ exceptions flag" >&5
+echo "configure:11164: checking for C++ exceptions flag" >&5
 
     if eval "test \"`echo '$''{'ac_cv_cxx_exceptions_flags'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -11290,12 +11195,12 @@
 HAVE_GCC3_ABI=
 if test "$GNU_CC"; then
   echo $ac_n "checking for gcc 3.0 ABI""... $ac_c" 1>&6
-echo "configure:11294: checking for gcc 3.0 ABI" >&5
+echo "configure:11199: checking for gcc 3.0 ABI" >&5
 if eval "test \"`echo '$''{'ac_cv_gcc_three_abi'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11299 "configure"
+#line 11204 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -11308,7 +11213,7 @@
                       
 ; return 0; }
 EOF
-if { (eval echo configure:11312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_gcc_three_abi="yes"
 else
@@ -11332,12 +11237,12 @@
 
 
 echo $ac_n "checking for C++ \"explicit\" keyword""... $ac_c" 1>&6
-echo "configure:11336: checking for C++ \"explicit\" keyword" >&5
+echo "configure:11241: checking for C++ \"explicit\" keyword" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_explicit'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11341 "configure"
+#line 11246 "configure"
 #include "confdefs.h"
 class X {
                                public: explicit X(int i) : i_(i) {}
@@ -11347,7 +11252,7 @@
 X x(3);
 ; return 0; }
 EOF
-if { (eval echo configure:11351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_explicit=yes
 else
@@ -11368,12 +11273,12 @@
 fi
 
 echo $ac_n "checking for C++ \"typename\" keyword""... $ac_c" 1>&6
-echo "configure:11372: checking for C++ \"typename\" keyword" >&5
+echo "configure:11277: checking for C++ \"typename\" keyword" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_typename'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11377 "configure"
+#line 11282 "configure"
 #include "confdefs.h"
 class param {
                                public:
@@ -11392,7 +11297,7 @@
                                A.foo(0);
 ; return 0; }
 EOF
-if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_typename=yes
 else
@@ -11413,12 +11318,12 @@
 fi
 
 echo $ac_n "checking for modern C++ template specialization syntax support""... $ac_c" 1>&6
-echo "configure:11417: checking for modern C++ template specialization syntax support" >&5
+echo "configure:11322: checking for modern C++ template specialization syntax support" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_modern_specialize_template_syntax'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11422 "configure"
+#line 11327 "configure"
 #include "confdefs.h"
 template <class T> struct X { int a; };
                                class Y {};
@@ -11428,7 +11333,7 @@
                                X<Y> y_x;
 ; return 0; }
 EOF
-if { (eval echo configure:11432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_modern_specialize_template_syntax=yes
 else
@@ -11450,12 +11355,12 @@
 
 
 echo $ac_n "checking whether partial template specialization works""... $ac_c" 1>&6
-echo "configure:11454: checking whether partial template specialization works" >&5
+echo "configure:11359: checking whether partial template specialization works" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_partial_specialization'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11459 "configure"
+#line 11364 "configure"
 #include "confdefs.h"
 template <class T> class Foo {};
                                template <class T> class Foo<T*> {};
@@ -11463,7 +11368,7 @@
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:11467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_partial_specialization=yes
 else
@@ -11484,12 +11389,12 @@
 fi
 
 echo $ac_n "checking whether operators must be re-defined for templates derived from templates""... $ac_c" 1>&6
-echo "configure:11488: checking whether operators must be re-defined for templates derived from templates" >&5
+echo "configure:11393: checking whether operators must be re-defined for templates derived from templates" >&5
 if eval "test \"`echo '$''{'ac_cv_need_derived_template_operators'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11493 "configure"
+#line 11398 "configure"
 #include "confdefs.h"
 template <class T> class Base { };
                                 template <class T>
@@ -11501,7 +11406,7 @@
                                 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:11505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_need_derived_template_operators=no
 else
@@ -11523,12 +11428,12 @@
 
 
 echo $ac_n "checking whether we need to cast a derived template to pass as its base class""... $ac_c" 1>&6
-echo "configure:11527: checking whether we need to cast a derived template to pass as its base class" >&5
+echo "configure:11432: checking whether we need to cast a derived template to pass as its base class" >&5
 if eval "test \"`echo '$''{'ac_cv_need_cpp_template_cast_to_base'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11532 "configure"
+#line 11437 "configure"
 #include "confdefs.h"
 template <class T> class Base { };
                                 template <class T> class Derived : public Base<T> { };
@@ -11537,7 +11442,7 @@
 Derived<char> bar; return foo(bar);
 ; return 0; }
 EOF
-if { (eval echo configure:11541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_need_cpp_template_cast_to_base=no
 else
@@ -11558,12 +11463,12 @@
 fi
 
 echo $ac_n "checking whether the compiler can resolve const ambiguities for templates""... $ac_c" 1>&6
-echo "configure:11562: checking whether the compiler can resolve const ambiguities for templates" >&5
+echo "configure:11467: checking whether the compiler can resolve const ambiguities for templates" >&5
 if eval "test \"`echo '$''{'ac_cv_can_resolve_const_ambiguity'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11567 "configure"
+#line 11472 "configure"
 #include "confdefs.h"
 
                                 template <class T> class ptrClass {
@@ -11584,7 +11489,7 @@
                                  a(&i); 
 ; return 0; }
 EOF
-if { (eval echo configure:11588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_can_resolve_const_ambiguity=yes
 else
@@ -11606,12 +11511,12 @@
 
 
 echo $ac_n "checking whether the C++ \"using\" keyword can change access""... $ac_c" 1>&6
-echo "configure:11610: checking whether the C++ \"using\" keyword can change access" >&5
+echo "configure:11515: checking whether the C++ \"using\" keyword can change access" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_access_changing_using2'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11615 "configure"
+#line 11520 "configure"
 #include "confdefs.h"
 class A { protected: int foo() { return 0; } };
                    class B : public A { public: using A::foo; };
@@ -11619,10 +11524,10 @@
 B b; return b.foo();
 ; return 0; }
 EOF
-if { (eval echo configure:11623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   cat > conftest.$ac_ext <<EOF
-#line 11626 "configure"
+#line 11531 "configure"
 #include "confdefs.h"
 class A { public: int foo() { return 1; } };
                        class B : public A { private: using A::foo; };
@@ -11630,7 +11535,7 @@
 B b; return b.foo();
 ; return 0; }
 EOF
-if { (eval echo configure:11634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_access_changing_using2=no
 else
@@ -11658,12 +11563,12 @@
 fi
 
 echo $ac_n "checking whether the C++ \"using\" keyword resolves ambiguity""... $ac_c" 1>&6
-echo "configure:11662: checking whether the C++ \"using\" keyword resolves ambiguity" >&5
+echo "configure:11567: checking whether the C++ \"using\" keyword resolves ambiguity" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_ambiguity_resolving_using'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11667 "configure"
+#line 11572 "configure"
 #include "confdefs.h"
 class X { 
                                  public: int go(const X&) {return 3;}
@@ -11679,7 +11584,7 @@
 X x; Y y; y.jo(x);
 ; return 0; }
 EOF
-if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_ambiguity_resolving_using=yes
 else
@@ -11700,19 +11605,19 @@
 fi
 
 echo $ac_n "checking for \"std::\" namespace""... $ac_c" 1>&6
-echo "configure:11704: checking for \"std::\" namespace" >&5
+echo "configure:11609: checking for \"std::\" namespace" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_namespace_std'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11709 "configure"
+#line 11614 "configure"
 #include "confdefs.h"
 #include <algorithm>
 int main() {
 return std::min(0, 1);
 ; return 0; }
 EOF
-if { (eval echo configure:11716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_namespace_std=yes
 else
@@ -11733,12 +11638,12 @@
 fi
 
 echo $ac_n "checking whether standard template operator!=() is ambiguous""... $ac_c" 1>&6
-echo "configure:11737: checking whether standard template operator!=() is ambiguous" >&5
+echo "configure:11642: checking whether standard template operator!=() is ambiguous" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_unambiguous_std_notequal'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11742 "configure"
+#line 11647 "configure"
 #include "confdefs.h"
 #include <algorithm>
                                 struct T1 {};
@@ -11748,7 +11653,7 @@
 T1 a,b; return a != b;
 ; return 0; }
 EOF
-if { (eval echo configure:11752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_unambiguous_std_notequal=unambiguous
 else
@@ -11770,12 +11675,12 @@
 
 
 echo $ac_n "checking for C++ reinterpret_cast""... $ac_c" 1>&6
-echo "configure:11774: checking for C++ reinterpret_cast" >&5
+echo "configure:11679: checking for C++ reinterpret_cast" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_reinterpret_cast'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11779 "configure"
+#line 11684 "configure"
 #include "confdefs.h"
 struct X { int i; };
                                struct Y { int i; };
@@ -11783,7 +11688,7 @@
 X x; X*const z = &x;Y*y = reinterpret_cast<Y*>(z);
 ; return 0; }
 EOF
-if { (eval echo configure:11787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cpp_reinterpret_cast=yes
 else
@@ -11804,7 +11709,7 @@
 fi
 
 echo $ac_n "checking for C++ dynamic_cast to void*""... $ac_c" 1>&6
-echo "configure:11808: checking for C++ dynamic_cast to void*" >&5
+echo "configure:11713: checking for C++ dynamic_cast to void*" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_dynamic_cast_void_ptr'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -11812,8 +11717,11 @@
   ac_cv_cpp_dynamic_cast_void_ptr=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 11816 "configure"
+#line 11721 "configure"
 #include "confdefs.h"
+#ifdef __cplusplus
+extern "C" void exit(int);
+#endif
 class X { int i; public: virtual ~X() { } };
                             class Y { int j; public: virtual ~Y() { } };
                             class Z : public X, public Y { int k; };
@@ -11828,7 +11736,7 @@
                                            ((void*)&mdo == dynamic_cast<void*>(suby))));
                             }
 EOF
-if { (eval echo configure:11832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_cpp_dynamic_cast_void_ptr=yes
 else
@@ -11852,19 +11760,19 @@
 
 
 echo $ac_n "checking whether C++ requires implementation of unused virtual methods""... $ac_c" 1>&6
-echo "configure:11856: checking whether C++ requires implementation of unused virtual methods" >&5
+echo "configure:11764: checking whether C++ requires implementation of unused virtual methods" >&5
 if eval "test \"`echo '$''{'ac_cv_cpp_unused_required'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11861 "configure"
+#line 11769 "configure"
 #include "confdefs.h"
 class X {private: virtual void never_called();};
 int main() {
 X x;
 ; return 0; }
 EOF
-if { (eval echo configure:11868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_cpp_unused_required=no
 else
@@ -11887,12 +11795,12 @@
 
 
 echo $ac_n "checking for trouble comparing to zero near std::operator!=()""... $ac_c" 1>&6
-echo "configure:11891: checking for trouble comparing to zero near std::operator!=()" >&5
+echo "configure:11799: checking for trouble comparing to zero near std::operator!=()" >&5
 if eval "test \"`echo '$''{'ac_cv_trouble_comparing_to_zero'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11896 "configure"
+#line 11804 "configure"
 #include "confdefs.h"
 #include <algorithm>
                                 template <class T> class Foo {};
@@ -11903,7 +11811,7 @@
 Foo<int> f; return (0 != f);
 ; return 0; }
 EOF
-if { (eval echo configure:11907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_trouble_comparing_to_zero=no
 else
@@ -11935,19 +11843,19 @@
 
 
 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
-echo "configure:11939: checking for LC_MESSAGES" >&5
+echo "configure:11847: checking for LC_MESSAGES" >&5
 if eval "test \"`echo '$''{'ac_cv_i18n_lc_messages'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 11944 "configure"
+#line 11852 "configure"
 #include "confdefs.h"
 #include <locale.h>
 int main() {
 int category = LC_MESSAGES;
 ; return 0; }
 EOF
-if { (eval echo configure:11951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_i18n_lc_messages=yes
 else
@@ -12050,7 +11958,7 @@
 	# Extract the first word of "nspr-config", so it can be a program name with args.
 set dummy nspr-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:12054: checking for $ac_word" >&5
+echo "configure:11962: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -12085,7 +11993,7 @@
 
 	min_nspr_version=4.7.0
 	echo $ac_n "checking for NSPR - version >= $min_nspr_version""... $ac_c" 1>&6
-echo "configure:12089: checking for NSPR - version >= $min_nspr_version" >&5
+echo "configure:11997: checking for NSPR - version >= $min_nspr_version" >&5
 
 	no_nspr=""
 	if test "$NSPR_CONFIG" = "no"; then
@@ -12136,7 +12044,7 @@
     _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS $NSPR_CFLAGS"
     cat > conftest.$ac_ext <<EOF
-#line 12140 "configure"
+#line 12048 "configure"
 #include "confdefs.h"
 #include "prlog.h"
 int main() {
@@ -12145,7 +12053,7 @@
                  #endif
 ; return 0; }
 EOF
-if { (eval echo configure:12149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   MOZ_NATIVE_NSPR=1
 else
@@ -12227,7 +12135,7 @@
 	# Extract the first word of "nss-config", so it can be a program name with args.
 set dummy nss-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:12231: checking for $ac_word" >&5
+echo "configure:12139: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_NSS_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -12262,7 +12170,7 @@
 
 	min_nss_version=3.12.0
 	echo $ac_n "checking for NSS - version >= $min_nss_version""... $ac_c" 1>&6
-echo "configure:12266: checking for NSS - version >= $min_nss_version" >&5
+echo "configure:12174: checking for NSS - version >= $min_nss_version" >&5
 
 	no_nss=""
 	if test "$NSS_CONFIG" = "no"; then
@@ -12310,7 +12218,7 @@
 fi
 
 if test -n "$MOZ_NATIVE_NSS"; then
-   NSS_LIBS="$NSS_LIBS -lcrmf"
+   NSS_LIBS=`echo $NSS_LIBS | sed 's/-l/-lcrmf &/'`
 else
    NSS_CFLAGS='-I$(LIBXUL_DIST)/include/nss'
    NSS_DEP_LIBS="\
@@ -12353,7 +12261,7 @@
     SYSTEM_JPEG=
 else
     echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
-echo "configure:12357: checking for jpeg_destroy_compress in -ljpeg" >&5
+echo "configure:12265: checking for jpeg_destroy_compress in -ljpeg" >&5
 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -12361,7 +12269,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ljpeg $JPEG_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 12365 "configure"
+#line 12273 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -12372,7 +12280,7 @@
 jpeg_destroy_compress()
 ; return 0; }
 EOF
-if { (eval echo configure:12376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -12395,10 +12303,10 @@
 
 fi
 
-if test "$SYSTEM_JPEG" = 1; then
+if test "$SYSTEM_JPEG" = 0; then
     LIBS="$JPEG_LIBS $LIBS"
     cat > conftest.$ac_ext <<EOF
-#line 12402 "configure"
+#line 12310 "configure"
 #include "confdefs.h"
  #include <stdio.h>
                      #include <sys/types.h>
@@ -12409,7 +12317,7 @@
                      #endif 
 ; return 0; }
 EOF
-if { (eval echo configure:12413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   SYSTEM_JPEG=1
 else
@@ -12447,7 +12355,7 @@
     SYSTEM_ZLIB=
 else
     echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
-echo "configure:12451: checking for gzread in -lz" >&5
+echo "configure:12359: checking for gzread in -lz" >&5
 ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -12455,7 +12363,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lz $ZLIB_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 12459 "configure"
+#line 12367 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -12466,7 +12374,7 @@
 gzread()
 ; return 0; }
 EOF
-if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -12488,10 +12396,10 @@
 fi
 
 fi
-if test "$SYSTEM_ZLIB" = 1; then
+if test "$SYSTEM_ZLIB" = 0; then
     LIBS="$ZLIB_LIBS $LIBS"
     cat > conftest.$ac_ext <<EOF
-#line 12495 "configure"
+#line 12403 "configure"
 #include "confdefs.h"
  #include <stdio.h>
                      #include <string.h>
@@ -12502,7 +12410,7 @@
                      #endif 
 ; return 0; }
 EOF
-if { (eval echo configure:12506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   SYSTEM_ZLIB=1
 else
@@ -12540,7 +12448,7 @@
     SYSTEM_BZ2=
 else
     echo $ac_n "checking for BZ2_bzread in -lbz2""... $ac_c" 1>&6
-echo "configure:12544: checking for BZ2_bzread in -lbz2" >&5
+echo "configure:12452: checking for BZ2_bzread in -lbz2" >&5
 ac_lib_var=`echo bz2'_'BZ2_bzread | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -12548,7 +12456,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lbz2 $BZ2_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 12552 "configure"
+#line 12460 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -12559,7 +12467,7 @@
 BZ2_bzread()
 ; return 0; }
 EOF
-if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -12606,12 +12514,13 @@
     CFLAGS="-I${PNG_DIR}/include $CFLAGS"
     LDFLAGS="-L${PNG_DIR}/lib $LDFLAGS"
 fi
+APNG=1
 if test -z "$PNG_DIR" -o "$PNG_DIR" = no; then
     SYSTEM_PNG=
 else
     _SAVE_PNG_LIBS=$PNG_LIBS
     echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
-echo "configure:12615: checking for png_get_valid in -lpng" >&5
+echo "configure:12524: checking for png_get_valid in -lpng" >&5
 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -12619,7 +12528,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lpng $PNG_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 12623 "configure"
+#line 12532 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -12630,7 +12539,7 @@
 png_get_valid()
 ; return 0; }
 EOF
-if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -12652,7 +12561,7 @@
 fi
 
     echo $ac_n "checking for png_get_acTL in -lpng""... $ac_c" 1>&6
-echo "configure:12656: checking for png_get_acTL in -lpng" >&5
+echo "configure:12565: checking for png_get_acTL in -lpng" >&5
 ac_lib_var=`echo png'_'png_get_acTL | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -12660,7 +12569,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lpng $_SAVE_PNG_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 12664 "configure"
+#line 12573 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -12671,7 +12580,7 @@
 png_get_acTL()
 ; return 0; }
 EOF
-if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -12696,14 +12605,15 @@
 
 else
   echo "$ac_t""no" 1>&6
-{ echo "configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support" 1>&2; exit 1; }
+echo "configure: warning: system's libpng doesn't have APNG support" 1>&2
+		 APNG=
 fi
 
 fi
-if test "$SYSTEM_PNG" = 1; then
+if test "$SYSTEM_PNG" = 0; then
     LIBS="$PNG_LIBS $LIBS"
     cat > conftest.$ac_ext <<EOF
-#line 12707 "configure"
+#line 12617 "configure"
 #include "confdefs.h"
  #include <stdio.h>
                      #include <sys/types.h>
@@ -12717,7 +12627,7 @@
                      #endif 
 ; return 0; }
 EOF
-if { (eval echo configure:12721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   SYSTEM_PNG=1
 else
@@ -12759,7 +12669,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:12763: checking for $ac_word" >&5
+echo "configure:12673: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -12803,19 +12713,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for hunspell""... $ac_c" 1>&6
-echo "configure:12807: checking for hunspell" >&5
+echo "configure:12717: checking for hunspell" >&5
 
         if $PKG_CONFIG --exists "hunspell" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_HUNSPELL_CFLAGS""... $ac_c" 1>&6
-echo "configure:12814: checking MOZ_HUNSPELL_CFLAGS" >&5
+echo "configure:12724: checking MOZ_HUNSPELL_CFLAGS" >&5
             MOZ_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell"`
             echo "$ac_t""$MOZ_HUNSPELL_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_HUNSPELL_LIBS""... $ac_c" 1>&6
-echo "configure:12819: checking MOZ_HUNSPELL_LIBS" >&5
+echo "configure:12729: checking MOZ_HUNSPELL_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_HUNSPELL_LIBS="`$PKG_CONFIG --libs \"hunspell\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_HUNSPELL_LIBS" 1>&6
@@ -13183,7 +13093,7 @@
 # Allow the application to influence configure with a confvars.sh script.
 
 echo $ac_n "checking if app-specific confvars.sh exists""... $ac_c" 1>&6
-echo "configure:13187: checking if app-specific confvars.sh exists" >&5
+echo "configure:13097: checking if app-specific confvars.sh exists" >&5
 if test -f "${srcdir}/${MOZ_BUILD_APP}/confvars.sh" ; then
   echo "$ac_t""${srcdir}/${MOZ_BUILD_APP}/confvars.sh" 1>&6
   . "${srcdir}/${MOZ_BUILD_APP}/confvars.sh"
@@ -13426,7 +13336,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:13430: checking for $ac_word" >&5
+echo "configure:13340: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -13470,19 +13380,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0""... $ac_c" 1>&6
-echo "configure:13474: checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0" >&5
+echo "configure:13384: checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0" >&5
 
         if $PKG_CONFIG --exists "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_GTK2_CFLAGS""... $ac_c" 1>&6
-echo "configure:13481: checking MOZ_GTK2_CFLAGS" >&5
+echo "configure:13391: checking MOZ_GTK2_CFLAGS" >&5
             MOZ_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0"`
             echo "$ac_t""$MOZ_GTK2_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_GTK2_LIBS""... $ac_c" 1>&6
-echo "configure:13486: checking MOZ_GTK2_LIBS" >&5
+echo "configure:13396: checking MOZ_GTK2_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_GTK2_LIBS="`$PKG_CONFIG --libs \"gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_GTK2_LIBS" 1>&6
@@ -13541,7 +13451,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:13545: checking for $ac_word" >&5
+echo "configure:13455: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -13585,19 +13495,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION""... $ac_c" 1>&6
-echo "configure:13589: checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" >&5
+echo "configure:13499: checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" >&5
 
         if $PKG_CONFIG --exists "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_CFLAGS""... $ac_c" 1>&6
-echo "configure:13596: checking MOZ_STARTUP_NOTIFICATION_CFLAGS" >&5
+echo "configure:13506: checking MOZ_STARTUP_NOTIFICATION_CFLAGS" >&5
             MOZ_STARTUP_NOTIFICATION_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION"`
             echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_LIBS""... $ac_c" 1>&6
-echo "configure:13601: checking MOZ_STARTUP_NOTIFICATION_LIBS" >&5
+echo "configure:13511: checking MOZ_STARTUP_NOTIFICATION_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs \"libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_LIBS" 1>&6
@@ -13809,7 +13719,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:13813: checking for $ac_word" >&5
+echo "configure:13723: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -13853,19 +13763,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for xft""... $ac_c" 1>&6
-echo "configure:13857: checking for xft" >&5
+echo "configure:13767: checking for xft" >&5
 
         if $PKG_CONFIG --exists "xft" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_XFT_CFLAGS""... $ac_c" 1>&6
-echo "configure:13864: checking MOZ_XFT_CFLAGS" >&5
+echo "configure:13774: checking MOZ_XFT_CFLAGS" >&5
             MOZ_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft"`
             echo "$ac_t""$MOZ_XFT_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_XFT_LIBS""... $ac_c" 1>&6
-echo "configure:13869: checking MOZ_XFT_LIBS" >&5
+echo "configure:13779: checking MOZ_XFT_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_XFT_LIBS="`$PKG_CONFIG --libs \"xft\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_XFT_LIBS" 1>&6
@@ -13903,7 +13813,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:13907: checking for $ac_word" >&5
+echo "configure:13817: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -13947,19 +13857,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for pango >= $PANGO_VERSION""... $ac_c" 1>&6
-echo "configure:13951: checking for pango >= $PANGO_VERSION" >&5
+echo "configure:13861: checking for pango >= $PANGO_VERSION" >&5
 
         if $PKG_CONFIG --exists "pango >= $PANGO_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking _PANGOCHK_CFLAGS""... $ac_c" 1>&6
-echo "configure:13958: checking _PANGOCHK_CFLAGS" >&5
+echo "configure:13868: checking _PANGOCHK_CFLAGS" >&5
             _PANGOCHK_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_VERSION"`
             echo "$ac_t""$_PANGOCHK_CFLAGS" 1>&6
 
             echo $ac_n "checking _PANGOCHK_LIBS""... $ac_c" 1>&6
-echo "configure:13963: checking _PANGOCHK_LIBS" >&5
+echo "configure:13873: checking _PANGOCHK_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             _PANGOCHK_LIBS="`$PKG_CONFIG --libs \"pango >= $PANGO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$_PANGOCHK_LIBS" 1>&6
@@ -13994,7 +13904,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:13998: checking for $ac_word" >&5
+echo "configure:13908: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14038,19 +13948,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION""... $ac_c" 1>&6
-echo "configure:14042: checking for pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION" >&5
+echo "configure:13952: checking for pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION" >&5
 
         if $PKG_CONFIG --exists "pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_PANGO_CFLAGS""... $ac_c" 1>&6
-echo "configure:14049: checking MOZ_PANGO_CFLAGS" >&5
+echo "configure:13959: checking MOZ_PANGO_CFLAGS" >&5
             MOZ_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION"`
             echo "$ac_t""$MOZ_PANGO_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_PANGO_LIBS""... $ac_c" 1>&6
-echo "configure:14054: checking MOZ_PANGO_LIBS" >&5
+echo "configure:13964: checking MOZ_PANGO_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_PANGO_LIBS="`$PKG_CONFIG --libs \"pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_PANGO_LIBS" 1>&6
@@ -14127,7 +14037,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14131: checking for $ac_word" >&5
+echo "configure:14041: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14171,19 +14081,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION""... $ac_c" 1>&6
-echo "configure:14175: checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" >&5
+echo "configure:14085: checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" >&5
 
         if $PKG_CONFIG --exists "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_GNOMEVFS_CFLAGS""... $ac_c" 1>&6
-echo "configure:14182: checking MOZ_GNOMEVFS_CFLAGS" >&5
+echo "configure:14092: checking MOZ_GNOMEVFS_CFLAGS" >&5
             MOZ_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION"`
             echo "$ac_t""$MOZ_GNOMEVFS_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_GNOMEVFS_LIBS""... $ac_c" 1>&6
-echo "configure:14187: checking MOZ_GNOMEVFS_LIBS" >&5
+echo "configure:14097: checking MOZ_GNOMEVFS_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_GNOMEVFS_LIBS="`$PKG_CONFIG --libs \"gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_GNOMEVFS_LIBS" 1>&6
@@ -14234,7 +14144,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14238: checking for $ac_word" >&5
+echo "configure:14148: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14278,19 +14188,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for gconf-2.0 >= $GCONF_VERSION""... $ac_c" 1>&6
-echo "configure:14282: checking for gconf-2.0 >= $GCONF_VERSION" >&5
+echo "configure:14192: checking for gconf-2.0 >= $GCONF_VERSION" >&5
 
         if $PKG_CONFIG --exists "gconf-2.0 >= $GCONF_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_GCONF_CFLAGS""... $ac_c" 1>&6
-echo "configure:14289: checking MOZ_GCONF_CFLAGS" >&5
+echo "configure:14199: checking MOZ_GCONF_CFLAGS" >&5
             MOZ_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_VERSION"`
             echo "$ac_t""$MOZ_GCONF_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_GCONF_LIBS""... $ac_c" 1>&6
-echo "configure:14294: checking MOZ_GCONF_LIBS" >&5
+echo "configure:14204: checking MOZ_GCONF_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_GCONF_LIBS="`$PKG_CONFIG --libs \"gconf-2.0 >= $GCONF_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_GCONF_LIBS" 1>&6
@@ -14345,7 +14255,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14349: checking for $ac_word" >&5
+echo "configure:14259: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14389,19 +14299,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for libgnome-2.0 >= $LIBGNOME_VERSION""... $ac_c" 1>&6
-echo "configure:14393: checking for libgnome-2.0 >= $LIBGNOME_VERSION" >&5
+echo "configure:14303: checking for libgnome-2.0 >= $LIBGNOME_VERSION" >&5
 
         if $PKG_CONFIG --exists "libgnome-2.0 >= $LIBGNOME_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_LIBGNOME_CFLAGS""... $ac_c" 1>&6
-echo "configure:14400: checking MOZ_LIBGNOME_CFLAGS" >&5
+echo "configure:14310: checking MOZ_LIBGNOME_CFLAGS" >&5
             MOZ_LIBGNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= $LIBGNOME_VERSION"`
             echo "$ac_t""$MOZ_LIBGNOME_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_LIBGNOME_LIBS""... $ac_c" 1>&6
-echo "configure:14405: checking MOZ_LIBGNOME_LIBS" >&5
+echo "configure:14315: checking MOZ_LIBGNOME_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_LIBGNOME_LIBS="`$PKG_CONFIG --libs \"libgnome-2.0 >= $LIBGNOME_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_LIBGNOME_LIBS" 1>&6
@@ -14479,7 +14389,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14483: checking for $ac_word" >&5
+echo "configure:14393: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14523,19 +14433,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for libgnomeui-2.0 >= $GNOMEUI_VERSION""... $ac_c" 1>&6
-echo "configure:14527: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5
+echo "configure:14437: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5
 
         if $PKG_CONFIG --exists "libgnomeui-2.0 >= $GNOMEUI_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_GNOMEUI_CFLAGS""... $ac_c" 1>&6
-echo "configure:14534: checking MOZ_GNOMEUI_CFLAGS" >&5
+echo "configure:14444: checking MOZ_GNOMEUI_CFLAGS" >&5
             MOZ_GNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= $GNOMEUI_VERSION"`
             echo "$ac_t""$MOZ_GNOMEUI_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_GNOMEUI_LIBS""... $ac_c" 1>&6
-echo "configure:14539: checking MOZ_GNOMEUI_LIBS" >&5
+echo "configure:14449: checking MOZ_GNOMEUI_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_GNOMEUI_LIBS="`$PKG_CONFIG --libs \"libgnomeui-2.0 >= $GNOMEUI_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_GNOMEUI_LIBS" 1>&6
@@ -14612,7 +14522,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14616: checking for $ac_word" >&5
+echo "configure:14526: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -14656,19 +14566,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for dbus-glib-1 >= $DBUS_VERSION""... $ac_c" 1>&6
-echo "configure:14660: checking for dbus-glib-1 >= $DBUS_VERSION" >&5
+echo "configure:14570: checking for dbus-glib-1 >= $DBUS_VERSION" >&5
 
         if $PKG_CONFIG --exists "dbus-glib-1 >= $DBUS_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_DBUS_GLIB_CFLAGS""... $ac_c" 1>&6
-echo "configure:14667: checking MOZ_DBUS_GLIB_CFLAGS" >&5
+echo "configure:14577: checking MOZ_DBUS_GLIB_CFLAGS" >&5
             MOZ_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= $DBUS_VERSION"`
             echo "$ac_t""$MOZ_DBUS_GLIB_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_DBUS_GLIB_LIBS""... $ac_c" 1>&6
-echo "configure:14672: checking MOZ_DBUS_GLIB_LIBS" >&5
+echo "configure:14582: checking MOZ_DBUS_GLIB_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_DBUS_GLIB_LIBS="`$PKG_CONFIG --libs \"dbus-glib-1 >= $DBUS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_DBUS_GLIB_LIBS" 1>&6
@@ -15171,7 +15081,7 @@
   # Extract the first word of "java", so it can be a program name with args.
 set dummy java; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15175: checking for $ac_word" >&5
+echo "configure:15085: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_JAVA'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15207,7 +15117,7 @@
   # Extract the first word of "javac", so it can be a program name with args.
 set dummy javac; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15211: checking for $ac_word" >&5
+echo "configure:15121: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15243,7 +15153,7 @@
   # Extract the first word of "jar", so it can be a program name with args.
 set dummy jar; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15247: checking for $ac_word" >&5
+echo "configure:15157: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_JAR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15317,7 +15227,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15321: checking for $ac_word" >&5
+echo "configure:15231: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15361,19 +15271,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for gthread-2.0""... $ac_c" 1>&6
-echo "configure:15365: checking for gthread-2.0" >&5
+echo "configure:15275: checking for gthread-2.0" >&5
 
         if $PKG_CONFIG --exists "gthread-2.0" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking MOZ_GTHREAD_CFLAGS""... $ac_c" 1>&6
-echo "configure:15372: checking MOZ_GTHREAD_CFLAGS" >&5
+echo "configure:15282: checking MOZ_GTHREAD_CFLAGS" >&5
             MOZ_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0"`
             echo "$ac_t""$MOZ_GTHREAD_CFLAGS" 1>&6
 
             echo $ac_n "checking MOZ_GTHREAD_LIBS""... $ac_c" 1>&6
-echo "configure:15377: checking MOZ_GTHREAD_LIBS" >&5
+echo "configure:15287: checking MOZ_GTHREAD_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             MOZ_GTHREAD_LIBS="`$PKG_CONFIG --libs \"gthread-2.0\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$MOZ_GTHREAD_LIBS" 1>&6
@@ -15409,17 +15319,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:15413: checking for $ac_hdr" >&5
+echo "configure:15323: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 15418 "configure"
+#line 15328 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:15333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -15769,7 +15679,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15773: checking for $ac_word" >&5
+echo "configure:15683: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_MAKENSIS'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15814,7 +15724,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15818: checking for $ac_word" >&5
+echo "configure:15728: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_HOST_ICONV'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15862,13 +15772,13 @@
 
 
 echo $ac_n "checking for tar archiver""... $ac_c" 1>&6
-echo "configure:15866: checking for tar archiver" >&5
+echo "configure:15776: checking for tar archiver" >&5
 for ac_prog in gnutar gtar tar
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15872: checking for $ac_word" >&5
+echo "configure:15782: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15905,13 +15815,13 @@
 
 
 echo $ac_n "checking for wget""... $ac_c" 1>&6
-echo "configure:15909: checking for wget" >&5
+echo "configure:15819: checking for wget" >&5
 for ac_prog in wget
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15915: checking for $ac_word" >&5
+echo "configure:15825: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_WGET'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -15963,13 +15873,13 @@
     msvc*|mks*|cygwin*|mingw*|wince*)
         if test -n "$MOZ_UPDATER"; then
             echo $ac_n "checking for iconv""... $ac_c" 1>&6
-echo "configure:15967: checking for iconv" >&5
+echo "configure:15877: checking for iconv" >&5
             for ac_prog in $HOST_ICONV "iconv"
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:15973: checking for $ac_word" >&5
+echo "configure:15883: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_HOST_ICONV'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -16309,7 +16219,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:16313: checking for $ac_word" >&5
+echo "configure:16223: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -16353,19 +16263,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for sqlite3 >= $SQLITE_VERSION""... $ac_c" 1>&6
-echo "configure:16357: checking for sqlite3 >= $SQLITE_VERSION" >&5
+echo "configure:16267: checking for sqlite3 >= $SQLITE_VERSION" >&5
 
         if $PKG_CONFIG --exists "sqlite3 >= $SQLITE_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking SQLITE_CFLAGS""... $ac_c" 1>&6
-echo "configure:16364: checking SQLITE_CFLAGS" >&5
+echo "configure:16274: checking SQLITE_CFLAGS" >&5
             SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $SQLITE_VERSION"`
             echo "$ac_t""$SQLITE_CFLAGS" 1>&6
 
             echo $ac_n "checking SQLITE_LIBS""... $ac_c" 1>&6
-echo "configure:16369: checking SQLITE_LIBS" >&5
+echo "configure:16279: checking SQLITE_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             SQLITE_LIBS="`$PKG_CONFIG --libs \"sqlite3 >= $SQLITE_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$SQLITE_LIBS" 1>&6
@@ -16497,6 +16407,84 @@
 fi
 
 
+# Check whether --enable-js-binary or --disable-js-binary was given.
+if test "${enable_js_binary+set}" = set; then
+  enableval="$enable_js_binary"
+  if test "$enableval" = "yes"; then
+    ENABLE_JS_BINARY=1
+  elif test "$enableval" = "no"; then
+    ENABLE_JS_BINARY= 
+  else
+    { echo "configure: error: Option, js-binary, does not take an argument ($enableval)." 1>&2; exit 1; }
+  fi
+fi
+
+
+
+if test -n "$ENABLE_JS_BINARY"; then
+            READLINE_DIR=no
+    # Check whether --with-readline or --without-readline was given.
+if test "${with_readline+set}" = set; then
+  withval="$with_readline"
+  READLINE_DIR=$withval
+fi
+
+
+    if test -n "${READLINE_DIR}" -a "${READLINE_DIR}" != "no"; then
+        _SAVE_LDFLAGS=$LDFLAGS
+        LDFLAGS="-L${READLINE_DIR}/lib $LDFLAGS"
+        echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
+echo "configure:16438: checking for readline in -lreadline" >&5
+ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  ac_save_LIBS="$LIBS"
+LIBS="-lreadline  $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 16446 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+char readline();
+
+int main() {
+readline()
+; return 0; }
+EOF
+if { (eval echo configure:16457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval "ac_cv_lib_$ac_lib_var=yes"
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -rf conftest*
+  eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+  echo "$ac_t""yes" 1>&6
+  HAVE_READLINE=1 READLINE_LIBS="-lreadline"
+else
+  echo "$ac_t""no" 1>&6
+HAVE_READLINE= READLINE_LIBS=
+fi
+
+        LDFLAGS=$_SAVE_LDFLAGS
+    fi
+
+    if test "${READLINE_DIR}" -a -d "${READLINE_DIR}" -a "$HAVE_READLINE" = 1; then
+        READLINE_LIBS="-L${READLINE_DIR}/lib ${READLINE_LIBS}"
+    fi
+fi
+
+
+
+
 
 # Debugging and Optimizations
 
@@ -16558,18 +16546,18 @@
 
 if test -n "$MOZ_DEBUG"; then
     echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6
-echo "configure:16562: checking for valid debug flags" >&5
+echo "configure:16550: checking for valid debug flags" >&5
     _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
     cat > conftest.$ac_ext <<EOF
-#line 16566 "configure"
+#line 16554 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
 printf("Hello World\n");
 ; return 0; }
 EOF
-if { (eval echo configure:16573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:16561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   _results=yes
 else
@@ -16610,18 +16598,18 @@
 if test "$COMPILE_ENVIRONMENT"; then
 if test -n "$MOZ_OPTIMIZE"; then
     echo $ac_n "checking for valid optimization flags""... $ac_c" 1>&6
-echo "configure:16614: checking for valid optimization flags" >&5
+echo "configure:16602: checking for valid optimization flags" >&5
     _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS"
     cat > conftest.$ac_ext <<EOF
-#line 16618 "configure"
+#line 16606 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
 printf("Hello World\n");
 ; return 0; }
 EOF
-if { (eval echo configure:16625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:16613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   _results=yes
 else
@@ -16791,7 +16779,7 @@
     fi
   else
     echo $ac_n "checking size of int *""... $ac_c" 1>&6
-echo "configure:16795: checking size of int *" >&5
+echo "configure:16783: checking size of int *" >&5
 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -16799,18 +16787,19 @@
   ac_cv_sizeof_int_p=4
 else
   cat > conftest.$ac_ext <<EOF
-#line 16803 "configure"
+#line 16791 "configure"
 #include "confdefs.h"
 #include <stdio.h>
-int main()
+#include <sys/types.h>
+main()
 {
   FILE *f=fopen("conftestval", "w");
-  if (!f) return(1);
+  if (!f) exit(1);
   fprintf(f, "%d\n", sizeof(int *));
-  return(0);
+  exit(0);
 }
 EOF
-if { (eval echo configure:16814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:16803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_sizeof_int_p=`cat conftestval`
 else
@@ -16940,17 +16929,17 @@
 
   ac_safe=`echo "valgrind/valgrind.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for valgrind/valgrind.h""... $ac_c" 1>&6
-echo "configure:16944: checking for valgrind/valgrind.h" >&5
+echo "configure:16933: checking for valgrind/valgrind.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 16949 "configure"
+#line 16938 "configure"
 #include "confdefs.h"
 #include <valgrind/valgrind.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:16954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:16943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -17027,7 +17016,7 @@
 
 if test -n "$_ENABLE_EFENCE"; then
     echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
-echo "configure:17031: checking for malloc in -lefence" >&5
+echo "configure:17020: checking for malloc in -lefence" >&5
 ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -17035,7 +17024,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lefence  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 17039 "configure"
+#line 17028 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -17046,7 +17035,7 @@
 malloc()
 ; return 0; }
 EOF
-if { (eval echo configure:17050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:17039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -17178,12 +17167,12 @@
     for ac_func in __builtin_vec_new __builtin_vec_delete __builtin_new __builtin_delete __pure_virtual
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:17182: checking for $ac_func" >&5
+echo "configure:17171: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 17187 "configure"
+#line 17176 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -17209,7 +17198,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:17213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:17202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -17428,12 +17417,12 @@
     for ac_func in __cxa_demangle
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:17432: checking for $ac_func" >&5
+echo "configure:17421: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 17437 "configure"
+#line 17426 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -17459,7 +17448,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:17452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -17507,17 +17496,17 @@
 if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then
     ac_safe=`echo "unwind.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for unwind.h""... $ac_c" 1>&6
-echo "configure:17511: checking for unwind.h" >&5
+echo "configure:17500: checking for unwind.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 17516 "configure"
+#line 17505 "configure"
 #include "confdefs.h"
 #include <unwind.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:17521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:17510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -17536,12 +17525,12 @@
   for ac_func in _Unwind_Backtrace
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:17540: checking for $ac_func" >&5
+echo "configure:17529: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 17545 "configure"
+#line 17534 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -17564,7 +17553,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:17568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:17557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -17686,7 +17675,7 @@
 # Compiler Options
 
 echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
-echo "configure:17690: checking for gcc -pipe support" >&5
+echo "configure:17679: checking for gcc -pipe support" >&5
 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
     echo '#include <stdio.h>' > dummy-hello.c
     echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c
@@ -17701,14 +17690,14 @@
         _SAVE_CFLAGS=$CFLAGS
         CFLAGS="$CFLAGS -pipe"
         cat > conftest.$ac_ext <<EOF
-#line 17705 "configure"
+#line 17694 "configure"
 #include "confdefs.h"
  #include <stdio.h> 
 int main() {
 printf("Hello World\n");
 ; return 0; }
 EOF
-if { (eval echo configure:17712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:17701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   _res_gcc_pipe="yes"
 else
@@ -17750,16 +17739,16 @@
      _SAVE_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS ${_COMPILER_PREFIX}-Wno-long-long"
      echo $ac_n "checking whether compiler supports -Wno-long-long""... $ac_c" 1>&6
-echo "configure:17754: checking whether compiler supports -Wno-long-long" >&5
+echo "configure:17743: checking whether compiler supports -Wno-long-long" >&5
      cat > conftest.$ac_ext <<EOF
-#line 17756 "configure"
+#line 17745 "configure"
 #include "confdefs.h"
 
 int main() {
 return(0);
 ; return 0; }
 EOF
-if { (eval echo configure:17763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:17752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
    _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
 	  _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
@@ -17795,16 +17784,16 @@
 CFLAGS="$CFLAGS -fprofile-generate"
 
 echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6
-echo "configure:17799: checking whether C compiler supports -fprofile-generate" >&5
+echo "configure:17788: checking whether C compiler supports -fprofile-generate" >&5
 cat > conftest.$ac_ext <<EOF
-#line 17801 "configure"
+#line 17790 "configure"
 #include "confdefs.h"
 
 int main() {
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:17808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:17797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
    PROFILE_GEN_CFLAGS="-fprofile-generate"
                  result="yes" 
@@ -17824,16 +17813,16 @@
 else
   CFLAGS="$_SAVE_CFLAGS -fprofile-arcs"
   echo $ac_n "checking whether C compiler supports -fprofile-arcs""... $ac_c" 1>&6
-echo "configure:17828: checking whether C compiler supports -fprofile-arcs" >&5
+echo "configure:17817: checking whether C compiler supports -fprofile-arcs" >&5
   cat > conftest.$ac_ext <<EOF
-#line 17830 "configure"
+#line 17819 "configure"
 #include "confdefs.h"
 
 int main() {
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:17837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:17826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
    PROFILE_GEN_CFLAGS="-fprofile-arcs"
                    result="yes" 
@@ -17903,16 +17892,16 @@
     _SAVE_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-pedantic"
     echo $ac_n "checking whether C++ compiler has -pedantic long long bug""... $ac_c" 1>&6
-echo "configure:17907: checking whether C++ compiler has -pedantic long long bug" >&5
+echo "configure:17896: checking whether C++ compiler has -pedantic long long bug" >&5
     cat > conftest.$ac_ext <<EOF
-#line 17909 "configure"
+#line 17898 "configure"
 #include "confdefs.h"
 $configure_static_assert_macros
 int main() {
 CONFIGURE_STATIC_ASSERT(sizeof(long long) == 8)
 ; return 0; }
 EOF
-if { (eval echo configure:17916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:17905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   result="no"
 else
@@ -17937,13 +17926,16 @@
 fi
 
 echo $ac_n "checking for correct temporary object destruction order""... $ac_c" 1>&6
-echo "configure:17941: checking for correct temporary object destruction order" >&5
+echo "configure:17930: checking for correct temporary object destruction order" >&5
 if test "$cross_compiling" = yes; then
   result="maybe"
 else
   cat > conftest.$ac_ext <<EOF
-#line 17946 "configure"
+#line 17935 "configure"
 #include "confdefs.h"
+#ifdef __cplusplus
+extern "C" void exit(int);
+#endif
  class A {
              public:  A(int& x) : mValue(x) {}
                       ~A() { mValue--; }
@@ -17962,7 +17954,7 @@
              }
              
 EOF
-if { (eval echo configure:17966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:17958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   result="yes"
 else
@@ -17983,12 +17975,12 @@
 _SAVE_CXXFLAGS=$CXXFLAGS
 CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS}"
 echo $ac_n "checking for correct overload resolution with const and templates""... $ac_c" 1>&6
-echo "configure:17987: checking for correct overload resolution with const and templates" >&5
+echo "configure:17979: checking for correct overload resolution with const and templates" >&5
 if eval "test \"`echo '$''{'ac_nscap_nonconst_opeq_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 17992 "configure"
+#line 17984 "configure"
 #include "confdefs.h"
 
                       template <class T>
@@ -18018,7 +18010,7 @@
                     
 ; return 0; }
 EOF
-if { (eval echo configure:18022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:18014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_nscap_nonconst_opeq_bug="no"
 else
@@ -18321,7 +18313,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:18325: checking for $ac_word" >&5
+echo "configure:18317: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -18365,19 +18357,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0""... $ac_c" 1>&6
-echo "configure:18369: checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" >&5
+echo "configure:18361: checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" >&5
 
         if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking LIBIDL_CFLAGS""... $ac_c" 1>&6
-echo "configure:18376: checking LIBIDL_CFLAGS" >&5
+echo "configure:18368: checking LIBIDL_CFLAGS" >&5
             LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0"`
             echo "$ac_t""$LIBIDL_CFLAGS" 1>&6
 
             echo $ac_n "checking LIBIDL_LIBS""... $ac_c" 1>&6
-echo "configure:18381: checking LIBIDL_LIBS" >&5
+echo "configure:18373: checking LIBIDL_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             LIBIDL_LIBS="`$PKG_CONFIG --libs \"libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$LIBIDL_LIBS" 1>&6
@@ -18501,7 +18493,7 @@
   # Extract the first word of "glib-config", so it can be a program name with args.
 set dummy glib-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:18505: checking for $ac_word" >&5
+echo "configure:18497: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -18536,7 +18528,7 @@
 
   min_glib_version=1.2.0
   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
-echo "configure:18540: checking for GLIB - version >= $min_glib_version" >&5
+echo "configure:18532: checking for GLIB - version >= $min_glib_version" >&5
   no_glib=""
   if test "$GLIB_CONFIG" = "no" ; then
     no_glib=yes
@@ -18559,7 +18551,7 @@
   echo $ac_n "cross compiling; assumed OK... $ac_c"
 else
   cat > conftest.$ac_ext <<EOF
-#line 18563 "configure"
+#line 18555 "configure"
 #include "confdefs.h"
 
 #include <glib.h>
@@ -18635,7 +18627,7 @@
 }
 
 EOF
-if { (eval echo configure:18639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:18631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -18669,7 +18661,7 @@
           CFLAGS="$CFLAGS $GLIB_CFLAGS"
           LIBS="$LIBS $GLIB_LIBS"
           cat > conftest.$ac_ext <<EOF
-#line 18673 "configure"
+#line 18665 "configure"
 #include "confdefs.h"
 
 #include <glib.h>
@@ -18679,7 +18671,7 @@
  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
 ; return 0; }
 EOF
-if { (eval echo configure:18683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:18675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
    echo "*** The test program compiled, but did not run. This usually means"
           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
@@ -18723,7 +18715,7 @@
   # Extract the first word of "libIDL-config", so it can be a program name with args.
 set dummy libIDL-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:18727: checking for $ac_word" >&5
+echo "configure:18719: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_LIBIDL_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -18758,7 +18750,7 @@
 
   min_libIDL_version=$LIBIDL_VERSION
   echo $ac_n "checking for libIDL - version >= $min_libIDL_version""... $ac_c" 1>&6
-echo "configure:18762: checking for libIDL - version >= $min_libIDL_version" >&5
+echo "configure:18754: checking for libIDL - version >= $min_libIDL_version" >&5
   no_libIDL=""
   if test "$LIBIDL_CONFIG" = "no" ; then
     no_libIDL=yes
@@ -18785,7 +18777,7 @@
   echo $ac_n "cross compiling; assumed OK... $ac_c"
 else
   cat > conftest.$ac_ext <<EOF
-#line 18789 "configure"
+#line 18781 "configure"
 #include "confdefs.h"
 
 #include <stdio.h>
@@ -18871,7 +18863,7 @@
 }
 
 EOF
-if { (eval echo configure:18875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:18867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -18905,7 +18897,7 @@
           CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
           LIBS="$LIBS $LIBIDL_LIBS"
           cat > conftest.$ac_ext <<EOF
-#line 18909 "configure"
+#line 18901 "configure"
 #include "confdefs.h"
 
 #include <stdio.h>
@@ -18916,7 +18908,7 @@
  return IDL_get_libver_string ? 1 : 0; 
 ; return 0; }
 EOF
-if { (eval echo configure:18920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:18912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
    echo "*** The test program compiled, but did not run. This usually means"
           echo "*** that the run-time linker is not finding libIDL or finding the wrong"
@@ -18956,7 +18948,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:18960: checking for $ac_word" >&5
+echo "configure:18952: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19000,19 +18992,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for libIDL-2.0 >= 0.8.0""... $ac_c" 1>&6
-echo "configure:19004: checking for libIDL-2.0 >= 0.8.0" >&5
+echo "configure:18996: checking for libIDL-2.0 >= 0.8.0" >&5
 
         if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking LIBIDL_CFLAGS""... $ac_c" 1>&6
-echo "configure:19011: checking LIBIDL_CFLAGS" >&5
+echo "configure:19003: checking LIBIDL_CFLAGS" >&5
             LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0"`
             echo "$ac_t""$LIBIDL_CFLAGS" 1>&6
 
             echo $ac_n "checking LIBIDL_LIBS""... $ac_c" 1>&6
-echo "configure:19016: checking LIBIDL_LIBS" >&5
+echo "configure:19008: checking LIBIDL_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             LIBIDL_LIBS="`$PKG_CONFIG --libs \"libIDL-2.0 >= 0.8.0\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$LIBIDL_LIBS" 1>&6
@@ -19049,7 +19041,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:19053: checking for $ac_word" >&5
+echo "configure:19045: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19086,7 +19078,7 @@
 
         if test -n "$ORBIT_CONFIG"; then
             echo $ac_n "checking for ORBit libIDL usability""... $ac_c" 1>&6
-echo "configure:19090: checking for ORBit libIDL usability" >&5
+echo "configure:19082: checking for ORBit libIDL usability" >&5
         	_ORBIT_CFLAGS=`${ORBIT_CONFIG} client --cflags`
     	    _ORBIT_LIBS=`${ORBIT_CONFIG} client --libs`
             _ORBIT_INC_PATH=`${PERL} -e '{ for $f (@ARGV) { print "$f " if ($f =~ m/^-I/); } }' -- ${_ORBIT_CFLAGS}`
@@ -19103,7 +19095,7 @@
                 result="maybe" 
 else
   cat > conftest.$ac_ext <<EOF
-#line 19107 "configure"
+#line 19099 "configure"
 #include "confdefs.h"
 
 #include <stdlib.h>
@@ -19118,7 +19110,7 @@
 }
             
 EOF
-if { (eval echo configure:19122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:19114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   _LIBIDL_FOUND=1
                 result="yes"
@@ -19174,7 +19166,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:19178: checking for $ac_word" >&5
+echo "configure:19170: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19218,19 +19210,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for glib-2.0 >= 1.3.7 gobject-2.0""... $ac_c" 1>&6
-echo "configure:19222: checking for glib-2.0 >= 1.3.7 gobject-2.0" >&5
+echo "configure:19214: checking for glib-2.0 >= 1.3.7 gobject-2.0" >&5
 
         if $PKG_CONFIG --exists "glib-2.0 >= 1.3.7 gobject-2.0" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
-echo "configure:19229: checking GLIB_CFLAGS" >&5
+echo "configure:19221: checking GLIB_CFLAGS" >&5
             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.7 gobject-2.0"`
             echo "$ac_t""$GLIB_CFLAGS" 1>&6
 
             echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
-echo "configure:19234: checking GLIB_LIBS" >&5
+echo "configure:19226: checking GLIB_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             GLIB_LIBS="`$PKG_CONFIG --libs \"glib-2.0 >= 1.3.7 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$GLIB_LIBS" 1>&6
@@ -19315,7 +19307,7 @@
   # Extract the first word of "glib-config", so it can be a program name with args.
 set dummy glib-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:19319: checking for $ac_word" >&5
+echo "configure:19311: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19350,7 +19342,7 @@
 
   min_glib_version=${GLIB_VERSION}
   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
-echo "configure:19354: checking for GLIB - version >= $min_glib_version" >&5
+echo "configure:19346: checking for GLIB - version >= $min_glib_version" >&5
   no_glib=""
   if test "$GLIB_CONFIG" = "no" ; then
     no_glib=yes
@@ -19373,7 +19365,7 @@
   echo $ac_n "cross compiling; assumed OK... $ac_c"
 else
   cat > conftest.$ac_ext <<EOF
-#line 19377 "configure"
+#line 19369 "configure"
 #include "confdefs.h"
 
 #include <glib.h>
@@ -19449,7 +19441,7 @@
 }
 
 EOF
-if { (eval echo configure:19453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:19445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -19483,7 +19475,7 @@
           CFLAGS="$CFLAGS $GLIB_CFLAGS"
           LIBS="$LIBS $GLIB_LIBS"
           cat > conftest.$ac_ext <<EOF
-#line 19487 "configure"
+#line 19479 "configure"
 #include "confdefs.h"
 
 #include <glib.h>
@@ -19493,7 +19485,7 @@
  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
 ; return 0; }
 EOF
-if { (eval echo configure:19497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:19489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
    echo "*** The test program compiled, but did not run. This usually means"
           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
@@ -19573,19 +19565,19 @@
   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 # for constant arguments.  Useless!
 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
-echo "configure:19577: checking for working alloca.h" >&5
+echo "configure:19569: checking for working alloca.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 19582 "configure"
+#line 19574 "configure"
 #include "confdefs.h"
 #include <alloca.h>
 int main() {
 char *p = alloca(2 * sizeof(int));
 ; return 0; }
 EOF
-if { (eval echo configure:19589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:19581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_header_alloca_h=yes
 else
@@ -19606,12 +19598,12 @@
 fi
 
 echo $ac_n "checking for alloca""... $ac_c" 1>&6
-echo "configure:19610: checking for alloca" >&5
+echo "configure:19602: checking for alloca" >&5
 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 19615 "configure"
+#line 19607 "configure"
 #include "confdefs.h"
 
 #ifdef __GNUC__
@@ -19639,7 +19631,7 @@
 char *p = (char *) alloca(1);
 ; return 0; }
 EOF
-if { (eval echo configure:19643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:19635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_func_alloca_works=yes
 else
@@ -19671,12 +19663,12 @@
 
 
 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
-echo "configure:19675: checking whether alloca needs Cray hooks" >&5
+echo "configure:19667: checking whether alloca needs Cray hooks" >&5
 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 19680 "configure"
+#line 19672 "configure"
 #include "confdefs.h"
 #if defined(CRAY) && ! defined(CRAY2)
 webecray
@@ -19701,12 +19693,12 @@
 if test $ac_cv_os_cray = yes; then
 for ac_func in _getb67 GETB67 getb67; do
   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:19705: checking for $ac_func" >&5
+echo "configure:19697: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 19710 "configure"
+#line 19702 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -19729,7 +19721,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:19733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:19725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -19756,7 +19748,7 @@
 fi
 
 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
-echo "configure:19760: checking stack direction for C alloca" >&5
+echo "configure:19752: checking stack direction for C alloca" >&5
 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19764,7 +19756,7 @@
   ac_cv_c_stack_direction=0
 else
   cat > conftest.$ac_ext <<EOF
-#line 19768 "configure"
+#line 19760 "configure"
 #include "confdefs.h"
 find_stack_direction ()
 {
@@ -19783,7 +19775,7 @@
   exit (find_stack_direction() < 0);
 }
 EOF
-if { (eval echo configure:19787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:19779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_c_stack_direction=1
 else
@@ -19830,17 +19822,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:19834: checking for $ac_hdr" >&5
+echo "configure:19826: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 19839 "configure"
+#line 19831 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:19844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:19836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -19918,7 +19910,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:19922: checking for $ac_word" >&5
+echo "configure:19914: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -19962,19 +19954,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for fontconfig freetype2""... $ac_c" 1>&6
-echo "configure:19966: checking for fontconfig freetype2" >&5
+echo "configure:19958: checking for fontconfig freetype2" >&5
 
         if $PKG_CONFIG --exists "fontconfig freetype2" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking CAIRO_FT_CFLAGS""... $ac_c" 1>&6
-echo "configure:19973: checking CAIRO_FT_CFLAGS" >&5
+echo "configure:19965: checking CAIRO_FT_CFLAGS" >&5
             CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "fontconfig freetype2"`
             echo "$ac_t""$CAIRO_FT_CFLAGS" 1>&6
 
             echo $ac_n "checking CAIRO_FT_LIBS""... $ac_c" 1>&6
-echo "configure:19978: checking CAIRO_FT_LIBS" >&5
+echo "configure:19970: checking CAIRO_FT_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             CAIRO_FT_LIBS="`$PKG_CONFIG --libs \"fontconfig freetype2\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$CAIRO_FT_LIBS" 1>&6
@@ -20065,7 +20057,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:20069: checking for $ac_word" >&5
+echo "configure:20061: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -20109,19 +20101,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for cairo >= $CAIRO_VERSION freetype2 fontconfig""... $ac_c" 1>&6
-echo "configure:20113: checking for cairo >= $CAIRO_VERSION freetype2 fontconfig" >&5
+echo "configure:20105: checking for cairo >= $CAIRO_VERSION freetype2 fontconfig" >&5
 
         if $PKG_CONFIG --exists "cairo >= $CAIRO_VERSION freetype2 fontconfig" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
-echo "configure:20120: checking CAIRO_CFLAGS" >&5
+echo "configure:20112: checking CAIRO_CFLAGS" >&5
             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION freetype2 fontconfig"`
             echo "$ac_t""$CAIRO_CFLAGS" 1>&6
 
             echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
-echo "configure:20125: checking CAIRO_LIBS" >&5
+echo "configure:20117: checking CAIRO_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             CAIRO_LIBS="`$PKG_CONFIG --libs \"cairo >= $CAIRO_VERSION freetype2 fontconfig\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$CAIRO_LIBS" 1>&6
@@ -20159,7 +20151,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:20163: checking for $ac_word" >&5
+echo "configure:20155: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -20203,19 +20195,19 @@
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
         echo $ac_n "checking for cairo-xlib-xrender >= $CAIRO_VERSION""... $ac_c" 1>&6
-echo "configure:20207: checking for cairo-xlib-xrender >= $CAIRO_VERSION" >&5
+echo "configure:20199: checking for cairo-xlib-xrender >= $CAIRO_VERSION" >&5
 
         if $PKG_CONFIG --exists "cairo-xlib-xrender >= $CAIRO_VERSION" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking CAIRO_XRENDER_CFLAGS""... $ac_c" 1>&6
-echo "configure:20214: checking CAIRO_XRENDER_CFLAGS" >&5
+echo "configure:20206: checking CAIRO_XRENDER_CFLAGS" >&5
             CAIRO_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib-xrender >= $CAIRO_VERSION"`
             echo "$ac_t""$CAIRO_XRENDER_CFLAGS" 1>&6
 
             echo $ac_n "checking CAIRO_XRENDER_LIBS""... $ac_c" 1>&6
-echo "configure:20219: checking CAIRO_XRENDER_LIBS" >&5
+echo "configure:20211: checking CAIRO_XRENDER_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
             CAIRO_XRENDER_LIBS="`$PKG_CONFIG --libs \"cairo-xlib-xrender >= $CAIRO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$CAIRO_XRENDER_LIBS" 1>&6
@@ -20286,7 +20278,7 @@
     # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:20290: checking for $ac_word" >&5
+echo "configure:20282: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -20329,29 +20321,29 @@
   else
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
-        echo $ac_n "checking for lcms >= $LCMS_VERSION""... $ac_c" 1>&6
-echo "configure:20334: checking for lcms >= $LCMS_VERSION" >&5
+        echo $ac_n "checking for lcms""... $ac_c" 1>&6
+echo "configure:20326: checking for lcms" >&5
 
-        if $PKG_CONFIG --exists "lcms >= $LCMS_VERSION" ; then
+        if $PKG_CONFIG --exists "lcms" ; then
             echo "$ac_t""yes" 1>&6
             succeeded=yes
 
             echo $ac_n "checking LCMS_CFLAGS""... $ac_c" 1>&6
-echo "configure:20341: checking LCMS_CFLAGS" >&5
-            LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms >= $LCMS_VERSION"`
+echo "configure:20333: checking LCMS_CFLAGS" >&5
+            LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms"`
             echo "$ac_t""$LCMS_CFLAGS" 1>&6
 
             echo $ac_n "checking LCMS_LIBS""... $ac_c" 1>&6
-echo "configure:20346: checking LCMS_LIBS" >&5
+echo "configure:20338: checking LCMS_LIBS" >&5
             ## Remove evil flags like -Wl,--export-dynamic
-            LCMS_LIBS="`$PKG_CONFIG --libs \"lcms >= $LCMS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
+            LCMS_LIBS="`$PKG_CONFIG --libs \"lcms\" |sed s/-Wl,--export-dynamic//g`"
             echo "$ac_t""$LCMS_LIBS" 1>&6
         else
             LCMS_CFLAGS=""
             LCMS_LIBS=""
             ## If we have a custom action on failure, don't print errors, but 
             ## do set a variable so people can do so.
-            LCMS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lcms >= $LCMS_VERSION"`
+            LCMS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lcms"`
             echo $LCMS_PKG_ERRORS
         fi
 
@@ -20367,7 +20359,7 @@
      :
   else
      if test "$COMPILE_ENVIRONMENT"; then 
-       { echo "configure: error: Library requirements (lcms >= $LCMS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
+       { echo "configure: error: Library requirements (lcms) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
      fi
   fi
 
@@ -20690,14 +20682,14 @@
 cross_compiling=$ac_cv_prog_cc_cross
 
     cat > conftest.$ac_ext <<EOF
-#line 20694 "configure"
+#line 20686 "configure"
 #include "confdefs.h"
 #include <gmodule.h>
 int main() {
  int x = 1; x++; 
 ; return 0; }
 EOF
-if { (eval echo configure:20701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:20693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -20983,6 +20975,8 @@
 
 
 
+
+
 cat >> confdefs.h <<EOF
 #define MOZ_DLL_SUFFIX "$DLL_SUFFIX"
 EOF
@@ -21011,7 +21005,7 @@
                 _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS $XCFLAGS"
     cat > conftest.$ac_ext <<EOF
-#line 21015 "configure"
+#line 21009 "configure"
 #include "confdefs.h"
 
         #include <stdio.h>
@@ -21029,7 +21023,7 @@
     
 ; return 0; }
 EOF
-if { (eval echo configure:21033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:21027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -21252,34 +21246,15 @@
 # Transform confdefs.h into DEFS.
 # Protect against shell expansion while executing Makefile rules.
 # Protect against Makefile macro expansion.
-#
-# If the first sed substitution is executed (which looks for macros that
-# take arguments), then we branch to the quote section.  Otherwise,
-# look for a macro that doesn't take arguments.
-cat >confdef2opt.sed <<\_ACEOF
-t clear
-: clear
-s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
-t quote
-s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
-t quote
-d
-: quote
-s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
-s,\[,\\&,g
-s,\],\\&,g
-s,\$,$$,g
-p
-_ACEOF
-# We use echo to avoid assuming a particular line-breaking character.
-# The extra dot is to prevent the shell from consuming trailing
-# line-breaks from the sub-command output.  A line-break within
-# single-quotes doesn't work because, if this script is created in a
-# platform that uses two characters for line-breaks (e.g., DOS), tr
-# would break.
-ac_LF_and_DOT=`echo; echo .`
-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
-rm -f confdef2opt.sed
+cat > conftest.defs <<\EOF
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
+s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
+s%\[%\\&%g
+s%\]%\\&%g
+s%\$%$$%g
+EOF
+DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
+rm -f conftest.defs
 
 MOZ_DEFINES=$DEFS
 
@@ -21610,6 +21585,9 @@
 s%@MOZ_URL_CLASSIFIER@%$MOZ_URL_CLASSIFIER%g
 s%@MOZ_ZIPWRITER@%$MOZ_ZIPWRITER%g
 s%@JS_ULTRASPARC_OPTS@%$JS_ULTRASPARC_OPTS%g
+s%@ENABLE_JS_BINARY@%$ENABLE_JS_BINARY%g
+s%@HAVE_READLINE@%$HAVE_READLINE%g
+s%@READLINE_LIBS@%$READLINE_LIBS%g
 s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g
 s%@MOZ_OPTIMIZE_FLAGS@%$MOZ_OPTIMIZE_FLAGS%g
 s%@MOZ_OPTIMIZE_LDFLAGS@%$MOZ_OPTIMIZE_LDFLAGS%g
@@ -21839,6 +21817,7 @@
 s%@WIN32_REDIST_DIR@%$WIN32_REDIST_DIR%g
 s%@SYSTEM_JPEG@%$SYSTEM_JPEG%g
 s%@SYSTEM_PNG@%$SYSTEM_PNG%g
+s%@APNG@%$APNG%g
 s%@SYSTEM_ZLIB@%$SYSTEM_ZLIB%g
 s%@SYSTEM_BZ2@%$SYSTEM_BZ2%g
 s%@JPEG_CFLAGS@%$JPEG_CFLAGS%g
@@ -21863,6 +21842,7 @@
 s%@COMPILE_CFLAGS@%$COMPILE_CFLAGS%g
 s%@COMPILE_CXXFLAGS@%$COMPILE_CXXFLAGS%g
 s%@CROSS_COMPILE@%$CROSS_COMPILE%g
+s%@WCHAR_CFLAGS@%$WCHAR_CFLAGS%g
 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
 s%@HOST_CXXFLAGS@%$HOST_CXXFLAGS%g
 s%@HOST_OPTIMIZE_FLAGS@%$HOST_OPTIMIZE_FLAGS%g
@@ -22257,7 +22237,7 @@
       fi
     fi
 
-    cd $ac_popdir
+    cd "$ac_popdir"
   done
 fi
 
@@ -22400,7 +22380,7 @@
       fi
     fi
 
-    cd $ac_popdir
+    cd "$ac_popdir"
   done
 fi
 
--- xulrunner-1.9.0.7.orig/content/xslt/src/xslt/txKeyFunctionCall.cpp
+++ xulrunner-1.9.0.7/content/xslt/src/xslt/txKeyFunctionCall.cpp
@@ -388,16 +388,19 @@
     PRUint32 currKey, numKeys = mKeys.Length();
     for (currKey = 0; currKey < numKeys; ++currKey) {
         if (mKeys[currKey].matchPattern->matches(aNode, &aEs)) {
-            txSingleNodeContext evalContext(aNode, &aEs);
-            nsresult rv = aEs.pushEvalContext(&evalContext);
+            txSingleNodeContext *evalContext =
+                new txSingleNodeContext(aNode, &aEs);
+            NS_ENSURE_TRUE(evalContext, NS_ERROR_OUT_OF_MEMORY);
+
+            nsresult rv = aEs.pushEvalContext(evalContext);
             NS_ENSURE_SUCCESS(rv, rv);
 
             nsRefPtr<txAExprResult> exprResult;
-            rv = mKeys[currKey].useExpr->evaluate(&evalContext,
+            rv = mKeys[currKey].useExpr->evaluate(evalContext,
                                                   getter_AddRefs(exprResult));
             NS_ENSURE_SUCCESS(rv, rv);
 
-            aEs.popEvalContext();
+            delete aEs.popEvalContext();
 
             if (exprResult->getResultType() == txAExprResult::NODESET) {
                 txNodeSet* res = static_cast<txNodeSet*>
--- xulrunner-1.9.0.7.orig/content/html/document/src/nsHTMLFragmentContentSink.cpp
+++ xulrunner-1.9.0.7/content/html/document/src/nsHTMLFragmentContentSink.cpp
@@ -1162,30 +1162,15 @@
   
   nsresult rv = NS_OK;
 
-#ifndef MOZILLA_1_8_BRANCH
   if (mSkip) {
     return rv;
   }
-#endif
   
   if (aNode.GetTokenType() == eToken_start) {
     nsCOMPtr<nsIAtom> name;
     rv = NameFromNode(aNode, getter_AddRefs(name));
     NS_ENSURE_SUCCESS(rv, rv);
 
-#ifdef MOZILLA_1_8_BRANCH
-    // we have to do this on the branch for some late 90s reason
-    if (name == nsGkAtoms::script || name == nsGkAtoms::style) {
-      nsCOMPtr<nsIDTD> dtd;
-      mParser->GetDTD(getter_AddRefs(dtd));
-      NS_ENSURE_TRUE(dtd, NS_ERROR_FAILURE);
-
-      nsAutoString skippedContent;
-      PRInt32 lineNo = 0;                
-      dtd->CollectSkippedContent(nodeType, skippedContent, lineNo);
-    }
-#endif
-
     // We will process base tags, but we won't include them
     // in the output
     if (name == nsGkAtoms::base) {
--- xulrunner-1.9.0.7.orig/embedding/browser/gtk/src/EmbedPasswordMgr.cpp
+++ xulrunner-1.9.0.7/embedding/browser/gtk/src/EmbedPasswordMgr.cpp
@@ -50,12 +50,7 @@
 #include "nsIPrefBranch2.h"
 #include "prmem.h"
 #include "nsIStringBundle.h"
-#ifdef MOZILLA_1_8_BRANCH
-#include "nsIArray.h"
-#include "nsObserverService.h"
-#else
 #include "nsIMutableArray.h"
-#endif
 #include "nsICategoryManager.h"
 #include "nsIObserverService.h"
 #include "nsIWebProgress.h"
--- xulrunner-1.9.0.7.orig/embedding/browser/gtk/src/EmbedContextMenuInfo.cpp
+++ xulrunner-1.9.0.7/embedding/browser/gtk/src/EmbedContextMenuInfo.cpp
@@ -167,11 +167,7 @@
     nsCOMPtr<nsIContent> tgContent = do_QueryInterface(mEventTarget);
 	nsIFrame* frame = nsnull;
 #if defined(FIXED_BUG347731) || !defined(MOZ_ENABLE_LIBXUL)
-#ifdef MOZILLA_1_8_BRANCH
-    presShell->GetPrimaryFrameFor(tgContent, &frame);
-#else
     frame = presShell->GetPrimaryFrameFor(tgContent);
-#endif
     if (frame)
       mFormRect = frame->GetScreenRectExternal();
 #endif
@@ -186,11 +182,7 @@
   nsresult rv = NS_ERROR_FAILURE;
   nsCOMPtr<nsIContent> targetContent = do_QueryInterface(originalTarget);
   mCtxFormType = 0;
-#ifdef MOZILLA_1_8_BRANCH
-  if (targetContent && targetContent->IsContentOfType(nsIContent::eHTML_FORM_CONTROL)) {
-#else
   if (targetContent && targetContent->IsNodeOfType(nsIContent::eHTML_FORM_CONTROL)) {
-#endif
     nsCOMPtr<nsIFormControl> formControl(do_QueryInterface(targetContent));
     if (formControl) {
       mCtxFormType = formControl->GetType();
@@ -604,12 +596,7 @@
   if (mEmbedCtxType & GTK_MOZ_EMBED_CTX_RICHEDIT)
     frame = presShell->GetRootFrame();
   else {
-#ifdef MOZILLA_1_8_BRANCH
-    frame = nsnull;
-    presShell->GetPrimaryFrameFor(tgContent, &frame);
-#else
     frame = presShell->GetPrimaryFrameFor(tgContent);
-#endif
   }
   if (frame) {
     mFormRect = frame->GetScreenRectExternal();
--- xulrunner-1.9.0.7.orig/browser/app/mozilla.in
+++ xulrunner-1.9.0.7/browser/app/mozilla.in
@@ -135,8 +135,5 @@
 then
   echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
 fi
-"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
-exitcode=$?
-
-exit $exitcode
+exec "$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
 # EOF.
--- xulrunner-1.9.0.7.orig/xpcom/build/nsXPComInit.cpp
+++ xulrunner-1.9.0.7/xpcom/build/nsXPComInit.cpp
@@ -289,6 +289,23 @@
 static PRBool CheckUpdateFile()
 {
     nsresult rv;
+    nsCOMPtr<nsIFile> compregFile;
+    rv = nsDirectoryService::gService->Get(NS_XPCOM_COMPONENT_REGISTRY_FILE,
+                                           NS_GET_IID(nsIFile),
+                                           getter_AddRefs(compregFile));
+
+    if (NS_FAILED(rv)) {
+        NS_WARNING("Getting NS_XPCOM_COMPONENT_REGISTRY_FILE failed");
+        return PR_FALSE;
+    }
+
+    PRBool exists;
+    if (NS_FAILED(compregFile->Exists(&exists)) || !exists)
+        return PR_TRUE;
+
+    PRInt64 compregModTime;
+    compregFile->GetLastModifiedTime(&compregModTime);
+
     nsCOMPtr<nsIFile> file;
     rv = nsDirectoryService::gService->Get(NS_XPCOM_CURRENT_PROCESS_DIR, 
                                            NS_GET_IID(nsIFile), 
@@ -301,28 +318,39 @@
 
     file->AppendNative(nsDependentCString(".autoreg"));
     
-    PRBool exists;
     file->Exists(&exists);
     if (!exists)
-        return PR_FALSE;
+        goto next;
 
-    nsCOMPtr<nsIFile> compregFile;
-    rv = nsDirectoryService::gService->Get(NS_XPCOM_COMPONENT_REGISTRY_FILE,
+    PRInt64 autoregModTime;
+    file->GetLastModifiedTime(&autoregModTime);
+
+    if (LL_CMP(autoregModTime, >, compregModTime))
+        return PR_TRUE;
+
+next:
+    nsCOMPtr<nsIFile> greFile;
+    rv = nsDirectoryService::gService->Get(NS_GRE_DIR,
                                            NS_GET_IID(nsIFile),
-                                           getter_AddRefs(compregFile));
+                                           getter_AddRefs(greFile));
 
-    
     if (NS_FAILED(rv)) {
-        NS_WARNING("Getting NS_XPCOM_COMPONENT_REGISTRY_FILE failed");
+        NS_WARNING("Getting NS_GRE_DIR failed");
         return PR_FALSE;
     }
 
-    if (NS_FAILED(compregFile->Exists(&exists)) || !exists)
-        return PR_TRUE;
+    greFile->AppendNative(nsDependentCString(".autoreg"));
 
-    PRInt64 compregModTime, autoregModTime;
-    compregFile->GetLastModifiedTime(&compregModTime);
-    file->GetLastModifiedTime(&autoregModTime);
+    PRBool equals;
+    rv = greFile->Equals(file, &equals);
+    if (NS_SUCCEEDED(rv) && equals)
+        return PR_FALSE;
+
+    greFile->Exists(&exists);
+    if (!exists)
+        return PR_FALSE;
+
+    greFile->GetLastModifiedTime(&autoregModTime);
 
     return LL_CMP(autoregModTime, >, compregModTime);
 }
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s
@@ -24,6 +24,7 @@
  * Contributor(s):
  *   Brendan Eich     <brendan@mozilla.org>
  *   Stuart Parmenter <pavlov@netscape.com>
+ *   Thiemo Seufer    <seufer@csv.ica.uni-stuttgart.de>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -44,139 +45,123 @@
 #include <sys/regdef.h>
 #include <sys/asm.h>
 
-.text
-.globl  invoke_count_words
-.globl	invoke_copy_to_stack 
-
-# We need a variable number of words allocated from the stack for copies of
-# the params, and this space must come between the high frame (where ra, gp,
-# and s0 are saved) and the low frame (where a0-a3 are saved by the callee
-# functions we invoke). 
-
-LOCALSZ=4		# s0, s1, ra, gp
-NARGSAVE=4		# a0, a1, a2, a3
-HIFRAMESZ=(LOCALSZ*SZREG)
-LOFRAMESZ=(NARGSAVE*SZREG)
-FRAMESZ=(HIFRAMESZ+LOFRAMESZ+ALSZ)&ALMASK
-
-# XXX these 2*SZREG, etc. are very magic -- we *know* that ALSZ&ALMASK cause
-# FRAMESZ to be 0 mod 8, in this case to be 16 and not 12.
-RAOFF=FRAMESZ - (2*SZREG)
-GPOFF=FRAMESZ - (3*SZREG)
-S0OFF=FRAMESZ - (4*SZREG)
-S1OFF=FRAMESZ - (5*SZREG)
-
-# These are not magic -- they are just our argsave slots in the caller frame.
-A0OFF=FRAMESZ
-A1OFF=FRAMESZ + (1*SZREG)
-A2OFF=FRAMESZ + (2*SZREG)
-A3OFF=FRAMESZ + (3*SZREG)
-
-	#	
-	# _XPTC_InvokeByIndex(that, methodIndex, paramCount, params)
-	#                      a0       a1          a2         a3
-
-NESTED(_XPTC_InvokeByIndex, FRAMESZ, ra)
-
-	.set	noreorder
-	.cpload	t9
-	.set	reorder
-
+# NARGSAVE is the argument space in the callers frame, including extra
+# 'shadowed' space for the argument registers. The minimum of 4
+# argument slots is sometimes predefined in the header files.
+#ifndef NARGSAVE
+#define NARGSAVE 4
+#endif
+
+#define LOCALSZ 3	/* gp, fp, ra */
+#define FRAMESZ ((((NARGSAVE+LOCALSZ)*SZREG)+ALSZ)&ALMASK)
+
+#define RAOFF (FRAMESZ - (1*SZREG))
+#define FPOFF (FRAMESZ - (2*SZREG))
+#define GPOFF (FRAMESZ - (3*SZREG))
+
+#define A0OFF (FRAMESZ + (0*SZREG))
+#define A1OFF (FRAMESZ + (1*SZREG))
+#define A2OFF (FRAMESZ + (2*SZREG))
+#define A3OFF (FRAMESZ + (3*SZREG))
+
+	.text
+
+#	
+# _NS_InvokeByIndex_P(that, methodIndex, paramCount, params)
+#                      a0       a1          a2         a3
+
+	.globl	_NS_InvokeByIndex_P
+	.align	2
+	.type	_NS_InvokeByIndex_P,@function
+	.ent	_NS_InvokeByIndex_P,0
+	.frame	fp, FRAMESZ, ra
+_NS_InvokeByIndex_P:
+	SETUP_GP
 	subu	sp, FRAMESZ
 
-	# specify the save register mask -- XXX do we want the a0-a3 here, given
-	# our "split" frame where the args are saved below a dynamicly allocated
-	# region under the high frame?
-	#
-	# 10010000000000010000000011110000
-	.mask 0x900100F0, -((NARGSAVE+LOCALSZ)*SZREG)
-
-	# thou shalt not use .cprestore if yer frame has variable size...
-	# .cprestore GPOFF
-
-	REG_S	ra, RAOFF(sp)
-
-	# this happens automatically with .cprestore, but we cannot use that op...
-	REG_S	gp, GPOFF(sp)
-	REG_S	s0, S0OFF(sp)
-	REG_S	s1, S1OFF(sp)
-
-	REG_S	a0, A0OFF(sp)
-	REG_S	a1, A1OFF(sp)
-	REG_S	a2, A2OFF(sp)
-	REG_S	a3, A3OFF(sp)
+	# specify the save register mask for gp, fp, ra, a3 - a0
+	.mask 0xD00000F0, RAOFF-FRAMESZ
 
-	# invoke_count_words(paramCount, params)
-	move	a0, a2
-	move	a1, a3
+	sw	ra, RAOFF(sp)
+	sw	fp, FPOFF(sp)
 
-	jal	invoke_count_words
-	lw	gp, GPOFF(sp)
+	# we can't use .cprestore in a variable stack frame
+	sw	gp, GPOFF(sp)
 
-	# save the old sp so we can pop the param area and any "low frame"
-	# needed as an argsave area below the param block for callees that
-	# we invoke.
-	move	s0, sp
-
-	REG_L	a1, A2OFF(sp)	# a1 = paramCount
-	REG_L	a2, A3OFF(sp)	# a2 = params
-
-	# we define a word as 4 bytes, period end of story!
-	sll	v0, 2		# 4 bytes * result of invoke_copy_words
-	subu	v0, LOFRAMESZ	# but we take back the argsave area built into
-				# our stack frame -- SWEET!
-	subu	sp, sp, v0	# make room
-	move	a0, sp		# a0 = param stack address
-	move	s1, a0		# save it for later -- it should be safe here
-
-	# the old sp is still saved in s0, but we now need another argsave
-	# area ("low frame") for the invoke_copy_to_stack call.
-	subu	sp, sp, LOFRAMESZ
+	sw	a0, A0OFF(sp)
+	sw	a1, A1OFF(sp)
+	sw	a2, A2OFF(sp)
+	sw	a3, A3OFF(sp)
+
+	# save bottom of fixed frame
+	move	fp, sp
+
+	# extern "C" uint32
+	# invoke_count_words(PRUint32 paramCount, nsXPTCVariant* s);
+	la	t9, invoke_count_words
+	move	a0, a2
+	move	a1, a3
+	jalr	t9
+	lw  	gp, GPOFF(fp)
 
-	# copy the param into the stack areas
+	# allocate variable stack, with a size of:
+	# wordsize (of 4 bytes) * result (already aligned to dword)
+	# but a minimum of 16 byte
+	sll	v0, 2
+	slt	t0, v0, 16
+	beqz	t0, 1f
+	li	v0, 16
+1:	subu	sp, v0
+
+	# let a0 point to the bottom of the variable stack, allocate
+	# another fixed stack for:
+	# extern "C" void
 	# invoke_copy_to_stack(PRUint32* d, PRUint32 paramCount,
-	#                      nsXPTCVariant* s)
-	jal     invoke_copy_to_stack
-	lw  	gp, GPOFF(s0)
-
-	move	sp, s0		# get orig sp back, popping params and argsave
-
-	REG_L	a0, A0OFF(sp)	# a0 = set "that" to be "this"
-	REG_L	a1, A1OFF(sp)	# a1 = methodIndex
-
-	# t1 = methodIndex * 4
-	# (use shift instead of mult)
-	sll	t1, a1, 2
-
-	# calculate the function we need to jump to,
-	# which must then be saved in t9
+	#		       nsXPTCVariant* s);
+	la	t9, invoke_copy_to_stack
+	move	a0, sp
+	lw	a1, A2OFF(fp)
+	lw	a2, A3OFF(fp)
+	subu	sp, 16
+	jalr	t9
+	lw  	gp, GPOFF(fp)
+
+	# back to the variable stack frame
+	addu	sp, 16
+
+	# calculate the function we need to jump to, which must then be
+	# stored in t9
+	lw	a0, A0OFF(fp)	# a0 = set "that" to be "this"
+	lw	t0, A1OFF(fp)	# a1 = methodIndex
 	lw	t9, 0(a0)
-	addu	t9, t9, t1
-	lw	t9, 8(t9)
-
-	# a1..a3 and f13..f14 should now be set to what
-	# invoke_copy_to_stack told us. skip a0 and f12
-	# because that is the "this" pointer
-
-	REG_L	a1, 1*SZREG(s1)
-	REG_L	a2, 2*SZREG(s1)
-	REG_L	a3, 3*SZREG(s1)
-
-	l.d	$f13, 8(s1)
-	l.d	$f14, 16(s1)
-
-	# Create the stack pointer for the function, which must have 4 words
-	# of space for callee-saved args.  invoke_count_words allocated space
-        # for a0 starting at s1, so we just move s1 into sp.
-	move	sp, s1
+	# t0 = methodIndex << PTRLOG
+	sll	t0, t0, PTRLOG
+	addu	t9, t0
+#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
+	lw	t9, (t9)
+#else /* not G++ V3 ABI */
+	lw	t9, 2*PTRSIZE(t9)
+#endif /* G++ V3 ABI */
+
+	# Set a1-a3 to what invoke_copy_to_stack told us. a0 is already
+	# the "this" pointer. We don't have to care about floating
+	# point arguments, the non-FP "this" pointer as first argument
+	# means they'll never be used.
+	lw	a1, 1*SZREG(sp)
+	lw	a2, 2*SZREG(sp)
+	lw	a3, 3*SZREG(sp)
+
+	jalr	t9
+	# Micro-optimization: There's no gp usage below this point, so
+	# we don't reload.
+	# lw	gp, GPOFF(fp)
 
-	jalr	ra, t9
-	lw	gp, GPOFF(s0)
+	# leave variable stack frame
+	move	sp, fp
 
-	move	sp, s0
+	lw	ra, RAOFF(sp)
+	lw	fp, FPOFF(sp)
 
-	REG_L	ra, RAOFF(sp)
-	REG_L	s0, S0OFF(sp)
-	addu	sp, FRAMESZ
+	addiu	sp, FRAMESZ
 	j	ra
-.end _XPTC_InvokeByIndex
+END(_NS_InvokeByIndex_P)
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp
@@ -38,6 +38,7 @@
 /* Implement shared vtbl methods. */
 
 #include "xptcprivate.h"
+#include "xptiprivate.h"
 
 extern "C" {
     nsresult
@@ -47,7 +48,6 @@
 
         nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
         nsXPTCMiniVariant* dispatchParams = NULL;
-        nsIInterfaceInfo* iface_info = NULL;
         const nsXPTMethodInfo* info;
         PRUint8 paramCount;
         PRUint8 i;
@@ -55,11 +55,8 @@
 
         NS_ASSERTION(self,"no self");
 
-        self->GetInterfaceInfo(&iface_info);
-        NS_ASSERTION(iface_info,"no interface info");
-
-        iface_info->GetMethodInfo(PRUint16(methodIndex), &info);
-        NS_ASSERTION(info,"no interface info");
+        self->mEntry->GetMethodInfo(PRUint16(methodIndex), &info);
+        NS_ASSERTION(info,"no method info");
 
         paramCount = info->GetParamCount();
 
@@ -107,9 +104,7 @@
             }
         }
 
-        result = self->CallMethod((PRUint16)methodIndex, info, dispatchParams);
-
-        NS_RELEASE(iface_info);
+        result = self->mOuter->CallMethod((PRUint16)methodIndex, info, dispatchParams);
 
         if(dispatchParams != paramBuffer)
             delete [] dispatchParams;
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/Makefile.in
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/Makefile.in
@@ -64,7 +64,7 @@
 #
 # Lots of Unixish x86 flavors
 #
-ifneq (,$(filter FreeBSD NetBSD OpenBSD BSD_OS Darwin,$(OS_ARCH)))
+ifneq (,$(filter FreeBSD NetBSD OpenBSD BSD_OS Darwin GNU,$(OS_ARCH)))
 ifeq (86,$(findstring 86,$(OS_TEST)))
 CPPSRCS		:= xptcinvoke_unixish_x86.cpp xptcstubs_unixish_x86.cpp
 ifeq (Darwin,$(OS_ARCH))
@@ -222,12 +222,13 @@
 # Linux/HPPA/gcc
 #
 ifeq ($(OS_ARCH),Linux)
-ifneq (,$(filter hppa2.0 hppa1.1,$(OS_TEST)))
+ifneq (,$(filter hppa hppa2.0 hppa1.1,$(OS_TEST)))
 ifndef GNU_CXX
 $(error Unknown C++ compiler, xptcall assembly will probably be incorrect.)
 else
 CPPSRCS		:= xptcinvoke_pa32.cpp xptcstubs_pa32.cpp
 ASFILES		:= xptcstubs_asm_parisc_linux.s xptcinvoke_asm_parisc_linux.s
+MOZ_OPTIMIZE_FLAGS	:= -O0
 endif
 endif
 endif
@@ -276,11 +277,7 @@
 ifneq (,$(findstring mips, $(OS_TEST)))
 CPPSRCS		:= xptcinvoke_mips.cpp xptcstubs_mips.cpp
 ASFILES		:= xptcinvoke_asm_mips.s xptcstubs_asm_mips.s
-#xptcstubs_mips.cpp
-# xptcstubs_asm_mips.s
-ifdef GNU_CC
-ASFLAGS		+= $(INCLUDES) -x assembler-with-cpp -D__GNUC__
-endif
+ASFLAGS		+= -I$(PUBLIC) -x assembler-with-cpp
 endif
 endif
 
@@ -466,10 +463,7 @@
 
 ifeq ($(OS_ARCH),Linux)
 ifneq (,$(findstring mips, $(OS_TEST)))
-xptcstubs_asm_mips.o: xptcstubs_asm_mips.s.m4 $(PUBLIC)/xptcstubsdef.inc
-	m4 $(INCLUDES) $< > ./xptcstubs_asm_mips.s && \
-	$(AS) -o $@ $(ASFLAGS) $(AS_DASH_C_FLAG) ./xptcstubs_asm_mips.s
-	$(RM) -f ./xptcstubs_asm_mips.s
+xptcstubs_asm_mips.o: $(PUBLIC)/xptcstubsdef.inc
 endif
 endif
 
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_m68k.cpp
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_m68k.cpp
@@ -128,8 +128,8 @@
     }
 }
 
-XPTC_PUBLIC_API(nsresult)
-XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
+EXPORT_XPCOM_API(nsresult)
+NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
                    PRUint32 paramCount, nsXPTCVariant* params)
 {
     PRUint32 result, n;
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_mips.cpp
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_mips.cpp
@@ -24,6 +24,7 @@
  * Contributor(s):
  *   Stuart Parmenter <pavlov@netscape.com>
  *   Brendan Eich     <brendan@mozilla.org>
+ *   Thiemo Seufer    <seufer@csv.ica.uni-stuttgart.de>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -52,10 +53,8 @@
     // Count a word for a0 even though it's never stored or loaded
     // We do this only for alignment of register pairs.
     PRUint32 result = 1;
-    for (PRUint32 i = 0; i < paramCount; i++, s++)
+    for (PRUint32 i = 0; i < paramCount; i++, result++, s++)
     {
-        result++;
-
         if (s->IsPtrData())
             continue;
 
@@ -68,6 +67,9 @@
 		result++;
 	    result++;
 	    break;
+
+        default:
+            break;
         }
     }
     return (result + 1) & ~(PRUint32)1;
@@ -88,8 +90,6 @@
             continue;
         }
 
-        *((void**)d) = s->val.p;
-
         switch(s->type)
         {
         case nsXPTType::T_I64    :
@@ -104,19 +104,20 @@
             if ((PRWord)d & 4) d++;
             *((double*)   d) = s->val.d;      d++;
             break;
+        default:
+            *((void**)d) = s->val.p;
+            break;
         }
     }
 }
 
-extern "C" nsresult _XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
+extern "C" nsresult _NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
                                         PRUint32 paramCount,
                                         nsXPTCVariant* params);
 
-extern "C"
-XPTC_PUBLIC_API(nsresult)
-XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
+EXPORT_XPCOM_API(nsresult)
+NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
                    PRUint32 paramCount, nsXPTCVariant* params)
 {
-    return _XPTC_InvokeByIndex(that, methodIndex, paramCount, params);
-}    
-
+    return _NS_InvokeByIndex_P(that, methodIndex, paramCount, params);
+}
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s
@@ -0,0 +1,142 @@
+/* -*- Mode: asm; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corp, Inc.
+ * Portions created by the Initial Developer are Copyright (C) 2001
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *   Stuart Parmenter <pavlov@netscape.com>
+ *   Chris Waterson   <waterson@netscape.com>
+ *   Thiemo Seufer    <seufer@csv.ica.uni-stuttgart.de>
+ */
+
+/* This code is for MIPS using the O32 ABI. */
+
+#include <sys/regdef.h>
+#include <sys/asm.h>
+
+# NARGSAVE is the argument space in the callers frame, including extra
+# 'shadowed' space for the argument registers. The minimum of 4
+# argument slots is sometimes predefined in the header files.
+#ifndef NARGSAVE
+#define NARGSAVE 4
+#endif
+
+#define LOCALSZ 2	/* gp, ra */
+#define FRAMESZ ((((NARGSAVE+LOCALSZ)*SZREG)+ALSZ)&ALMASK)
+
+#define RAOFF (FRAMESZ - (1*SZREG))
+#define GPOFF (FRAMESZ - (2*SZREG))
+
+#define A0OFF (FRAMESZ + (0*SZREG))
+#define A1OFF (FRAMESZ + (1*SZREG))
+#define A2OFF (FRAMESZ + (2*SZREG))
+#define A3OFF (FRAMESZ + (3*SZREG))
+
+	.text
+
+#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
+#define STUB_ENTRY(x)						\
+	.if x < 10;						\
+	.globl	_ZN14nsXPTCStubBase5Stub ##x ##Ev;		\
+	.type	_ZN14nsXPTCStubBase5Stub ##x ##Ev,@function;	\
+	.aent	_ZN14nsXPTCStubBase5Stub ##x ##Ev,0;		\
+_ZN14nsXPTCStubBase5Stub ##x ##Ev:;				\
+	SETUP_GP;						\
+	li	t0,x;						\
+	b	sharedstub;					\
+	.elseif x < 100;					\
+	.globl	_ZN14nsXPTCStubBase6Stub ##x ##Ev;		\
+	.type	_ZN14nsXPTCStubBase6Stub ##x ##Ev,@function;	\
+	.aent	_ZN14nsXPTCStubBase6Stub ##x ##Ev,0;		\
+_ZN14nsXPTCStubBase6Stub ##x ##Ev:;				\
+	SETUP_GP;						\
+	li	t0,x;						\
+	b	sharedstub;					\
+	.elseif x < 1000;					\
+	.globl	_ZN14nsXPTCStubBase7Stub ##x ##Ev;		\
+	.type	_ZN14nsXPTCStubBase7Stub ##x ##Ev,@function;	\
+	.aent	_ZN14nsXPTCStubBase7Stub ##x ##Ev,0;		\
+_ZN14nsXPTCStubBase7Stub ##x ##Ev:;				\
+	SETUP_GP;						\
+	li	t0,x;						\
+	b	sharedstub;					\
+	.else;							\
+	.err;							\
+	.endif
+#else /* not G++ V3 ABI */
+#define STUB_ENTRY(x)						\
+	.globl	Stub ##x ##__14nsXPTCStubBase;			\
+	.type	Stub ##x ##__14nsXPTCStubBase,@function;	\
+	.aent	Stub ##x ##__14nsXPTCStubBase,0;		\
+Stub ##x ##__14nsXPTCStubBase:;					\
+	SETUP_GP;						\
+	li	t0,x;						\
+	b	sharedstub
+#endif /* G++ V3 ABI */
+
+# SENTINEL_ENTRY is handled in the cpp file.
+#define SENTINEL_ENTRY(x)
+
+#
+# open a dummy frame for the function entries
+#
+	.align	2
+	.type	dummy,@function
+	.ent	dummy, 0
+	.frame	sp, FRAMESZ, ra 
+dummy:
+	SETUP_GP
+
+#include "xptcstubsdef.inc"
+
+sharedstub:
+	subu	sp, FRAMESZ
+
+	# specify the save register mask for gp, ra, a0-a3
+	.mask 0x900000F0, RAOFF-FRAMESZ
+
+	sw	ra, RAOFF(sp)
+	SAVE_GP(GPOFF)
+
+	# Micro-optimization: a0 is already loaded, and its slot gets
+	# ignored by PrepareAndDispatch, so no need to save it here.
+	# sw	a0, A0OFF(sp)
+	sw	a1, A1OFF(sp)
+	sw	a2, A2OFF(sp)
+	sw	a3, A3OFF(sp)
+
+	la	t9, PrepareAndDispatch
+
+	# t0 is methodIndex
+	move	a1, t0
+	# have a2 point to the begin of the argument space on stack
+	addiu	a2, sp, FRAMESZ
+
+	# PrepareAndDispatch(that, methodIndex, args)
+	jalr	t9
+
+	# Micro-optimization: Using jalr explicitly has the side-effect
+	# of not triggering .cprestore. This is ok because we have no
+	# gp reference below this point. It also allows better
+	# instruction sscheduling.
+	# lw	gp, GPOFF(fp)
+ 
+ 	lw	ra, RAOFF(sp)
+	addiu	sp, FRAMESZ
+	j	ra
+	END(dummy)
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h
@@ -67,7 +67,7 @@
 *
 */
 
-#if defined(LINUX) || (defined(__GLIBC__) && defined(__FreeBSD_kernel__))
+#if defined(LINUX) || (defined(__GLIBC__) && (defined(__FreeBSD_kernel__) || defined(__GNU__)))
 
 #if (__GNUC__ == 2) && (__GNUC_MINOR__ <= 7)
 /* Old gcc 2.7.x.x.  What does gcc 2.8.x do?? */
--- xulrunner-1.9.0.7.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips.cpp
+++ xulrunner-1.9.0.7/xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips.cpp
@@ -39,6 +39,7 @@
  * ***** END LICENSE BLOCK ***** */
 
 #include "xptcprivate.h"
+#include "xptiprivate.h"
 
 /*
  * This is for MIPS O32 ABI
@@ -54,7 +55,6 @@
 
     nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
     nsXPTCMiniVariant* dispatchParams = NULL;
-    nsIInterfaceInfo* iface_info = NULL;
     const nsXPTMethodInfo* info;
     PRUint8 paramCount;
     PRUint8 i;
@@ -62,11 +62,8 @@
 
     NS_ASSERTION(self,"no self");
 
-    self->GetInterfaceInfo(&iface_info);
-    NS_ASSERTION(iface_info,"no interface info");
-
-    iface_info->GetMethodInfo(PRUint16(methodIndex), &info);
-    NS_ASSERTION(info,"no interface info");
+    self->mEntry->GetMethodInfo(PRUint16(methodIndex), &info);
+    NS_ASSERTION(info,"no method info");
 
     paramCount = info->GetParamCount();
 
@@ -109,9 +106,7 @@
         }
     }
 
-    result = self->CallMethod((PRUint16)methodIndex, info, dispatchParams);
-
-    NS_RELEASE(iface_info);
+    result = self->mOuter->CallMethod((PRUint16)methodIndex, info, dispatchParams);
 
     if(dispatchParams != paramBuffer)
         delete [] dispatchParams;
--- xulrunner-1.9.0.7.orig/xpcom/glue/nsThreadUtils.cpp
+++ xulrunner-1.9.0.7/xpcom/glue/nsThreadUtils.cpp
@@ -187,24 +187,27 @@
 }
 #endif // XPCOM_GLUE_AVOID_NSPR
 
+inline PRBool
+hasPendingEvents(nsIThread *thread)
+{
+  PRBool val;
+  return NS_SUCCEEDED(thread->HasPendingEvents(&val)) && val;
+}
+
 PRBool
 NS_HasPendingEvents(nsIThread *thread)
 {
-#ifdef MOZILLA_INTERNAL_API
   if (!thread) {
+#ifndef MOZILLA_INTERNAL_API
+    nsCOMPtr<nsIThread> current;
+    NS_GetCurrentThread(getter_AddRefs(current));
+    return hasPendingEvents(current);
+#else
     thread = NS_GetCurrentThread();
     NS_ENSURE_TRUE(thread, PR_FALSE);
-  }
-#else
-  nsCOMPtr<nsIThread> current;
-  if (!thread) {
-    NS_GetCurrentThread(getter_AddRefs(current));
-    NS_ENSURE_TRUE(current, PR_FALSE);
-    thread = current.get();
-  }
 #endif
-  PRBool val;
-  return NS_SUCCEEDED(thread->HasPendingEvents(&val)) && val;
+  }
+  return hasPendingEvents(thread);
 }
 
 PRBool
--- xulrunner-1.9.0.7.orig/xpcom/glue/nsTextFormatter.cpp
+++ xulrunner-1.9.0.7/xpcom/glue/nsTextFormatter.cpp
@@ -920,7 +920,7 @@
 		return -1;
 	    }
 
-	    ap = nas[i-1].ap;
+	    VARARGS_ASSIGN(ap, nas[i-1].ap);
 	    dolPt = fmt;
 	    c = *fmt++;
 	}
--- xulrunner-1.9.0.7.orig/xpcom/glue/standalone/Makefile.in
+++ xulrunner-1.9.0.7/xpcom/glue/standalone/Makefile.in
@@ -62,7 +62,7 @@
 ifneq (,$(filter WINNT WINCE,$(OS_ARCH)))
 LINKSRC = nsGlueLinkingWin.cpp
 endif
-ifneq (,$(filter AIX DragonFly FreeBSD Linux NetBSD OpenBSD SunOS,$(OS_ARCH)))
+ifneq (,$(filter AIX DragonFly FreeBSD GNU GNU_% Linux NetBSD OpenBSD SunOS,$(OS_ARCH)))
 LINKSRC = nsGlueLinkingDlopen.cpp
 endif
 ifeq (OS2,$(OS_ARCH))
--- xulrunner-1.9.0.7.orig/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp
+++ xulrunner-1.9.0.7/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp
@@ -86,19 +86,21 @@
 GetFrozenFunctionsFunc
 XPCOMGlueLoad(const char *xpcomFile)
 {
-    char xpcomDir[MAXPATHLEN];
-    if (realpath(xpcomFile, xpcomDir)) {
-        char *lastSlash = strrchr(xpcomDir, '/');
-        if (lastSlash) {
-            *lastSlash = '\0';
+    char xulFile[MAXPATHLEN];
+    char *lastSlash = strrchr(xpcomFile, '/');
+    if (!lastSlash) {
+        snprintf(xulFile, MAXPATHLEN, "./%s", xpcomFile);
+        return XPCOMGlueLoad(xulFile);
+    }
+    *lastSlash = '\0';
 
-            XPCOMGlueLoadDependentLibs(xpcomDir, ReadDependentCB);
+    XPCOMGlueLoadDependentLibs(xpcomFile, ReadDependentCB);
 
-            snprintf(lastSlash, MAXPATHLEN - strlen(xpcomDir), "/" XUL_DLL);
+    snprintf(xulFile, MAXPATHLEN - strlen(xpcomFile), "%s/" XUL_DLL, xpcomFile);
 
-            sXULLibHandle = dlopen(xpcomDir, RTLD_GLOBAL | RTLD_LAZY);
-        }
-    }
+    sXULLibHandle = dlopen(xulFile, RTLD_GLOBAL | RTLD_LAZY);
+
+    *lastSlash = '/';
 
     // RTLD_DEFAULT is not defined in non-GNU toolchains, and it is
     // (void*) 0 in any case.
--- xulrunner-1.9.0.7.orig/xpcom/io/nsLocalFileUnix.cpp
+++ xulrunner-1.9.0.7/xpcom/io/nsLocalFileUnix.cpp
@@ -280,12 +280,21 @@
 
 nsresult 
 nsLocalFile::FillStatCache() {
+#ifdef HAVE_STAT64
+    if (stat64(mPath.get(), &mCachedStat) == -1) {
+        // try lstat it may be a symlink
+        if (lstat64(mPath.get(), &mCachedStat) == -1) {
+            return NSRESULT_FOR_ERRNO();
+        }
+    }
+#else
     if (stat(mPath.get(), &mCachedStat) == -1) {
         // try lstat it may be a symlink
         if (lstat(mPath.get(), &mCachedStat) == -1) {
             return NSRESULT_FOR_ERRNO();
         }
     }
+#endif
     mHaveCachedStat = PR_TRUE;
     return NS_OK;
 }
@@ -1109,9 +1118,12 @@
     }
 #endif
 
-    /* XXX autoconf for and use stat64 if available */
     if (!S_ISDIR(mCachedStat.st_mode)) {
+#ifdef HAVE_STAT64
+        *aFileSize = mCachedStat.st_size;
+#else
         LL_UI2L(*aFileSize, (PRUint32)mCachedStat.st_size);
+#endif
     }
     return NS_OK;
 }
@@ -1136,11 +1148,17 @@
     CHECK_mPath();
     NS_ENSURE_ARG(aFileSize);
 
+#ifdef HAVE_LSTAT64
+    struct stat64 sbuf;
+    if (lstat64(mPath.get(), &sbuf) == -1)
+        return NSRESULT_FOR_ERRNO();
+    *aFileSize = sbuf.st_size;
+#else
     struct stat sbuf;
     if (lstat(mPath.get(), &sbuf) == -1)
         return NSRESULT_FOR_ERRNO();
-    /* XXX autoconf for and use lstat64 if available */
     LL_UI2L(*aFileSize, (PRUint32)sbuf.st_size);
+#endif
     return NS_OK;
 }
 
--- xulrunner-1.9.0.7.orig/xpcom/io/nsAppFileLocationProvider.cpp
+++ xulrunner-1.9.0.7/xpcom/io/nsAppFileLocationProvider.cpp
@@ -99,6 +99,8 @@
 #define NS_MACOSX_USER_PLUGIN_DIR   "OSXUserPlugins"
 #define NS_MACOSX_LOCAL_PLUGIN_DIR  "OSXLocalPlugins"
 #define NS_MAC_CLASSIC_PLUGIN_DIR   "MacSysPlugins"
+#elif XP_UNIX
+#define NS_SYSTEM_PLUGINS_DIR       "SysPlugins"
 #endif
 
 #define DEFAULTS_DIR_NAME           NS_LITERAL_CSTRING("defaults")
@@ -254,6 +256,13 @@
         if (NS_SUCCEEDED(rv))
             rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME);
     }
+#ifdef XP_UNIX
+    else if (nsCRT::strcmp(prop, NS_SYSTEM_PLUGINS_DIR) == 0) {
+        static const char *const sysLPlgDir = "/usr/lib/mozilla/plugins";
+        rv = NS_NewNativeLocalFile(nsDependentCString(sysLPlgDir),
+                                   PR_FALSE, getter_AddRefs(localFile));
+    }
+#endif
 #endif
     else if (nsCRT::strcmp(prop, NS_APP_SEARCH_DIR) == 0)
     {
@@ -596,7 +605,7 @@
 
         *_retval = new nsAppDirectoryEnumerator(this, keys);
 #else
-        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, nsnull };
+        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, NS_SYSTEM_PLUGINS_DIR, nsnull };
         if (!keys[0] && !(keys[0] = PR_GetEnv("MOZ_PLUGIN_PATH"))) {
             static const char nullstr = 0;
             keys[0] = &nullstr;
--- xulrunner-1.9.0.7.orig/xpcom/io/nsLocalFileUnix.h
+++ xulrunner-1.9.0.7/xpcom/io/nsLocalFileUnix.h
@@ -113,7 +113,11 @@
     ~nsLocalFile() {}
 
 protected:
+#ifdef HAVE_STAT64
+    struct stat64 mCachedStat;
+#else
     struct stat  mCachedStat;
+#endif
     nsCString    mPath;
     PRPackedBool mHaveCachedStat;
 
--- xulrunner-1.9.0.7.orig/build/unix/mozilla-config.in
+++ xulrunner-1.9.0.7/build/unix/mozilla-config.in
@@ -22,7 +22,6 @@
     xpcom
     nspr
     js
-    jsj
     gfx
 EOF
 	exit $1
@@ -60,9 +59,6 @@
       exit 0
       ;;
     --cflags)
-      if test "%includedir%" != /usr/include ; then
-        includes="-I%includedir%"
-      fi
       echo_cflags=yes
       ;;
     --defines)
@@ -74,7 +70,7 @@
     --idlflags)
       echo_idlflags=yes
       ;;
-    xpcom|js|nspr|gfx|jsj)
+    xpcom|js|nspr|gfx)
       echo_components="$echo_components $1"
       echo_libraries="$echo_libraries $1"
       ;;
@@ -105,7 +101,17 @@
 if test "$echo_cflags" = "yes"; then
     nspr_cflags="%FULL_NSPR_CFLAGS%"
     for n in $echo_components; do
-	component_includes="$component_includes -I%includedir%/$n"
+        case "$n" in
+        js)
+               component_includes="$component_includes -I/usr/include/mozjs"
+            ;;
+        nspr)
+            ;;
+        *)
+               component_includes="$component_includes -I%includedir% \
+                                   -I%includedir%/$n"
+            ;;
+        esac
     done
     echo $component_includes $includes $nspr_cflags
 fi
@@ -133,10 +139,7 @@
 	js)
 	    libs="$libs $_js_libs"
 	    ;;
-	jsj)
-	    libs="$libs -ljsj $_js_libs $_xpcom_libs"
-	    ;;
         esac
     done
-    echo -L%libdir% $libs
+    echo $libs
 fi
--- xulrunner-1.9.0.7.orig/build/unix/run-mozilla.sh
+++ xulrunner-1.9.0.7/build/unix/run-mozilla.sh
@@ -163,7 +163,13 @@
 	##
 	## Run the program
 	##
-	"$prog" ${1+"$@"}
+	if [ "$MOZILLA_JEMALLOC" ] &&
+	   [ -f "$MOZILLA_FIVE_HOME/libjemalloc.so" ]; then
+		LD_PRELOAD="${LD_PRELOAD+$LD_PRELOAD:}$MOZILLA_FIVE_HOME/libjemalloc.so" "$prog" ${1+"$@"}
+	else
+		"$prog" ${1+"$@"}
+	fi
+
 	exitcode=$?
 	if [ "$DEBUG_CORE_FILES" ]
 	then
@@ -230,6 +236,10 @@
             echo " '$PARAM'" | perl -pe 'chomp' >> $tmpfile
         done
         echo >> $tmpfile
+	if [ "$MOZILLA_JEMALLOC" ] &&
+	   [ -f "$MOZILLA_FIVE_HOME/libjemalloc.so" ]; then
+		echo "set env LD_PRELOAD '${LD_PRELOAD+$LD_PRELOAD:}$MOZILLA_FIVE_HOME/libjemalloc.so'" >> $tmpfile
+	fi
 # If you are not using ddd, gdb and know of a way to convey the arguments 
 # over to the prog then add that here- Gagan Saksena 03/15/00
         case `basename $debugger` in
--- xulrunner-1.9.0.7.orig/debian/xulrunner-dev.install
+++ xulrunner-1.9.0.7/debian/xulrunner-dev.install
@@ -0,0 +1,13 @@
+usr/include/xulrunner-1.9
+usr/share/idl
+usr/lib/xulrunner-devel-1.9
+usr/lib/pkgconfig/libxul-unstable.pc
+usr/lib/pkgconfig/libxul-embedding-unstable.pc
+usr/lib/pkgconfig/libxul.pc
+usr/lib/pkgconfig/libxul-embedding.pc
+usr/lib/pkgconfig/mozilla-gtkmozembed.pc
+usr/lib/pkgconfig/mozilla-gtkmozembed-embedding.pc
+usr/lib/pkgconfig/mozilla-plugin.pc
+usr/lib/xulrunner-1.9/xpt_dump
+usr/lib/xulrunner-1.9/xpt_link
+usr/lib/xulrunner-1.9/xpidl
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.preinst
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.preinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
+    if [ -d /usr/lib/xulrunner-1.9/chrome ] &&
+       [ ! -L /usr/lib/xulrunner-1.9/chrome ]; then
+        rmdir /usr/lib/xulrunner-1.9/chrome
+    fi
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.docs
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.docs
@@ -0,0 +1 @@
+README.txt
--- xulrunner-1.9.0.7.orig/debian/smjs.1
+++ xulrunner-1.9.0.7/debian/smjs.1
@@ -0,0 +1,16 @@
+.TH SMJS 1 "7 March 2003"
+.SH NAME
+smjs - javascript shell
+.SH SYNOPSIS
+\fBsmjs\fP
+.SH DESCRIPTION
+The "JS shell", a simple interpreter program that uses the JS API and more
+than a few internal interfaces (some of these internal interfaces could
+be replaced by jsapi.h calls). The js program built from this
+source provides a test vehicle for evaluating scripts and calling functions,
+trying out new debugger primitives, etc.
+.SH AUTHOR
+This manpage was originally written by Bastian Kleineidam
+<calvin@debian.org> for the Debian distribution of Spidermonkey.
+
+The main author of Spidermonkey is the Mozilla Project.
--- xulrunner-1.9.0.7.orig/debian/compat
+++ xulrunner-1.9.0.7/debian/compat
@@ -0,0 +1 @@
+5
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.README.Debian
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.README.Debian
@@ -0,0 +1,18 @@
+Xulrunner for Debian
+====================
+
+Weak SSL
+--------
+
+From version 1.8.0.1-11 onwards, SSLv2 and SSLv3 40-bit ciphers are disabled
+due to their weakness. If your xulrunner or embedding application provides a
+way to alert the user about the weakness of the cipher in use, while still
+allowing the user to use it, you may re-enable them in your application
+preferences.
+
+The preferences to reenable them are the following:
+pref("security.enable_ssl2", true);
+pref("security.ssl3.rsa_rc4_40_md5", true);
+pref("security.ssl3.rsa_rc2_40_md5", true);
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 20 May 2006 11:03:22 +0200
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.links
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.links
@@ -0,0 +1,8 @@
+usr/lib/libmozjs.so.1d usr/lib/xulrunner-1.9/libmozjs.so
+usr/share/myspell/dicts usr/lib/xulrunner-1.9/dictionaries
+usr/share/xulrunner-1.9/icons usr/lib/xulrunner-1.9/icons
+usr/share/xulrunner-1.9/greprefs usr/lib/xulrunner-1.9/greprefs
+usr/share/xulrunner-1.9/res usr/lib/xulrunner-1.9/res
+usr/share/xulrunner-1.9/defaults usr/lib/xulrunner-1.9/defaults
+usr/share/xulrunner-1.9/chrome usr/lib/xulrunner-1.9/chrome
+usr/share/xulrunner-1.9/modules usr/lib/xulrunner-1.9/modules
--- xulrunner-1.9.0.7.orig/debian/copyright
+++ xulrunner-1.9.0.7/debian/copyright
@@ -0,0 +1,798 @@
+This package was debianized by Mike Hommey <glandium@debian.org> on
+Tue, 16 Aug 2005 13:45:47 +0200.
+
+It was downloaded from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/
+
+The source tarball is an aggregate of several different works in which the
+main one, developed by the Mozilla Project, is xulrunner.
+
+The contents of the debian directory are licensed like the bulk of
+xulrunner, tri-licensed under the GPL/LGPL/MPL.
+
+Other works include gzip, bzip2, sqlite, libjpeg, libpng, cairo, and others.
+Please see the sections following the copyright statements for xulrunner for
+these.
+
+If this file is incomplete, which I'm pretty sure is the case, because it's
+difficult not to forget anything in this huge amount of data, please file
+a bug or contact me.
+
+=== xulrunner
+
+Overall, the xulrunner project is licensed under the terms of the Mozilla
+Public License version 1.1 or, at your option, under the terms of the GNU 
+General Public License version 2 or subsequent, or the terms of the GNU
+Lesser General Public License version 2.1 or subsequent.
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL' ;
+the complete text of the GNU Lesser General Public License can be
+found in the file `/usr/share/common-licenses/LGPL'.
+
+The complete text of the Mozilla Public License can be found in the MPL file
+in the same directory as this file.
+
+Some of the files are also licensed (single, dual or tri) under the terms of
+the Netscape Public License (NPL) which can be found as amendments to the
+MPL at the end of the file.
+
+While the Mozilla Project is undergoing a global relicensing so that the
+aim is to have a full tree with these tri-license terms, there are at the
+moment quite some exceptions as following:
+
+(Note that I sometimes assumed files not explicitely licensed to be licensed
+under the same terms as the files around them and that a lot of the
+information has been extracted automatically, thus maybe leaving some doubt.
+Again, if you find "bugs", please contact me by email or via the BTS.)
+
+The following files are tri licensed under the terms of the NPL, of the
+GPL, and the LGPL:
+
+  extensions/pref/system-pref/src/gconf/nsSystemPrefService.cpp
+  extensions/pref/system-pref/src/gconf/nsSystemPrefService.h
+  extensions/pref/system-pref/src/nsSystemPref.cpp
+  extensions/pref/system-pref/src/nsSystemPref.h
+  extensions/pref/system-pref/src/nsSystemPrefFactory.cpp
+  extensions/pref/system-pref/src/nsSystemPrefLog.h
+  modules/plugin/samples/npruntime/np_entry.cpp
+  modules/plugin/samples/npruntime/npn_gate.cpp
+  modules/plugin/samples/npruntime/npp_gate.cpp
+  modules/plugin/samples/npruntime/plugin.cpp
+  modules/plugin/samples/npruntime/plugin.h
+  netwerk/base/public/nsIIOService2.idl
+  netwerk/base/public/nsINetworkLinkService.idl
+  toolkit/system/dbus/nsDBusModule.cpp
+  toolkit/system/dbus/nsDBusService.cpp
+  toolkit/system/dbus/nsDBusService.h
+  toolkit/system/dbus/nsNetworkManagerListener.cpp
+  toolkit/system/dbus/nsNetworkManagerListener.h
+
+The following files are licensed under the terms of the NPL only:
+
+  intl/uconv/ucvibm/864i.uf
+  intl/uconv/ucvibm/cp850.uf
+  intl/uconv/ucvibm/cp852.uf
+  intl/uconv/ucvibm/cp855.uf
+  intl/uconv/ucvibm/cp857.uf
+  intl/uconv/ucvibm/cp862.uf
+  intl/uconv/ucvibm/cp864.uf
+  intl/uconv/ucvmath/mathematica1.uf
+  intl/uconv/ucvmath/mathematica2.uf
+  intl/uconv/ucvmath/mathematica3.uf
+  intl/uconv/ucvmath/mathematica4.uf
+  intl/uconv/ucvmath/mathematica5.uf
+  intl/uconv/ucvmath/mtextra.uf
+  intl/uconv/ucvmath/texcmex-t1.uf
+  intl/uconv/ucvmath/texcmex-ttf.uf
+  intl/uconv/ucvmath/texcmmi-t1.uf
+  intl/uconv/ucvmath/texcmmi-ttf.uf
+  intl/uconv/ucvmath/texcmr-ttf.uf
+  intl/uconv/ucvmath/texcmsy-t1.uf
+
+The following files are licensed under the terms of the GPL only:
+
+  build/autoconf/codeset.m4
+  build/autoconf/config.guess
+  build/autoconf/config.sub
+  nsprpub/build/autoconf/config.guess
+  nsprpub/build/autoconf/config.sub
+
+The following files are licensed under the terms of the GPL and the MIT
+license, which terms are following:
+
+  dom/tests/mochitest/ajax/jquery/dist/jquery.js
+  dom/tests/mochitest/ajax/jquery/src/jquery/jquery.js
+
+  Permission is hereby granted, free of charge, to any person
+  obtaining a copy of this software and associated documentation
+  files (the "Software"), to deal in the Software without
+  restriction, including without limitation the rights to use,
+  copy, modify, merge, publish, distribute, sublicense, and/or sell
+  copies of the Software, and to permit persons to whom the
+  Software is furnished to do so, subject to the following
+  conditions:
+
+  The above copyright notice and this permission notice shall be
+  included in all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+  OTHER DEALINGS IN THE SOFTWARE.
+
+The following files are in the Public Domain:
+  
+  aclocal.m4
+  build/autoconf/freetype2.m4
+  build/autoconf/gtk.m4
+  build/autoconf/nspr.m4
+  db/mork/src/morkDeque.cpp
+  db/mork/src/morkDeque.h
+
+The file db/mork/src/morkQuickSort.cpp is licensed under the following terms:
+ 
+  Copyright (c) 1992, 1993
+   The Regents of the University of California.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+  3. Neither the name of the University nor the names of its contributors
+     may be used to endorse or promote products derived from this software
+     without specific prior written permission.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+The following files come from X11R5, without any clear licensing terms:
+
+  build/autoconf/install-sh
+  nsprpub/build/autoconf/install-sh
+
+The embedding/qa/mozembed/public/nsIQABrowserUIGlue.idl file and the files
+under the embedding/tests directory are licensed under the following terms:
+
+  Copyright (c) 2002 Netscape Communications Corporation and
+  other contributors
+
+  Permission is hereby granted, free of charge, to any person obtaining a
+  copy of this Mozilla sample software and associated documentation files
+  (the "Software"), to deal in the Software without restriction, including
+  without limitation the rights to use, copy, modify, merge, publish,
+  distribute, sublicense, and/or sell copies of the Software, and to permit
+  persons to whom the Software is furnished to do so, subject to the
+  following conditions:
+ 
+  The above copyright notice and this permission notice shall be included
+  in all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+  DEALINGS IN THE SOFTWARE.
+
+=== sqlite
+
+The db/sqlite3 directory contains a copy of sqlite with the following
+licensing terms:
+
+  The author disclaims copyright to this source code.  In place of
+  a legal notice, here is a blessing:
+
+     May you do good and not evil.
+     May you find forgiveness for yourself and forgive others.
+     May you share freely, never taking more than you give.
+
+=== dbm
+
+The dbm directory, except the files listed under the xulrunner section, is
+licensed under the following terms:
+
+  Copyright (c) 1991, 1993, 1994
+  The Regents of the University of California.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+  3. All advertising materials mentioning features or use of this software
+     must display the following acknowledgement:
+  This product includes software developed by the University of
+  California, Berkeley and its contributors.
+  4. Neither the name of the University nor the names of its contributors
+     may be used to endorse or promote products derived from this software
+     without specific prior written permission.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+ 
+=== myspell
+
+The extensions/spellcheck/myspell directory is licensed under the following
+terms:
+
+  Copyright 2002 Kevin B. Hendricks, Stratford, Ontario, Canada
+  And Contributors.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+ 
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+ 
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  3. All modifications to the source code must be clearly marked as
+     such.  Binary redistributions based on modified source code
+     must be clearly marked as modified versions in the documentation
+     and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY KEVIN B. HENDRICKS AND CONTRIBUTORS 
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
+  FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL 
+  KEVIN B. HENDRICKS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
+  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+=== cairo
+
+The gfx/cairo/cairo directory is licensed under the following terms:
+
+  Copyright (c) 2003 University of Southern California
+  Copyright (c) 1999 Tom Tromey
+  Copyright (c) 2002, 2003 University of Southern California
+  Copyright (c) 2004 Calum Robinson
+  Copyright (c) 2004 David Reveman
+  Copyright (c) 2000, 2002, 2004 Keith Packard
+  Copyright (c) 2004, 2005 Red Hat, Inc
+
+  Cairo is free software and is available to be redistributed and/or
+  modified under the terms of either the GNU Lesser General Public
+  License (LGPL) version 2.1 or the Mozilla Public License (MPL) version
+  1.1.
+
+=== glitz
+
+The gfx/cairo/glitz directory is licensed under the following terms:
+(from gfx/cairo/glitz/COPYING)
+
+  Copyright © 2004 David Reveman, Peter Nilsson
+
+  Permission to use, copy, modify, distribute, and sell this software
+  and its documentation for any purpose is hereby granted without
+  fee, provided that the above copyright notice appear in all copies
+  and that both that copyright notice and this permission notice
+  appear in supporting documentation, and that the names of
+  David Reveman and Peter Nilsson not be used in advertising or
+  publicity pertaining to distribution of the software without
+  specific, written prior permission. David Reveman and Peter Nilsson
+  makes no representations about the suitability of this software for
+  any purpose. It is provided "as is" without express or implied warranty.
+
+  DAVID REVEMAN AND PETER NILSSON DISCLAIMS ALL WARRANTIES WITH
+  REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
+  MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DAVID REVEMAN AND
+  PETER NILSSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
+  OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  PERFORMANCE OF THIS SOFTWARE.
+
+=== libpixman
+
+The gfx/cairo/libpixman directory is licensed under the following terms:
+(from gfx/cairo/libpixman/COPYING)
+
+  libpixregion
+  
+  Copyright 1987, 1998  The Open Group
+  
+  Permission to use, copy, modify, distribute, and sell this software and its
+  documentation for any purpose is hereby granted without fee, provided that
+  the above copyright notice appear in all copies and that both that
+  copyright notice and this permission notice appear in supporting
+  documentation.
+  
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+  OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+  
+  Except as contained in this notice, the name of The Open Group shall not be
+  used in advertising or otherwise to promote the sale, use or other dealings
+  in this Software without prior written authorization from The Open Group.
+  
+  
+  Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
+  
+                          All Rights Reserved
+  
+  Permission to use, copy, modify, and distribute this software and its 
+  documentation for any purpose and without fee is hereby granted, 
+  provided that the above copyright notice appear in all copies and that
+  both that copyright notice and this permission notice appear in 
+  supporting documentation, and that the name of Digital not be
+  used in advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.  
+  
+  DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+  DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
+  ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+  SOFTWARE.
+  
+  ----------------------------------------------------------------------
+  libic
+  
+  Copyright © 2001 Keith Packard
+  
+  Permission to use, copy, modify, distribute, and sell this software and its
+  documentation for any purpose is hereby granted without fee, provided that
+  the above copyright notice appear in all copies and that both that
+  copyright notice and this permission notice appear in supporting
+  documentation, and that the name of Keith Packard not be used in
+  advertising or publicity pertaining to distribution of the software without
+  specific, written prior permission.  Keith Packard makes no
+  representations about the suitability of this software for any purpose.  It
+  is provided "as is" without express or implied warranty.
+  
+  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  PERFORMANCE OF THIS SOFTWARE.
+  
+  ----------------------------------------------------------------------
+  slim
+  
+  slim is Copyright © 2003 Richard Henderson
+  
+  Permission to use, copy, modify, distribute, and sell this software
+  and its documentation for any purpose is hereby granted without fee,
+  provided that the above copyright notice appear in all copies and that
+  both that copyright notice and this permission notice appear in
+  supporting documentation, and that the name of Richard Henderson not be
+  used in advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.  Richard Henderson
+  makes no representations about the suitability of this software for
+  any purpose.  It is provided "as is" without express or implied
+  warranty.
+  
+  RICHARD HENDERSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+  EVENT SHALL RICHARD HENDERSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  PERFORMANCE OF THIS SOFTWARE.
+
+=== libjpeg
+
+The jpeg directory, except the files under the xulrunner section, are licensed
+under the following terms:
+
+  The authors make NO WARRANTY or representation, either express or implied,
+  with respect to this software, its quality, accuracy, merchantability, or
+  fitness for a particular purpose.  This software is provided "AS IS", and you,
+  its user, assume the entire risk as to its quality and accuracy.
+
+  This software is copyright (C) 1991-1998, Thomas G. Lane.
+  All Rights Reserved except as specified below.
+
+  Permission is hereby granted to use, copy, modify, and distribute this
+  software (or portions thereof) for any purpose, without fee, subject to these
+  conditions:
+  (1) If any part of the source code for this software is distributed, then this
+  README file must be included, with this copyright and no-warranty notice
+  unaltered; and any additions, deletions, or changes to the original files
+  must be clearly indicated in accompanying documentation.
+  (2) If only executable code is distributed, then the accompanying
+  documentation must state that "this software is based in part on the work of
+  the Independent JPEG Group".
+  (3) Permission for use of this software is granted only if the user accepts
+  full responsibility for any undesirable consequences; the authors accept
+  NO LIABILITY for damages of any kind.
+
+  These conditions apply to any software derived from or based on the IJG code,
+  not just to the unmodified library.  If you use our work, you ought to
+  acknowledge us.
+
+  Permission is NOT granted for the use of any IJG author's name or company name
+  in advertising or publicity relating to this software or products derived from
+  it.  This software may be referred to only as "the Independent JPEG Group's
+  software".
+
+  We specifically permit and encourage the use of this software as the basis of
+  commercial products, provided that all warranty or liability claims are
+  assumed by the product vendor.
+
+=== bzip2
+
+The modules/libbz2/src directory is licensed under the following terms:
+(from modules/libbz2/src/LICENSE)
+
+  This program, "bzip2", the associated library "libbzip2", and all
+  documentation, are copyright (C) 1996-2005 Julian R Seward.  All
+  rights reserved.
+  
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  
+  2. The origin of this software must not be misrepresented; you must 
+     not claim that you wrote the original software.  If you use this 
+     software in a product, an acknowledgment in the product 
+     documentation would be appreciated but is not required.
+  
+  3. Altered source versions must be plainly marked as such, and must
+     not be misrepresented as being the original software.
+  
+  4. The name of the author may not be used to endorse or promote 
+     products derived from this software without specific prior written 
+     permission.
+  
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  
+  Julian Seward, Cambridge, UK.
+  jseward@acm.org
+  bzip2/libbzip2 version 1.0.3 of 15 February 2005
+
+=== libpng
+
+The directory modules/libimg/png is licensed under the following terms:
+(from modules/libimg/png/LICENSE)
+
+  This copy of the libpng notices is provided for your convenience.  In case of
+  any discrepancy between this copy and the notices in the file png.h that is
+  included in the libpng distribution, the latter shall prevail.
+  
+  COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
+  
+  If you modify libpng you may insert additional notices immediately following
+  this sentence.
+  
+  libpng version 1.2.6, September 12, 2004, is
+  Copyright (c) 2004 Glenn Randers-Pehrson, and is
+  distributed according to the same disclaimer and license as libpng-1.2.5
+  with the following individual added to the list of Contributing Authors
+  
+     Cosmin Truta
+  
+  libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are
+  Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
+  distributed according to the same disclaimer and license as libpng-1.0.6
+  with the following individuals added to the list of Contributing Authors
+  
+     Simon-Pierre Cadieux
+     Eric S. Raymond
+     Gilles Vollant
+  
+  and with the following additions to the disclaimer:
+  
+     There is no warranty against interference with your enjoyment of the
+     library or against infringement.  There is no warranty that our
+     efforts or the library will fulfill any of your particular purposes
+     or needs.  This library is provided with all faults, and the entire
+     risk of satisfactory quality, performance, accuracy, and effort is with
+     the user.
+  
+  libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
+  Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are
+  distributed according to the same disclaimer and license as libpng-0.96,
+  with the following individuals added to the list of Contributing Authors:
+  
+     Tom Lane
+     Glenn Randers-Pehrson
+     Willem van Schaik
+  
+  libpng versions 0.89, June 1996, through 0.96, May 1997, are
+  Copyright (c) 1996, 1997 Andreas Dilger
+  Distributed according to the same disclaimer and license as libpng-0.88,
+  with the following individuals added to the list of Contributing Authors:
+  
+     John Bowler
+     Kevin Bracey
+     Sam Bushell
+     Magnus Holmgren
+     Greg Roelofs
+     Tom Tanner
+  
+  libpng versions 0.5, May 1995, through 0.88, January 1996, are
+  Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
+  
+  For the purposes of this copyright and license, "Contributing Authors"
+  is defined as the following set of individuals:
+  
+     Andreas Dilger
+     Dave Martindale
+     Guy Eric Schalnat
+     Paul Schmidt
+     Tim Wegner
+  
+  The PNG Reference Library is supplied "AS IS".  The Contributing Authors
+  and Group 42, Inc. disclaim all warranties, expressed or implied,
+  including, without limitation, the warranties of merchantability and of
+  fitness for any purpose.  The Contributing Authors and Group 42, Inc.
+  assume no liability for direct, indirect, incidental, special, exemplary,
+  or consequential damages, which may result from the use of the PNG
+  Reference Library, even if advised of the possibility of such damage.
+  
+  Permission is hereby granted to use, copy, modify, and distribute this
+  source code, or portions hereof, for any purpose, without fee, subject
+  to the following restrictions:
+  
+  1. The origin of this source code must not be misrepresented.
+  
+  2. Altered versions must be plainly marked as such and must not
+     be misrepresented as being the original source.
+  
+  3. This Copyright notice may not be removed or altered from any
+     source or altered source distribution.
+  
+  The Contributing Authors and Group 42, Inc. specifically permit, without
+  fee, and encourage the use of this source code as a component to
+  supporting the PNG file format in commercial products.  If you use this
+  source code in a product, acknowledgment is not required but would be
+  appreciated.
+  
+  
+  A "png_get_copyright" function is available, for convenient use in "about"
+  boxes and the like:
+  
+     printf("%s",png_get_copyright(NULL));
+  
+  Also, the PNG logo (in PNG format, of course) is supplied in the
+  files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
+  
+  Libpng is OSI Certified Open Source Software.  OSI Certified Open Source is a
+  certification mark of the Open Source Initiative.
+  
+  Glenn Randers-Pehrson
+  glennrp@users.sourceforge.net
+  September 12, 2004
+
+=== zlib
+
+The directories modules/zlib/src and security/nss/cmd/zlib are licensed under
+the following terms:
+
+ (C) 1995-2004 Jean-loup Gailly and Mark Adler
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+
+  Jean-loup Gailly        Mark Adler
+  jloup@gzip.org          madler@alumni.caltech.edu
+
+  If you use the zlib library in a product, we would appreciate *not*
+  receiving lengthy legal documents to sign. The sources are provided
+  for free but without warranty of any kind.  The library has been
+  entirely written by Jean-loup Gailly and Mark Adler; it does not
+  include third-party code.
+  
+  If you redistribute modified sources, we would appreciate that you include
+  in the file ChangeLog history information documenting your changes. Please
+  read the FAQ for more information on the distribution of modified source
+  versions.
+  
+=== expat
+
+The directory parser/expat is licensed under the following terms:
+(from parser/expat/COPYING)
+
+  Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+                                 and Clark Cooper
+  Copyright (c) 2001, 2002 Expat maintainers.
+  
+  Permission is hereby granted, free of charge, to any person obtaining
+  a copy of this software and associated documentation files (the
+  "Software"), to deal in the Software without restriction, including
+  without limitation the rights to use, copy, modify, merge, publish,
+  distribute, sublicense, and/or sell copies of the Software, and to
+  permit persons to whom the Software is furnished to do so, subject to
+  the following conditions:
+  
+  The above copyright notice and this permission notice shall be included
+  in all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+=== jemalloc
+
+The memory/jemalloc/jemalloc.c is liensed under the following terms:
+
+  Copyright (C) 2006-2008 Jason Evans <jasone@FreeBSD.org>.
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice(s), this list of conditions and the following disclaimer as
+     the first lines of this file unmodified other than the possible
+     addition of one or more copyright notices.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice(s), this list of conditions and the following disclaimer in
+     the documentation and/or other materials provided with the
+     distribution.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
+  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The memory/jemalloc/tree.h is liensed under the following terms:
+
+  Copyright 2002 Niels Provos <provos@citi.umich.edu>
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+== lcms
+ 
+The directory modules/lcms is licensed under the followin terms:
+(from modules/lcms/COPYING)
+
+  Copyright (c) 1998-2007 Marti Maria Saguer
+
+  Permission is hereby granted, free of charge, to any person obtaining
+  a copy of this software and associated documentation files (the "Software"),
+  to deal in the Software without restriction, including without limitation
+  the rights to use, copy, modify, merge, publish, distribute, sublicense,
+  and/or sell copies of the Software, and to permit persons to whom the
+  Software is furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
+  THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+== breakpad
+
+The directory toolkit/crashreporter/google-breakpad is licensed under the
+followin terms:
+(from toolkit/crashreporter/google-breakpad/COPYING)
+
+  Copyright (c) 2006, Google Inc.
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are
+  met:
+
+      * Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+      * Redistributions in binary form must reproduce the above
+  copyright notice, this list of conditions and the following disclaimer
+  in the documentation and/or other materials provided with the
+  distribution.
+      * Neither the name of Google Inc. nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- xulrunner-1.9.0.7.orig/debian/libmozjs1d.symbols
+++ xulrunner-1.9.0.7/debian/libmozjs1d.symbols
@@ -0,0 +1,491 @@
+libmozjs.so.1d libmozjs1d #MINVER#
+ JS_AddArgumentFormatter@Base 1.9~b4
+ JS_AddExternalStringFinalizer@Base 1.9~b4
+ JS_AddNamedRoot@Base 1.9~b4
+ JS_AddNamedRootRT@Base 1.9~b4
+ JS_AddRoot@Base 1.9~b4
+ JS_AliasElement@Base 1.9~b4
+ JS_AliasProperty@Base 1.9~b4
+ JS_AlreadyHasOwnElement@Base 1.9~b4
+ JS_AlreadyHasOwnProperty@Base 1.9~b4
+ JS_AlreadyHasOwnUCProperty@Base 1.9~b4
+ JS_ArenaAllocate@Base 1.9~b4
+ JS_ArenaFinish@Base 1.9~b4
+ JS_ArenaGrow@Base 1.9~b4
+ JS_ArenaRealloc@Base 1.9~b4
+ JS_ArenaRelease@Base 1.9~b4
+ JS_ArenaShutDown@Base 1.9~b4
+ JS_Assert@Base 1.9~b4
+ JS_BeginRequest@Base 1.9~b4
+ JS_BufferIsCompilableUnit@Base 1.9~b4
+ JS_CStringsAreUTF8@Base 1.9~b4
+ JS_CallFunction@Base 1.9~b4
+ JS_CallFunctionName@Base 1.9~b4
+ JS_CallFunctionValue@Base 1.9~b4
+ JS_CallTracer@Base 1.9~b4
+ JS_CeilingLog2@Base 1.9~b4
+ JS_CheckAccess@Base 1.9~b4
+ JS_ClearAllTraps@Base 1.9~b4
+ JS_ClearAllWatchPoints@Base 1.9~b4
+ JS_ClearContextThread@Base 1.9~b4
+ JS_ClearInterrupt@Base 1.9~b4
+ JS_ClearNewbornRoots@Base 1.9~b4
+ JS_ClearOperationCallback@Base 1.9~b4
+ JS_ClearPendingException@Base 1.9~b4
+ JS_ClearRegExpRoots@Base 1.9~b4
+ JS_ClearRegExpStatics@Base 1.9~b4
+ JS_ClearScope@Base 1.9~b4
+ JS_ClearScriptTraps@Base 1.9~b4
+ JS_ClearTrap@Base 1.9~b4
+ JS_ClearWatchPoint@Base 1.9~b4
+ JS_ClearWatchPointsForObject@Base 1.9~b4
+ JS_CloneFunctionObject@Base 1.9~b4
+ JS_CompareStrings@Base 1.9~b4
+ JS_CompareValues@Base 1.9~b4
+ JS_CompileFile@Base 1.9~b4
+ JS_CompileFileHandle@Base 1.9~b4
+ JS_CompileFileHandleForPrincipals@Base 1.9~b4
+ JS_CompileFunction@Base 1.9~b4
+ JS_CompileFunctionForPrincipals@Base 1.9~b4
+ JS_CompileScript@Base 1.9~b4
+ JS_CompileScriptForPrincipals@Base 1.9~b4
+ JS_CompileUCFunction@Base 1.9~b4
+ JS_CompileUCFunctionForPrincipals@Base 1.9~b4
+ JS_CompileUCScript@Base 1.9~b4
+ JS_CompileUCScriptForPrincipals@Base 1.9~b4
+ JS_ComputeThis@Base 1.9~b4
+ JS_ConcatStrings@Base 1.9~b4
+ JS_ConstructObject@Base 1.9~b4
+ JS_ConstructObjectWithArguments@Base 1.9~b4
+ JS_ContextIterator@Base 1.9~b4
+ JS_ConvertArguments@Base 1.9~b4
+ JS_ConvertArgumentsVA@Base 1.9~b4
+ JS_ConvertStub@Base 1.9~b4
+ JS_ConvertValue@Base 1.9~b4
+ JS_DHashAllocTable@Base 1.9~b4
+ JS_DHashClearEntryStub@Base 1.9~b4
+ JS_DHashFinalizeStub@Base 1.9~b4
+ JS_DHashFreeStringKey@Base 1.9~b4
+ JS_DHashFreeTable@Base 1.9~b4
+ JS_DHashGetStubOps@Base 1.9~b4
+ JS_DHashMatchEntryStub@Base 1.9~b4
+ JS_DHashMatchStringKey@Base 1.9~b4
+ JS_DHashMoveEntryStub@Base 1.9~b4
+ JS_DHashStringKey@Base 1.9~b4
+ JS_DHashTableDestroy@Base 1.9~b4
+ JS_DHashTableEnumerate@Base 1.9~b4
+ JS_DHashTableFinish@Base 1.9~b4
+ JS_DHashTableInit@Base 1.9~b4
+ JS_DHashTableOperate@Base 1.9~b4
+ JS_DHashTableRawRemove@Base 1.9~b4
+ JS_DHashTableSetAlphaBounds@Base 1.9~b4
+ JS_DHashVoidPtrKeyStub@Base 1.9~b4
+ JS_DecodeBytes@Base 1.9~b4
+ JS_DecompileFunction@Base 1.9~b4
+ JS_DecompileFunctionBody@Base 1.9~b4
+ JS_DecompileScript@Base 1.9~b4
+ JS_DefineConstDoubles@Base 1.9~b4
+ JS_DefineElement@Base 1.9~b4
+ JS_DefineFunction@Base 1.9~b4
+ JS_DefineFunctions@Base 1.9~b4
+ JS_DefineObject@Base 1.9~b4
+ JS_DefineProperties@Base 1.9~b4
+ JS_DefineProperty@Base 1.9~b4
+ JS_DefinePropertyWithTinyId@Base 1.9~b4
+ JS_DefineUCFunction@Base 1.9~b4
+ JS_DefineUCProperty@Base 1.9~b4
+ JS_DefineUCPropertyWithTinyId@Base 1.9~b4
+ JS_DeleteElement2@Base 1.9~b4
+ JS_DeleteElement@Base 1.9~b4
+ JS_DeleteProperty2@Base 1.9~b4
+ JS_DeleteProperty@Base 1.9~b4
+ JS_DeleteUCProperty2@Base 1.9~b4
+ JS_DestroyContext@Base 1.9~b4
+ JS_DestroyContextMaybeGC@Base 1.9~b4
+ JS_DestroyContextNoGC@Base 1.9~b4
+ JS_DestroyIdArray@Base 1.9~b4
+ JS_DestroyScript@Base 1.9~b4
+ JS_DropExceptionState@Base 1.9~b4
+ JS_DropPrincipals@Base 1.9~b4
+ JS_EncodeCharacters@Base 1.9~b4
+ JS_EncodeString@Base 1.9~b4
+ JS_EndRequest@Base 1.9~b4
+ JS_EnterLocalRootScope@Base 1.9~b4
+ JS_Enumerate@Base 1.9~b4
+ JS_EnumerateResolvedStandardClasses@Base 1.9~b4
+ JS_EnumerateStandardClasses@Base 1.9~b4
+ JS_EnumerateStub@Base 1.9~b4
+ JS_ErrorFromException@Base 1.9~b4
+ JS_EvalFramePrincipals@Base 1.9~b4
+ JS_EvaluateInStackFrame@Base 1.9~b4
+ JS_EvaluateScript@Base 1.9~b4
+ JS_EvaluateScriptForPrincipals@Base 1.9~b4
+ JS_EvaluateUCInStackFrame@Base 1.9~b4
+ JS_EvaluateUCScript@Base 1.9~b4
+ JS_EvaluateUCScriptForPrincipals@Base 1.9~b4
+ JS_ExecuteScript@Base 1.9~b4
+ JS_ExecuteScriptPart@Base 1.9~b4
+ JS_FinalizeStub@Base 1.9~b4
+ JS_Finish@Base 1.9~b4
+ JS_FinishArenaPool@Base 1.9~b4
+ JS_FlagScriptFilenamePrefix@Base 1.9~b4
+ JS_FloorLog2@Base 1.9~b4
+ JS_ForgetLocalRoot@Base 1.9~b4
+ JS_FrameIterator@Base 1.9~b4
+ JS_FreeArenaPool@Base 1.9~b4
+ JS_GC@Base 1.9~b4
+ JS_GetArrayLength@Base 1.9~b4
+ JS_GetClass@Base 1.9~b4
+ JS_GetClassObject@Base 1.9~b4
+ JS_GetConstructor@Base 1.9~b4
+ JS_GetContextPrivate@Base 1.9~b4
+ JS_GetContextThread@Base 1.9~b4
+ JS_GetElement@Base 1.9~b4
+ JS_GetEmptyStringValue@Base 1.9~b4
+ JS_GetExternalStringGCType@Base 1.9~b4
+ JS_GetFrameAnnotation@Base 1.9~b4
+ JS_GetFrameCallObject@Base 1.9~b4
+ JS_GetFrameCalleeObject@Base 1.9~b4
+ JS_GetFrameFunction@Base 1.9~b4
+ JS_GetFrameFunctionObject@Base 1.9~b4
+ JS_GetFrameObject@Base 1.9~b4
+ JS_GetFramePC@Base 1.9~b4
+ JS_GetFramePrincipalArray@Base 1.9~b4
+ JS_GetFrameReturnValue@Base 1.9~b4
+ JS_GetFrameScopeChain@Base 1.9~b4
+ JS_GetFrameScript@Base 1.9~b4
+ JS_GetFrameThis@Base 1.9~b4
+ JS_GetFunctionArity@Base 1.9~b4
+ JS_GetFunctionFastNative@Base 1.9~b4
+ JS_GetFunctionFlags@Base 1.9~b4
+ JS_GetFunctionId@Base 1.9~b4
+ JS_GetFunctionName@Base 1.9~b4
+ JS_GetFunctionNative@Base 1.9~b4
+ JS_GetFunctionObject@Base 1.9~b4
+ JS_GetFunctionScript@Base 1.9~b4
+ JS_GetFunctionTotalSize@Base 1.9~b4
+ JS_GetGlobalDebugHooks@Base 1.9~b4
+ JS_GetGlobalForObject@Base 1.9~b4
+ JS_GetGlobalObject@Base 1.9~b4
+ JS_GetImplementationVersion@Base 1.9~b4
+ JS_GetInstancePrivate@Base 1.9~b4
+ JS_GetLocaleCallbacks@Base 1.9~b4
+ JS_GetMethod@Base 1.9~b4
+ JS_GetMethodById@Base 1.9~b4
+ JS_GetNaNValue@Base 1.9~b4
+ JS_GetNegativeInfinityValue@Base 1.9~b4
+ JS_GetObjectId@Base 1.9~b4
+ JS_GetObjectTotalSize@Base 1.9~b4
+ JS_GetOperationCallback@Base 1.9~b4
+ JS_GetOperationLimit@Base 1.9~b4
+ JS_GetOptions@Base 1.9~b4
+ JS_GetParent@Base 1.9~b4
+ JS_GetPendingException@Base 1.9~b4
+ JS_GetPositiveInfinityValue@Base 1.9~b4
+ JS_GetPrivate@Base 1.9~b4
+ JS_GetProperty@Base 1.9~b4
+ JS_GetPropertyAttributes@Base 1.9~b4
+ JS_GetPropertyAttrsGetterAndSetter@Base 1.9~b4
+ JS_GetPropertyDesc@Base 1.9~b4
+ JS_GetPropertyDescArray@Base 1.9~b4
+ JS_GetPrototype@Base 1.9~b4
+ JS_GetReservedSlot@Base 1.9~b4
+ JS_GetRuntime@Base 1.9~b4
+ JS_GetRuntimePrivate@Base 1.9~b4
+ JS_GetScopeChain@Base 1.9~b4
+ JS_GetScriptBaseLineNumber@Base 1.9~b4
+ JS_GetScriptFilename@Base 1.9~b4
+ JS_GetScriptFilenameFlags@Base 1.9~b4
+ JS_GetScriptLineExtent@Base 1.9~b4
+ JS_GetScriptObject@Base 1.9~b4
+ JS_GetScriptPrincipals@Base 1.9~b4
+ JS_GetScriptTotalSize@Base 1.9~b4
+ JS_GetScriptVersion@Base 1.9~b4
+ JS_GetScriptedCaller@Base 1.9~b4
+ JS_GetStringBytes@Base 1.9~b4
+ JS_GetStringChars@Base 1.9~b4
+ JS_GetStringLength@Base 1.9~b4
+ JS_GetTopScriptFilenameFlags@Base 1.9~b4
+ JS_GetTrapOpcode@Base 1.9~b4
+ JS_GetTypeName@Base 1.9~b4
+ JS_GetUCProperty@Base 1.9~b4
+ JS_GetUCPropertyAttributes@Base 1.9~b4
+ JS_GetUCPropertyAttrsGetterAndSetter@Base 1.9~b4
+ JS_GetVersion@Base 1.9~b4
+ JS_HandleTrap@Base 1.9~b4
+ JS_HasArrayLength@Base 1.9~b4
+ JS_HasElement@Base 1.9~b4
+ JS_HasInstance@Base 1.9~b4
+ JS_HasProperty@Base 1.9~b4
+ JS_HasUCProperty@Base 1.9~b4
+ JS_HashString@Base 1.9~b4
+ JS_HashTableAdd@Base 1.9~b4
+ JS_HashTableDestroy@Base 1.9~b4
+ JS_HashTableDump@Base 1.9~b4
+ JS_HashTableEnumerateEntries@Base 1.9~b4
+ JS_HashTableLookup@Base 1.9~b4
+ JS_HashTableRawAdd@Base 1.9~b4
+ JS_HashTableRawLookup@Base 1.9~b4
+ JS_HashTableRawRemove@Base 1.9~b4
+ JS_HashTableRemove@Base 1.9~b4
+ JS_HoldPrincipals@Base 1.9~b4
+ JS_IdToValue@Base 1.9~b4
+ JS_Init@Base 1.9~b4
+ JS_InitArenaPool@Base 1.9~b4
+ JS_InitClass@Base 1.9~b4
+ JS_InitStandardClasses@Base 1.9~b4
+ JS_InstanceOf@Base 1.9~b4
+ JS_InternString@Base 1.9~b4
+ JS_InternUCString@Base 1.9~b4
+ JS_InternUCStringN@Base 1.9~b4
+ JS_IsAboutToBeFinalized@Base 1.9~b4
+ JS_IsArrayObject@Base 1.9~b4
+ JS_IsAssigning@Base 1.9~b4
+ JS_IsConstructing@Base 1.9~b4
+ JS_IsConstructorFrame@Base 1.9~b4
+ JS_IsDebuggerFrame@Base 1.9~b4
+ JS_IsExceptionPending@Base 1.9~b4
+ JS_IsGCMarkingTracer@Base 1.9~b4
+ JS_IsNativeFrame@Base 1.9~b4
+ JS_IsRunning@Base 1.9~b4
+ JS_IsSystemObject@Base 1.9~b4
+ JS_LeaveLocalRootScope@Base 1.9~b4
+ JS_LeaveLocalRootScopeWithResult@Base 1.9~b4
+ JS_LineNumberToPC@Base 1.9~b4
+ JS_Lock@Base 1.9~b4
+ JS_LockGCThing@Base 1.9~b4
+ JS_LockGCThingRT@Base 1.9~b4
+ JS_LookupElement@Base 1.9~b4
+ JS_LookupProperty@Base 1.9~b4
+ JS_LookupPropertyWithFlags@Base 1.9~b4
+ JS_LookupUCProperty@Base 1.9~b4
+ JS_MakeStringImmutable@Base 1.9~b4
+ JS_MapGCRoots@Base 1.9~b4
+ JS_MarkGCThing@Base 1.9~b4
+ JS_MaybeGC@Base 1.9~b4
+ JS_NewArrayObject@Base 1.9~b4
+ JS_NewContext@Base 1.9~b4
+ JS_NewDHashTable@Base 1.9~b4
+ JS_NewDependentString@Base 1.9~b4
+ JS_NewDouble@Base 1.9~b4
+ JS_NewDoubleValue@Base 1.9~b4
+ JS_NewExternalString@Base 1.9~b4
+ JS_NewFunction@Base 1.9~b4
+ JS_NewGrowableString@Base 1.9~b4
+ JS_NewHashTable@Base 1.9~b4
+ JS_NewNumberValue@Base 1.9~b4
+ JS_NewObject@Base 1.9~b4
+ JS_NewObjectWithGivenProto@Base 1.9~b4
+ JS_NewPropertyIterator@Base 1.9~b4
+ JS_NewRegExpObject@Base 1.9~b4
+ JS_NewScriptObject@Base 1.9~b4
+ JS_NewString@Base 1.9~b4
+ JS_NewStringCopyN@Base 1.9~b4
+ JS_NewStringCopyZ@Base 1.9~b4
+ JS_NewSystemObject@Base 1.9~b4
+ JS_NewUCRegExpObject@Base 1.9~b4
+ JS_NewUCString@Base 1.9~b4
+ JS_NewUCStringCopyN@Base 1.9~b4
+ JS_NewUCStringCopyZ@Base 1.9~b4
+ JS_NextProperty@Base 1.9~b4
+ JS_Now@Base 1.9~b4
+ JS_ObjectIsFunction@Base 1.9~b4
+ JS_PCToLineNumber@Base 1.9~b4
+ JS_PopArguments@Base 1.9~b4
+ JS_PropertyIterator@Base 1.9~b4
+ JS_PropertyStub@Base 1.9~b4
+ JS_PushArguments@Base 1.9~b4
+ JS_PushArgumentsVA@Base 1.9~b4
+ JS_PutPropertyDescArray@Base 1.9~b4
+ JS_RemoveArgumentFormatter@Base 1.9~b4
+ JS_RemoveExternalStringFinalizer@Base 1.9~b4
+ JS_RemoveRoot@Base 1.9~b4
+ JS_RemoveRootRT@Base 1.9~b4
+ JS_ReportAllocationOverflow@Base 1.9~b5
+ JS_ReportError@Base 1.9~b4
+ JS_ReportErrorFlagsAndNumber@Base 1.9~b4
+ JS_ReportErrorFlagsAndNumberUC@Base 1.9~b4
+ JS_ReportErrorNumber@Base 1.9~b4
+ JS_ReportErrorNumberUC@Base 1.9~b4
+ JS_ReportOutOfMemory@Base 1.9~b4
+ JS_ReportPendingException@Base 1.9~b4
+ JS_ReportWarning@Base 1.9~b4
+ JS_ResolveStandardClass@Base 1.9~b4
+ JS_ResolveStub@Base 1.9~b4
+ JS_RestoreExceptionState@Base 1.9~b4
+ JS_RestoreFrameChain@Base 1.9~b4
+ JS_ResumeRequest@Base 1.9~b4
+ JS_SaveExceptionState@Base 1.9~b4
+ JS_SaveFrameChain@Base 1.9~b4
+ JS_SealObject@Base 1.9~b4
+ JS_SetArrayLength@Base 1.9~b4
+ JS_SetBranchCallback@Base 1.9~b4
+ JS_SetCStringsAreUTF8@Base 1.9~b4
+ JS_SetCallHook@Base 1.9~b4
+ JS_SetCallReturnValue2@Base 1.9~b4
+ JS_SetCheckObjectAccessCallback@Base 1.9~b4
+ JS_SetContextCallback@Base 1.9~b4
+ JS_SetContextDebugHooks@Base 1.9~b4
+ JS_SetContextPrivate@Base 1.9~b4
+ JS_SetContextThread@Base 1.9~b4
+ JS_SetDebugErrorHook@Base 1.9~b4
+ JS_SetDebuggerHandler@Base 1.9~b4
+ JS_SetDestroyScriptHookProc@Base 1.9~b4
+ JS_SetElement@Base 1.9~b4
+ JS_SetErrorReporter@Base 1.9~b4
+ JS_SetExecuteHook@Base 1.9~b4
+ JS_SetExtraGCRoots@Base 1.9~b4
+ JS_SetFrameAnnotation@Base 1.9~b4
+ JS_SetFrameReturnValue@Base 1.9~b4
+ JS_SetGCCallback@Base 1.9~b4
+ JS_SetGCCallbackRT@Base 1.9~b4
+ JS_SetGCParameter@Base 1.9~b4
+ JS_SetGlobalObject@Base 1.9~b4
+ JS_SetInterrupt@Base 1.9~b4
+ JS_SetLocaleCallbacks@Base 1.9~b4
+ JS_SetNewScriptHookProc@Base 1.9~b4
+ JS_SetObjectHook@Base 1.9~b4
+ JS_SetObjectPrincipalsFinder@Base 1.9~b4
+ JS_SetOperationCallback@Base 1.9~b4
+ JS_SetOperationLimit@Base 1.9~b4
+ JS_SetOptions@Base 1.9~b4
+ JS_SetParent@Base 1.9~b4
+ JS_SetPendingException@Base 1.9~b4
+ JS_SetPrincipalsTranscoder@Base 1.9~b4
+ JS_SetPrivate@Base 1.9~b4
+ JS_SetProperty@Base 1.9~b4
+ JS_SetPropertyAttributes@Base 1.9~b4
+ JS_SetPrototype@Base 1.9~b4
+ JS_SetRegExpInput@Base 1.9~b4
+ JS_SetReservedSlot@Base 1.9~b4
+ JS_SetRuntimePrivate@Base 1.9~b4
+ JS_SetScriptStackQuota@Base 1.9~b4
+ JS_SetSourceHandler@Base 1.9~b4
+ JS_SetThreadStackLimit@Base 1.9~b4
+ JS_SetThrowHook@Base 1.9~b4
+ JS_SetTrap@Base 1.9~b4
+ JS_SetUCProperty@Base 1.9~b4
+ JS_SetUCPropertyAttributes@Base 1.9~b4
+ JS_SetVersion@Base 1.9~b4
+ JS_SetWatchPoint@Base 1.9~b4
+ JS_ShutDown@Base 1.9~b4
+ JS_StackFramePrincipals@Base 1.9~b4
+ JS_StringToVersion@Base 1.9~b4
+ JS_SuspendRequest@Base 1.9~b4
+ JS_ThrowReportedError@Base 1.9~b4
+ JS_ThrowStopIteration@Base 1.9~b4
+ JS_ToggleOptions@Base 1.9~b4
+ JS_TraceChildren@Base 1.9~b4
+ JS_TraceRuntime@Base 1.9~b4
+ JS_TypeOfValue@Base 1.9~b4
+ JS_UndependString@Base 1.9~b4
+ JS_Unlock@Base 1.9~b4
+ JS_UnlockGCThing@Base 1.9~b4
+ JS_UnlockGCThingRT@Base 1.9~b4
+ JS_ValueToBoolean@Base 1.9~b4
+ JS_ValueToConstructor@Base 1.9~b4
+ JS_ValueToECMAInt32@Base 1.9~b4
+ JS_ValueToECMAUint32@Base 1.9~b4
+ JS_ValueToFunction@Base 1.9~b4
+ JS_ValueToId@Base 1.9~b4
+ JS_ValueToInt32@Base 1.9~b4
+ JS_ValueToNumber@Base 1.9~b4
+ JS_ValueToObject@Base 1.9~b4
+ JS_ValueToString@Base 1.9~b4
+ JS_ValueToUint16@Base 1.9~b4
+ JS_VersionToString@Base 1.9~b4
+ JS_XDRBytes@Base 1.9~b4
+ JS_XDRCString@Base 1.9~b4
+ JS_XDRCStringOrNull@Base 1.9~b4
+ JS_XDRDestroy@Base 1.9~b4
+ JS_XDRDouble@Base 1.9~b4
+ JS_XDRFindClassById@Base 1.9~b4
+ JS_XDRFindClassIdByName@Base 1.9~b4
+ JS_XDRInitBase@Base 1.9~b4
+ JS_XDRMemDataLeft@Base 1.9~b4
+ JS_XDRMemGetData@Base 1.9~b4
+ JS_XDRMemResetData@Base 1.9~b4
+ JS_XDRMemSetData@Base 1.9~b4
+ JS_XDRNewMem@Base 1.9~b4
+ JS_XDRRegisterClass@Base 1.9~b4
+ JS_XDRScript@Base 1.9~b4
+ JS_XDRString@Base 1.9~b4
+ JS_XDRStringOrNull@Base 1.9~b4
+ JS_XDRUint16@Base 1.9~b4
+ JS_XDRUint32@Base 1.9~b4
+ JS_XDRUint8@Base 1.9~b4
+ JS_XDRValue@Base 1.9~b4
+ JS_YieldRequest@Base 1.9~b4
+ JS_dtobasestr@Base 1.9~b4
+ JS_dtostr@Base 1.9~b4
+ JS_free@Base 1.9~b4
+ JS_malloc@Base 1.9~b4
+ JS_realloc@Base 1.9~b4
+ JS_smprintf@Base 1.9~b4
+ JS_smprintf_free@Base 1.9~b4
+ JS_snprintf@Base 1.9~b4
+ JS_sprintf_append@Base 1.9~b4
+ JS_strdup@Base 1.9~b4
+ JS_strtod@Base 1.9~b4
+ JS_sxprintf@Base 1.9~b4
+ JS_vsmprintf@Base 1.9~b4
+ JS_vsnprintf@Base 1.9~b4
+ JS_vsprintf_append@Base 1.9~b4
+ JS_vsxprintf@Base 1.9~b4
+ js_AllocStack@Base 1.9~b4
+ js_AnyNameClass@Base 1.9~b4
+ js_AttributeNameClass@Base 1.9~b4
+ js_CallClass@Base 1.9~b4
+ js_CallDestroyScriptHook@Base 1.9~rc1
+ js_CallIteratorNext@Base 1.9~b4
+ js_CallNewScriptHook@Base 1.9~rc1
+ js_CloseIterator@Base 1.9~b4
+ js_DateGetDate@Base 1.9~b4
+ js_DateGetHours@Base 1.9~b4
+ js_DateGetMinutes@Base 1.9~b4
+ js_DateGetMonth@Base 1.9~b4
+ js_DateGetMsecSinceEpoch@Base 1.9~b4
+ js_DateGetSeconds@Base 1.9~b4
+ js_DateGetYear@Base 1.9~b4
+ js_DateIsValid@Base 1.9~b4
+ js_DateSetDate@Base 1.9~b4
+ js_DateSetHours@Base 1.9~b4
+ js_DateSetMinutes@Base 1.9~b4
+ js_DateSetMonth@Base 1.9~b4
+ js_DateSetSeconds@Base 1.9~b4
+ js_DateSetYear@Base 1.9~b4
+ js_FindProperty@Base 1.9~b4
+ js_FinishCodeGenerator@Base 1.9~b4
+ js_FreeStack@Base 1.9~b4
+ js_FunctionClass@Base 1.9~b4
+ js_GetGCThingTraceKind@Base 1.9~b4
+ js_GetScriptLineExtent@Base 1.9~b4
+ js_GetSlotThreadSafe@Base 1.9~b4
+ js_GetSrcNoteOffset@Base 1.9~b4
+ js_InitCodeGenerator@Base 1.9~b4
+ js_Invoke@Base 1.9~b4
+ js_LookupProperty@Base 1.9~b4
+ js_MapKeywords@Base 1.9~b4
+ js_NamespaceClass@Base 1.9~b4
+ js_NewDateObject@Base 1.9~b4
+ js_NewDateObjectMsec@Base 1.9~b4
+ js_ObjectOps@Base 1.9~b4
+ js_ParseXMLText@Base 1.9~b4
+ js_PutArgsObject@Base 1.9~b4
+ js_PutCallObject@Base 1.9~b4
+ js_QNameClass@Base 1.9~b4
+ js_ReportErrorAgain@Base 1.9~b4
+ js_ScriptClass@Base 1.9~b4
+ js_SearchScope@Base 1.9~b4
+ js_SrcNoteLength@Base 1.9~b4
+ js_SrcNoteSpec@Base 1.9~b4
+ js_TraceContext@Base 1.9~b4
+ js_ValueToIterator@Base 1.9~b4
+ js_ValueToPrintable@Base 1.9~b4
+ js_ValueToSource@Base 1.9~b4
+ js_ValueToString@Base 1.9~b4
+ js_WithObjectOps@Base 1.9~b4
+ js_XMLClass@Base 1.9~b4
+ js_XMLObjectOps@Base 1.9~b4
+ js_fgets@Base 1.9~b4
+ resolving_MatchEntry@Base 1.9~b4
--- xulrunner-1.9.0.7.orig/debian/spidermonkey-bin.dirs
+++ xulrunner-1.9.0.7/debian/spidermonkey-bin.dirs
@@ -0,0 +1 @@
+usr/bin
--- xulrunner-1.9.0.7.orig/debian/spidermonkey-bin.prerm
+++ xulrunner-1.9.0.7/debian/spidermonkey-bin.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+    update-alternatives --remove js /usr/bin/smjs
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.0.7.orig/debian/remove.nonfree
+++ xulrunner-1.9.0.7/debian/remove.nonfree
@@ -0,0 +1,84 @@
+#! /bin/sh
+
+rm -fv ./modules/oji/tests/script/killer.exe
+rm -fv ./memory/jemalloc/ed.exe
+rm -fv ./toolkit/crashreporter/tools/win32/dump_syms.exe
+rm -fv ./modules/plugin/samples/default/mac/NullPlugin.rsrc
+rm -fv "./modules/plugin/tools/sdk/samples/basic/mac/Basic Plugin.mcp"
+rm -fv ./modules/plugin/tools/sdk/samples/basic/mac/Basic.rsrc
+rm -fv "./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable Plugin.mcp"
+rm -fv "./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable PluginIDL.mcp"
+rm -fv ./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable.rsrc
+rm -fv ./other-licenses/7zstub/firefox/7zSD.sfx
+rm -fv ./toolkit/mozapps/update/src/updater/macbuild/Contents/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+rm -fv ./toolkit/mozapps/update/src/updater/macbuild/Contents/PkgInfo
+rm -fv ./extensions/manticore/resources/manticore.psd
+rm -fv ./extensions/universalchardet/doc/UniversalCharsetDetection.doc
+rm -fv ./config/bin2rc.exe
+rm -fv ./config/makedep.exe
+rm -fv ./config/mangle.exe
+rm -fv ./config/mantomak.exe
+rm -fv ./embedding/browser/activex/src/pluginhostctrl/cab/redist/ATL.DLL
+rm -fv ./embedding/browser/activex/tests/vbrowse/browser.frx
+rm -fv ./embedding/browser/activex/tests/vbrowse/frmToolBar.frx
+rm -fv ./embedding/qa/testembed/testembed.aps
+rm -fv ./embedding/tests/MSDotNETCSEmbed/MSDotNETCSEmbed.suo
+rm -fv ./embedding/tests/cocoaEmbed/res/English.lproj/MainMenu.nib/objects.nib
+rm -fv ./embedding/wrappers/DotNETEmbed/DotNETEmbed.snk
+rm -fv ./intl/unicharutil/tools/data/case.dat
+rm -fv ./intl/unicharutil/tools/data/cmbcl.dat
+rm -fv ./intl/unicharutil/tools/data/ctype.dat
+rm -fv ./intl/unicharutil/tools/data/decomp.dat
+rm -fv ./intl/unicharutil/tools/data/num.dat
+rm -fv ./js/src/fdlibm/fdlibm.mdp
+rm -fv ./js/src/js.mdp
+rm -fv ./js/src/liveconnect/jsj_nodl.c
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/MacOS/MRJPlugin
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/MacOS/MRJPlugin.jar
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/Resources/MRJPlugin.rsrc
+rm -fv ./plugin/oji/JEP/JavaEmbeddingPlugin.bundle/Contents/MacOS/JavaEmbeddingPlugin
+rm -fv ./plugin/oji/JEP/JavaEmbeddingPlugin.bundle/Contents/Resources/Java/JavaEmbeddingPlugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Dialogs.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Strings.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Version.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/MRJPlugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/netscape.plugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/Source/JMURLConnection
+rm -fv ./plugin/oji/MRJ/testing/ConsoleApplet/ConsoleApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/JSApplet/JSApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/SwingApplet/TestApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/TrivialApplet/MyApplet.mcp
+rm -fv ./plugin/oji/MRJCarbon/MRJSDK/JavaFrameworks/JavaEmbeddingLib
+rm -fv ./plugin/oji/MRJCarbon/plugin/MRJPlugin.jar
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Dialogs.rsrc
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Strings.rsrc
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Version.rsrc
+rm -fv ./xpcom/reflect/xptcall/tests/eVC4/XPTCInvoke_Testing.cpp
+rm -fv ./xpcom/tests/StringFactoringTests/StringTest.mcp
+rm -fv ./xpcom/typelib/xpidl/macplugin/compiler.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/linker.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/panel.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/version.rsrc
+rm -fv ./xpinstall/test/pre_checkin.xpi
+rm -fv ./layout/doc/SpaceMgr_BlockReflSt_OD.sda
+rm -fv ./layout/doc/object_diagram_template.sda
+rm -fv ./layout/html/tests/block/bugs/RealSnow.jar
+rm -fv ./xpfe/bootstrap/appleevents/nsAppleEvents.rsrc
+rm -fv ./toolkit/mozapps/installer/windows/nsis/AppAssocReg.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/UAC.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/Processes.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/ShellLink.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/nsProcess.dll
+rm -fv ./toolkit/crashreporter/google-breakpad/src/tools/solaris/dump_syms/testdata/dump_syms_regtest.o
+
+echo also we need to remove any copyrighted image files from the mozilla src  suite,  not replaced by the branding process. This includes theme throbbers depending on how you handle that and windows icons, app icons, windows splash etc
+
+rm -fvr ./other-licenses/7zstub
+rm -fvr ./other-licenses/branding
+rm -fv README/mozilla/README.os2
+
+rm -fv netwerk/protocol/ftp/doc/rfc959.txt
+
+# CVS stuff
+find . -type d -name CVS | xargs rm -rf
+find . -type f -name .cvsignore | xargs rm -f
--- xulrunner-1.9.0.7.orig/debian/libmozillainterfaces-java.install
+++ xulrunner-1.9.0.7/debian/libmozillainterfaces-java.install
@@ -0,0 +1,4 @@
+usr/lib/xulrunner-1.9/javaxpcom.jar
+usr/lib/xulrunner-devel-1.9/sdk/lib/MozillaGlue.jar
+usr/lib/xulrunner-devel-1.9/sdk/lib/MozillaInterfaces.jar usr/share/java
+usr/lib/xulrunner-devel-1.9/sdk/lib/MozillaInterfaces-src.jar
--- xulrunner-1.9.0.7.orig/debian/spidermonkey-bin.postinst
+++ xulrunner-1.9.0.7/debian/spidermonkey-bin.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+    update-alternatives --install /usr/bin/js js /usr/bin/smjs 200 \
+                        --slave /usr/share/man/man1/js.1.gz js.1.gz /usr/share/man/man1/smjs.1.gz
+fi
+
+#DEBHELPER#
+
--- xulrunner-1.9.0.7.orig/debian/control
+++ xulrunner-1.9.0.7/debian/control
@@ -0,0 +1,232 @@
+Source: xulrunner
+Section: devel
+Priority: optional
+Maintainer: Mike Hommey <glandium@debian.org>
+Build-Depends: debhelper (>= 5.0.59),
+               autotools-dev,
+               libx11-dev,
+               libxt-dev,
+               libidl-dev,
+               libgtk2.0-dev (>= 2.10),
+               libstartup-notification0-dev,
+               libgnomevfs2-dev,
+               libgnome2-dev,
+               libgnomeui-dev,
+               libcairo2-dev (>= 1.5),
+               libpng12-dev,
+               libjpeg62-dev,
+               zlib1g-dev,
+               libbz2-dev,
+               libreadline5-dev | libreadline-dev,
+               libkrb5-dev,
+               python-dev,
+               python-support (>= 0.3),
+               dpkg-dev (>= 1.13.19),
+               binutils (>= 2.17) [mips mipsel],
+               libnspr4-dev (>= 4.7.0),
+               libnss3-dev (>= 3.12.0~beta3),
+               libhunspell-dev (>= 1.1.5-2),
+               libdbus-glib-1-dev,
+               libsqlite3-dev (>= 3.5),
+               liblcms1-dev,
+               zip,
+               xvfb,
+               xfonts-base,
+               xauth
+Build-Depends-Indep: java-gcj-compat-dev (>= 1.0.56)
+Standards-Version: 3.8.0.1
+
+Package: xulrunner-1.9
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libmozjs1d (>= 1.9~rc1),
+         libnspr4-0d (>> 4.7.1-1),
+         libnss3-1d (>> 3.12.0~rc3-1),
+Suggests: xulrunner-1.9-gnome-support
+Replaces: xulrunner-1.9-common
+Conflicts: j2re1.4,
+           pango-graphite
+Description: XUL + XPCOM application runner
+ XULRunner is a single "gecko runtime" that can be used to bootstrap
+ multiple XUL + XPCOM applications that are as rich as Firefox and
+ Thunderbird.
+ .
+ XUL is Mozilla's XML based User Interface language that lets you build
+ feature-rich cross platform applications. These applications are easily
+ customized with alternative text, graphics and layout so that they can be
+ readily branded or localized for various markets. Web developers already
+ familiar with Dynamic HTML (DHTML) will learn XUL quickly and can start
+ building applications right away.
+ .
+ XPCOM is a cross platform component model. It has multiple language
+ bindings and IDL descriptions so programmers can plug their custom
+ functionality into the framework and connect it with other components.
+ .
+ This package also contains the Gecko engine library (libxul)
+Homepage: http://developer.mozilla.org/en/docs/XULRunner
+
+Package: xulrunner-1.9-gnome-support
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         xulrunner-1.9
+Description: Support for GNOME in xulrunner applications
+ This is an extension to xulrunner that allows XUL applications to use
+ protocol handlers from GnomeVFS, such as smb or sftp, and other GNOME
+ integration features.
+
+Package: libmozjs1d
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: The Mozilla SpiderMonkey JavaScript library
+ This library provides the embeddable JavaScript/ECMAScript engine from
+ the Mozilla project (used among others by the Mozilla, Epiphany, Firefox
+ browsers as well as by the iPlanet WebServer).
+Homepage: http://www.mozilla.org/js/
+
+Package: libmozjs-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libmozjs1d (>= ${source:Upstream-Version}),
+         libnspr4-dev
+Conflicts: mozilla-browser (<< 2:1.8)
+Description: Development files for the Mozilla SpiderMonkey JavaScript library
+ This library provides the embeddable JavaScript/ECMAScript engine from
+ the Mozilla project (used among others by the Mozilla, Epiphany, Firefox
+ browsers as well as by the iPlanet WebServer).
+ .
+ Install this package if you wish to develop your own programs using the
+ Mozilla SpiderMonkey JavaScript library.
+Homepage: http://www.mozilla.org/js/
+
+Package: libmozjs1d-dbg
+Section: libdevel
+Priority: extra
+Architecture: any
+Depends: libmozjs1d (= ${binary:Version})
+         | spidermonkey-bin (= ${binary:Version})
+Conflicts: libmozjs0d-dbg
+Description: Development files for the Mozilla SpiderMonkey JavaScript library
+ This library provides the embeddable JavaScript/ECMAScript engine from
+ the Mozilla project (used among others by the Mozilla, Epiphany, Firefox
+ browsers as well as by the iPlanet WebServer).
+ .
+ This package provides the debugging symbols for the library and for
+ the spidermonkey-bin package.
+Homepage: http://www.mozilla.org/js/
+
+Package: spidermonkey-bin
+Section: interpreters
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: standalone JavaScript/ECMAScript (ECMA-262) interpreter
+ SpiderMonkey is a standalone JavaScript/ECMAScript interpreter. It can either
+ take input from files or from a command line driven interface.
+ .
+ ECMAScript (ECMA-262) is a dynamic scripting language supporting prototype
+ based object construction. The basic syntax is intentionally similar to
+ both Java and C++ to reduce the number of new concepts required to learn
+ the language. Language constructs, such as if statements, for and while
+ loops, and switch and try ... catch blocks function the same as these
+ languages (or nearly so).
+ .
+ JavaScript is a superset of the ECMA-262 Edition 3 (ECMAScript) standard
+ first introduced by Netscape and now led by the Mozilla project.
+Homepage: http://www.mozilla.org/js/
+
+Package: xulrunner-dev
+Section: libdevel
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         xulrunner-1.9 (>= ${source:Upstream-Version}),
+         libnss3-dev,
+         libnspr4-dev,
+         libmozjs-dev (>= ${source:Version}),
+Replaces: xulrunner-dev-bin
+Description: Development files for the Gecko engine library
+ This library provides an  API for XUL applications and Gecko embedders.
+ The Gecko engine is the core of the mozilla.org applications such as
+ Firefox, Thunderbird or SeaMonkey.
+ .
+ Gecko features include XPCOM, networking, DOM editing and transaction
+ support, XBL, XUL, SVG, XSLT, XML Extras (XMLHttpRequest and DOMParser),
+ Web Services (SOAP), accessibility support, IPC services, gtkmozembed, etc.
+ .
+ Install this package if you wish to embed the Gecko engine in your
+ program or want to develop XPCOM components.
+ .
+ This package also provides the Xulrunner Software Development Kit in the
+ same form as the one you may find on mozilla.org in /usr/lib/xulrunner/sdk.
+Homepage: http://wiki.mozilla.org/XUL:Lib_XUL
+
+Package: xulrunner-1.9-dbg
+Section: libdevel
+Priority: extra
+Architecture: any
+Depends: xulrunner-1.9 (= ${binary:Version})
+         | xulrunner-1.9-gnome-support (= ${binary:Version})
+         | python-xpcom (= ${binary:Version})
+Conflicts: libxul0d-dbg
+Description: Development files for the Gecko engine library
+ This library provides an  API for XUL applications and Gecko embedders.
+ The Gecko engine is the core of the mozilla.org applications such as
+ Firefox, Thunderbird or SeaMonkey.
+ .
+ Gecko features include XPCOM, networking, DOM editing and transaction
+ support, XBL, XUL, SVG, XSLT, XML Extras (XMLHttpRequest and DOMParser),
+ Web Services (SOAP), accessibility support, IPC services, gtkmozembed, etc.
+ .
+ This package provides the debugging symbols for the library, and for the
+ xulrunner, xulrunner-gnome-support and python-xpcom packages.
+Homepage: http://wiki.mozilla.org/XUL:Lib_XUL
+
+Package: libmozillainterfaces-java
+Section: libdevel
+Priority: extra
+Architecture: all
+Depends: xulrunner-1.9,
+         gij | java2-runtime
+Description: XPCOM bindings for Java
+ JavaXPCOM allows for communication between Java and XPCOM, such that a
+ Java application can access XPCOM objects, and XPCOM can access any Java
+ class that implements an XPCOM interface.
+ With JavaXPCOM, a developer can talk to XPCOM or embed Gecko from a Java
+ application. JavaXPCOM is very similar to XPConnect (JavaScript-XPCOM
+ bridge), and uses XPIDL
+ .
+ Install this package if you wish to access XPCOM objects from Java or
+ the other way around.
+ .
+ This package also provides the JavaXPCOM interfaces sources.
+Homepage: http://developer.mozilla.org/en/docs/JavaXPCOM
+
+Package: python-xpcom
+Section: python
+Priority: extra
+Architecture: any
+Provides: ${python:Provides}
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends},
+         xulrunner-1.9
+Conflicts: epiphany-browser
+XB-Python-Version: ${python:Versions}
+Description: XPCOM bindings for Python
+ PyXPCOM allows for communication between Python and XPCOM, such that a
+ Python application can access XPCOM objects, and XPCOM can access any
+ Python class that implements an XPCOM interface.
+ With PyXPCOM, a developer can talk to XPCOM or embed Gecko from a
+ Python application. PyXPCOM is similar to JavaXPCOM (Java-XPCOM bridge)
+ or XPConnect (JavaScript-XPCOM bridge).
+ .
+ Install this package if you wish to access XPCOM objects from Python, or
+ want to use Python components from XPCOM.
+Homepage: http://developer.mozilla.org/en/docs/pyxpcom
--- xulrunner-1.9.0.7.orig/debian/debAbout.js
+++ xulrunner-1.9.0.7/debian/debAbout.js
@@ -0,0 +1,167 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ *   Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is debAbout.
+ *
+ * The Initial Developer of the Original Code is
+ * Mike Hommey.
+ * Portions created by the Initial Developer are Copyright (C) 2007
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+/* Used Javascript XPCOM component generator from
+   http://ted.mielczarek.org/code/mozilla/jscomponentwiz/ to get a skeleton */
+
+const Cc = Components.classes;
+const Ci = Components.interfaces;
+const Cr = Components.results;
+
+// You can change these if you like
+const CLASS_ID = Components.ID("1359a506-95b6-4fec-9f03-3d81ce131fc0");
+const CLASS_NAME = "about: handler for Debian and package related information";
+const CONTRACT_ID_PREFIX = "@mozilla.org/network/protocol/about;1?what=";
+
+var debAboutURLs = {
+  get urls() {
+    if (!this._urls)
+      this._init();
+
+    return this._urls;
+  },
+
+  _init: function() {
+    this._urls = { "debian": "http://debian.org/" };
+
+    var prefService = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
+    try {
+      /* Assuming nobody change these values */
+      var name = prefService.getCharPref("debian.package.name");
+      var source = prefService.getCharPref("debian.package.source");
+    } catch(e) {}
+
+    if (name) {
+      var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsILocalFile);
+      file.initWithPath("/usr/share/doc/" + name + "/README.Debian.html");
+      if (!file.exists()) {
+        file.initWithPath("/usr/share/doc/" + name + "/README.Debian");
+      }
+      if (file.exists()) {
+        this._urls["readme.debian"] = "file://" + file.path;
+      }
+      this._urls["bugs"] = "http://bugs.debian.org/" + (source ? "src:" + source : name);
+    }
+  }
+}
+
+// This is your constructor.
+// You can do stuff here.
+function debAboutRedirector() {
+  // you can cheat and use this
+  // while testing without
+  // writing your own interface
+  this.wrappedJSObject = this;
+}
+
+// This is the implementation of your component.
+debAboutRedirector.prototype = {
+  // for nsISupports
+  QueryInterface: function(aIID)
+  {
+    // add any other interfaces you support here
+    if (!aIID.equals(Ci.nsISupports) && !aIID.equals(Ci.nsIAboutModule))
+        throw Cr.NS_ERROR_NO_INTERFACE;
+    return this;
+  },
+
+  newChannel: function(uri)
+  {
+    var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
+    var request = uri.path.toLowerCase();
+    var uri = ioService.newURI(debAboutURLs.urls[request], null, null);
+    var channel = ioService.newChannelFromURI(uri);
+    var securityManager = Cc["@mozilla.org/scriptsecuritymanager;1"].getService(Ci.nsIScriptSecurityManager);
+    var principal = securityManager.getCodebasePrincipal(uri);
+    channel.owner = principal;
+    return channel;
+  },
+
+  getURIFlags: function(uri)
+  {
+    return Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT;
+  }
+}
+
+//=================================================
+// Note: You probably don't want to edit anything
+// below this unless you know what you're doing.
+//
+// Factory
+var debAboutFactory = {
+  createInstance: function (aOuter, aIID)
+  {
+    if (aOuter != null)
+      throw Cr.NS_ERROR_NO_AGGREGATION;
+    return (new debAboutRedirector()).QueryInterface(aIID);
+  }
+};
+
+// Module
+var debAboutModule = {
+  registerSelf: function(aCompMgr, aFileSpec, aLocation, aType)
+  {
+
+    aCompMgr = aCompMgr.QueryInterface(Ci.nsIComponentRegistrar);
+    for (var key in debAboutURLs.urls) {
+      aCompMgr.registerFactoryLocation(CLASS_ID, CLASS_NAME, CONTRACT_ID_PREFIX + key, aFileSpec, aLocation, aType);
+    }
+  },
+
+  unregisterSelf: function(aCompMgr, aLocation, aType)
+  {
+    aCompMgr = aCompMgr.QueryInterface(Ci.nsIComponentRegistrar);
+    for (var key in this.urls) {
+      aCompMgr.unregisterFactoryLocation(CLASS_ID_PREFIX + key, aLocation);
+    }
+  },
+
+  getClassObject: function(aCompMgr, aCID, aIID)
+  {
+    if (!aIID.equals(Ci.nsIFactory))
+      throw Cr.NS_ERROR_NOT_IMPLEMENTED;
+
+    if (aCID.equals(CLASS_ID))
+      return debAboutFactory;
+
+    throw Cr.NS_ERROR_NO_INTERFACE;
+  },
+
+  canUnload: function(aCompMgr) { return true; }
+};
+
+//module initialization
+function NSGetModule(aCompMgr, aFileSpec) { return debAboutModule; }
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.install
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.install
@@ -0,0 +1,33 @@
+etc/gre.d/1.9.system.conf
+
+usr/lib/xulrunner-1.9/platform.ini
+
+usr/lib/xulrunner-1.9/libxul.so
+usr/lib/xulrunner-1.9/libxpcom.so
+usr/lib/xulrunner-1.9/libjavaxpcomglue.so
+
+usr/bin/xulrunner-1.9
+usr/lib/xulrunner-1.9/run-mozilla.sh
+usr/lib/xulrunner-1.9/xpcshell
+usr/lib/xulrunner-1.9/mozilla-xremote-client
+usr/lib/xulrunner-1.9/updater
+usr/lib/xulrunner-1.9/xulrunner
+usr/lib/xulrunner-1.9/xulrunner-bin
+usr/lib/xulrunner-1.9/xulrunner-stub
+
+usr/lib/xulrunner-1.9/plugins
+
+usr/lib/xulrunner-1.9/icons usr/share/xulrunner-1.9
+usr/lib/xulrunner-1.9/chrome usr/share/xulrunner-1.9
+
+usr/lib/xulrunner-1.9/greprefs usr/share/xulrunner-1.9
+usr/lib/xulrunner-1.9/defaults/pref usr/share/xulrunner-1.9/defaults
+usr/lib/xulrunner-1.9/defaults/autoconfig usr/share/xulrunner-1.9/defaults
+
+usr/lib/xulrunner-1.9/res usr/share/xulrunner-1.9
+usr/lib/xulrunner-1.9/modules usr/share/xulrunner-1.9
+
+usr/lib/xulrunner-1.9/components/*.js
+usr/lib/xulrunner-1.9/components/*.xpt
+usr/lib/xulrunner-1.9/components/libimgicon.so
+usr/lib/xulrunner-1.9/libjemalloc.so
--- xulrunner-1.9.0.7.orig/debian/libmozjs-dev.install
+++ xulrunner-1.9.0.7/debian/libmozjs-dev.install
@@ -0,0 +1,2 @@
+usr/include/mozjs
+usr/lib/pkgconfig/mozilla-js.pc
--- xulrunner-1.9.0.7.orig/debian/mozconfig
+++ xulrunner-1.9.0.7/debian/mozconfig
@@ -0,0 +1,44 @@
+. $topsrcdir/xulrunner/config/mozconfig
+ac_add_options --prefix=/usr
+ac_add_options --with-default-mozilla-five-home=/usr/lib/xulrunner-1.9
+ac_add_options --enable-default-toolkit=cairo-gtk2
+ac_add_options --enable-pango
+ac_add_options --enable-xft
+ac_add_options --disable-freetype2
+ac_add_options --enable-system-cairo
+ac_add_options --with-system-png
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-bz2
+ac_add_options --with-gssapi=/usr
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --enable-xinerama
+ac_add_options --enable-single-profile
+ac_add_options --disable-profilesharing
+ac_add_options --enable-svg
+ac_add_options --enable-svg-renderer=cairo
+ac_add_options --enable-mathml
+ac_add_options --disable-pedantic
+ac_add_options --disable-long-long-warning
+ac_add_options --enable-gnomevfs
+ac_add_options --enable-gnomeui
+ac_add_options --disable-tests
+ac_add_options --disable-mochitest
+ac_add_options --disable-debug
+ac_add_options --enable-canvas
+#ac_add_options --disable-xpcom-obsolete
+ac_add_options --enable-js-binary
+ac_add_options --with-readline
+ac_add_options --enable-extensions="default cookie permissions python/xpcom spellcheck"
+ac_add_options --disable-installer
+ac_add_options --disable-javaxpcom
+ac_add_options --disable-elf-dynstr-gc
+ac_add_options --enable-system-hunspell
+ac_add_options --disable-crashreporter
+ac_add_options --enable-system-sqlite
+ac_add_options --enable-system-lcms
+ac_add_options --disable-strip
+ac_add_options --disable-install-strip
+ac_add_options --enable-url-classifier
+ac_add_options --enable-startup-notification
--- xulrunner-1.9.0.7.orig/debian/libmozjs1d.install
+++ xulrunner-1.9.0.7/debian/libmozjs1d.install
@@ -0,0 +1 @@
+usr/lib/libmozjs.so.* usr/lib
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.prerm
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+    rm -f /usr/lib/xulrunner-1.9/components/compreg.dat \
+          /usr/lib/xulrunner-1.9/components/xpti.dat \
+          /usr/lib/xulrunner-1.9/.autoreg
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.0.7.orig/debian/watch
+++ xulrunner-1.9.0.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/(\d\.[\d\.]+)/source/xulrunner-([\d\.]+)-source\.tar\.bz2
--- xulrunner-1.9.0.7.orig/debian/python-xpcom.dirs
+++ xulrunner-1.9.0.7/debian/python-xpcom.dirs
@@ -0,0 +1 @@
+usr/share
--- xulrunner-1.9.0.7.orig/debian/libmozjs-dev.links
+++ xulrunner-1.9.0.7/debian/libmozjs-dev.links
@@ -0,0 +1 @@
+usr/lib/libmozjs.so.1d usr/lib/libmozjs.so
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9-gnome-support.install
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9-gnome-support.install
@@ -0,0 +1,3 @@
+usr/lib/xulrunner-1.9/components/libdbusservice.so
+usr/lib/xulrunner-1.9/components/libmozgnome.so
+usr/lib/xulrunner-1.9/components/libnkgnomevfs.so
--- xulrunner-1.9.0.7.orig/debian/libmozillainterfaces-java.links
+++ xulrunner-1.9.0.7/debian/libmozillainterfaces-java.links
@@ -0,0 +1 @@
+usr/share/java/MozillaInterfaces.jar usr/lib/xulrunner-devel-1.9/sdk/lib/MozillaInterfaces.jar
--- xulrunner-1.9.0.7.orig/debian/rules
+++ xulrunner-1.9.0.7/debian/rules
@@ -0,0 +1,277 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)$$/\1/ p')
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)-.*$$/\1/ p')
+
+PYVER := $(shell pyversions -d)
+
+CFLAGS := -g
+LDFLAGS := -Wl,--as-needed
+
+AUTOCONF_DIRS := build/autoconf
+
+JAVA_VARS := \
+	MOZ_JAVAXPCOM=1 \
+	JAVA_INCLUDE_PATH=$(CURDIR)/sun-java/stubs/include \
+	JAVAC=javac \
+	JAR=jar \
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CONFIGURE_FLAGS += --disable-optimize
+endif
+
+ifeq ($(DEB_BUILD_ARCH),alpha)
+	LDFLAGS += -Wl,--no-relax
+endif
+
+ifeq ($(DEB_BUILD_ARCH),ppc64)
+	CFLAGS += -mminimal-toc
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CONFIGURE_FLAGS += --enable-debug
+else
+	GENSYMBOLS_FLAGS := -c4
+endif
+
+DH_INSTALL_FILES := $(foreach arch, kfreebsd-i386 kfreebsd-amd64, debian/xulrunner-1.9.install.$(arch))
+COMPONENT_PACKAGES := python-xpcom xulrunner-1.9-gnome-support
+COMPONENT_SCRIPTS := $(COMPONENT_PACKAGES:%=debian/%.postinst) $(COMPONENT_PACKAGES:%=debian/%.postrm)
+GENERATED_FILES := $(COMPONENT_SCRIPTS) $(DH_INSTALL_FILES) debian/xulrunner-1.9.postinst
+$(COMPONENT_SCRIPTS): %: debian/postinstrm.in
+	cp $^ $@
+
+debian/xulrunner-1.9.postinst: debian/postinstrm.in
+	sed 's/abort-install/triggered/;/^dpkg-trigger/d' $^ > $@
+
+$(DH_INSTALL_FILES): debian/xulrunner-1.9.install
+	grep -v jemalloc $< > $@
+
+config.status: ./configure debian/mozconfig
+	dh_testdir
+
+	for dir in $(AUTOCONF_DIRS); do \
+		for file in config.guess config.sub; do \
+			sed -i '2!b;/^#/ i\exec "/usr/share/misc/'$$file'" "$$@"' $$dir/$$file; \
+		done; \
+	done
+
+	# Add here commands to configure the package.
+	JAVA_HOME=/usr/lib/jvm/java-gcj \
+	MOZCONFIG=debian/mozconfig \
+	ASFLAGS="-g" \
+	CFLAGS="$(CFLAGS)" \
+	CXXFLAGS="$(CFLAGS)" \
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+	            $(CONFIGURE_FLAGS)
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	LD_LIBRARY_PATH=$(CURDIR)/dist/lib \
+	$(MAKE) \
+		PYTHON_SO=$(shell objdump -p /usr/lib/lib$(PYVER).so | awk '/SONAME/ {print $$2}') \
+		$(JAVA_VARS) \
+		DEB_NO_JAR=1 \
+		OS_LDFLAGS="$(LDFLAGS) $(shell sed -n 's/^OS_LDFLAGS\s*=\s*//p' config/autoconf.mk)"
+	#docbook-to-man debian/xulrunner.sgml > xulrunner.1
+
+	touch build-stamp
+
+TEST =	( if ( \
+		cd dist/bin; \
+		GNOME22_USER_DIR="$(CURDIR)/dist/.gnome2" \
+		HOME="$(CURDIR)/dist" \
+		xvfb-run -a sh -c "./xulrunner '$(CURDIR)/debian/test/application.ini' 2> /dev/null" || \
+			echo "xulrunner test exited with code $$?" >&2; \
+	) | grep -q '^unload$$'; then \
+		echo "xulrunner test successful" >&2; \
+	else \
+		echo "xulrunner test failed" >&2; \
+		exit 1; \
+	fi )
+
+test: build-stamp
+	dh_testdir
+
+	# xpcshell should be enough to trigger xptc invoke/stubs breakages
+	@cd dist/bin && \
+	./run-mozilla.sh ./xpcshell -e \
+		"var f = Components.classes['@mozilla.org/file/local;1'] \
+		         .createInstance(Components.interfaces.nsILocalFile); \
+		 f.initWithPath('/'); \
+		 dump('xpcshell test ' + (f.isDirectory() ? 'successful' : 'failed') + '\n');"
+
+	# basic test
+	$(call TEST)
+
+build-jars: build-jars-stamp
+
+build-jars-stamp: build-stamp
+	$(MAKE) -C extensions/java/xpcom/interfaces $(JAVA_VARS)
+	$(MAKE) -C extensions/java/xpcom/src jar-libs $(JAVA_VARS)
+	
+	touch build-jars-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build*-stamp install*-stamp mozilla MPL debian/*.shlibs.local
+	rm -rf debian/include
+	rm -f $(GENERATED_FILES)
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean $(JAVA_VARS)
+
+	for dir in $(AUTOCONF_DIRS); do \
+		for file in config.guess config.sub; do \
+			sed -i '2!b;/^exec "/ d' $$dir/$$file; \
+		done; \
+	done
+
+	dh_clean 
+
+install: install-stamp
+
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+	mv debian/tmp/usr/bin/xulrunner debian/tmp/usr/bin/xulrunner-1.9
+
+	# Fixup permissions
+	find debian/tmp -type f -print0 | xargs -0 chmod 644
+	for f in \
+		js \
+		run-mozilla.sh \
+		xulrunner \
+		mozilla-xremote-client \
+		updater \
+		xpcshell \
+		xpidl \
+		xpt_dump \
+		xpt_link \
+		xulrunner-bin \
+		xulrunner-stub \
+		; do \
+			chmod 755 debian/tmp/usr/lib/xulrunner-1.9/$$f; \
+	done
+
+	# Replace some installed files by symlinks
+	cd debian/tmp/usr/lib/xulrunner-devel-1.9/sdk/lib; \
+		for f in *.so; do \
+			rm -f $$f; ln -s /usr/lib/xulrunner-1.9/$$f $$f; \
+		done
+	cd debian/tmp/usr/include/xulrunner-1.9/stable; \
+		for f in *; do \
+			rm -f ../unstable/$$f; ln -s ../stable/$$f ../unstable/$$f; \
+		done
+	cd debian/tmp/usr/share/idl/xulrunner-1.9/stable; \
+		for f in *; do \
+			rm -f ../unstable/$$f; ln -s ../stable/$$f ../unstable/$$f; \
+		done
+	ln -s ../../xulrunner-1.9 debian/tmp/usr/lib/xulrunner-devel-1.9/sdk/bin
+
+	find dist/bin -printf %P\\n | sort -u > debian/dist.list
+	find debian/tmp/usr/lib/xulrunner-1.9 -printf %P\\n | sort -u > debian/tmp.list
+	diff debian/tmp.list debian/dist.list | grep "^[<>]" | grep -v "^> DEBIAN" | sort
+	rm -f debian/tmp.list debian/dist.list
+
+	cp -Lr dist/include/js debian/tmp/usr/include/mozjs
+	find debian/tmp/usr/include/mozjs -type f -printf %P\\n | while read f; do \
+		file=$$(echo debian/tmp/usr/include/xulrunner-1.9/*/$$f); \
+		rm $$file; \
+		ln -s /usr/include/mozjs/$$(basename $$f) $$file; \
+	done
+	for f in /usr/include/nspr/* /usr/include/nss/*; do \
+		ln -s $$f debian/tmp/usr/include/xulrunner-1.9/stable/$$(basename $$f); \
+		ln -s $$f debian/tmp/usr/include/xulrunner-1.9/unstable/$$(basename $$f); \
+	done
+	# Move out libraries in /usr
+	mv debian/tmp/usr/lib/xulrunner-1.9/libmozjs.so* debian/tmp/usr/lib
+	mv debian/tmp/usr/lib/xulrunner-1.9/js debian/tmp/usr/bin/smjs
+
+	install -d -m 755 debian/tmp/usr/lib/$(PYVER)
+	mv debian/tmp/usr/lib/xulrunner-1.9/python debian/tmp/usr/lib/$(PYVER)/site-packages
+
+	install -m 644 debian/debAbout.js debian/tmp/usr/lib/xulrunner-1.9/components/
+
+	sed -i '/^Cflags/ s,$${includedir}/stable,/usr/include/mozjs,' debian/tmp/usr/lib/pkgconfig/mozilla-js.pc
+
+	sed -i 's/\(Milestone=1.9\).*/\1/' debian/tmp/usr/lib/xulrunner-1.9/platform.ini
+
+	cp -f LICENSE MPL
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build-jars install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -i
+	dh_installdocs -A -i MPL
+	dh_installexamples -i
+	dh_install -i --sourcedir=debian/tmp
+	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build test install $(GENERATED_FILES)
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -a
+	dh_installdocs -A -a -XREADME.txt MPL
+	dh_installexamples -a
+	dh_installmenu -pspidermonkey-bin
+	dh_install -a --sourcedir=debian/tmp -XMozillaInterfaces -XMozillaGlue
+	sed -i '/^usr\/lib\/xulrunner-1.9\/libjemalloc.so$$/ d' debian/xulrunner-1.9.install
+	dh_pysupport -ppython-xpcom
+	dh_installman -pspidermonkey-bin debian/smjs.1
+	dh_link -a
+	dh_strip -a -Nlibmozjs1d -Nspidermonkey-bin --dbg-package=xulrunner-1.9-dbg
+	dh_strip -plibmozjs1d -pspidermonkey-bin --dbg-package=libmozjs1d-dbg
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -plibmozjs1d -V 'libmozjs1d (>= 1.9~rc1)' -- $(GENSYMBOLS_FLAGS)
+	dh_installdeb -a
+	dh_shlibdeps -a -l$(CURDIR)/debian/tmp/usr/lib/xulrunner-1.9
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+	find debian/tmp -printf %P\\n | sort -u > debian/tmp.list
+	find `grep Package: debian/control | awk '{print "debian/"$$2}'` -printf %P\\n | sed 's,usr/share/xulrunner,usr/lib/xulrunner,' | sort -u > debian/pkg.list
+	diff debian/tmp.list debian/pkg.list | grep "^[<>]" | grep -v "^> DEBIAN" | sort
+	rm -f debian/tmp.list debian/pkg.list
+
+.PHONY: build clean binary-indep binary-arch binary install build-jars test
+
+.NOTPARALLEL:
--- xulrunner-1.9.0.7.orig/debian/spidermonkey-bin.menu
+++ xulrunner-1.9.0.7/debian/spidermonkey-bin.menu
@@ -0,0 +1,2 @@
+?package(spidermonkey-bin):needs="text" section="Applications/Programming" \
+  title="SpiderMonkey JavaScript Interpreter" command="/usr/bin/smjs"
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.triggers
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.triggers
@@ -0,0 +1 @@
+interest /usr/lib/xulrunner-1.9/components
--- xulrunner-1.9.0.7.orig/debian/xulrunner-1.9.dirs
+++ xulrunner-1.9.0.7/debian/xulrunner-1.9.dirs
@@ -0,0 +1 @@
+usr/share/xulrunner-1.9/defaults/pref
--- xulrunner-1.9.0.7.orig/debian/spidermonkey-bin.install
+++ xulrunner-1.9.0.7/debian/spidermonkey-bin.install
@@ -0,0 +1 @@
+usr/bin/smjs
--- xulrunner-1.9.0.7.orig/debian/changelog
+++ xulrunner-1.9.0.7/debian/changelog
@@ -0,0 +1,2043 @@
+xulrunner (1.9.0.7-0lenny2) stable-security; urgency=high
+
+  * Non-maintainer upload by the security team.
+  * Fix msfa-2009-13 (CVE-2009-1044)
+  * Fix mfsa-2009-12 (CVE-2009-1169)
+
+ -- Noah Meyerhans <noahm@debian.org>  Fri, 27 Mar 2009 23:31:21 -0400
+
+xulrunner (1.9.0.7-0lenny1) stable-security; urgency=high
+
+  * New upstream release.
+  * Fixes mfsa-2009-{07-09}, also known as
+    CVE-2009-0771, CVE-2009-0772, CVE-2009-0773, CVE-2009-0774,
+    CVE-2009-0775, CVE-2009-0776.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 18 Mar 2009 19:09:05 +0100
+
+xulrunner (1.9.0.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fixes mfsa-2009-{01,02,04-06}, also known as
+    CVE-2009-0352, CVE-2009-0353, CVE-2009-0354, CVE-2009-0356,
+    CVE-2009-0357, CVE-2009-0358.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 04 Feb 2009 08:00:40 +0100
+
+xulrunner (1.9.0.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fixes mfsa-2008-{60,63-68}, also known as
+    CVE-2008-5500, CVE-2008-5501, CVE-2008-5502, CVE-2008-5505,
+    CVE-2008-5506, CVE-2008-5507, CVE-2008-5508, CVE-2008-5510,
+    CVE-2008-5511, CVE-2008-5512.
+  * debian/control: conflict with pango-graphite, to avoid all problems
+    it causes.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 20 Dec 2008 10:55:24 +0100
+
+xulrunner (1.9.0.4-2) unstable; urgency=low
+
+  * debian/xulrunner-1.9.preinst: Brown paper bag fix to avoid failure on
+    install (upgrades were fine).
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 23 Nov 2008 09:34:15 +0100
+
+xulrunner (1.9.0.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fixes mfsa-2008-{47,51-58}, also known as
+    CVE-2008-0017, CVE-2008-4582, CVE-2008-5015, CVE-2008-5016,
+    CVE-2008-5017, CVE-2008-5018, CVE-2008-5019, CVE-2008-5021,
+    CVE-2008-5022, CVE-2008-5023, CVE-2008-5024.
+  * debian/postinst.in: Use a temporary directory as $HOME when running
+    xpcshell. Thanks Theppitak Karoonboonyanan. Closes: #495311.
+  * debian/rules:
+    + Exclude jemalloc from kfreebsd packages, as it is not built.
+      Thanks Petr Salinger. Closes: #501476.
+    + Use LDFLAGS instead of CFLAGS to set -Wl,--no-relax on alpha.
+  * modules/libpr0n/src/imgRequest.cpp: Apply patch from bz#373701 to
+    properly close streaming HTTP connections and avoid sucking bandwidth.
+    Closes: #491144.
+  * browser/app/mozilla.in: Do exec instead of uselessly forking.
+    Closes: #496626.
+  * memory/jemalloc/jemalloc.c: Apply patch from bz#460933 to avoid
+    possible deadlock on fork with jemalloc enabled.
+  * xpcom/glue/nsThreadUtils.cpp: Better fix to avoid crashes such as bug
+    #481925. Might fix bug #503926, too.
+  * debian/xulrunner-1.9.preinst: If /usr/lib/xulrunner-1.9/chrome is an
+    empty directory, remove it. This will allow dpkg to create the symbolic
+    link correctly. Closes: #482415, #486334, #486354, #492488.
+  * toolkit/components/url-classifier/src/Makefile.in: Disable optimization
+    on alpha as it leads to crashes when using this component.
+  * uriloader/exthandler/nsMIMEInfoImpl.h,
+    uriloader/exthandler/unix/nsMIMEInfoUnix.cpp,
+    uriloader/exthandler/unix/nsOSHelperAppService.cpp,
+    uriloader/exthandler/unix/nsOSHelperAppService.h: Revert change from
+    release 1.9.0.1-1.
+  * uriloader/exthandler/unix/nsMIMEInfoUnix.cpp: Properly launch
+    applications set in $HOME/.mailcap. Replaces the previous patch in
+    a much simpler way.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 22 Nov 2008 12:50:09 +0100
+
+xulrunner (1.9.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fixes mfsa-2008-{40-44}, also known as
+    CVE-2007-3837, CVE-2008-4058, CVE-2008-4059, CVE-2008-4060,
+    CVE-2008-4065, CVE-2008-4066, CVE-2008-4066, CVE-2008-4067.
+  * debian/xulrunner-1.9.install: Don't install dependentlibs.list. It's
+    causing problems with gdb and is not necessary on our builds.
+  * debian/control: Bumped Standards-Version to 3.8.0.1. No changes.
+  * xulrunner/app/Makefile.in: Use browser/app/mozilla.in instead of
+    xulrunner/app/mozilla.in. The browser version has received more love
+    upstream, and properly remove the xremote code, which has been handled
+    by the binary itself for a while, and causes some problems on PPC at
+    least.
+  * build/unix/run-mozilla.sh, debian/postinstrm.in, debian/rules,
+    xulrunner/stub/nsXULStub.cpp: Disable jemalloc by default, because of all
+    the kinds of random problems it causes, but let advanced users load it by
+    setting the MOZILLA_JEMALLOC environment variable. Closes: #490360.
+  * debian/rules: Create sdk/bin as a symlink to /usr/lib/xulrunner-1.9.
+    Closes: #491693
+  * modules/plugin/base/src/nsPluginHostImpl.cpp: Don't register plugins if
+    the MOZILLA_DISABLE_PLUGINS environment variable is set.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 28 Sep 2008 16:30:37 +0200
+
+xulrunner (1.9.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+    + Fix urlclassifier so that its black list is properly updated.
+      Closes: #486311.
+  * memory/jemalloc/jemalloc.c: Allow memory to be allocated from a small pool
+    of static memory during initialization. Some LD_PRELOADed libraries such
+    as libaoss and libtrash can divert some functions used by jemalloc
+    initialization, themselves needing malloc or calloc. This used to lead to
+    a deadlock. Closes: #487614.
+  * uriloader/exthandler/nsHandlerService.js: Avoid spurious "Run" items in
+    application handlers configuration pane.
+  * uriloader/exthandler/nsMIMEInfoImpl.h,
+    uriloader/exthandler/unix/nsMIMEInfoUnix.cpp,
+    uriloader/exthandler/unix/nsOSHelperAppService.cpp,
+    uriloader/exthandler/unix/nsOSHelperAppService.h: Properly launch
+    applications set in $HOME/.mailcap. Closes: #488971.
+  * uriloader/exthandler/unix/nsOSHelperAppService.cpp: Apply small changes
+    asked by upstream in bz#440840 so that we have what will be applied
+    upstream.
+  * xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h,
+    xpcom/reflect/xptcall/src/md/unix/Makefile.in: Fix FTBFS on Hurd-i386.
+    Closes: #490390.
+  * debian/control:
+    + libmozjs1d-dbg conflicts with libmozjs0d-dbg.  Closes: #490296.
+    + Conflict with j2re1.4. Even when solving the infinite loop issue, new
+      issues were showing up one after another with this old and obviously
+      broken plugin. Closes: #481407.
+  * debian/rules:
+    + Don't fail to build with DEB_BUILD_OPTIONS=debug, which adds symbols to
+      libmozjs1d.
+    + Add symbolic links for nss headers in the SDK directories.
+      Closes: #490747.
+    + Avoid breaking current iceweasel that doesn't have a broad enough
+      version range in application.ini.
+  * debian/remove.nonfree: Don't remove files that don't exist anymore, and
+    synchronize with the remove.nonfree file from iceweasel.
+  * modules/libpref/src/init/all.js: Disable network manager authority over
+    online/offline. Closes: #483167.
+  * xpcom/io/nsLocalFileUnix.cpp, xpcom/io/nsLocalFileUnix.h: Use stat64()
+    where supported, so that directory listing doesn't choke on 2GB+ files.
+    Closes: #489733.
+  * debian/test/application.ini: Allow our testcase to work with versions up
+    to 2.0.
+  * config/autoconf.mk.in, xulrunner/installer/Makefile.in: Don't use the full
+    version (1.9.0.1) in install paths.
+  * extensions/pref/autoconfig/src/nsReadConfig.cpp: Read autoconfig files
+    from GRE directory instead of application directory. Closes: #490814.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 14 Jul 2008 22:15:18 +0200
+
+xulrunner (1.9~rc2-5) unstable; urgency=low
+
+  * debian/control: Add a dependency on xulrunner-1.9 to
+    xulrunner-1.9-gnome-support.
+  * uriloader/exthandler/unix/nsOSHelperAppService.cpp: Properly catch test
+    process exit code. This avoids mailcap entries where the test fails to be
+    chosen.
+  * toolkit/xre/nsAppRunner.cpp: Set DISPLAY with the value passed to
+    --display. This avoids surprises when running DISPLAY=:0 iceweasel
+    --display=:1, and some other problems.
+  * toolkit/themes/gnomestripe/global/jar.mn: Install loading_16_grey.gif in
+    classic.jar, and add an override to replace loading16.png, which happens
+    to be an APNG file, with it. Closes: #487556.
+  * toolkit/xre/nsAppRunner.cpp: Don't use static strings when setting
+    environment, since there are situations where libxul.so gets dlclose()d,
+    making these strings unavailable and leading to strange segfaults.
+    Closes: #487785.
+  * build/unix/run-mozilla.sh: Allow to debug with LD_PRELOADed libraries.
+  * debian/rules, debian/postinstrm.in: Generate xulrunner-1.9.postinst from
+    template, too. Also replace handling of upgrade by handling of
+    abort-install.
+  * debian/xulrunner-1.9.postinst: Removed.
+  * debian/postinstrm.in:
+    + Avoid xpcshell to use libjemalloc, avoiding install to hang while using
+      libtrash or other LD_PRELOADed library conflicting with libjemalloc.
+      Closes: #488349.
+    + Catch xpcshell crashes in postinst/rm so that install can proceed
+      properly. Remove possibly incomplete components registries it could
+      have generated, then. Closes: #488350.
+  * xpcom/glue/nsThreadUtils.cpp:
+    + Tentatively fix crashes when epiphany exits.  This will require an
+      epihany rebuild. Closes: #481925.
+    + Also add a failsafe in NS_ProcessPendingEvents.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 29 Jun 2008 10:32:32 +0200
+
+xulrunner (1.9~rc2-4) unstable; urgency=low
+
+  * xulrunner/stub/nsXULStub.cpp: Refactored the previous change allowing
+    xulrunner-stub to be symlinked, so that it works properly in more cases.
+  * xpcom/io/nsAppFileLocationProvider.cpp: Add /usr/lib/mozilla/plugins as
+    global location to find plugins.
+  * configure, configure.in: Force to not use -fshort-wchar. Closes: #485876.
+  * uriloader/exthandler/unix/nsOSHelperAppService.cpp: Avoid thread wait
+    catching system() child process termination, which can make mailcap
+    entries with tests ignored (since tests end up failing). Closes: #473557.
+  * uriloader/exthandler/unix/nsOSHelperAppService.cpp: Ignore mailcap entries
+    with "needsterminal". Closes: #467612.
+  * toolkit/content/about.dtd, toolkit/content/about.xhtml,
+    toolkit/content/jar.mn, toolkit/locales/en-US/chrome/global/about.dtd:
+    Avoid the about: page to be broken when l10n chrome doesn't include the
+    debian specific strings, which will stay in english.
+  * modules/libpref/src/prefapi.*, modules/libpref/src/prefread.*: Allow .js
+    preference files to set locked prefs with lockPref(). Closes: #469020.
+  * toolkit/xre/nsXREDirProvider.cpp: Add another preferences directory for
+    applications: preferences/syspref. It was existing in previous versions of
+    iceweasel as a symlink to /etc/iceweasel/pref. This has the side effect to
+    make these preferences there work again, and to disable the "set as
+    default browser" dialog. Closes: #485662.
+  * xulrunner/app/Makefile.in: Don't link xulrunner-bin against libjemalloc
+    anymore.
+  * build/unix/run-mozilla.sh, xulrunner/stub/Makefile.in,
+    xulrunner/stub/nsXULStub.cpp: Load libjemalloc through LD_PRELOAD in both
+    stub (which happened to not be linked against libjemalloc, so iceweasel
+    should get a performance boost) and xulrunner-bin. This can be disabled
+    by setting the MOZILLA_NO_JEMALLOC environment variable to some value.
+  * debian/xulrunner-1.9.install: Don't install libjemalloc by default.
+    Closes: #486663.
+  * debian/rules: Refactored tests to use MOZILLA_NO_JEMALLOC, and install
+    libjemalloc if the corresponding test succeeded.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 21 Jun 2008 14:28:44 +0200
+
+xulrunner (1.9~rc2-3) unstable; urgency=low
+
+  * config/autoconf.mk.in, configure, configure.in,
+    xulrunner/installer/Makefile.in,
+    xulrunner/installer/libxul-embedding-unstable.pc.in,
+    xulrunner/installer/libxul-embedding.pc.in,
+    xulrunner/installer/libxul-unstable.pc.in,
+    xulrunner/installer/libxul.pc.in: Don't hardcode -fshort-wchar in the .pc
+    files. Thanks Riku Voipio. Closes: #485618.
+  * xpcom/glue/nsTextFormatter.cpp: Fixed bad certificate error message
+    displaying (null) as common name at least on amd64, due to the way
+    va_lists are being used in nsTextFormatter.
+  * security/manager/ssl/public/Makefile.in,
+    security/manager/ssl/public/nsIBadCertListener.idl,
+    security/manager/ssl/src/nsNSSIOLayer.*: Fore-port nsIBadCertListener from
+    1.8, to allow embedding applications to use the same dialogs as before,
+    instead of the new ssl alert pages from Firefox, which have several
+    problems in embedding applications.
+  * debian/control: Make -dbg packages less a hassle for manual installations
+    with dpkg.
+  * debian/debAbout.js: Removed last debugging message.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 15 Jun 2008 22:11:16 +0200
+
+xulrunner (1.9~rc2-2) unstable; urgency=low
+
+  * debian/libmozillainterfaces-java.install, debian/xulrunner-1.9.install:
+    Move javaxpcom.jar into the libmozillainterfaces-java package.
+    Closes: #485284.
+  * debian/control: Small description changes to fit this move.
+  * debian/libmozillainterfaces-java.install: Move MozillaGlue.jar into the
+    libmozillainterfaces-java package.
+  * debian/rules: Don't install MozillaInterfaces and MozillaGlue files in
+    xulrunner-dev.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 09 Jun 2008 08:15:35 +0200
+
+xulrunner (1.9~rc2-1) unstable; urgency=low
+
+  * modules/libjar/nsJAR.cpp: Apply patch from Alexander Sack to avoid
+    deadlocks.
+  * debian/xulrunner-1.9.links: Don't create links for nspr libraries,
+    since nspr now has them.
+  * debian/control: Since we don't ship neither nspr nor nss so links, force
+    dependencies onto versions of nspr and nss that ship them, to avoid
+    partial upgrade surprises to our testing or unstable users.
+  * toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp:
+    Fix unaligned word access. Thanks Martin Guy to have tracked this down.
+    Closes: #483949.
+  * debian/control: Remove xulrunner-dev-bin and xulrunner-1.9-common
+    packages, adapt xulrunner-dev and xulrunner-1.9 for transition.
+  * debian/xulrunner-1.9-common.*, debian/xulrunner-dev-bin.*: Removed.
+  * debian/xulrunner-1.9.*, debian/xulrunner-dev.*: Install files that
+    previously were in xulrunner-1.9-common and xulrunner-dev-bin.
+  * debian/rules:
+    + Don't filter-out mozilla-config and xpcom-config files when
+      installing arch-indep files.
+    + Don't install the buildconfig.html override, it is not needed anymore.
+  * toolkit/content/jar.mn: Do include content/global/buildconfig.html in
+    toolkit.jar.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 08 Jun 2008 10:41:19 +0200
+
+xulrunner (1.9~rc1-2) experimental; urgency=low
+
+  * toolkit/content/about.xhtml: Remove unintendly left debugging message.
+  * xpcom/reflect/xptcall/src/md/unix/Makefile.in: Use -O0 instead of -O1 for
+    xptcstubs on hppa, it seems -O1 is still too much.
+  * debian/control: Ensure xulrunner-1.9 depends on libmozjs1d >= 1.9~rc1.
+    Closes: #482824.
+  * debian/rules: Workaround libgnome exitting when it can't create its
+    configuration directory when user home doesn't exist (as it happens on
+    buildds) despite $HOME being set, by setting GNOME22_USER_DIR.
+    Closes: #482812.
+  * debian/xulrunner-dev-bin.install, debian/rules: Install xpcom-config.h
+    in arch-dependent xulrunner-dev-bin package.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 27 May 2008 00:12:49 +0200
+
+xulrunner (1.9~rc1-1) experimental; urgency=low
+
+  * New upstream Release Candidate release (taken from upstream CVS):
+    + Avoid non null terminated strings being considered as such, leading to
+      garbage at the end of drag&dropped content. Closes: #481021.
+  * debian/control: Turn libmozjs-dev into an arch-dependent package, so that
+    arch-dependent jsautocfg.h has the proper content on all architectures.
+    Closes: #480045.
+  * xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp,
+    xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips.cpp: Add missing #include
+    in xptcstubs on m68k and mips. This should finally settle the FTBFSes on
+    these architectures. Closes: #479107.
+  * debian/xulrunner-1.9.postinst: Remove test for 'upgrade', it is not a
+    valid postinst argument.
+  * debian/xulrunner-dev-bin.install, debian/rules: Install mozilla-config.h
+    in arch-dependent xulrunner-dev-bin package.
+  * debian/pyversions: Removed. It is actually useless in our case.
+  * debian/rules:
+    + Fix mozilla-js.pc to provide the proper include directory.
+    + Add a test rule to try to detect xptc invoke/stubs breakages. An
+      xpcshell script should be enough for that purpose.
+    + Add -g to flags given to the assembler.
+    + Make DEB_BUILD_OPTIONS=noopt actually work.
+    + Use objdump -p instead of objdump -x.
+    + Bumped shlibs for libmozjs1d. Also add option for dh_makeshlibs to fail
+      when symbols file is not up-to-date.
+  * debian/libmozjs1d.symbols: Add symbols file for libmozjs1d.
+  * xpcom/reflect/xptcall/src/md/unix/Makefile.in, configure, configure.in:
+    Add -fPIC to flags given to the assembler, and clean-up the Makefile.
+    This will fix current xpcom brokenness on mips.
+  * debian/control:
+    + Added proper conflicts related to python-xpcom to xulrunner-1.9-dbg.
+      Closes:#482471.
+    + Build-Depend on libnspr4-dev >= 4.7.0 instead of wrong 3.7.0 (oops).
+    + Build-Depend on libstartup-notification0-dev.
+  * xpcom/build/nsXPComInit.cpp: Check for GRE_DIR/.autoreg to trigger
+    components auto-registration, so that we can have independent application
+    and xulrunner updates triggering it.
+  * debian/xulrunner-1.9.postinst, debian/postinstrm.in: Don't remove .autoreg
+    file, but create/refresh it.
+  * config/rules.mk: Avoid to remove source .s files on make clean, which
+    broke building again after make clean on architectures having .s source
+    files.
+  * xpcom/reflect/xptcall/src/md/unix/Makefile.in: Build xptcstubs with less
+    optimizations on hppa to avoid g++ outsmarting the assembly code.
+    Closes: #480905.
+  * debian/configure.in: disable mochitest.
+  * xulrunner/installer/Makefile.in, debian/rules: Revert previous change to
+    build as if we were version 1.9 instead of 1.9bn, since milestone is now
+    1.9.
+  * debian/postinstrm.in, debian/rules, debian/xulrunner-1.9.install,
+    debian/xulrunner-1.9.postinst: Don't ship regxpcom, as it is not supported
+    upstream anymore, and generate components registry by a void call to
+    xpcshell, which does the work.
+  * debian/control: Build depends on xvfb, xfonts-base and xauth to be able to
+    launch xulrunner tests.
+  * debian/rules, debian/test: Implement a test application and run it during
+    the test rule. Test both with and without libjemalloc, forcing memory
+    allocation libraries with LD_PRELOAD to avoid relying on what is linked
+    at build time, as it may change in the future. If we built against
+    libjemalloc and the test fails, automatically rebuild without.
+  * js/src/xpconnect/shell/xpcshell.cpp: Drop ancient code in xpcshell that
+    ended up making error messages not being included.
+  * debian/control, debian/rules: Insert carriage returns where lines are too
+    long. This will improve diff readability in the future.
+  * debian/mozconfig:
+    + Enable url-classifier component ; it is needed by iceweasel.
+    + Enable startup-notification.
+  * debian/xulrunner-1.9.install: Don't put nsXULAppInstall.js component in
+    the xulrunner-1.9 package.
+  * debian/control: Adapt conflicts accordingly.
+  * debian/xulrunner-1.9-common.install: Use wildcards to install typelibs
+    and javascript components, since we don't put any in another package.
+  * debian/python-xpcom.install: Add new pyabout.py component.
+  * docshell/base/nsAboutRedirector.cpp: Don't register about:about, which
+    doesn't exist, and register about:, giving it permission to run chrome
+    scripts.
+  * xpfe/appshell/src/Makefile.in, xpfe/appshell/src/nsAppShellFactory.cpp:
+    Remove nsAbout, from appshell, since we made nsAboutRedirector happily
+    replace it.
+  * debian/debAbout.js, debian/rules: Add a component to handle special
+    about:debian, about:bugs and about:readme.debian urls.
+  * modules/libjar/nsJAR.cpp: Apply suggestions from Christian Biesinger in
+    bz#368428. The patch will eventually be applied upstream.
+  * storage/src/mozStorageConnection.cpp,
+    storage/test/unit/test_storage_connection.js: Apply patch from bz#421482
+    to mitigate I/O issues with sqlite fsync()ing.
+  * toolkit/content/Makefile.in, toolkit/content/about.xhtml,
+    toolkit/content/jar.mn: Don't hardcode the XRE version number in the
+    about: page.
+  * toolkit/content/about.xhtml:
+    + Unhide release notes link, but only if app.releaseNotesURL is defined.
+    + Don't put an about:blank link when there is no vendorURL defined.
+    + Add links for about:bugs and about:README.Debian.
+  * toolkit/locales/en-US/chrome/global/about.dtd: Add corresponding en_US
+    strings.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 24 May 2008 19:24:54 +0200
+
+xulrunner (1.8.1.14-3) unstable; urgency=low
+
+  * debian/patches/38_mips_xpcom.dpatch: Add -fPIC to flags given to the
+    assembler, and clean-up the Makefile. This will fix current xpcom
+    brokenness on mips.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 12 May 2008 17:15:45 +0200
+
+xulrunner (1.9~b5-4) experimental; urgency=low
+
+  * js/src/jsfun.h: use struct JSArenaPool instead of undefined opaque
+    JSArenaPool type. bz#430955.
+  * content/html/document/src/nsHTMLFragmentContentSink.cpp,
+    embedding/browser/gtk/src/EmbedContextMenuInfo.cpp,
+    embedding/browser/gtk/src/EmbedPasswordMgr.cpp,
+    extensions/canvas3d/src/nsCanvas3DModule.cpp,
+    extensions/cck/browser/resources/content/cckwizard/srcfiles/cckService.js.in,
+    extensions/metrics/build/nsMetricsModule.cpp,
+    extensions/metrics/src/nsLoadCollector.cpp,
+    extensions/metrics/src/nsMetricsService.cpp,
+    extensions/metrics/test/TestMetricsConfig.cpp,
+    js/src/jsapi.h, parser/xml/src/nsSAXXMLReader.cpp,
+    toolkit/components/places/src/nsFaviconService.cpp,
+    toolkit/components/places/src/nsMaybeWeakPtr.h,
+    toolkit/components/places/src/nsNavHistory.cpp,
+    toolkit/components/places/src/nsNavHistoryQuery.h,
+    toolkit/components/satchel/src/nsStorageFormHistory.h,
+    toolkit/components/url-classifier/src/nsUrlClassifierDBService.h:
+    Remove MOZILLA_1_8_BRANCH ifdefs. bz#398810, bz#398811.
+  * debian/control, debian/xulrunner-dev-static.install: Rename
+    xulrunner-dev-static package to xulrunner-dev-bin.
+  * debian/xulrunner-dev-bin.install, debian/xulrunner-1.9.install: Move
+    xpidl, xpt_link and xpt_dump binaries to xulrunner-dev-bin.
+  * debian/control: Add shlibs:Depends to Depends list for xulrunner-dev-bin.
+  * debian/pycompat: Removed.
+  * debian/python-xpcom.postinst, debian/python-xpcom.prerm: Fix directory
+    used for component registration.
+  * debian/python-xpcom.install, debian/rules: Put python-xpcom files under
+    /usr/lib/pythonX.Y/site-packages. Closes: #478527.
+  * debian/mozconfig: Re-add default-mozilla-five-home, which appears to be
+    necessary for proper python-xpcom functionning.
+  * extensions/python/xpcom/src/module/Makefile.in: Add an rpath to _xpcom.so
+    so that libxpcom.so and libpyxpcom.so can be found when importing it from
+    python.
+  * extensions/python/xpcom/src/loader/Makefile.in: Add an rpath to
+    libpyloader.so xpcom component so that libpyxpcom.so can be found when
+    libxul loads the component.
+  * debian/control: Add a dependency on xulrunner-1.9 for python-xpcom.
+  * debian/rules:
+    + Don't use $(CURDIR) when not necessary.
+    + Symplify how we set PYTHON_SO.
+  * debian/xulrunner-1.9.install, debian/xulrunner-1.9-common.install: Move
+    /etc/gre.d/1.9.system.conf, /usr/lib/xulrunner-1.9/dependentlibs.list and
+    /usr/lib/xulrunner-1.9/platform.ini from xulrunner-1.9-common to
+    xulrunner-1.9. Closes: #478037.
+  * toolkit/content/jar.mn: Don't include content/global/buildconfig.html in
+    toolkit.jar.
+  * debian/rules: Install buildconfig.html under a subdirectory of the chrome,
+    and register it in toolkit.manifest.
+  * debian/xulrunner-1.9.install: Put this new buildconfig.html file in the
+    xulrunner-1.9 package so that build information is architecture dependent.
+  * debian/xulrunner-1.9-common.install: Put all chrome jars and manifests in
+    the package, instead of using fixed names followed by wildcards.
+  * debian/control: Make xulrunner-1.9 conflict with versions of
+    xulrunner-1.9-common containing moved files.
+  * debian/xulrunner-1.9.postinst: Do registration work on upgrade and
+    become trigger-aware. Also use regxpcom instead of relying on
+    autoregistration of components. Closes: #409049.
+  * debian/xulrunner-1.9.triggers: Add trigger to the xulrunner-1.9 package.
+  * debian/control: Build-depend on trigger-aware version of debhelper.
+  * debian/postinstrm.in: New postinst/postrm trigger-aware template for
+    python-xpcom and xulrunner-1.9-gnome-support, using the same registration
+    technique.
+  * debian/rules: Generate python-xpcom and xulrunner-1.9-gnome-support
+    maintainer scripts from debian/postinstrm.in
+  * debian/python-xpcom.postinst, debian/python-xpcom.prerm,
+    debian/xulrunner-1.9-gnome-support.postinst,
+    debian/xulrunner-1.9-gnome-support.prerm: Removed.
+  * debian/spidermonkey-bin.postinst: As versions 1.8 to 1.8.0.1-6 have long
+    been gone and were never in a stable release, we don't care about
+    upgrading properly from them anymore.
+  * xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp,
+    xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips.cpp: Implement more of
+    the new XPCOM ABI on m68k and mips. This fixes FTBFSes on these
+    architectures.
+  * xulrunner/stub/nsXULStub.cpp: Use application.ini in the executable dir
+    without following symlinks for the executable, if present. This will avoid
+    copying the stub in all xulrunner applications like upstream does.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 01 May 2008 14:41:15 +0200
+
+xulrunner (1.9~b5-3) experimental; urgency=low
+
+  * xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_m68k.cpp,
+    xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s,
+    xpcom/reflect/xptcall/src/md/unix/xptcinvoke_mips.cpp: Implement new XPCOM
+    API on m68k and mips. This fixes FTBFSes on these architectures.
+    Closes: #477068.
+  * configure, configure.in, xpcom/base/nscore.h, xpcom/glue/nsMemory.h,
+    xpcom/glue/nsProxyRelease.h, xpcom/glue/nsStringAPI.h,
+    xpcom/glue/standalone/Makefile.in, xpcom/glue/standalone/nsGlueLinking.h,
+    xpcom/glue/standalone/nsXPCOMGlue.h: Don't build the standalone glue as a
+    dynamic library. This is actually not maintenable without being a PITA.
+    Closes: #476920, #476921.
+  * debian/control:
+    + Invert xulrunner-dev and xulrunner-static-dev dependencies on each
+      other.
+    + xulrunner-dev doesn't need to conflict with libxul-dev now it doesn't
+      contain libxpcomglue.so.
+    + Modify xulrunner-dev-static description.
+  * (was: debian/patches/38_armel.dpatch)
+    configure.in, configure: Force to not use -fshort-wchar where it fails.
+    Closes: #476303.
+  * debian/xulrunner-dev-static.install, debian/xulrunner-dev.install: Move
+    all pkg-config files into xulrunner-dev.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 24 Apr 2008 21:12:31 +0200
+
+xulrunner (1.8.1.14-2) unstable; urgency=low
+
+  * xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ipf64.cpp: Apply fix from
+    bz#419350 for FTBFS with g++-4.3 on ia64. Closes: #477168.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 22 Apr 2008 22:24:18 +0200
+
+xulrunner (1.8.1.14-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2008-20, also known as CVE-2008-1380.
+  * debian/patches/38_armel.dpatch: Force to not use -fshort-wchar where it
+    fails. Closes: #476303.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 17 Apr 2008 21:08:57 +0200
+
+xulrunner (1.9~b5-2) experimental; urgency=low
+
+  * debian/control: Don't make xulrunner-dev depend on xulrunner (the older
+    package).
+  * debian/rules:
+    + Don't add the debian release version in platform.ini. This can create
+      some problems.
+    + Fixed sdk/lib/libxpcomglue.so symlink. Closes: #475614.
+    + Add nspr include files in /usr/include/xulrunner-1.9/(un|)stable/.
+    + Bump shlibs for libxpcomglue0d, and fail when symbols file is not
+      up-to-date.
+  * debian/libxpcomglue0d.symbols: Add symbols file.
+  * xpcom/glue/nsGREGlue.cpp: Fix FTBFS on architectures not defining
+    TARGET_XPCOM_ABI. Closes: #476092.
+  * debian/xulrunner-dev-static.install, debian/xulrunner-dev.install: Move
+    mozilla-gtkmozembed.pc from xulrunner-dev to xulrunner-dev-static.
+    Closes: #475613.
+  * xpcom/base/nscore.h, xpcom/glue/nsMemory.h, xpcom/glue/nsProxyRelease.h,
+    xpcom/glue/nsStringAPI.h: Export standalone glue symbols instead of hiding
+    them. This will make nsAString::BeginReading and many other symbols
+    available.
+  * xpcom/glue/standalone/Makefile.in: Force even more symbols to be exported
+    from standalone glue by removing visibiliby flags.
+  * config/config.mk: Fix FTBFS with newer hunspell due to local hunspell.hxx
+    (from version 1.1) being chosen over system hunspell.hxx because of
+    include flags.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 19 Apr 2008 13:05:22 +0200
+
+xulrunner (1.9~b5-1) experimental; urgency=low
+
+  * New upstream beta release (taken from upstream CVS).
+  * debian/mozconfig:
+    + Don't enable native uconv. I'm tired of maintaining this broken piece
+      of code (especially considering there are still know broken things).
+    + Don't build with flat chrome. The original need for that was to allow to
+      override content from other packages, but in the end this happened to be
+      made possible with extensions and proper overlays.
+  * debian/xulrunner-1.9-common.install:
+    + Don't install ucnative.xpt, which is native uconv's xpt file.
+    + Add new components files: nsBadCertHandler.js and exthelper.xpt.
+  * intl/uconv/native/nsINativeUConvService.idl,
+    intl/uconv/native/nsNativeUConvService.cpp,
+    intl/uconv/src/charsetalias.properties,
+    intl/uconv/src/nsCharsetConverterManager.cpp: Revert fixes to the native
+    uconv.
+  * debian/control:
+    + Build-depend on zip for jar chrome. This has the side effect to make
+      nsIPref.java removal from MozillaInterfaces-src.jar work.
+    + Bump build dependency on libnss3-dev, since we require additions only
+      available in latest version.
+  * config/config.mk, config/make-jars.pl, configure.in: Revert changes to
+    avoid needing zip when not required.
+  * configure: Updated.
+  * debian/xulrunner-1.9-gnome-support.install, debian/xulrunner-1.9.install:
+    Moved libimgicon.so from xulrunner-1.9-gnome-support to xulrunner-1.9.
+    This component doesn't require gnome, only standard gtk and glib.
+  * memory/jemalloc/Makefile.in, toolkit/library/Makefile.in: Don't link
+    libjemalloc statically into libxul, which has a potential of breaking
+    embedding applications.
+  * netwerk/cookie/src/Makefile.in: Don't turn warnings into errors.
+    Closes: #474925. (Hoping it will not turn in a runtime failure)
+
+ -- Mike Hommey <glandium@debian.org>  Fri, 11 Apr 2008 21:07:40 +0200
+
+xulrunner (1.9~b4-1) experimental; urgency=low
+
+  * New upstream beta release (taken from upstream CVS). Closes: #449448.
+    + Don't crash when font file is unreadable. Closes: #425233.
+    + Better rendering of some extreme conditions. Closes: #391024.
+    + MOZILLA_1_8_BRANCH is not defined anymore: Closes: #441059.
+    + Don't jump when clicking out of the search bar. Closes: #404759.
+    + Ligatures don't overlap the following glyph. Closes: #363159.
+  * debian/patches/*: Remove patches.
+  * debian/rules: Remove patch rules.
+  * debian/control: Don't depend on dpatch.
+  * debian/mozconfig: Use the new default cairo-gtk toolkit.
+  * (was: debian/patches/31_system_bz2.dpatch)
+    config/Makefile.in, config/autoconf.mk.in, config/system-headers,
+    configure.in, extensions/metrics/build/Makefile.in
+    extensions/metrics/src/Makefile.in,
+    extensions/metrics/test/Makefile.in,
+    toolkit/mozapps/update/src/updater/Makefile.in,
+    toolkit/mozapps/update/src/updater/updater.cpp,
+    toolkit/toolkit-tiers.mk: Allow to use system libbz2. bz#305782.
+  * (was: debian/patches/35_zip_cache.dpatch)
+    modules/libjar/nsJAR.cpp, modules/libjar/nsJAR.h: Invalidate cache for
+    modified jar files. bz#368428.
+  * (was: debian/patches/38_gnu.dpatch and debian/patches/38_kbsd.dpatch)
+    config/rules.mk, configure.in, xpcom/glue/standalone/Makefile.in,
+    xpcom/reflect/xptcall/src/md/unix/Makefile.in,
+    xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h: Support
+    building on GNU/kFreeBSD and GNU/Hurd. bz#356011.
+  * (was: debian/patches/38_hppa_xpcom.dpatch)
+    Most of the patch was applied upstream, but need a small fix in
+    xpcom/reflect/xptcall/src/md/unix/Makefile.in.
+  * (was: debian/patches/38_mips_xpcom.dpatch)
+    xpcom/reflect/xptcall/src/md/unix/Makefile.in,
+    xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s,
+    xpcom/reflect/xptcall/src/md/unix/xptcinvoke_mips.cpp,
+    xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s: Fix crashes on
+    mips. bz#258429.
+  * (was: debian/patches/60_js_binary.dpatch)
+    config/autoconf.mk.in, config/rules.mk, configure.in, js/src/Makefile.in:
+    Allow to build a standalone js binary. bz#331776.
+    js/src/xpconnect/shell/Makefile.in: Add readline support to xpcshell.
+    bz#331776.
+    js/src/js.c, js/src/xpconnect/shell/xpcshell.cpp: Avoid visibility hidden
+    issues with readline symbols. bz#331776.
+  * (was: debian/patches/60_pyxpcom.dpatch)
+    extensions/python/xpcom/src/Makefile.in: Allow to override the PYTHON_SO
+    variable.
+  * (was: debian/patches/65_native_uconv.dpatch)
+    intl/uconv/native/nsINativeUConvService.idl,
+    intl/uconv/native/nsNativeUConvService.cpp,
+    intl/uconv/src/nsCharsetConverterManager.cpp: Properly load invalid UTF-8
+    files with native uconv. bz#331748.
+    intl/uconv/src/charsetalias.properties: Fix aliases for gbk and euc-tw for
+    use with native uconv. bz#369403.
+  * (was: debian/patches/68_m68k_xpcom.dpatch)
+    xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_m68k.cpp,
+    xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp: Improve
+    assembly for m68k. bz#422337.
+  * (was: debian/patches/68_mips_performance.dpatch)
+    config/rules.mk, configure.in: Increase stability and performance on mips.
+    Reverted to Thiemo's original version for better followup with upstream
+    when it will happen (but already has to wait for bz#258429).
+  * (was: debian/patches/80_config.dpatch)
+    debian/rules: Use config.guess and config.sub from autotools-dev.
+  * (was: debian/patches/80_crmf.dpatch)
+    configure.in: Put the crmf library before the NSS libraries.
+  * (was: debian/patches/80_javaxpcom.dpatch)
+    extensions/java/xpcom/Makefile.in, toolkit/toolkit-makefiles.sh: Force
+    creation of Makefiles in extensions/java, even when javaxpcom is disabled.
+    Don't build the jars if DEB_NO_JAR is defined.
+  * (was: debian/patches/80_libxpcom_hack.dpatch)
+    js/src/xpconnect/shell/Makefile.in, xulrunner/app/Makefile.in: Force
+    libxpcom to be linked to xulrunner-bin and xpcshell so that it is loaded
+    in most cases.
+  * (was: debian/patches/80_no_examples.dpatch)
+    xulrunner/Makefile.in: Don't build example component.
+  * (was: debian/patches/80_no_sys_profile.dpatch)
+    xulrunner/app/Makefile.in: Don't install system profile.
+  * (was: debian/patches/80_system_libs.dpatch)
+    configure.in: Make sure we won't be bitten by upstream changing libjpeg,
+    libpng or zlib internal version, which makes system library not used even
+    though --with-system-* argument is given to configure.
+  * (was: debian/patches/80_xulrunner-config.dpatch)
+    build/unix/mozilla-config.in: Give more appropriate cflags and libs.
+  * (was: debian/patches/80_zip.dpatch)
+    config/config.mk, config/make-jars.pl, configure.in: Avoid needing zip if
+    not required. bz#331785.
+  * (was: debian/patches/81_soname.dpatch)
+    config/rules.mk, js/src/Makefile.in, toolkit/library/Makefile.in,
+    xpcom/stub/Makefile.in: Add soname to appropriate libraries. This is
+    a stripped down version, compared to the dpatch version, because we
+    actually are never going to use minor and micro version numbers. Also, we
+    now don't set a SO version on libxul and libxpcom because they will now
+    be dlloaded() by the standalone xpcomglue.
+  * (was: debian/patches/82_locale.dpatch)
+    xulrunner/app/xulrunner.js: Enable intl.locale.matchOS, and report the
+    locale correctly. bz#331779.
+  * (was: debian/patches/82_prefs.dpatch)
+    modules/libpref/src/init/all.js: Set javascript.options.showInConsole ;
+    Set DPI to system settings.
+  * (was: debian/patches/85_installer.dpatch)
+    xulrunner/setup/nsXULAppInstall.js: Install applications in /usr/local/lib
+    instead of /usr/lib.
+  * (was: debian/patches/85_no_register.dpatch)
+    xulrunner/app/nsXULRunnerApp.cpp: Remove (un|)registering system.
+  * (was: debian/patches/85_xpcomglue.dpatch)
+    configure.in, xpcom/base/nscore.h, xpcom/glue/standalone/Makefile.in,
+    xpcom/glue/standalone/nsGlueLinking.h,
+    xpcom/glue/standalone/nsXPCOMGlue.h: Build the xpcom glue as a shared
+    library. Now, also build the dependent xpcom glue.
+    xpcom/glue/standalone/nsGlueLinkingDlopen.cpp: Load DSOs from . when
+    directory is not given.
+  * Other patches have been removed either because incorporated or made
+    obsolete by this new upstream release.
+
+  * config/autoconf.mk.in, configure.in,
+    modules/libpr0n/decoders/png/nsPNGDecoder.cpp,
+    modules/libpr0n/decoders/png/nsPNGDecoder.h,
+    modules/libpr0n/encoders/png/nsPNGEncoder.cpp,
+    modules/libpr0n/encoders/png/nsPNGEncoder.h: Disable APNG support when
+    system libpng doesn't support it.
+  * Makefile.in, netwerk/dns/src/Makefile.in, xulrunner/build.mk: Make
+    distclean cleaner. While previous cleanups have been incorporated
+    upstream, some new files need to be removed. bz#333308.
+  * debian/control:
+    + Add new required build-dependency on libdbus-glib-1-dev.
+    + Build-Depend on libnspr4-dev >= 3.7.0.
+    + Build-Depend on libnss3-dev >= 3.12.0~beta2.
+    + Build-Depend on libcairo2-dev >= 1.5.
+    + Build-Depend on libgtk2.0-dev >= 2.10.
+  * debian/remove.nonfree: Updated for new binary blobs and removed
+    directory/c-sdk removals, since the directory is not here anymore.
+    Also, fixed removal of files with names containing spaces.
+  * debian/copyright: A whole lot of files have been either removed or
+    relicensed under MPL/GPL/LGPL tri-license. Some new external libraries
+    have been incorporated into the source tree, too.
+  * debian/mozconfig: Don't build crash reporter (Google Breakpad).
+  * debian/mozconfig, debian/control: Use system sqlite and lcms.
+  * configure.in: Don't check lcms version, for the same reason as libpng
+    and others.
+  * js/src/Makefile.in, debian/control, debian/libmozjs0d.install,
+    debian/rules: Bumped libmozjs SO version to 1d.
+  * debian/libmozjs0d.README.Debian: Removed, as it is not relevant anymore.
+  * intl/uconv/native/nsNativeUConvService.cpp: Fix native uconv so that
+    XmlHTTPRequest works properly. bz#342133.
+  * xulrunner/installer/Makefile.in, debian/rules: Build as if we were version
+    1.9 instead of 1.9b4. Also fix permissions for /etc/gre.d file.
+  * debian/control, debian/*: Change package names and installed files to fit
+    new upstream.
+  * debian/rules:
+    + Adapted to new upstream files and install method. There is unfortunately
+      only one install target now, and it must be run after build-jars when
+      building binary-indep. This is why we must set .NOTPARALLEL.
+    + Removed source target, which isn't appropriate anymore.
+    + Changed the way we set optimization flags so that we use upstream ones,
+      and arrange LDFLAGS so that -Wl,--as-needed appears before -lpthread
+      during builds.
+  * debian/mozconfig:
+    + Don't set mozilla default home, it's not useful anymore.
+    + Disable stripping of binaries during build.
+  * debian/xulrunner.conf: Removed. The equivalent is now provided by upstream
+    build system.
+  * xulrunner/app/Makefile.in: Link libjemalloc to the xulrunner binary.
+  * libxpcomglue0d.preinst, libxpcomglue0d.postrm: Divert libxpcomglue.so.0d
+    from libxul0d so that both packages can be installed at the same time.
+
+  * (was: debian/patches/99_configure.dpatch)
+    configure: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 06 Apr 2008 13:01:04 +0200
+
+xulrunner (1.8.1.13-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2008-{13-19}, also known as
+    CVE-2007-4879, CVE-2008-0416, CVE-2008-1195, CVE-2008-1233,
+    CVE-2008-1234, CVE-2008-1235, CVE-2008-1236, CVE-2008-1237,
+    CVE-2008-1238, CVE-2008-1240, CVE-2008-1241.
+  * debian/patches/10_SECAlgorithmIDTemplate.dpatch: Removed, as applied
+    upstream.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 26 Mar 2008 22:50:09 +0100
+
+xulrunner (1.8.1.12-5) unstable; urgency=low
+
+  * debian/patches/65_native_uconv.dpatch: Fixed BOM removal added in release
+    1.8.1.12-3. Closes: #465321.
+  * debian/patches/80_crmf.dpatch: Put the crmf library before the NSS
+    libraries. Closes: #470442.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 11 Mar 2008 22:11:36 +0100
+
+xulrunner (1.8.1.12-4) unstable; urgency=low
+
+  * debian/patches/10_SECAlgorithmIDTemplate.dpatch: Move
+    SECAlgorithmIDTemplate around so that the lack of its definition in
+    secdert.h doesn't break the build. bz#399589. Closes: #470094.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 09 Mar 2008 11:14:17 +0100
+
+xulrunner (1.8.1.12-3) unstable; urgency=low
+
+  * debian/patches/99_configure.dpatch: Forgot to update in previous release.
+    Closes: #408745.
+  * debian/patches/65_native_uconv.dpatch: Remove BOM from UTF-16 output.
+    Closes: #456338, #465321, #461450.
+  * debian/rules: Don't ignore $(MAKE) distclean errors.
+  * debian/control:
+    + Bumped Standards-Version to 3.7.3.0. No changes.
+    + Turned Homepage indications in descriptions into a control field.
+    + Fixed GNOME and GnomeVFS capitalization/spelling.
+    + Build depend on binutils >= 2.17 instead of 2.17-1 for mips and mipsel.
+  * debian/spidermonkey-bin.menu: Moved into the Applications/Programming
+    section.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 08 Mar 2008 20:47:27 +0100
+
+xulrunner (1.8.1.12-2) unstable; urgency=low
+
+  * debian/patches/01_gtkmozembed_change_toplevel.dpatch: Removed, as it is
+    useless (epiphany doesn't support to move tabs between windows), and
+    can lead to crashes. Closes: #461351.
+  * debian/patches/38_kbsd.dpatch, debian/patches/38_gnu.dpatch,
+    debian/patches/80_uname.dpatch: Support GNU/Hurd, and fix FTBFS on
+    GNU/kFreeBSD. Thanks Samuel Thibault. Closes: #408745, #433126.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 23 Feb 2008 17:05:32 +0100
+
+xulrunner (1.8.1.12-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2008-01 to mfsa-2008-06 and mfsa-2008-08 to mfsa-2008-11,
+    also known as CVE-2008-0412, CVE-2008-0413, CVE-2008-0414, CVE-2008-0415,
+    CVE-2008-0417, CVE-2008-0418, CVE-2008-0419, CVE-2008-0591,
+    CVE-2008-0592, CVE-2008-0593, CVE-2008-0594.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 09 Feb 2008 01:21:17 +0100
+
+xulrunner (1.8.1.11-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2007-37 to mfsa-2007-39, also known as CVE-2007-5947,
+    CVE-2007-5959, CVE-2007-5960.
+  * debian/patches/99_configure.dpatch: Updated, and removed nsprpub/configure
+    changes: we've not been changing nsprpub/configure.in since we use system
+    nspr.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 01 Dec 2007 15:08:29 +0100
+
+xulrunner (1.8.1.9-2) unstable; urgency=low
+
+  * debian/patches/30_cairo_xlib.dpatch: Properly get cairo lib dependencies
+    and don't rely on GTK bringing them, which just don't happen anymore (see
+    #343711). Patch from bz#344818. Closes: #451464.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 17 Nov 2007 15:02:22 +0100
+
+xulrunner (1.8.1.9-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+    + xpidl produces proper java file names. Closes: #435689.
+  * Fixes mfsa-2007-29 to mfsa-2007-36, also known as CVE-2007-1095,
+    CVE-2007-2292, CVE-2006-2894, CVE-2007-3511, CVE-2007-4841,
+    CVE-2007-5334, CVE-2007-5337, CVE-2007-5338, CVE-2007-5339,
+    CVE-2007-5340. Closes: #447734.
+  * debian/remove.nonfree: Remove some more object files.
+  * debian/control: Remove build dependency on ecj-bootstrap, as it doesn't
+    exist anymore, and is not useful nowadays. Closes: #441511.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/patches/35_python_2.5.dpatch: Fix FTBFS with python 2.5. Thanks
+    Alexander Sack. Closes: #431483.
+  * debian/patches/10_gdkpango_system_wrapper.dpatch: Create a system wrapper
+    for gdkpango.h to avoid FTBFS because of default visibility.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 01 Nov 2007 12:52:17 +0100
+
+xulrunner (1.8.1.6-1) unstable; urgency=low
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2007-{26,27}, also known as CVE-2007-3844, CVE-2007-3845.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 01 Aug 2007 23:11:08 +0200
+
+xulrunner (1.8.1.5-1) unstable; urgency=high
+
+  * New security/stability upstream release (taken from upstream CVS)
+  * Fixes mfsa-2007-{18-22}, mfsa-2007-{24-25}, also known as
+    CVE-2007-3089, CVE-2007-3285, CVE-2007-3656, CVE-2007-3734,
+    CVE-2007-3735, CVE-2007-3736, CVE-2007-3737, CVE-2007-3738.
+  * debian/remove.nonfree: add more binary files from tarball that don't
+    have sources (Thanks Alexander Sack).
+  * debian/patches/35_psm_wakeups.dpatch: Removed, as applied upstream.
+  * debian/patches/80_system_libs.dpatch: Make sure we won't be bitten by
+    upstream changing libjpeg, libpng or zlib internal version, which
+    makes system library not used even though --with-system-* argument
+    is given to configure. This time, it happened with libpng.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/patches/00list: Updated accordingly.
+  * debian/rules: Bumped shlibs for libmozjs as this version introduced 2
+    new symbols.
+  * debian/control: Even laxer dependencies.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 21 Jul 2007 23:39:50 +0200
+
+xulrunner (1.8.1.4-3) unstable; urgency=low
+
+  * debian/patches/60_js_binary.dpatch: Avoid visibility hidden issues with
+    readline symbols.
+  * debian/patches/85_xpcomglue.dpatch: Fix so that visibility issues don't
+    raise with gcc 4.2.
+  * debian/patches/31_system_bz2.dpatch: Added system wrapper for bzlib.h.
+  * debian/patches/80_hunspell.dpatch: Added system wrapper for hunspell.hxx.
+    All these fix FTBFS with gcc 4.2. Closes: #429744.
+  * debian/control: Fixup some dependencies so that architectures that take
+    time to build can still install libxul-dev.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 01 Jul 2007 14:23:56 +0200
+
+xulrunner (1.8.1.4-2) unstable; urgency=low
+
+  * debian/patches/85_URI_fixup.dpatch: Enable keyword lookup by default in
+    URI fixup. Temporary until Galeon and Kazehakase are fixed. (bugs #428244
+    and #428245)
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/80_xulrunner-config.dpatch: Substitutions being done only
+    once a line, split component_includes fixup. Thanks Alexander Sack.
+    Closes: #427079.
+  * debian/libxul0d.postinst, debian/python-xpcom.postinst,
+    debian/python-xpcom.prerm, debian/xulrunner-gnome-support.postinst,
+    debian/xulrunner-gnome-support.prerm: Remove compreg.dat and xpti.dat
+    when installing/removing packages. This avoids problems with compreg.dat
+    files generated ages ago. Closes: #426569, #427569.
+  * debian/patches/82_prefs.dpatch: Set layout.css.dpi to 0 instead of -1.
+    libxul will use system DPI and avoid using huge fonts on systems where
+    DPI < 96. Closes: #426229
+  * debian/control: Improved spidermonkey-bin short description. Thanks CJ
+    Fearnley. Closes: #426614.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 10 Jun 2007 09:46:32 +0200
+
+xulrunner (1.8.1.4-1) unstable; urgency=high
+
+  * New upstream release (taken from upstream CVS)
+  * Fixes several security issues, including CVE-2007-1116. Closes: #415945.
+  * Acknowledge Steve Langasek's NMU.
+  * debian/patches/65_native_uconv.dpatch: Properly handle when UTF16
+    character can't be converted to the destination charset, avoiding
+    an infinite loop. Closes: #424042.
+  * debian/patches/10_dash_workaround.dpatch,
+    debian/patches/10_pangoxft.dpatch,
+    debian/patches/10_system_nss.dpatch,
+    debian/patches/15_atk_crash.dpatch,
+    debian/patches/15_gtk_dropdown.dpatch,
+    debian/patches/15_passwdmgr.dpatch,
+    debian/patches/20_visibility.dpatch,
+    debian/patches/82_ssl.dpatch: Removed, as being applied upstream.
+  * debian/patches/20_about:plugins.dpatch,
+    debian/patches/25_gnome_helpers_with_params.dpatch,
+    debian/patches/30_distclean.dpatch,
+    debian/patches/65_native_uconv.dpatch,
+    debian/patches/80_javaxpcom.dpatch,
+    debian/patches/81_sonames.dpatch,
+    debian/patches/85_sidebar.dpatch: Adapted to upstream changes.
+  * debian/patches/10_toolkit_library.dpatch: Add Freetype library to the
+    list of linked libraries. Stolen from bz#340795.
+  * debian/patches/61_javaxpcom.dpatch:
+    + Correctly build java files. This part is fixed on upstream trunk.
+    + Install jar file with appropriate permissions. bz#350886 comment #17.
+  * debian/libxul-common.install: Add new components, and remove
+    xmlextras.xpt, which disappeared.
+  * debian/patches/80_xulrunner-config.dpatch: Patch mozilla-config.in so that
+    the changes end up in xulrunner-config.
+  * debian/patches/00list: Updated accordingly.
+  * debian/xulrunner-config: Removed.
+  * debian/copyright: Fixed typo. Thanks to Sam Hocevar.
+  * debian/rules:
+    + Bumped shlibs for libmozjs0d and libxul0d.
+    + Removed shlibdeps tweaks.
+    + Removed dh_makeshlibs call for packages others than libmozjs0d and
+      libxul0d: there are no such packages anymore.
+    + Adapted rules to create javaxpcom jar files.
+    + Revert change from version 1.8.0.11-2 and 1.8.0.10-3 as gcj-4.1 and
+      pcmanx-gtk2 should be fixed now.
+  * debian/patches/80_hunspell.dpatch: Replace myspell support with hunspell,
+    and allow to build with system shared library. Stolen from iceape.
+  * debian/patches/99_configure.dpatch: Updated with autoconf.
+  * debian/mozconfig:
+    + Don't disable xpcom obsolete, it is needed for xpinstall.
+    + Enable spellchecker and use of the system hunspell library.
+      Closes: #404726.
+  * debian/control:
+    + Build depend on appropriate version of libhunspell.
+    + Remove libsmjs-dev and libsmjs1 transition packages.
+  * debian/libxul0d.install, debian/libxul-common.install: Install the
+    spellchecker components.
+  * debian/libxul0d.links: Create the /usr/lib/xulrunner/dictionaries link.
+  * debian/libsmjs-dev.links, debian/libsmjs1.links: Removed.
+  * debian/patches/65_mozjs_abi.dpatch:  Make 1.8.1 ABI compatible with
+    version 1.8.0.
+  * debian/libmozjs0d.README.Debian: Added a note about ABI compatibility.
+  * debian/patches/35_psm_wakeups.dpatch: Avoid some cpu wake ups in PSM.
+    bz#380558.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 26 May 2007 20:28:00 +0200
+
+xulrunner (1.8.0.11-4.1) unstable; urgency=low
+
+  * Non-maintainer upload
+  * Build with -Wl,--no-relax on alpha, to work around a binutils bug
+    causing a build failure.
+
+ -- Steve Langasek <vorlon@debian.org>  Sun, 20 May 2007 18:14:00 -0700
+
+xulrunner (1.8.0.11-4) unstable; urgency=low
+
+  * debian/rules: Don't make shlibs for components (which happened to make one
+    for libsystem-pref.so, because of the -).
+  * debian/mozconfig: Disabled spell checker, it requires too much cherry
+    picking from 1.8.1 to be any useful for epiphany.
+  * debian/patches/35_system_myspell.dpatch: Removed.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated with autoconf.
+  * debian/control: Removed build dependency on libmyspell-dev.
+  * debian/libxul0d.install, debian/libxul-common.install: Don't install
+    spellchecker files.
+  * debian/libxul0d.links: Don't create the /usr/lib/xulrunner/dictionaries
+    link.
+  * debian/rules:
+    + Fixed the .pc files so that xpcom and js depend on xulrunner-nspr, so
+      that it can be taken from any existing version of libnspr, even the
+      one from older xulrunner releases, not only the one from the new
+      separate package.
+    + Removed shlib versioning for libxul0d, which was due to spellchecker
+      being added.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 09 Apr 2007 23:55:49 +0200
+
+xulrunner (1.8.0.11-3) experimental; urgency=low
+
+  * debian/control:
+    + Removed libnspr* and libnss* packages.
+    + Adapted dependencies accordingly.
+    + Build-Depend on libnspr4-dev.
+    + Build-Depend on libnss3-dev (>= 3.11.5-2) for nss-config and libcrmf.
+    + Build-Depend on libmyspell-dev.
+    + Bumped Standards-Version to 3.7.2.2. No changes.
+  * debian/libnspr*, debian/libnss*: Removed.
+  * debian/rules:
+    + Replaced some = with :=.
+    + Removed unused AUTOCONF_DIRS variable.
+    + Removed rules for libnspr and libnss.
+    + Added links to nspr include and lib files to sdk.
+  * debian/patches/18_kbsd_nspr.dpatch, debian/patches/60_nspr_m4.dpatch,
+    debian/patches/25_entropy.dpatch, debian/patches/28_ppc64_build.dpatch:
+    debian/patches/38_mips64_build.dpatch,
+    debian/patches/80_security_build.dpatch,
+    debian/patches/80_security_tools.dpatch,
+    debian/patches/38_unsupported_arch_build.dpatch: Removed.
+  * debian/patches/10_system_nss.dpatch: Build with system nss. bz#255408.
+  * debian/patches/35_system_myspell.dpatch: Build with system myspell.
+    Stolen from iceape.
+  * debian/patches/00list: Updated accordingly.
+  * debian/mozconfig:
+    + Use --with-system-nspr and the newly added --with-system-nss.
+    + Enable spellchecker.
+  * debian/patches/80_config.dpatch: Don't put the config.{guess|sub}
+    workaround in the nsprpub directory.
+  * debian/patches/38_kbsd.dpatch: Removed parts that apply to the nss
+    directories.
+  * debian/patches/81_sonames.dpatch: Removed parts that apply to both
+    nspr and nss directories.
+  * debian/patches/99_configure.dpatch: Removed part for the nspr configure
+    script and updated with autoconf.
+  * debian/rules: Set shlibs for libxul0d to versions higher than
+    1.8.0.11-3.
+  * debian/libxul0d.install: Install the spellchecker component.
+  * debian/libxul0d.links: Create the /usr/lib/xulrunner/dictionaries link.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 28 Mar 2007 21:24:21 +0200
+
+xulrunner (1.8.0.11-2) unstable; urgency=low
+
+  * debian/rules: Use real upstream version instead for xulrunner-plugin.pc
+    dependency on xulrunner-xpcom.pc. Closes: #416425.
+
+ -- Mike Hommey <glandium@debian.org>  Wed, 28 Mar 2007 08:05:04 +0200
+
+xulrunner (1.8.0.11-1) unstable; urgency=low
+
+  * New upstream release (taken from upstream CVS)
+  * Fixes mfsa-2007-11.
+  * debian/python-xpcom.postinst, debian/python-xpcom.prerm: Added missing
+    component registration/unregistration.
+  * debian/patches/25_gnome_helpers_with_params.dpatch: Make MIME registry
+    use system mime.types when it doesn't get extensions from the Gnome
+    registry. Closes: #414008.
+  * debian/rules: Add the debugging symbols from python-xpcom to the
+    libxul0d-dbg package.
+  * debian/control:
+    + Make python-xpcom conflict with epiphany-browser until epiphany
+      fixes its problems with python thread state. Closes: #416031.
+    + Add the fact that python-xpcom debugging symbols are in the
+      libxul0d-dbg package.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 24 Mar 2007 18:04:03 +0100
+
+xulrunner (1.8.0.10-3) unstable; urgency=low
+
+  * debian/rules: Re-add xulrunner-xpcom requirement in xulrunner-plugin.pc,
+    until classpath, gcj-4.1 and pcmanx-gtk2 get fixed. Closes: #413964.
+
+ -- Mike Hommey <glandium@debian.org>  Fri,  9 Mar 2007 08:14:35 +0100
+
+xulrunner (1.8.0.10-2) unstable; urgency=low
+
+  * debian/copyright: Added licensing terms for the content in the debian
+    directory.
+  * debian/patches/15_passwdmgr.dpatch: Restore parts that were actually
+    NOT applied upstream, and adapt them. Thanks Sam Hocevar for spotting
+    this. Closes: #413991.
+
+ -- Mike Hommey <glandium@debian.org>  Thu,  8 Mar 2007 19:08:10 +0100
+
+xulrunner (1.8.0.10-1) unstable; urgency=low
+
+  * New upstream release (taken from upstream CVS)
+  * Fixes mfsa-2007-{01-07}, also known as
+    CVE-2006-6077, CVE-2007-0008, CVE-2007-0009, CVE-2007-0045,
+    CVE-2007-0775, CVE-2007-0776, CVE-2007-0777, CVE-2007-0778,
+    CVE-2007-0779, CVE-2007-0780, CVE-2007-0800, CVE-2007-0981,
+    CVE-2007-0995.
+  * debian/patches/35_pango_null_char.dpatch: Avoid freeze/crash when null
+    characters are present in justified text by discarding NULL characters
+    before displaying. bz#366902. Closes: #406713.
+  * debian/patches/20_pangoxft.dpatch: Renamed to 10_pangoxft.dpatch and
+    updated with patch from bz#338446 (Stolen from iceape, actually)
+    Also added MOZ_PANGO_LIBS to build command line for the toolkit library.
+  * debian/patches/15_atk_crash.dpatch: Fix random crashed in GetMaiAtkType.
+    bz#302250. (Stolen from iceape, too)
+  * debian/control: Tighten dependency of libxul0d on libxul-common.
+  * debian/patches/15_pango_textarea_position.dpatch: Fix for cursor position
+    when moving in a textarea. bz#366796. Closes: #408914.
+  * debian/patches/35_zip_cache.dpatch: Invalidate cache for a zip file that
+    got modified. It will prevent corruption of the XUL FastLoad cache when
+    upgrade is performed while an instance of the application is running.
+    bz#368428.
+  * debian/patches/80_config.dpatch: Use config.guess and config.sub from
+    autotools-dev.
+  * debian/rules: Don't install config.{guess,sub}, since that was done as a
+    dpatch.
+  * debian/patches/15_nspr_setuid.dpatch,
+    debian/patches/25_passwdmgr_crash.dpatch,
+    debian/patches/20_broken_perl.dpatch: Removed, as being applied upstream.
+  * debian/patches/15_passwdmgr.dpatch,
+    debian/patches/30_distclean.dpatch: Removed parts that were applied
+    upstream.
+  * debian/patches/18_kbsd_nspr.dpatch, debian/patches/25_entropy.dpatch:
+    debian/patches/38_kbsd.dpatch, debian/patches/80_security_tools.dpatch:
+    debian/patches/80_security_build.dpatch,
+    debian/patches/60_xpcomstub.dpatch, debian/patches/61_javaxpcom.dpatch,
+    debian/patches/81_sonames.dpatch, debian/patches/85_installer.dpatch
+    debian/patches/15_passwdmgr.dpatch : Adapted to upstream changes.
+  * debian/patches/80_zip.dpatch: Removed part that is not needed anymore due
+    to changes upstream.
+  * debian/patches/99_configure.dpatch: Updated with autoconf.
+  * debian/control: Make libxul-dev and libmozjs-dev conflict with old
+    versions of mozilla-browser, not the current transition packages for
+    iceape-browser that don't contain conflicting files anymore.
+    Closes: #407966.
+  * debian/libnss3-0d.install: Install libfreebl files.
+  * debian/rules:
+    - Run shlibsign on libfreebl files.
+    - Bump shlibs for libnss3-0d and libnspr4-0d, as they introduced new
+      symbols.
+  * debian/patches/15_gtk_dropdown.dpatch: Fix for focus problem with drop
+    down lists. bz#281551. Closes: #409889.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/80_security_build.dpatch: Also added a dirty hack to load
+    libfreebl from /usr/lib/xulrunner.
+  * debian/patches/80_security_tools.dpatch: Also disable rpath.
+
+ -- Mike Hommey <glandium@debian.org>  Thu,  1 Mar 2007 19:01:34 +0100
+
+xulrunner (1.8.0.9-1) unstable; urgency=low
+
+  * New upstream release (taken from upstream CVS)
+  * Fixes mfsa-2006-{68-73} also known as
+    CVE-2006-6497, CVE-2006-6498, CVE-2006-6499, CVE-2006-6500,
+    CVE-2006-6501, CVE-2006-6502, CVE-2006-6503, CVE-2006-6504.
+  * Removed non-free and sourceless binaries from source package
+    with the script from the gnuzilla project, with 2 additional removals of
+    IETF files. Closes: #393422.
+    You can find this modified script for reference in debian/remove.nonfree.
+    Note this script also removes useless CVS files.
+  * debian/patches/80_uname.dpatch: Fix OS_TARGET so that it is correctly set
+    to Linux for things that expect this value instead of linux-gnu (such as
+    the extensions manager)
+  * debian/libxul0d.links: Added a link for libgtkembedmoz in
+    /usr/lib/xulrunner. Closes: #393440.
+  * debian/patches/15_passwdmgr.dpatch: Adapted to changes in upstream. Thanks
+    to Andreas Metzler.
+  * debian/patches/35_crash_focus.dpatch: Removed: applied upstream.
+  * debian/patches/15_nspr_setuid.dpatch: Patches from bz#351470 and bz#365703
+    to fix privilege escalation issues with setuid/setgid program linked
+    against libnspr and some other boundaries issue. Closes: #405062.
+  * debian/patches/18_m68k_xpcom.dpatch: Apply changes provided by Roman
+    Zippel to fix FTBFS of third party software on m68k. Closes: #402011.
+    Renamed as 68_m68k_xpcom.dpatch, since it needs to be sent upstream.
+  * debian/libnss3-dev.links: Add nss.pc symlink to xulrunner-nss.pc.
+    Closes: #402846.
+  * debian/patches/38_kbsd.dpatch, debian/patches/38_mips64_build.dpatch,
+    debian/patches/80_uname.dpatch, debian/patches/18_kbsd_nspr.dpatch:
+    Applied patch from Petr Salinger to build on GNU/kFreeBSD.
+    Closes: #388475.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated with autoconf.
+  * debian/patches/81_soname.dpatch: Updated to fit changes to Linux2.6.mk in
+    38_kbsd.dpatch.
+  * debian/patches/65_native_uconv.dpatch:
+    - Reworked so that UTF-16 is used internally instead of UCS-2, and
+      improved to better handle corner cases.
+    - Allow claimed iso-8859-1 actually encoded as windows-1252 to be
+      converted flawlessly. Closes: #368779, #401784, #405681
+
+ -- Mike Hommey <glandium@debian.org>  Sat,  6 Jan 2007 17:51:16 +0100
+
+xulrunner (1.8.0.8-1) unstable; urgency=high
+
+  * New upstream release (taken from upstream CVS)
+  * Fixes several security issues, CVE-2006-5464, CVE-2006-5748,
+    CVE-2006-5462, CVE-2006-5463, CVE-2006-4310 being some of these.
+  * debian/patches/15_print_fontconfig.dpatch,
+    debian/patches/15_embed_initial_visibility.dpatch: Removed:
+    Applied upstream.
+  * debian/patches/00list: Updated accordingly.
+  * debian/rules: Changed the way we use uptodate config.guess and config.sub.
+    If will make the .diff.gz file lighter.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 18 Nov 2006 23:04:54 +0100
+
+xulrunner (1.8.0.7-2) unstable; urgency=low
+
+  * debian/patches/65_nativeuconv.dpatch: Reimplement most of the native
+    uconv service so that it works as proper nsUnicode(En|De)coder
+    implementations and don't break things when a multibyte character is
+    split between two buffers. Also add a workaround so that backslash is not
+    turned into Yen in shift-jis, which breaks javascript code using escaping.
+    The layout code turns it back to Yen anyways.
+  * debian/control: Changed dependency versions of arch-indep packages on
+    arch-dependent packages. Closes: #385793.
+  * debian/patches/15_print_fontconfig.dpatch: Patch from bz#294879 to avoid
+    crash with fontconfig when printing. Thanks Alexander Sack.
+    Closes: #390140, #390472, #391119.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Fri,  6 Oct 2006 19:13:56 +0200
+
+xulrunner (1.8.0.7-1) unstable; urgency=low
+
+  * New upstream release (taken from the MOZILLA_1_8_0_7_RELEASE tag in
+    upstream CVS)
+
+  * Fixes the following security vulnerabilities:
+    CVE-2006-4340, CVE-2006-4253, CVE-2006-4565, CVE-2006-4566,
+    CVE-2006-4568, CVE-2006-4569, CVE-2006-4571.
+
+  * Removed patches from NMUs by Matthias Klose, because work done on java
+    build in this release makes them unnecessary.
+  * debian/patches/15_nodataprotocolcontentpolicy_fix.dpatch,
+    debian/patches/15_overthespot.dpatch: Removed, since they've been applied
+    upstream.
+  * debian/patches/35_embed_initial_visibility.dpatch: Renamed as
+    debian/patches/15_embed_initial_visibility.dpatch, since it got applied in
+    an upstream branch.
+  * debian/patches/80_security_tools.dpatch: Added missing backslash.
+    Closes: #385847.
+  * debian/patches/15_jni.dpatch: Patch from bz#333738 to update java stubs.
+  * debian/patches/80_javaxpcom.dpatch: Force creation of Makefiles in
+    extensions/java, even when javaxpcom is disabled. Don't build the jars if
+    DEB_NO_JAR is defined.
+  * debian/patches/00list: Updated accordingly.
+  * debian/mozconfig: Disable javaxpcom.
+  * debian/rules:
+    + Added rules to build the java class files only for binary
+      independent build. This way, no more waiting on java on buildds
+      (especially on arm).
+    + Build the javaxpcomglue from the bundled jni headers instead of the gcj
+      headers.
+  * debian/control: Adapted build dependencies so that the minimum is taken to
+    build the architecture dependant part, and added adequate
+    Build-Depends-Indep field.
+  * debian/patches/80_uname.dpatch: Don't use the ppc_linux stuff for ppc64.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 28 Sep 2006 20:20:59 +0200
+
+xulrunner (1.8.0.5-4.2) unstable; urgency=low
+
+  * Relax the dependencies even more, so that the -dev packages can be
+    installed with the arm binaries currently in the archive (1.8.0.4).
+
+ -- Matthias Klose <doko@debian.org>  Sun,  3 Sep 2006 13:39:45 +0200
+
+xulrunner (1.8.0.5-4.1) unstable; urgency=medium
+
+  * NMU
+  * Relax dependencies of the -dev packages on the libraries. Closes: #385793.
+
+ -- Matthias Klose <doko@debian.org>  Sun,  3 Sep 2006 10:41:10 +0200
+
+xulrunner (1.8.0.5-4) unstable; urgency=low
+
+  * debian/patches/*: Moved around after some triage.
+    Some changed names, some changed only ordering number.
+    One got split.
+    One, that was disabled because it has been applied upstream, got removed.
+    Two, who were depending on each other, being reordered, have been updated.
+  * debian/patches/30_distclean.dpatch: Added a bit more clean-up, not
+    necessary for xulrunner, but still better to have around. One of the added
+    bits will actually be useful for the 1.8.1 branch, when we'll remove
+    debian/patches/20_visibility.dpatch.
+  * debian/patches/00list: Added a nomenclature for the patches naming.
+
+  * debian/patches/80_security_tools.dpatch: Enable building of some NSS
+    tools.
+  * debian/patches/00list: Updated accordingly.
+  * debian/control:
+    + Added a libnss3-tools package to contain these NSS tools.
+    + Added proper conflicts to libnss3-tools.
+  * debian/libnss3-tools.install: Install the binary files in the newly
+    created package.
+  * debian/rules: Strip files from the libnss3-tools package and put the
+    debugging symbols into libnss3-dbg.
+    Closes: #377269.
+  * debian/control: Use the suggestion from lintian for binNMU safety instead
+    of our previous own. And really add binNMU safety to libnss3-dev.
+
+ -- Mike Hommey <glandium@debian.org>  Fri,  1 Sep 2006 07:38:05 +0200
+
+xulrunner (1.8.0.5-3) unstable; urgency=low
+
+  * The ${host_cpu} is not uname -m release.
+
+  * debian/patches/90_xpcom_hppa.dpatch: Added support for 'hppa' instead of
+    'parisc' and 'parisc64' since we changed from using `uname -m` to using
+    ${host_cpu}. I'm not putting hppa64 because I don't think the code works
+    on parisc64.
+  * debian/patches/01_uname.dpatch: Fixed
+    xpcom/reflect/xptcall/src/md/unix/Makefile.in so that it recognizes
+    powerpc instead of ppc, since we now use ${host_cpu}. Thanks a lot to
+    Michel Dänzer for the big hint. Closes: #383053, #383056, #383313.
+
+ -- Mike Hommey <glandium@debian.org>  Fri, 25 Aug 2006 20:37:55 +0200
+
+xulrunner (1.8.0.5-2) unstable; urgency=low
+
+  * The Fix-ups release.
+
+  * debian/patches/01_libxpcom_hack.dpatch: Force libxpcom to be linked to
+    xulrunner-bin, xpcshell and libgtkmozembed so that it is loaded in most
+    of the cases.
+  * debian/patches/01_passwdmgr_crash.dpatch: Avoid crash of the password
+    manager when embedding applications don't set a profile directory. Patch
+    from bz#294075. Closes: #376323.
+  * debian/patches/01_gnome_helpers_with_params.dpatch: Make helper
+    applications with parameters work. Adapted patch from bz#273524.
+    Closes: #381291.
+  * debian/patches/01_nspr_m4.dpatch: Avoid aclocal warnings about
+    underquoted definition of AM_PATH_NSPR". Closes: #382539.
+  * debian/patches/01_gtkmozembed_change_toplevel.dpatch: Fix drop-down menus
+    when gtkmozembed is moved from different toplevel. Patch from bz#296002.
+    Closes: #367106.
+  * debian/patches/01_overthespot.dpatch: Apply patch from bz#271815 for GTK2
+    IM Over-The-Spot support.
+  * debian/patches/00list: Updated accordingly.
+  * debian/control:
+    + Make the controls more BinNMU compliant. Closes: #384200, #384203.
+    + Bumped Standards-Version to 3.7.2.1. No changes.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 22 Aug 2006 23:15:16 +0200
+
+xulrunner (1.8.0.5-1) unstable; urgency=high
+
+  * The "upstream doesn't, so I do" release: Checked out the
+    XULRUNNER_1_8_0_5_RELEASE tagged code from upstream CVS.
+
+  * Fixes the following security vulnerabilities:
+    CVE-2006-3113, CVE-2006-3677, CVE-2006-3801, CVE-2006-3802,
+    CVE-2006-3803, CVE-2006-3805, CVE-2006-3806, CVE-2006-3807,
+    CVE-2006-3808, CVE-2006-3809, CVE-2006-3810, CVE-2006-3811,
+    CVE-2006-3812.
+
+  * debian/patches/01_pyxpcom_deadcode.dpatch: Remove pyxpcom dead code and
+    fix FTBFS on alpha this way. Closes: #381662.
+  * debian/patches/01_nodataprotocolcontentpolicy_fix.dpatch: Fix from
+    Firefox 1.5.0.6 to allow urls like mms:// in <object/>s
+  * debian/patches/01_uname.dpatch: Use ${host_*} variables instead of
+    uname in configure.in. Closes: #377418.
+    This is a minimalist patch to solve the particular bad assembler choice
+    issue. It would need a much greater work to actually do something totally
+    clean, but the current patch should be enough for Linux builds.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated with autoconf.
+  * debian/libxul-dev.install: Install files from SDK independently and don't
+    install the jar files from sdk/lib, since they are in the
+    libmozillainterfaces-java package.
+  * debian/control: Fixed typo in libxul-common description.
+  * debian/rules: Bumped shlibs for libmozjs as this version introduced 2
+    new symbols.
+
+ -- Mike Hommey <glandium@debian.org>  Wed,  9 Aug 2006 21:01:47 +0200
+
+xulrunner (1.8.0.4-2) unstable; urgency=low
+
+  * The "finally enabling these stuff" release.
+
+  * debian/watch: Stole the watch file from firefox.
+  * debian/rules, debian/control, debian/mozconfig,
+    debian/libmozillainterfaces-java.install,
+    debian/libmozillainterfaces-java.links, debian/*.conf: Enable pyxpcom
+    and javaxpcom again, with some changes on the python part, to fit the
+    new python policy. Closes: #173264, #277120, #373906.
+  * debian/python-xpcom.dirs, debian/python-xpcom.install: Replace the
+    previous .in files, and replace PYVERS by a wildcard.
+  * debian/control:
+    + Added build dependency on python-support and python-dev.
+    + Only create a python-xpcom package instead of pythonX.Y-xpcom.
+    + Added XB-Python-Version field to python-xpcom.
+    + Bumped debhelper dependency.
+  * debian/pyversions, debian/pycompat: Files necessary for dh_pysupport and
+    dh_python.
+
+  * debian/libxul-common.*, debian/libxul0d.*, debian/control: Create a new
+    libxul-common package for most architecture independent files.
+
+  * debian/control: Add a build dependency on binutils >= 2.17-1 for mips and
+    mipsel, where #274738 is fixed.
+  * debian/patches/90_mips_performance.dpatch: Remove the xgot hack.
+    Closes: #374389. Thanks Thiemo Seufer.
+    Also remove the specific setting of MOZ_DEBUG_FLAGS="-g" for mips, it's
+    built with -g anyways.
+  * debian/rules:
+    + Bump shlib for libmozjs0d because of a new symbol. Other libraries were
+      not subject to symbol additions, so we can keep them as they are.
+      Closes: #376374.
+    + Removed an extra parenthesis to really build with minimal toc on ppc64.
+      Dammit. Closes: #361188.
+  * debian/patches/01_crash_focus: Fix a crasher and several similar potential
+    crashers.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sat,  8 Jul 2006 14:22:43 +0200
+
+xulrunner (1.8.0.4-1) unstable; urgency=high
+
+  * The "finally a new upstream" release.
+  * Fixes the following security vulnerabilities:
+    CVE-2006-2775, CVE-2006-2776, CVE-2006-2778, CVE-2006-2780,
+    CVE-2006-2782, CVE-2006-2783, CVE-2006-2784, CVE-2006-2785,
+    CVE-2006-2786, CVE-2006-2787.
+
+  * debian/patches/00_securityfix.dpatch: Removed, since this release includes
+    all the security changes we brought from CVS in this patch.
+  * debian/patches/90_js_mipsel_endianness.dpatch: Removed, since it was
+    applied upstream.
+  * debian/patches/01_installer.dpatch,
+    debian/patches/01_javaxpcom.dpatch: Removed parts that were applied
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/01_distclean.dpatch,
+    debian/patches/01_xpcomglue.dpatch: Adapted to upstream changes.
+    upstream.
+  * debian/patches/99_configure.dpatch: Updated.
+
+  * debian/patches/01_pyxpcom.dpatch: Use a make variable for PYTHON_SO.
+  * debian/patches/90_unichar_alignment.dpatch.
+  * debian/patches/00list: Added 90_unichar_alignment.
+  * debian/rules:
+    + Set this PYTHON_SO variable when building python modules.
+    + Disabled strict aliasing from optimized builds.
+    + Build with minimal toc on ppc64. Closes: #361188.
+    + Fix for Gecko date extraction from client.mk.
+  * debian/mozconfig: Set default mozilla home.
+  * debian/control: Replaced some Conflicts with Replaces, which should be fine.
+
+  * debian/rules, debian/control, debian/mozconfig, debian/python-xpcom.dirs.in,
+    debian/python-xpcom.install.in, debian/libmozillainterfaces-java.install,
+    debian/libmozillainterfaces-java.links, debian/*.conf: Remove pyxpcom and
+    javaxpcom (again) packages and build. We want this release not to go through
+    NEW (again).
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 15 Jun 2006 01:05:34 +0200
+
+xulrunner (1.8.0.1-12) unstable; urgency=low
+
+  * The release of the Beast.
+  * debian/control:
+    + Added dependency upon libnss3-dev to libxul-dev.
+    + Fixed dependencies and conflicts so that the package should be binNMU
+      safe.
+    + Depends upon dpkg-dev >= 1.13.19 accordingly.
+  * debian/control, debian/rules: xulrunner must depend on libxul0d
+    versions >= 1.8.0.1-9. Closes: #370152.
+
+  * Add support for PyXPCOM:
+    + debian/mozconfig: Added the python/xpcom extension.
+    + debian/control: Added build dependency on python-dev. Added
+      python2.3-xpcom and python2.4-xpcom packages.
+    + debian/python-xpcom.install.in: Install template for python XPCOM files.
+    + debian/python-xpcom.dirs.in: Directories to create in python XPCOM
+      packages.
+    + debian/rules:
+      - Add rules to build the python xpcom packages.
+      - Add a shlibs.local hack to have python xpcom packages correctly depend
+        on libxul0d >= 1.8.0.1-12.
+    + debian/patches/01_no_examples.dpatch: Don't install the pyxpcom sample
+      component.
+    Closes: #173264, #277120.
+
+  * Add support for JavaXPCOM again:
+    + debian/mozconfig: --enable-javaxpcom.
+    + debian/*.conf: Set javaxpcom=1.
+    + debian/control: Added a build dependency on java-gcj-compat-dev
+      >= 1.0.56 to avoid #365934, and force build dependency on ecj-bootstrap
+      >= 3.1.2-6 to avoid #361608.
+    + debian/rules: Uncommented the javaxpcom related rules. Removed the
+      workarounds for #365934 and #361608. Install all MozillaInterfaces jar
+      files in the sdk directory.
+    + debian/libxul0d.install: Uncommented the javaxpcom files. Removed
+      installation of MozillaInterfaces.jar.
+    + debian/control: Added a libmozillainterfaces-java package for the public
+      java interfaces.
+    + debian/libmozillainterfaces-java.(install|links): Install
+      MozillaInterfaces.jar in /usr/share/java, and install the -src.jar file
+      in the sdk directory.
+    + debian/patches/01_pyxpcom.dpatch: Fix installation directory.
+    + debian/patches/00list: Updated to include this new patch.
+
+ -- Mike Hommey <glandium@debian.org>  Tue,  6 Jun 2006 23:26:09 +0200
+
+xulrunner (1.8.0.1-11) unstable; urgency=low
+
+  * The "Let's get migrated" release.
+  * debian/control: Don't build-depend on java-gcj-compat-dev.
+  * debian/libxul0d.install: Comment out the javaxpcom files installation.
+  * debian/rules: Comment out javaxpcom related rules, but put the fix for
+    jni.h detection nevertheless. Closes: #367863.
+  * debian/*.conf: Set javaxpcom=0.
+  * debian/mozconfig: --disable-javaxpcom.
+
+  * debian/rules:
+    + Remove extra parenthesis in the productComment.
+    + Generate the .chk file from the stripped libsoftokn3.so.0d.
+  * debian/patches/01_security.dpatch: Build the shlibsign utility again, so
+    that we can generate the .chk that can be useful for FIPS mode, but don't
+    build the .chk file automatically since we are going to strip the library,
+    making the .chk file obsolete.
+  * debian/patches/01_ssl.dpatch: Disable SSLv2 and SSLv3 40-bit ciphers.
+    Closes: #308334.
+  * debian/patches/01_soname.dpatch: Change the way libnss tries to find the
+    .chk file for FIPS mode so that the .chk file name needn't contain ".so"
+    when using a full SONAME.
+  * debian/patches/00list: Apply 01_security after 01_soname ; Added 01_ssl.
+  * debian/libxul0d.README.Debian: Add a note about SSLv2 and SSLv3 40-bit
+    ciphers.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 20 May 2006 21:23:00 +0200
+
+xulrunner (1.8.0.1-10) unstable; urgency=critical
+
+  * The "how dumb can I be ?" release.
+  * debian/rules: Don't use x86 specific directory to find jni.h.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 14 May 2006 01:25:10 +0200
+
+xulrunner (1.8.0.1-9) unstable; urgency=critical
+
+  * The "I wish they had a distribution-friendly security policy" release.
+  * Fixes the following security vulnerabilities:
+    CVE-2006-0297, CVE-2006-0748, CVE-2006-1530, CVE-2006-1531,
+    CVE-2006-1723, CVE-2006-1724, CVE-2006-1725, CVE-2006-1726,
+    CVE-2006-1727, CVE-2006-1728, CVE-2006-1729, CVE-2006-1730,
+    CVE-2006-1732, CVE-2006-1742.
+  * Should fix the following security vulnerabilities:
+    CVE-2006-0884, CVE-2006-1045, CVE-2006-1529, CVE-2005-2353.
+  * debian/patches/00_securityfix.dpatch: All security patches for the issues
+    above. I hope none has been forgotten, it has been a real PITA to go
+    through all the patches in upstream CVS to find those commits that *might*
+    be related to fixing the flaws.
+
+  * debian/patches/01_native_uconv.dpatch:
+    + Add the scriptableunicodeconverter component. Will make chatzilla work.
+    + Fix GBK and EUC-TW charset names so that iconv recognizes them.
+      Closes: #365886.
+  * debian/patches/01_killAll.dpatch, debian/xulrunner.install: Correctly
+    install the killAll component.
+  * debian/patches/01_js_binary.dpatch: Add readline support to xpcshell.
+  * debian/patches/01_no_register.dpatch: Remove (un|)registering system. We
+    don't need it since we register ourselves.
+  * debian/patches/01_broken_perl.dpatch: Apply patch from bz#325148 instead
+    of removing the broken perl code.
+  * debian/patches/01_no_chromelist.dpatch: Also correctly call make-jars.pl
+    to avoid creation of unexpected chrome in dist/bin instead of
+    dist/bin/chrome.
+  * debian/mozconfig:
+    + Disable elf-dynstr-gc, which is pretty useless nowadays.
+    + Enable javaxpcom support.
+  * debian/rules:
+    + Added a check between dist/bin and $DESTDIR/usr/lib/xulrunner to see if
+      upstream correctly installs everything...
+    + Set JAVA_HOME for configure to find the java compiler.
+    + Work around bug #361806 by setting JAVAC at build time.
+    + Work around bug #365934 by using --with-java-include-path configure
+      option, and work around a feature of cpp by creating a symlink to the
+      real location of jni.h in the debian directory.
+    + Don't install dependentlibs.list (see debian/patches/01_xpcomstub.dpatch
+      below).
+    + Changed the way we move libraries to /usr/lib.
+    + Changed the User-Agent string again, it seems too many dumb scripts use
+      the useless date from the product string.
+  * debian/control: Added java-gcj-compat-dev to build dependencies.
+  * debian/patches/01_javaxpcom.dpatch:
+    + Apply patch from bz#327654 to be able to actually build the javaxpcom
+      stuff.
+    + Allow to build with gcj headers.
+    + Don't install GenerateJavaInterfaces.
+    + Correctly install javaxpcom.jar.
+    + Don't use visibility flags so that symbols are exported.
+  * debian/*.conf: Set jaxaxpcom to 1.
+  * debian/patches/01_icons.dpatch: Apply patch from  bz#314927 to install
+    default.xpm in the right place
+  * debian/xulrunner.install: Install chrome/icons, where default.xpm is
+    sitting.
+  * debian/patches/01_installer.dpatch: Apply patch from bz#328505 to allow
+    to install without a vendor name.
+  * debian/patches/01_mouse_buttons.dpatch: Extended mouse buttons support
+    taken from #244305. Thanks Peter Colberg.
+  * debian/patches/01_xpcomstub.dpatch: Correctly install dependentlibs.list
+    and apply patch from bz#332262 for it to contain NSS libraries.
+  * debian/patches/01_distclean.dpatch: Make distclean cleaner.
+  * debian/patches/01_target_xpcom_abi.dpatch: Apply patch from bz#322450 plus
+    the OS_TEST fix that got landed at the same time so that TARGET_XPCOM_ABI
+    is correctly set on sparc.
+  * debian/patches/01_embed_initial_visibility.dpatch: Apply patch from
+    bz#312998 to fix gtkmozembed's EmbedWindow::GetVisibility. Closes: #365868.
+  * debian/patches/01_config_install.dpatch: Correct installation of all the
+    headers files from the config/ directory.
+  * debian/patches/00list: Updated to include all the new patches.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/control:
+    + Bumped Standards-Version to 3.7.2.0. No changes.
+    + Add small text about the SDK to libxul-dev's description.
+    + Make libxul-dev depend on xulrunner for the development tools (xpt_link,
+      xpt_dump, xpidl, regxpchrome)
+  * debian/rules, debian/libxul-dev.install: Install the SDK files.
+  * debian/libxul0d.install: Install MozillaInterfaces.jar in
+    /usr/lib/xulrunner instead of inside the SDK (but put a symlink there),
+    since it is useful to embed javaxpcom.
+  * debian/libxul0d.install, debian/xulrunner.install: Move the PSM files
+    from xulrunner to libxul0d. Closes: #359220, #359226.
+  * debian/control: Make libxul0d conflict with those older versions of
+    xulrunner that included the PSM files.
+
+ -- Mike Hommey <glandium@debian.org>  Sat, 13 May 2006 23:22:35 +0200
+
+xulrunner (1.8.0.1-8) unstable; urgency=low
+
+  * debian/libxul0d.install:
+    + Install xpt files one by one instead of glob, so that we:
+      - put mozgnome.xpt in xulrunner-gnome-support
+        (debian/xulrunner-gnome-support.install)
+      - don't install the sample simple.xpt
+    + Don't install the sample component libsimpletest.so.
+  * debian/rules:
+    + Don't remove the .chk file, since we don't install it anymore.
+    + Use -Wl,--as-needed as LDFLAGS. That will work around upstream linking
+      strategy to limit useless linkage.
+    + Use a specific LD_LIBRARY_PATH at link time so that we don't need to
+      link against indirect dependencies. This is a temporary workaround until
+      this is workaround some better other way.
+    + Added some install checks after binary packages build, so that we can
+      know if we forgot anything.
+    + Fixed the way we get the DEBIAN_VERSION.
+  * debian/patches/01_native_uconv.dpatch:
+    + Don't build intl/uconv/ucvja and friends, since this is supported by
+      the native uconv implementation and not even linked into something we
+      ship.
+    + Properly load invalid UTF-8 files and more generally malformed files
+      as to their (supposed) encoding. Closes: #358815, #359049, #358599.
+  * debian/patches/01_prefs.dpatch: set javascript.options.showInConsole.
+  * debian/patches/01_security_build.dpatch:
+    + Don't build the stuff we don't need, and dynamically link libnssckbi to
+      both libplc4 and libplds4 instead of linking statically.
+    + Build with debugging symbols.
+  * debian/patches/01_no_chromelist.dpatch: Don't build chromelist.txt files.
+  * debian/patches/01_no_sys_profile.dpatch: Don't install system profile.
+  * debian/patches/01_no_examples.dpatch: Don't build the examples.
+  * debian/patches/01_xpcomglue.dpatch:
+    + Build the xpcom glue as a shared library.
+    + Load DSOs from . when directory is not given. That makes regxpcom work
+      as "expected".
+  * debian/patches/80_xpidl.dpatch: Added an error message when no file is
+    given, to sync with the patch against trunk I sent upstream.
+  * debian/patches/01_about:plugins.dpatch: Install the files for
+    about:plugins. Closes: #354037, #356082.
+  * debian/patches/01_installer.dpatch: Install applications in /usr/local/lib
+    instead of /usr/lib.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/rules, debian/spidermonkey-bin.install: Move out some files from
+    the install target instead of the binary target. Install them with
+    dh_install.
+  * debian/control: Bumped to Standards-Version: 3.6.2.2. No changes required.
+  * debian/libxul0d.postinst, debian/libxul0d.preinst: Instead of removing
+    compreg.dat and xpti.dat to solve #357589, create a .autoreg file. That
+    will trigger components registration in all cases, even in cases where the
+    component registry was stored in a profile directory.
+    Do it on postinst at configure time instead of preinst.
+  * debian/xulrunner-gnome-support.{postinst|prerm}: Also do it when
+    configuring or removing xulrunner-gnome-support.
+  * debian/libxul0d.prerm: Remove all files that could be generated by running
+    xulrunner or programs using libxul as root, plus the .autoreg file we
+    create in case it's still there.
+  * debian/libxul0d.install, debian/libxul-dev.install: Install the
+    libxpcomglue files.
+  * debian/control, debian/rules: Added debugging symbols in separated
+    packages.
+  * debian/control, debian/compat: Bumped debhelper compatibility to 5.
+  * debian/libxul0d.links: Add links to the libraries in /usr/lib/xulrunner.
+    That will allow some (but not all, because of C++ ABI differences)
+    components from mozilla and/or upstream to work with xulrunner. It also
+    allows the XPCOM Glue to kinda work without deep modifications.
+  * debian/libxul0d.conf, debian/xulrunner.conf, debian/libxul0d.install,
+    debian/xulrunner.install, debian/rules: Install GRE "configurations" into
+    /etc/gre.d. That is used by the XPCOM Glue (thus, by the xulrunner stub).
+  * debian/rules, debian/libxul0d.install: Install the dependentlibs.list file.
+
+ -- Mike Hommey <glandium@debian.org>  Sat,  1 Apr 2006 16:09:27 +0200
+
+xulrunner (1.8.0.1-7) unstable; urgency=low
+
+  * debian/rules: Add -g to the build flags when building with
+    DEB_BUILD_OPTIONS=nostrip. If we ask for nostrip, we want the debugging
+    symbols, right? ;)
+  * debian/libxul0d.preinst, debian/libxul0d.prerm: Remove
+    /usr/lib/xulrunner/components/{compreg|xpti}.dat files on upgrade and
+    removal. Closes: #357589. That will also avoid gnome-support components to
+    be ignored if they were created when the components were not yet
+    installed.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 23 Mar 2006 23:02:29 +0100
+
+xulrunner (1.8.0.1-6) unstable; urgency=low
+
+  * debian/copyright: Fixed typo.
+  * debian/patches/90_mips64_build.dpatch: Patch from Martin Michlmayr for
+    mips64 builds.
+  * debian/patches/90_unsupported_arch_build.dpatch: Don't use x86 as CPU_ARCH
+    when building on an unsupported architectures. Closes: #357035.
+  * Put back some stuff that used to be in spidermonkey-bin:
+    + debian/rules, debian/smjs.1: Add the manual page.
+    + debian/rules, debian/spidermonkey-bin.menu: Add the menu item.
+    + debian/spidermonkey-bin.postinst, debian/spidermonkey-bin.prerm:
+      Add the /usr/bin/js alternative. Closes: #355729.
+  * debian/mozconfig: Enable iconv support.
+  * debian/patches/01_native_uconv.dpatch: Fix for the build to succeed when
+    iconv support is enabled.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Fri, 17 Mar 2006 07:16:10 +0100
+
+xulrunner (1.8.0.1-5) unstable; urgency=low
+
+  * debian/mozconfig: DON'T build the typeaheadfind module. It will cause
+    problems with firefox as stated before AND with the newer Galeons. I guess
+    it will also be problematic with newer Epiphanies.
+  * debian/rules: Changed the Gecko/Debian/x.y.z.t-r string to
+    Gecko/Debian-x.y.z.t-r for RFC2616 compliance. Thanks Josh Triplett and
+    Matthew Wilcox.
+  * debian/rules, debian/xulrunner-config: Provide a version of
+    xulrunner-config that gives more appropriate cflags and libs.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 27 Feb 2006 19:44:59 +0100
+
+xulrunner (1.8.0.1-4) unstable; urgency=low
+
+  * debian/mozconfig:
+    + Build the typeaheadfind module. It will enable it in Galeon and
+      Epiphany, but might cause problems with future firefoxes built on top on
+      xulrunner. That will need to be investigated further.
+    + Build with a flat chrome instead of jar files.
+  * debian/libxul0d.install, debian/xulrunner.install: Changed chrome
+    wildcards accordingly.
+  * debian/patches/01_zip.dpatch: Don't need zip if not needed (not building
+    jar files)
+  * debian/patches/01_broken_perl.dpatch: Remove useless broken perl code.
+  * debian/patches/01_useragent.dpatch: Remove useless useragent setter at
+    startup so that general.useragent.product and general.useragent.productSub
+    set in our vendor.js preference file work at startup time.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/patches/00list: Updated accordingly.
+  * debian/control: Removed build dependency upon zip.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 21 Feb 2006 18:36:26 +0100
+
+xulrunner (1.8.0.1-3) unstable; urgency=low
+
+  * debian/control:
+    + Added a conflict against mozilla-browser on libxul-dev. Closes: #353600.
+    + Renamed libsmjs1-dev to libsmjs-dev, since that what is the name of the
+      dev package provided by the old spidermonkey package.
+    + Sync sections with override for spidermonkey-bin, libsmjs1 and
+      libsmjs-dev.
+  * debian/libsmjs1-dev.links: Renamed to libsmjs-dev.links.
+  * debian/patches/90_xpcom_hppa.dpatch: Somehow, the assembler files got
+    their content twice. Fixing that should make it build properly on HPPA.
+  * debian/xulrunner.*, debian/libxul0d.*:
+    + Moved /usr/share/xulrunner/defaults from xulrunner to libxul0d ; leave
+      out profile and preferences. They will be reintroduced if they appear to
+      be really useful. As for now, they just seem to be vestiges of Mozilla,
+      Firefox or Thunderbird.
+    + Moved /usr/share/xulrunner/res from xulrunner to libxul0d.
+    + Moved /usr/share/xulrunner/chrome/classic.*, en-US.* and toolkit.* from
+      xulrunner to libxul0d. If the other chrome files appear to be required
+      for something else, we might consider moving them as well.
+  * debian/control: Add a conflict on older xulrunner to libxul0d according to
+    the moving around of files.
+  * debian/rules: Changed the way we identificate ourselves in
+    /usr/share/xulrunner/defaults/pref/vendor.js, and move it in libxul0d.
+    We will using be Gecko/Debian/<debian_release> instead of Gecko/yyyymmdd,
+    which was pointless anyway, because it was giving the date of the build,
+    not the date of the API...
+  * debian/patches/01_prefs.dpatch: Fix some printer and font configuration.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 20 Feb 2006 23:11:39 +0100
+
+xulrunner (1.8.0.1-2) unstable; urgency=low
+
+  * debian/rules:
+    + copy LICENSE instead of creating a link.
+    + add -A to dh_installdocs.
+    + don't install README.txt.
+    + don't change xulrunner-gtkmozembed.pc, xulrunner-plugin.pc
+      and xulrunner-xpcom.pc. Some applications that build against gecko
+      seem to make bad assumptions, at least with gtkmozembed. It is safest
+      this way, until things change upstream.
+  * debian/patches/01_sonames.dpatch: Fix the dirname complain.
+  * debian/xulrunner.install, debian/xulrunner.links, debian/libxul0d.install,
+    debian/libxul0d.links: Moved greprefs from xulrunner to libxul0d.
+    The usually necessary changes to dependencies and conflicts have not been
+    made because 1.8.0.1-1 never reached the archive.
+  * debian/patches/90_js_mipsel_endianness.dpatch: Patch to fix little
+    endianness of mipsel. Thanks Ian Jackson and Thiemo Seufer.
+  * debian/patches/80_passwdmgr.dpatch: Take patch from bz#235336 as suggested
+    by Ian Jackson to allow password manager to work with sites that only have
+    a password field, no username.
+  * debian/patches/01_gfx_cairo.dpatch, debian/patches/01_gfx_thebes.dpatch,
+    debian/patches/01_canvas_cairo.dpatch: Removed. They were for the 1.9
+    branch.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Wed,  8 Feb 2006 18:53:28 +0100
+
+xulrunner (1.8.0.1-1) unstable; urgency=low
+
+  * Initial release. Closes: #284189.
+  * First upstream release: 1.8.0.1, synched with Firefox 1.5.0.1.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/rules:
+    + Removed package names from the dh_makeshlibs call. It just works fine
+      with the -a option.
+    + Removed useless dh_shlibdeps call when building arch-independent
+      packages.
+    + Removed the -l option to the dh_shlibdeps call, it works fine without.
+    + Move libnssckbi.so back in /usr/lib/xulrunner.
+    + Add a MPL file to the docs installed, taken from the upstream LICENSE
+      file.
+  * debian/control:
+    + Added a xulrunner-gnome-support package for a separate gnome support.
+    + Made the xulrunner package suggest this new package.
+    + Typos corrections.
+    + Add sections to packages.
+  * debian/xulrunner-gnome-support.install: Install the gnome related
+    components.
+  * debian/libxul0d.install, debian/xulrunner.install: Moved some components
+    from libxul0d to xulrunner.
+  * debian/patches/01_ckbi_location: Removed.
+  * debian/patches/00list: Updated accordingly.
+  * debian/copyright: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Tue,  7 Feb 2006 19:52:24 +0100
+
+xulrunner (1.7.99+cvs20060113-1) experimental; urgency=low
+
+  * New CVS checkout.
+  * debian/mozconfig: Disable Java-XPCOM bridge.
+  * debian/control: Added | libreadline-dev to build dependencies.
+  * debian/patches/01_pangoxft.dpatch: force linking against pangoxft with
+    newer versions of pango.
+  * debian/patches/80_dash_workaround.dpatch,
+    debian/patches/80_entropy.dpatch,
+    debian/patches/80_xpidl.dpatch,
+    debian/patches/80_xrender_bug.dpatch,
+    debian/patches/90_ia64_align.dpatch,
+    debian/patches/90_mips_performance.dpatch,
+    debian/patches/90_ppc64_build.dpatch,
+    debian/patches/90_xpcom_arm_optim.dpatch,
+    debian/patches/90_xpcom_arm_unused_attribute.dpatch,
+    debian/patches/90_xpcom_hppa.dpatch,
+    debian/patches/90_xpcom_m68k.dpatch,
+    debian/patches/90_xpcom_mips.dpatch: Patches stolen from Firefox.
+  * debian/patches/00list: Updated accordingly.
+  * debian/patches/99_configure.dpatch: Updated.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 19 Jan 2006 17:08:58 +0100
+
+xulrunner (1.7.99+cvs20051212-1) experimental; urgency=low
+
+  * New CVS checkout.
+  * debian/control: Moved -dev packages from arch: any to arch: all.
+  * debian/rules:
+    + Properly copy nss includes.
+    + Properly call dh_shlibdeps with the changed package names.
+    + Add a vendor.js file adding debian version in user-agent string.
+    + Modify *.pc files to fit modified include and library directories
+      and install them.
+  * debian/lib*-dev.install: Removed pkgconfig files.
+  * debian/*-dev.dirs: Create usr/lib/pkgconfig in the dev packages.
+  * debian/xulrunner.dirs: Create the prefs dir for the vendor.js file.
+  * debian/patches/01_locale.dpatch: Correctly set locale.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sun, 18 Dec 2005 13:44:17 +0100
+
+xulrunner (1.7.99+cvs20051130-1) experimental; urgency=low
+
+  * New CVS checkout.
+  * debian/mozconfig:
+    + Added cookie and permissions extensions.
+    + Disabled building of the installer.
+  * debian/patches/01_sidebar.dpatch: Added the sidebar extension.
+  * debian/rules:
+    + Copy config.guess and config.sub files to the right places.
+    + Remove the .chk files.
+    + Add a debug DEB_BUILD_OPTIONS to add --enable-debug to configure.
+  * debian/patches/01_sonames.dpatch: Added soname support.
+  * debian/patches/01_js_binary.dpatch: Add dependency for js on libmozjs.so.
+  * debian/patches/99_configure.dpatch: Updated and added nsprpub/configure.in
+    in the scope.
+  * debian/patches/00list: Updated accordingly.
+  * debian/libmozjs-dev.install, debian/libmozjs.install,
+    debian/libnspr4.6-dev.install, debian/libnspr4.6.install,
+    debian/libnss3.10-dev.install, debian/libnss3.10.install,
+    debian/libxul-dev.install, debian/libxul.install:
+    + Moved .so files in -dev packages and put .so.* files in non -dev
+      packages.
+    + put usr/lib/xulrunner/components in libxul instead of xulrunner.
+  * debian/*.preinst, debian/*.postrm: Removed, since we remove the
+    diversions.
+  * debian/control:
+    + Add proper conflicts with mozilla's packages.
+    + Renamed packages to reflect the sonames.
+    + Removed xulrunner-dev package.
+  * debian/lib*.install: Renamed accordingly.
+  * debian/patches/01_system_bz2.dpatch: Changes to better fit upstream build
+    system.
+  * debian/xulrunner-dev.install: Removed, as we removed the package.
+  * debian/libxul-dev.install: Added the xulrunner-config file that used to be
+    in xulrunner-dev.
+  * debian/xulrunner.install: Added xulrunner-stub.
+  * debian/libxul0d.dirs: Create /usr/lib/xulrunner/extensions, that the
+    extensions manager insists on having existing, even if empty.
+  * debian/libsmjs1.links: Changed link for the versioned library.
+
+ -- Mike Hommey <glandium@debian.org>  Mon, 12 Dec 2005 11:12:47 +0100
+
+xulrunner (1.7.99+cvs20051002-1) experimental; urgency=low
+
+  * New CVS checkout.
+  * debian/patches/01_visibility.dpatch: Use -fvisibility=hidden instead of
+    the system wrappers, since because of bug #331460, with the system
+    wrappers, the resulting binary is not PIC.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Sun,  2 Oct 2005 12:48:41 +0200
+
+xulrunner (1.7.99+cvs20050915-1) experimental; urgency=low
+
+  * New CVS checkout of the less experimental 1.8 branch.
+  * debian/mozconfig: Use gtk2 gfx instead of cairo-gtk2 since it is not
+    developped in 1.8 branch.
+  * debian/patches/01_canvas_cairo.dpatch: Removed: been applied upstream.
+  * debian/patches/01_ckbi_location.dpatch: Allow libnssckbi to be loaded from
+    /usr/lib. (quite dirty, but, well...)
+  * debian/patches/01_gfx_cairo.dpatch, 01_gfx_thebes.dpatch: Removed.
+  * debian/patches/01_system_bz2.dpatch: Updated following upstream advices.
+  * debian/patches/99_configure.dpatch: Updated.
+  * debian/patches/00list: Updated accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Thu, 15 Sep 2005 15:42:40 +0200
+
+xulrunner (1.8.99+cvs20050816-0) experimental; urgency=low
+
+  * Initial package.
+  * debian/mozconfig: Enabled build with system cairo and cairo-gtk2 gfx.
+  * debian/patches/01_canvas_cairo.dpatch: Correctly build with system cairo.
+  * debian/patches/01_embedding_tests.dpatch: Don't build embedding tests when
+    using --disable-tests.
+  * debian/patches/01_install_path.dpatch: Install in the xulrunner directory
+    instead of xulrunner-1.8.
+  * debian/patches/01_gfx_cairo.dpatch, 01_gfx_thebes.dpatch: Patches for
+    correct building of gfx with system cairo.
+  * debian/patches/01_js_binary.dpatch: Allow to build the js binary to
+    provide a more up-to-date spidermonkey.
+  * debian/patches/01_system_bz2.dpatch: Allow to build with the system bzip2
+    library.
+  * debian/patches/99_configure.dpatch: Changes to configure resulted from
+    changes to configure.in.
+  * debian/patches/00list: Built list accordingly.
+
+ -- Mike Hommey <glandium@debian.org>  Tue, 16 Aug 2005 13:45:47 +0200
--- xulrunner-1.9.0.7.orig/debian/python-xpcom.install
+++ xulrunner-1.9.0.7/debian/python-xpcom.install
@@ -0,0 +1,4 @@
+usr/lib/xulrunner-1.9/libpyxpcom.so
+usr/lib/xulrunner-1.9/components/libpyloader.so
+usr/lib/xulrunner-1.9/components/pyabout.py
+usr/lib/python*/site-packages
--- xulrunner-1.9.0.7.orig/debian/postinstrm.in
+++ xulrunner-1.9.0.7/debian/postinstrm.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+dpkg-trigger --check-supported > /dev/null 2>&1 ||
+if [ "$1" = "configure" ] || [ "$1" = "abort-install" ] ||
+   [ "$1" = "abort-upgrade" ]; then
+    touch /usr/lib/xulrunner-1.9/.autoreg
+    rm -f /usr/lib/xulrunner-1.9/components/compreg.dat \
+          /usr/lib/xulrunner-1.9/components/xpti.dat
+    cd /usr/lib/xulrunner-1.9
+    export HOME=`mktemp -d`
+    ./run-mozilla.sh ./xpcshell -e "" ||
+    rm -f /usr/lib/xulrunner-1.9/components/compreg.dat \
+          /usr/lib/xulrunner-1.9/components/xpti.dat
+    rm -rf "$HOME"
+fi
+
+#DEBHELPER#
+
--- xulrunner-1.9.0.7.orig/debian/test/application.ini
+++ xulrunner-1.9.0.7/debian/test/application.ini
@@ -0,0 +1,11 @@
+[App]
+Vendor=Debian
+Name=Test
+Version=0.1
+BuildID=2008051801
+Copyright=Copyright (c) 2008 Mike Hommey
+ID={b8aaac34-1e88-4610-b586-4b151c4fc760}
+
+[Gecko]
+MinVersion=1.9b5
+MaxVersion=2.0
--- xulrunner-1.9.0.7.orig/debian/test/defaults/preferences/test.js
+++ xulrunner-1.9.0.7/debian/test/defaults/preferences/test.js
@@ -0,0 +1,3 @@
+pref("toolkit.defaultChromeURI", "chrome://test/content/test.xul");
+pref("general.warnOnAboutConfig", false);
+pref("browser.dom.window.dump.enabled", true);
--- xulrunner-1.9.0.7.orig/debian/test/chrome/chrome.manifest
+++ xulrunner-1.9.0.7/debian/test/chrome/chrome.manifest
@@ -0,0 +1 @@
+content test content/
--- xulrunner-1.9.0.7.orig/debian/test/chrome/content/test.xul
+++ xulrunner-1.9.0.7/debian/test/chrome/content/test.xul
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<window
+  id     = "test"
+  title  = "Test"
+  height = "480"
+  width = "640"
+  xmlns  = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+  onunload="dump('unload\n');"
+  onload="close()">
+  <browser flex="1" src="about:config"/>
+</window>
--- xulrunner-1.9.0.7.orig/memory/jemalloc/jemalloc.c
+++ xulrunner-1.9.0.7/memory/jemalloc/jemalloc.c
@@ -569,6 +569,7 @@
 
 /* Set to true once the allocator has been initialized. */
 static bool malloc_initialized = false;
+static bool malloc_initializing = false;
 
 #if defined(MOZ_MEMORY_WINDOWS)
 /* No init lock for Windows. */
@@ -1333,6 +1334,9 @@
 #endif
 }
 
+void		_malloc_prefork(void);
+void		_malloc_postfork(void);
+
 /*
  * End mutex.
  */
@@ -3718,9 +3722,27 @@
 		return (arena_malloc_large(arena, size, zero));
 }
 
+#define STATIC_BUFFER_SIZE (64 * 1024)
+static char static_buffer[STATIC_BUFFER_SIZE];
+
+static inline void *
+static_alloc(size_t size)
+{
+	static char *next_buf = static_buffer;
+	char *ret = next_buf;
+
+	next_buf = &next_buf[size];
+	if (next_buf <= &static_buffer[STATIC_BUFFER_SIZE])
+		return ret;
+
+	return NULL;
+}
+
 static inline void *
 imalloc(size_t size)
 {
+	if (malloc_initializing)
+		goto static_alloc;
 
 	assert(size != 0);
 
@@ -3728,16 +3750,22 @@
 		return (arena_malloc(choose_arena(), size, false));
 	else
 		return (huge_malloc(size, false));
+static_alloc:
+	return static_alloc(size);
 }
 
 static inline void *
 icalloc(size_t size)
 {
+	if (malloc_initializing)
+		goto static_alloc;
 
 	if (size <= arena_maxclass)
 		return (arena_malloc(choose_arena(), size, true));
 	else
 		return (huge_malloc(size, true));
+static_alloc:
+	return static_alloc(size);
 }
 
 /* Only handles large allocations that require more than page alignment. */
@@ -4212,11 +4240,16 @@
 
 	assert(ptr != NULL);
 
+	if ((ptr >= (void *)static_buffer) && (ptr < (void *)&static_buffer[STATIC_BUFFER_SIZE]))
+		goto end;
+
 	chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
 	if (chunk != ptr)
 		arena_dalloc(chunk->arena, chunk, ptr);
 	else
 		huge_dalloc(ptr);
+end:
+	return;
 }
 
 static void
@@ -5200,6 +5233,10 @@
 	int linklen;
 #endif
 
+	/* Recursive malloc_init(), it means we still need to allocate memory */
+	if (malloc_initializing)
+		return(false);
+
 #ifndef MOZ_MEMORY_WINDOWS
 	malloc_mutex_lock(&init_lock);
 #endif
@@ -5214,6 +5251,7 @@
 #endif
 		return (false);
 	}
+	malloc_initializing = true;
 
 #ifdef MOZ_MEMORY_WINDOWS
 	/* get a thread local storage index */
@@ -5656,6 +5694,7 @@
 	/* Allocate and initialize arenas. */
 	arenas = (arena_t **)base_alloc(sizeof(arena_t *) * narenas);
 	if (arenas == NULL) {
+		malloc_initializing = false;
 #ifndef MOZ_MEMORY_WINDOWS
 		malloc_mutex_unlock(&init_lock);
 #endif
@@ -5673,6 +5712,7 @@
 	 */
 	arenas_extend(0);
 	if (arenas[0] == NULL) {
+		malloc_initializing = false;
 #ifndef MOZ_MEMORY_WINDOWS
 		malloc_mutex_unlock(&init_lock);
 #endif
@@ -5701,6 +5741,7 @@
 
 	malloc_spin_init(&arenas_lock);
 
+	malloc_initializing = false;
 	malloc_initialized = true;
 #ifndef MOZ_MEMORY_WINDOWS
 	malloc_mutex_unlock(&init_lock);
--- xulrunner-1.9.0.7.orig/parser/xml/src/nsSAXXMLReader.cpp
+++ xulrunner-1.9.0.7/parser/xml/src/nsSAXXMLReader.cpp
@@ -627,11 +627,7 @@
   TryChannelCharset(aChannel, charsetSource, charset);
   parser->SetDocumentCharset(charset, charsetSource);
 
-#ifdef MOZILLA_1_8_BRANCH
-  rv = parser->Parse(mBaseURI, aObserver, PR_FALSE);
-#else
   rv = parser->Parse(mBaseURI, aObserver);
-#endif
   NS_ENSURE_SUCCESS(rv, rv);
 
   mListener = do_QueryInterface(parser, &rv);
--- xulrunner-1.9.0.7.orig/config/rules.mk
+++ xulrunner-1.9.0.7/config/rules.mk
@@ -155,6 +155,18 @@
 SHARED_LIBRARY		:= $(DLL_PREFIX)$(LIBRARY_NAME)$(DLL_SUFFIX)
 endif
 
+ifdef SO_VERSION
+UNVERSIONED_LIBRARY	:= $(notdir $(SHARED_LIBRARY))
+
+ifeq ($(strip $(SHARED_LIBRARY)),$(strip $(SDK_LIBRARY)))
+SDK_LIBRARY		:= $(SHARED_LIBRARY)
+endif
+
+SHARED_LIBRARY		:= $(SHARED_LIBRARY).$(SO_VERSION)
+
+MKSHLINKS		= rm -f $(1)/$(UNVERSIONED_LIBRARY); ln -s $(SHARED_LIBRARY) $(1)/$(UNVERSIONED_LIBRARY)
+endif
+
 ifeq ($(OS_ARCH),OS2)
 DEF_FILE		:= $(SHARED_LIBRARY:.dll=.def)
 endif
@@ -264,7 +276,7 @@
 endif
 
 ifndef TARGETS
-TARGETS			= $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) $(SIMPLE_PROGRAMS) $(HOST_LIBRARY) $(HOST_PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(JAVA_LIBRARY)
+TARGETS			= $(LIBRARY) $(UNVERSIONED_LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) $(SIMPLE_PROGRAMS) $(HOST_LIBRARY) $(HOST_PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(JAVA_LIBRARY)
 endif
 
 ifndef OBJS
@@ -307,7 +319,7 @@
 
 ALL_TRASH = \
 	$(GARBAGE) $(TARGETS) $(OBJS) $(PROGOBJS) LOGS TAGS a.out \
-	$(OBJS:.$(OBJ_SUFFIX)=.s) $(OBJS:.$(OBJ_SUFFIX)=.ii) \
+	$(filter-out $(ASFILES),$(OBJS:.$(OBJ_SUFFIX)=.s)) $(OBJS:.$(OBJ_SUFFIX)=.ii) \
 	$(OBJS:.$(OBJ_SUFFIX)=.i) \
 	$(HOST_PROGOBJS) $(HOST_OBJS) $(IMPORT_LIBRARY) $(DEF_FILE)\
 	$(EXE_DEF_FILE) so_locations _gen _stubs $(wildcard *.res) $(wildcard *.RES) \
@@ -482,15 +494,6 @@
 endif
 endif
 
-ifeq ($(OS_ARCH),Linux)
-ifneq (,$(filter mips mipsel,$(OS_TEST)))
-ifeq ($(MODULE),layout)
-OS_CFLAGS += -Wa,-xgot
-OS_CXXFLAGS += -Wa,-xgot
-endif
-endif
-endif
-
 #
 # HP-UXBeOS specific section: for COMPONENTS only, add -Bsymbolic flag
 # which uses internal symbols first
@@ -541,6 +544,14 @@
 endif 
 
 #
+# GNU doesn't have path length limitation
+#
+
+ifeq ($(OS_ARCH),GNU)
+OS_CPPFLAGS += -DPATH_MAX=1024 -DMAXPATHLEN=1024
+endif
+
+#
 # MINGW32
 #
 ifeq ($(OS_ARCH),WINNT)
@@ -717,7 +728,7 @@
 DSO_LDOPTS_DEPS = $(EXTRA_DSO_LIBS) $(filter %.$(LIB_SUFFIX), $(EXTRA_DSO_LDOPTS))
 
 ##############################################
-libs:: $(SUBMAKEFILES) $(MAKE_DIRS) $(HOST_LIBRARY) $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(HOST_PROGRAM) $(PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(SIMPLE_PROGRAMS) $(JAVA_LIBRARY)
+libs:: $(SUBMAKEFILES) $(MAKE_DIRS) $(HOST_LIBRARY) $(LIBRARY) $(UNVERSIONED_LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(HOST_PROGRAM) $(PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(SIMPLE_PROGRAMS) $(JAVA_LIBRARY)
 ifndef NO_DIST_INSTALL
 ifdef LIBRARY
 ifdef EXPORT_LIBRARY # Stage libs that will be linked into a static build
@@ -747,8 +758,10 @@
 	$(INSTALL) $(IFLAGS2) $(IMPORT_LIBRARY) $(DIST)/lib
 else
 	$(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(DIST)/lib
+	$(call MKSHLINKS,$(DIST)/lib)
 endif
 	$(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(FINAL_TARGET)
+	$(call MKSHLINKS,$(FINAL_TARGET))
 ifdef BEOS_ADDON_WORKAROUND
 	( cd $(FINAL_TARGET) && $(CC) -nostart -o $(SHARED_LIBRARY).stub $(SHARED_LIBRARY) )
 endif
@@ -945,7 +958,7 @@
 ifeq ($(CPP_PROG_LINK),1)
 	$(CCC) $(WRAP_MALLOC_CFLAGS) $(CXXFLAGS) -o $@ $< $(WIN32_EXE_LDFLAGS) $(SOLARIS_JEMALLOC_LDFLAGS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(WRAP_MALLOC_LIB) $(PROFILER_LIBS) $(BIN_FLAGS)
 else
-	$(CC) $(WRAP_MALLOC_CFLAGS) $(CFLAGS) $(OUTOPTION)$@ $< $(WIN32_EXE_LDFLAGS) $(SOLARIS_JEMALLOC_LDFLAGS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(WRAP_MALLOC_LIB) $(PROFILER_LIBS) $(BIN_FLAGS)
+	$(CC) $(WRAP_MALLOC_CFLAGS) $(CFLAGS) $(OUTOPTION)$@ $< $(WIN32_EXE_LDFLAGS) $(SOLARIS_JEMALLOC_LDFLAGS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(WRAP_MALLOC_LIB) $(PROFILER_LIBS) $(BIN_FLAGS) $(PROG_LIBS)
 endif # CPP_PROG_LINK
 endif # WINNT && !GNU_CC
 endif # OS/2 VACPP
@@ -1101,6 +1114,8 @@
 # so instead of deleting .o files after repacking them into a dylib, we make
 # symlinks back to the originals. The symlinks are a no-op for stabs debugging,
 # so no need to conditionalize on OS version or debugging format.
+$(UNVERSIONED_LIBRARY): $(SHARED_LIBRARY)
+	$(call MKSHLINKS,.)
 
 $(SHARED_LIBRARY): $(OBJS) $(LOBJS) $(DEF_FILE) $(RESFILE) $(SHARED_LIBRARY_LIBS) $(EXTRA_DEPS) $(DSO_LDOPTS_DEPS) Makefile Makefile.in
 ifndef INCREMENTAL_LINKER
--- xulrunner-1.9.0.7.orig/config/autoconf.mk.in
+++ xulrunner-1.9.0.7/config/autoconf.mk.in
@@ -58,14 +58,14 @@
 prefix		= @prefix@
 exec_prefix	= @exec_prefix@
 bindir		= @bindir@
-includedir	= @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+includedir	= @includedir@/$(MOZ_APP_NAME)-1.9
 libdir		= @libdir@
 datadir		= @datadir@
 mandir		= @mandir@
-idldir		= $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+idldir		= $(datadir)/idl/$(MOZ_APP_NAME)-1.9
 
-installdir	= $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
-sdkdir		= $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
+installdir	= $(libdir)/$(MOZ_APP_NAME)-1.9
+sdkdir		= $(libdir)/$(MOZ_APP_NAME)-devel-1.9
 
 DIST		= $(DEPTH)/dist
 LIBXUL_SDK      = @LIBXUL_SDK@
@@ -87,6 +87,9 @@
 MOZ_X11			= @MOZ_X11@
 
 MOZ_JS_LIBS		   = @MOZ_JS_LIBS@
+ENABLE_JS_BINARY	= @ENABLE_JS_BINARY@
+HAVE_READLINE		= @HAVE_READLINE@
+READLINE_LIBS		= @READLINE_LIBS@
 
 MOZ_DEBUG	= @MOZ_DEBUG@
 MOZ_DEBUG_MODULES = @MOZ_DEBUG_MODULES@
@@ -220,6 +223,7 @@
 MOZ_NATIVE_BZ2	= @SYSTEM_BZ2@
 MOZ_NATIVE_JPEG	= @SYSTEM_JPEG@
 MOZ_NATIVE_PNG	= @SYSTEM_PNG@
+APNG		= @APNG@
 MOZ_TREE_CAIRO = @MOZ_TREE_CAIRO@
 
 MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@
@@ -270,6 +274,8 @@
 
 CROSS_COMPILE   = @CROSS_COMPILE@
 
+WCHAR_CFLAGS	= @WCHAR_CFLAGS@
+
 OS_CPPFLAGS	= @CPPFLAGS@
 OS_CFLAGS	= $(OS_CPPFLAGS) @CFLAGS@
 OS_CXXFLAGS	= $(OS_CPPFLAGS) @CXXFLAGS@
--- xulrunner-1.9.0.7.orig/config/config.mk
+++ xulrunner-1.9.0.7/config/config.mk
@@ -508,7 +508,7 @@
 JAVA_DIST_DIR = $(DEPTH)/$(JAVA_GEN_DIR)
 JAVA_IFACES_PKG_NAME = org/mozilla/interfaces
 
-REQ_INCLUDES	= -I$(srcdir) -I. $(foreach d,$(REQUIRES),-I$(DIST)/include/$d) -I$(DIST)/include 
+REQ_INCLUDES	= $(foreach d,$(REQUIRES),-I$(DIST)/include/$d) -I$(DIST)/include
 ifdef LIBXUL_SDK
 REQ_INCLUDES_SDK = $(foreach d,$(REQUIRES),-I$(LIBXUL_SDK)/include/$d) -I$(LIBXUL_SDK)/include
 endif
--- xulrunner-1.9.0.7.orig/toolkit/toolkit-makefiles.sh
+++ xulrunner-1.9.0.7/toolkit/toolkit-makefiles.sh
@@ -1116,7 +1116,7 @@
   "
 fi
 
-if [ "$MOZ_JAVAXPCOM" ]; then
+if [ " " ]; then
   add_makefiles "
     extensions/java/Makefile
     extensions/java/xpcom/Makefile
--- xulrunner-1.9.0.7.orig/toolkit/themes/gnomestripe/global/jar.mn
+++ xulrunner-1.9.0.7/toolkit/themes/gnomestripe/global/jar.mn
@@ -1,4 +1,5 @@
 classic.jar:
+%  override chrome://global/skin/icons/loading_16.png chrome://global/skin/icons/loading_16_grey.gif
 +  skin/classic/global/autocomplete.css
 +  skin/classic/global/popup.css
 +  skin/classic/global/menu.css
@@ -37,6 +38,7 @@
 +  skin/classic/global/icons/find.png                          (icons/find.png)
 +  skin/classic/global/icons/folder-item.png                   (icons/folder-item.png)
 +  skin/classic/global/icons/informationGhosted-64.png         (icons/informationGhosted-64.png)
++  skin/classic/global/icons/loading_16_grey.gif               (../../pinstripe/global/icons/loading_16_grey.gif)
 +  skin/classic/global/icons/loading_16.png                    (icons/loading_16.png)
 +  skin/classic/global/icons/notloading_16.png                 (icons/notloading_16.png)
 +  skin/classic/global/icons/notfound.png                      (icons/notfound.png)
--- xulrunner-1.9.0.7.orig/toolkit/content/about.xhtml
+++ xulrunner-1.9.0.7/toolkit/content/about.xhtml
@@ -8,6 +8,8 @@
 %aboutDTD;
 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
 %globalDTD;
+<!ENTITY % aboutDTD2 SYSTEM "chrome://global/content/about.dtd">
+%aboutDTD2;
 ]>
 
 <!-- ***** BEGIN LICENSE BLOCK *****
@@ -62,16 +64,16 @@
   <div id="aboutLogoContainer">
     <a id="vendorURL" href="http://www.mozilla.org/">
       <img src="about:logo" alt="&brandShortName;"/>
-#expand <p id="version">&about.version; __MOZ_APP_VERSION__</p>
+      <p id="version"></p>
     </a>
   </div>
 
   <ul id="aboutPageList">
     <li>&about.copy.beforeLink; <a href="about:credits">&about.copy.linkTitle;</a> &about.copy.afterLink;</li>
     <li>&about.license.beforeLink; <a href="about:license">&about.license.linkTitle;</a> &about.license.afterLink;</li>
-    <!-- Release notes link removed pending fix for bug 349985
     <li>&about.relnotes.beforeLink; <a id="releaseNotesURL" href="">&about.relnotes.linkTitle;</a> &about.relnotes.afterLink;</li>
-    -->
+    <li id="readme.debian">&about.readme.debian.beforeLink;<a href="about:README.Debian">&about.readme.debian.linkTitle;</a>&about.readme.debian.afterLink;</li>
+    <li id ="bugs">&about.bugs.beforeLink;<a href="about:bugs">&about.bugs.linkTitle;</a>&about.bugs.afterLink;</li>
     <li>&about.buildconfig.beforeLink; <a href="about:buildconfig">&about.buildconfig.linkTitle;</a> &about.buildconfig.afterLink;</li>
     <script type="application/javascript">
       // get release notes URL from prefs
@@ -80,14 +82,33 @@
                                   .getService(Components.interfaces.nsIURLFormatter);
         var releaseNotesURL = formatter.formatURLPref("app.releaseNotesURL");
         var relnotes = document.getElementById("releaseNotesURL");
-        relnotes.setAttribute("href", releaseNotesURL);
+        if (releaseNotesURL == "about:blank") {
+          relnotes.parentNode.style.display = "none";
+        } else {
+          relnotes.setAttribute("href", releaseNotesURL);
+        }
 
         var vendorURL = formatter.formatURLPref("app.vendorURL");
         var vendor = document.getElementById("vendorURL");
-        vendor.setAttribute("href", vendorURL);
+        if (vendorURL == "about:blank") {
+          vendor.setAttribute("href", "");
+        } else {
+          vendor.setAttribute("href", vendorURL);
+        }
+
+        var versionNum = formatter.formatURL("%VERSION%");
+        var version = document.getElementById("version");
+        version.appendChild(document.createTextNode("&about.version; " + versionNum));
       }
       catch (ex) { /* no release notes and vendor URL for you without bug 349985 being fixed */ }
 
+      ["readme.debian", "bugs"].forEach(function (name) {
+        var node = document.getElementById(name);
+        if (! Components.classes["@mozilla.org/network/protocol/about;1?what=" +  name]) {
+          node.style.display = "none";
+        }
+      });
+
       var ua = navigator.userAgent;
       if (ua) {
         var list = document.getElementById("aboutPageList");
--- xulrunner-1.9.0.7.orig/toolkit/content/jar.mn
+++ xulrunner-1.9.0.7/toolkit/content/jar.mn
@@ -8,7 +8,8 @@
 *  content/global/license.html                (license.html)
    content/global/XPCNativeWrapper.js         (XPCNativeWrapper.js)
 *  content/global/xul.css                     (xul.css)
-*  content/global/about.xhtml                 (about.xhtml)
+   content/global/about.xhtml                 (about.xhtml)
+   content/global/about.dtd
    content/global/plugins.html
    content/global/plugins.css
 +  content/global/buildconfig.html            (buildconfig.html)
--- xulrunner-1.9.0.7.orig/toolkit/content/Makefile.in
+++ xulrunner-1.9.0.7/toolkit/content/Makefile.in
@@ -45,8 +45,6 @@
 
 include $(DEPTH)/config/autoconf.mk
 
-DEFINES += -DMOZ_APP_VERSION=$(MOZ_APP_VERSION)
-
 ifdef ENABLE_TESTS
 DIRS += tests
 endif
--- xulrunner-1.9.0.7.orig/toolkit/content/about.dtd
+++ xulrunner-1.9.0.7/toolkit/content/about.dtd
@@ -0,0 +1,7 @@
+<!ENTITY about.readme.debian.beforeLink "Read the ">
+<!ENTITY about.readme.debian.linkTitle  "Debian README file">
+<!ENTITY about.readme.debian.afterLink  " for this package">
+
+<!ENTITY about.bugs.beforeLink "See the ">
+<!ENTITY about.bugs.linkTitle  "Debian bug reports">
+<!ENTITY about.bugs.afterLink  " for this package">
--- xulrunner-1.9.0.7.orig/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp
+++ xulrunner-1.9.0.7/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp
@@ -2023,8 +2023,9 @@
           return NS_ERROR_FAILURE;
         }
         const nsCSubstring& str = Substring(chunk, start, 4);
-        const PRUint32 *p = reinterpret_cast<const PRUint32*>(str.BeginReading());
-        entry->mAddChunkId = PR_ntohl(*p);
+        PRUint32 p;
+        memcpy(&p, reinterpret_cast<const PRUint32*>(str.BeginReading()), 4);
+        entry->mAddChunkId = PR_ntohl(p);
         if (entry->mAddChunkId == 0) {
           NS_WARNING("Received invalid chunk number.");
           return NS_ERROR_FAILURE;
@@ -2052,8 +2053,9 @@
 
         if (chunkType == CHUNK_SUB) {
           const nsCSubstring& str = Substring(chunk, start, 4);
-          const PRUint32 *p = reinterpret_cast<const PRUint32*>(str.BeginReading());
-          entry->mAddChunkId = PR_ntohl(*p);
+          PRUint32 p;
+          memcpy(&p, reinterpret_cast<const PRUint32*>(str.BeginReading()), 4);
+          entry->mAddChunkId = PR_ntohl(p);
           if (entry->mAddChunkId == 0) {
             NS_WARNING("Received invalid chunk number.");
             return NS_ERROR_FAILURE;
--- xulrunner-1.9.0.7.orig/toolkit/components/url-classifier/src/Makefile.in
+++ xulrunner-1.9.0.7/toolkit/components/url-classifier/src/Makefile.in
@@ -41,5 +41,9 @@
                       nsUrlClassifierListManager.js \
                       $(NULL)
 
+ifeq ($(OS_TEST),alpha)
+MOZ_OPTIMIZE_FLAGS := -O0
+endif
+
 include $(topsrcdir)/config/rules.mk
 
--- xulrunner-1.9.0.7.orig/toolkit/xre/nsAppRunner.cpp
+++ xulrunner-1.9.0.7/toolkit/xre/nsAppRunner.cpp
@@ -273,6 +273,16 @@
 #include "nsGTKToolkit.h"
 #endif
 
+// Save literal putenv string to environment variable.
+static void
+SaveToEnv(const char *putenv)
+{
+  char *expr = strdup(putenv);
+  if (expr)
+    PR_SetEnv(expr);
+  // We intentionally leak |expr| here since it is required by PR_SetEnv.
+}
+
 // Save the given word to the specified environment variable.
 static void
 SaveWordToEnv(const char *name, const nsACString & word)
@@ -1575,7 +1585,7 @@
     gRestartArgv[gRestartArgc] = nsnull;
   }
 
-  PR_SetEnv("MOZ_LAUNCHED_CHILD=1");
+  SaveToEnv("MOZ_LAUNCHED_CHILD=1");
 
 #if defined(XP_MACOSX)
   LaunchChildMac(gRestartArgc, gRestartArgv);
@@ -1801,7 +1811,7 @@
   PRBool offline = PR_FALSE;
   aProfileSvc->GetStartOffline(&offline);
   if (offline) {
-    PR_SetEnv("XRE_START_OFFLINE=1");
+    SaveToEnv("XRE_START_OFFLINE=1");
   }
 
   return LaunchChild(aNative);
@@ -1813,7 +1823,7 @@
 {
   nsresult rv;
 
-  PR_SetEnv("XRE_IMPORT_PROFILES=1");
+  SaveToEnv("XRE_IMPORT_PROFILES=1");
 
   // try to import old-style profiles
   { // scope XPCOM
@@ -2703,7 +2713,7 @@
   }
 #endif
 
-  PR_SetEnv("MOZ_LAUNCHED_CHILD=");
+  SaveToEnv("MOZ_LAUNCHED_CHILD=");
 
   gRestartArgc = gArgc;
   gRestartArgv = (char**) malloc(sizeof(char*) * (gArgc + 1));
@@ -2742,7 +2752,7 @@
     PR_fprintf(PR_STDERR, "Error: argument -a requires an application name\n");
     return 1;
   } else if (ar == ARG_FOUND) {
-    PR_SetEnv("MOZ_NO_REMOTE=1");
+    SaveToEnv("MOZ_NO_REMOTE=1");
   }
 
   // Handle -help and -version command line arguments.
@@ -2824,6 +2834,8 @@
           PR_fprintf(PR_STDERR, "Error: no display specified\n");
           return 1;
         }
+      } else {
+	SaveWordToEnv("DISPLAY", nsDependentCString(display_name));
       }
       display = gdk_display_open(display_name);
       if (!display) {
@@ -3143,14 +3155,14 @@
 
           // clear out any environment variables which may have been set 
           // during the relaunch process now that we know we won't be relaunching.
-          PR_SetEnv("XRE_PROFILE_PATH=");
-          PR_SetEnv("XRE_PROFILE_LOCAL_PATH=");
-          PR_SetEnv("XRE_PROFILE_NAME=");
-          PR_SetEnv("XRE_START_OFFLINE=");
-          PR_SetEnv("XRE_IMPORT_PROFILES=");
-          PR_SetEnv("NO_EM_RESTART=");
-          PR_SetEnv("XUL_APP_FILE=");
-          PR_SetEnv("XRE_BINARY_PATH=");
+          SaveToEnv("XRE_PROFILE_PATH=");
+          SaveToEnv("XRE_PROFILE_LOCAL_PATH=");
+          SaveToEnv("XRE_PROFILE_NAME=");
+          SaveToEnv("XRE_START_OFFLINE=");
+          SaveToEnv("XRE_IMPORT_PROFILES=");
+          SaveToEnv("NO_EM_RESTART=");
+          SaveToEnv("XUL_APP_FILE=");
+          SaveToEnv("XRE_BINARY_PATH=");
 
 #ifdef XP_MACOSX
           // we re-initialize the command-line service and do appleevents munging
@@ -3246,10 +3258,10 @@
       else {
         char* noEMRestart = PR_GetEnv("NO_EM_RESTART");
         if (noEMRestart && *noEMRestart) {
-          PR_SetEnv("NO_EM_RESTART=1");
+          SaveToEnv("NO_EM_RESTART=1");
         }
         else {
-          PR_SetEnv("NO_EM_RESTART=0");
+          SaveToEnv("NO_EM_RESTART=0");
         }
       }
 
--- xulrunner-1.9.0.7.orig/toolkit/xre/nsXREDirProvider.cpp
+++ xulrunner-1.9.0.7/toolkit/xre/nsXREDirProvider.cpp
@@ -614,6 +614,7 @@
 }
 
 static const char *const kAppendPrefDir[] = { "defaults", "preferences", nsnull };
+static const char *const kAppendSysPrefDir[] = { "defaults", "syspref", nsnull };
 
 #ifdef DEBUG_bsmedberg
 static void
@@ -670,6 +671,7 @@
     LoadAppDirIntoArray(mXULAppDir, kAppendPrefDir, directories);
     LoadDirsIntoArray(mAppBundleDirectories,
                       kAppendPrefDir, directories);
+    LoadAppDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories);
 
     rv = NS_NewArrayEnumerator(aResult, directories);
   }
--- xulrunner-1.9.0.7.orig/js/src/js.c
+++ xulrunner-1.9.0.7/js/src/js.c
@@ -132,8 +132,8 @@
 
 #ifdef EDITLINE
 JS_BEGIN_EXTERN_C
-extern char     *readline(const char *prompt);
-extern void     add_history(char *line);
+extern JS_EXPORT_API(char)     *readline(const char *prompt);
+extern JS_EXPORT_API(void)     add_history(char *line);
 JS_END_EXTERN_C
 #endif
 
--- xulrunner-1.9.0.7.orig/js/src/jsapi.h
+++ xulrunner-1.9.0.7/js/src/jsapi.h
@@ -138,34 +138,6 @@
 #define JSFUN_DISJOINT_FLAGS(f) ((f) & 0x0f)
 #define JSFUN_GSFLAGS(f)        ((f) & (JSFUN_GETTER | JSFUN_SETTER))
 
-#ifdef MOZILLA_1_8_BRANCH
-
-/*
- * Squeeze three more bits into existing 8-bit flags by taking advantage of
- * the invalid combination (JSFUN_GETTER | JSFUN_SETTER).
- */
-#define JSFUN_GETTER_TEST(f)       (JSFUN_GSFLAGS(f) == JSFUN_GETTER)
-#define JSFUN_SETTER_TEST(f)       (JSFUN_GSFLAGS(f) == JSFUN_SETTER)
-#define JSFUN_FLAGS_TEST(f,t)      (JSFUN_GSFLAGS(~(f)) ? (f) & (t) : 0)
-#define JSFUN_BOUND_METHOD_TEST(f) JSFUN_FLAGS_TEST(f, JSFUN_BOUND_METHOD)
-#define JSFUN_HEAVYWEIGHT_TEST(f)  JSFUN_FLAGS_TEST(f, JSFUN_HEAVYWEIGHT)
-
-#define JSFUN_GSFLAG2ATTR(f)       (JSFUN_GETTER_TEST(f) ? JSPROP_GETTER :    \
-                                    JSFUN_SETTER_TEST(f) ? JSPROP_SETTER : 0)
-
-#define JSFUN_THISP_FLAGS(f)    (JSFUN_GSFLAGS(~(f)) ? 0 :                    \
-                                 (f) & JSFUN_THISP_PRIMITIVE)
-#define JSFUN_THISP_TEST(f,t)   ((f) == (t) || (f) == JSFUN_THISP_PRIMITIVE)
-
-#define JSFUN_THISP_STRING      0x30    /* |this| may be a primitive string */
-#define JSFUN_THISP_NUMBER      0x70    /* |this| may be a primitive number */
-#define JSFUN_THISP_BOOLEAN     0xb0    /* |this| may be a primitive boolean */
-#define JSFUN_THISP_PRIMITIVE   0xf0    /* |this| may be any primitive value */
-
-#define JSFUN_FLAGS_MASK        0xf8    /* overlay JSFUN_* attributes */
-
-#else
-
 #define JSFUN_GETTER_TEST(f)       ((f) & JSFUN_GETTER)
 #define JSFUN_SETTER_TEST(f)       ((f) & JSFUN_SETTER)
 #define JSFUN_BOUND_METHOD_TEST(f) ((f) & JSFUN_BOUND_METHOD)
@@ -191,8 +163,6 @@
                                            instead of defaulting to class gsops
                                            for property holding function */
 
-#endif
-
 /*
  * Re-use JSFUN_LAMBDA, which applies only to scripted functions, for use in
  * JSFunctionSpec arrays that specify generic native prototype methods, i.e.,
@@ -1433,11 +1403,6 @@
 struct JSFunctionSpec {
     const char      *name;
     JSNative        call;
-#ifdef MOZILLA_1_8_BRANCH
-    uint8           nargs;
-    uint8           flags;
-    uint16          extra;
-#else
     uint16          nargs;
     uint16          flags;
 
@@ -1448,7 +1413,6 @@
      *                  If fast native, minimum required argc.
      */
     uint32          extra;
-#endif
 };
 
 /*
--- xulrunner-1.9.0.7.orig/js/src/Makefile.in
+++ xulrunner-1.9.0.7/js/src/Makefile.in
@@ -48,6 +48,7 @@
 LIBRARY_NAME	= mozjs
 LIB_IS_C_ONLY	= 1
 GRE_MODULE	= 1
+SO_VERSION	= 1d
 
 ifdef GNU_CC
 ifdef INTEL_CC
@@ -77,6 +78,16 @@
 RESFILE		= js$(MOZ_BITS)40.res
 endif
 
+ifdef ENABLE_JS_BINARY
+SIMPLE_PROGRAMS	= js
+PROG_LIBS	= -L. $(MOZ_JS_LIBS) $(NSPR_LIBS)
+$(SIMPLE_PROGRAMS): $(DLL_PREFIX)$(LIBRARY_NAME)$(DLL_SUFFIX)
+ifdef HAVE_READLINE
+PROG_LIBS	+= $(READLINE_LIBS)
+DEFINES		= -DEDITLINE
+endif
+endif
+
 PACKAGE_FILE = js.pkg
 
 # JavaScript must be built shared, even for static builds, as it is used by
--- xulrunner-1.9.0.7.orig/js/src/xpconnect/shell/Makefile.in
+++ xulrunner-1.9.0.7/js/src/xpconnect/shell/Makefile.in
@@ -61,7 +61,9 @@
 LIBS		= \
 		$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
 		$(MOZ_JS_LIBS) \
+		-Wl,--no-as-needed \
 		$(XPCOM_LIBS) \
+		-Wl,--as-needed \
 		$(NSPR_LIBS) \
 		$(NULL)
 
@@ -84,7 +86,7 @@
 # look at mozilla/js/src/editline, which is license-free (but not part
 # of the mozilla build.)
 #
-ifdef JS_READLINE
+ifdef HAVE_READLINE
 DEFINES += -DEDITLINE
-LIBS += -lreadline $(JS_READLINE_EXTRA_LIBS)
+LIBS += $(READLINE_LIBS)
 endif
--- xulrunner-1.9.0.7.orig/js/src/xpconnect/shell/xpcshell.cpp
+++ xulrunner-1.9.0.7/js/src/xpconnect/shell/xpcshell.cpp
@@ -575,13 +575,8 @@
 } JSShellErrNum;
 
 JSErrorFormatString jsShell_ErrorFormatString[JSErr_Limit] = {
-#if JS_HAS_DFLT_MSG_STRINGS
 #define MSG_DEF(name, number, count, exception, format) \
     { format, count } ,
-#else
-#define MSG_DEF(name, number, count, exception, format) \
-    { NULL, count } ,
-#endif
 #include "jsshell.msg"
 #undef MSG_DEF
 };
@@ -597,8 +592,8 @@
 
 #ifdef EDITLINE
 extern "C" {
-extern char     *readline(const char *prompt);
-extern void     add_history(char *line);
+extern JS_EXPORT_API(char)     *readline(const char *prompt);
+extern JS_EXPORT_API(void)     add_history(char *line);
 }
 #endif
 
--- xulrunner-1.9.0.7.orig/extensions/pref/autoconfig/src/nsReadConfig.cpp
+++ xulrunner-1.9.0.7/extensions/pref/autoconfig/src/nsReadConfig.cpp
@@ -284,10 +284,13 @@
         jsFile->AppendNative(NS_LITERAL_CSTRING("Essential Files"));
 #endif
     } else {
-        rv = NS_GetSpecialDirectory(NS_APP_DEFAULTS_50_DIR,
+        rv = NS_GetSpecialDirectory(NS_GRE_DIR,
                                     getter_AddRefs(jsFile));
         if (NS_FAILED(rv)) 
             return rv;
+        rv = jsFile->AppendNative(NS_LITERAL_CSTRING("defaults"));
+        if (NS_FAILED(rv))
+            return rv;
         rv = jsFile->AppendNative(NS_LITERAL_CSTRING("autoconfig"));
         if (NS_FAILED(rv))
             return rv;
--- xulrunner-1.9.0.7.orig/extensions/java/xpcom/Makefile.in
+++ xulrunner-1.9.0.7/extensions/java/xpcom/Makefile.in
@@ -41,7 +41,11 @@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS = interfaces glue
+DIRS = glue
+
+ifndef DEB_NO_JAR
+DIRS += interfaces
+endif
 
 ifdef ENABLE_TESTS
 DIRS += tests
@@ -50,8 +54,10 @@
 include $(topsrcdir)/config/rules.mk
 
 # Build the implementation Java classes
+ifndef DEB_NO_JAR
 libs::
 	$(MAKE) -C src jar-libs
 
 install::
 	$(MAKE) -C src jar-install
+endif
--- xulrunner-1.9.0.7.orig/extensions/python/xpcom/src/Makefile.in
+++ xulrunner-1.9.0.7/extensions/python/xpcom/src/Makefile.in
@@ -82,7 +82,7 @@
 
 include $(topsrcdir)/config/config.mk
 
-CXXFLAGS += -DPYTHON_SO=\"libpython$(MOZ_PYTHON_VER_DOTTED).so\"
+CXXFLAGS += -DPYTHON_SO=\"$(PYTHON_SO)\"
 
 EXTRA_DSO_LDOPTS += $(XPCOM_GLUE_LDOPTS) \
                     $(MOZ_COMPONENT_LIBS) \
--- xulrunner-1.9.0.7.orig/extensions/python/xpcom/src/module/Makefile.in
+++ xulrunner-1.9.0.7/extensions/python/xpcom/src/module/Makefile.in
@@ -77,6 +77,7 @@
 else
   EXTRA_DSO_LDOPTS += $(XPCOM_GLUE_LDOPTS) \
                       $(MOZ_COMPONENT_LIBS) \
+		      -Wl,-rpath,/usr/lib/xulrunner-1.9
                       $(NULL)
 endif
 IMPORT_LIBRARY		:= $(SHARED_LIBRARY:.pyd=.lib)
--- xulrunner-1.9.0.7.orig/extensions/python/xpcom/src/loader/Makefile.in
+++ xulrunner-1.9.0.7/extensions/python/xpcom/src/loader/Makefile.in
@@ -69,6 +69,7 @@
 
 EXTRA_DSO_LDOPTS += $(XPCOM_GLUE_LDOPTS) \
                     $(MOZ_COMPONENT_LIBS) \
+                    -Wl,-rpath,/usr/lib/xulrunner-1.9 \
                     $(NULL)
 
 include $(topsrcdir)/config/rules.mk
--- xulrunner-1.9.0.7.orig/uriloader/exthandler/nsHandlerService.js
+++ xulrunner-1.9.0.7/uriloader/exthandler/nsHandlerService.js
@@ -609,25 +609,24 @@
 
     try {
       file.initWithPath(aPath);
-
-      if (file.exists())
-        return file;
     }
     catch(ex) {
       // Note: for historical reasons, we don't actually check to see
       // if the exception is NS_ERROR_FILE_UNRECOGNIZED_PATH, which is what
       // nsILocalFile::initWithPath throws when a path is relative.
-
       file = this._dirSvc.get("XCurProcD", Ci.nsIFile);
 
       try {
         file.append(aPath);
-        if (file.exists())
-          return file;
       }
       catch(ex) {}
     }
 
+    if (file && file.exists() &&
+        file.isExecutable() &&
+        file.isFile())
+      return file;
+
     return null;
   },
 
--- xulrunner-1.9.0.7.orig/uriloader/exthandler/unix/nsOSHelperAppService.cpp
+++ xulrunner-1.9.0.7/uriloader/exthandler/unix/nsOSHelperAppService.cpp
@@ -67,7 +67,6 @@
 #include "nsDirectoryServiceUtils.h"
 #include "prenv.h"      // for PR_GetEnv()
 #include "nsAutoPtr.h"
-#include <stdlib.h>		// for system()
 
 #define LOG(args) PR_LOG(mLog, PR_LOG_DEBUG, args)
 #define LOG_ENABLED() PR_LOG_TEST(mLog, PR_LOG_DEBUG)
@@ -1141,9 +1140,32 @@
                                        aMinorType,
                                        aTypeOptions,
                                        testCommand);
+                  if (NS_FAILED(rv))
+                    continue;
+                  nsCOMPtr<nsIProcess> process = do_CreateInstance(NS_PROCESS_CONTRACTID, &rv);
+                  if (NS_FAILED(rv))
+                    continue;
+                  nsCOMPtr<nsILocalFile> file(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv));
+                  if (NS_FAILED(rv))
+                    continue;
+                  rv = file->InitWithNativePath(NS_LITERAL_CSTRING("/bin/sh"));
+                  if (NS_FAILED(rv))
+                    continue;
+                  rv = process->Init(file);
+                  if (NS_FAILED(rv))
+                    continue;
+                  const char *args[] = { "-c", testCommand.get() };
                   LOG(("Running Test: %s\n", testCommand.get()));
-                  // XXX this should not use system(), since that can block the UI thread!
-                  if (NS_SUCCEEDED(rv) && system(testCommand.get()) != 0) {
+                  PRUint32 pid;
+                  rv = process->Run(PR_TRUE, args, 2, &pid);
+                  if (NS_FAILED(rv))
+                    continue;
+                  PRInt32 exitValue;
+                  rv = process->GetExitValue(&exitValue);
+                  if (NS_FAILED(rv))
+                    continue;
+                  LOG(("Exit code: %d\n", exitValue));
+                  if (exitValue) {
                     match = PR_FALSE;
                   }
                 }
--- xulrunner-1.9.0.7.orig/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
+++ xulrunner-1.9.0.7/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
@@ -50,6 +50,12 @@
 NS_IMETHODIMP
 nsMIMEInfoUnix::GetHasDefaultHandler(PRBool *_retval)
 {
+  // if mDefaultApplication is set, it means the application has been set from
+  // either /etc/mailcap or ${HOME}/.mailcap, in which case we don't want to
+  // give the GNOME answer.
+  if (mDefaultApplication)
+    return nsMIMEInfoImpl::GetHasDefaultHandler(_retval);
+
   *_retval = PR_FALSE;
   nsCOMPtr<nsIGnomeVFSService> vfs = do_GetService(NS_GNOMEVFSSERVICE_CONTRACTID);
   if (vfs) {
@@ -58,16 +64,18 @@
       *_retval = PR_TRUE;
   }
 
-  if (*_retval)
-    return NS_OK;
-
-  // If we didn't find a VFS handler, fallback.
-  return nsMIMEInfoImpl::GetHasDefaultHandler(_retval);
+  return NS_OK;
 }
 
 nsresult
 nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
 {
+  // if mDefaultApplication is set, it means the application has been set from
+  // either /etc/mailcap or ${HOME}/.mailcap, in which case we don't want to
+  // give the GNOME answer.
+  if (mDefaultApplication)
+    return nsMIMEInfoImpl::LaunchDefaultWithFile(aFile);
+
   nsCAutoString nativePath;
   aFile->GetNativePath(nativePath);
 
--- xulrunner-1.9.0.7.orig/security/manager/ssl/public/nsIBadCertListener.idl
+++ xulrunner-1.9.0.7/security/manager/ssl/public/nsIBadCertListener.idl
@@ -0,0 +1,155 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+ *
+ * ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *   Javier Delgadillo <javi@netscape.com>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "nsISupports.idl"
+
+interface nsIX509Cert;
+interface nsIInterfaceRequestor;
+
+/**
+ * Functions that display warnings for problems with web site trust.
+ *
+ * @status FROZEN
+ */
+[scriptable, uuid(86960956-edb0-11d4-998b-00b0d02354a0)]
+interface nsIBadCertListener : nsISupports {
+
+  /**
+   *  No decision was made by the user, whether to trust a cert.
+   */
+  const short UNINIT_ADD_FLAG = -1;
+
+  /**
+   *  The user decided to add trust to a certificate temporarily
+   *  for the current application session only.
+   */
+  const short ADD_TRUSTED_FOR_SESSION = 1;
+
+  /**
+   *  The user decided to add trust to a certificate permanently.
+   */
+  const short ADD_TRUSTED_PERMANENTLY = 2;
+
+  /**
+   *  Inform the user there are problems with the trust of a certificate,
+   *  and request a decision from the user.
+   *  The UI should offer the user a way to look at the certificate in detail.
+   *  The following is a sample UI message to be shown to the user:
+   *
+   *    Unable to verify the identity of %S as a trusted site.
+   *    Possible reasons for this error:
+   *    - Your browser does not recognize the Certificate Authority 
+   *      that issued the site's certificate.
+   *    - The site's certificate is incomplete due to a 
+   *      server misconfiguration.
+   *    - You are connected to a site pretending to be %S, 
+   *      possibly to obtain your confidential information.
+   *    Please notify the site's webmaster about this problem.
+   *    Before accepting this certificate, you should examine this site's 
+   *      certificate carefully. Are you willing to to accept this certificate 
+   *      for the purpose of identifying the Web site %S?
+   *    o Accept this certificate permanently
+   *    x Accept this certificate temporarily for this session
+   *    o Do not accept this certificate and do not connect to this Web site
+   *
+   *  @param socketInfo A network communication context that can be used to obtain more information
+   *                    about the active connection.
+   *  @param cert The certificate that is not trusted and that is having the problem.
+   *  @param certAddType The user's trust decision. See constants defined above.
+   *
+   *  @return true if the user decided to connect anyway, false if the user decided to not connect
+   */
+  boolean confirmUnknownIssuer(in nsIInterfaceRequestor socketInfo, 
+                               in nsIX509Cert cert,
+                               out short certAddType);
+
+  /**
+   *  Inform the user there are problems with the trust of a certificate,
+   *  and request a decision from the user.
+   *  The hostname mentioned in the server's certificate is not the hostname
+   *  that was used as a destination address for the current connection.
+   *
+   *  @param socketInfo A network communication context that can be used to obtain more information
+   *                    about the active connection.
+   *  @param targetURL The URL that was used to open the current connection.
+   *  @param cert The certificate that was presented by the server.
+   *
+   *  @return true if the user decided to connect anyway, false if the user decided to not connect
+   */
+  boolean confirmMismatchDomain(in nsIInterfaceRequestor socketInfo,
+                                in AUTF8String targetURL,
+                                in nsIX509Cert cert);
+
+  /**
+   *  Inform the user there are problems with the trust of a certificate,
+   *  and request a decision from the user.
+   *  The certificate presented by the server is no longer valid because 
+   *  the validity period has expired.
+   *
+   *  @param socketInfo A network communication context that can be used to obtain more information
+   *                    about the active connection.
+   *  @param cert The certificate that was presented by the server.
+   *
+   *  @return true if the user decided to connect anyway, false if the user decided to not connect
+   */
+  boolean confirmCertExpired(in nsIInterfaceRequestor socketInfo,
+                             in nsIX509Cert cert);
+
+  /**
+   *  Inform the user there are problems with the trust of a certificate,
+   *  and request a decision from the user.
+   *  The Certificate Authority (CA) that issued the server's certificate has issued a 
+   *  Certificate Revocation List (CRL). 
+   *  However, the application does not have a current version of the CA's CRL.
+   *  Due to the application configuration, the application disallows the connection
+   *  to the remote site.
+   *
+   *  @param socketInfo A network communication context that can be used to obtain more information
+   *                    about the active connection.
+   *  @param targetURL The URL that was used to open the current connection.
+   *  @param cert The certificate that was presented by the server.
+   */
+  void notifyCrlNextupdate(in nsIInterfaceRequestor socketInfo,
+                           in AUTF8String targetURL, in nsIX509Cert cert);
+
+};
+
+%{C++
+#define NS_BADCERTLISTENER_CONTRACTID "@mozilla.org/nsBadCertListener;1"
+%}
--- xulrunner-1.9.0.7.orig/security/manager/ssl/public/Makefile.in
+++ xulrunner-1.9.0.7/security/manager/ssl/public/Makefile.in
@@ -59,6 +59,7 @@
     $(NULL)
 
 XPIDLSRCS = \
+    nsIBadCertListener.idl \
     nsIBadCertListener2.idl \
     nsISSLErrorListener.idl \
     nsIIdentityInfo.idl \
--- xulrunner-1.9.0.7.orig/security/manager/ssl/src/nsNSSIOLayer.cpp
+++ xulrunner-1.9.0.7/security/manager/ssl/src/nsNSSIOLayer.cpp
@@ -59,6 +59,7 @@
 #include "nsDateTimeFormatCID.h"
 #include "nsIClientAuthDialogs.h"
 #include "nsICertOverrideService.h"
+#include "nsIBadCertListener.h"
 #include "nsIBadCertListener2.h"
 #include "nsISSLErrorListener.h"
 #include "nsIObjectInputStream.h"
@@ -750,6 +751,20 @@
   }
 }
 
+void nsNSSSocketInfo::SetBadCertUIStatus(nsNSSSocketInfo::BadCertUIStatusType aNewStatus)
+{
+  if (mBadCertUIStatus == bcuis_active &&
+      aNewStatus == bcuis_was_shown)
+  {
+    // we were blocked and going back to unblocked,
+    // so let's reset the handshake start time, in order to ensure
+    // we do not count the amount of time while the UI was shown.
+    mHandshakeStartTime = PR_IntervalNow();
+  }
+
+  mBadCertUIStatus = aNewStatus;
+}
+
 void nsNSSSocketInfo::SetAllowTLSIntoleranceTimeout(PRBool aAllow)
 {
   mAllowTLSIntoleranceTimeout = aAllow;
@@ -759,7 +774,8 @@
 
 PRBool nsNSSSocketInfo::HandshakeTimeout()
 {
-  if (!mHandshakeInProgress || !mAllowTLSIntoleranceTimeout)
+  if (!mHandshakeInProgress || !mAllowTLSIntoleranceTimeout ||
+      mBadCertUIStatus == bcuis_active)
     return PR_FALSE;
 
   return ((PRIntervalTime)(PR_IntervalNow() - mHandshakeStartTime)
@@ -1610,6 +1626,37 @@
   return PR_FALSE;
 }
 
+static PRBool
+isClosedConnectionAfterBadCertUIWasShown(PRInt32 bytesTransfered,
+                                         PRBool wasReading,
+                                         PRInt32 err,
+                                         nsNSSSocketInfo::BadCertUIStatusType aBadCertUIStatus)
+{
+  if (aBadCertUIStatus != nsNSSSocketInfo::bcuis_not_shown)
+  {
+    // Bad cert UI was shown for this socket.
+    // Server timeout possible.
+    // Retry on a simple connection close.
+
+    if (wasReading && 0 == bytesTransfered)
+      return PR_TRUE;
+
+    if (0 > bytesTransfered)
+    {
+      switch (err)
+      {
+        case PR_CONNECT_RESET_ERROR:
+        case PR_END_OF_FILE_ERROR:
+          return PR_TRUE;
+        default:
+          break;
+      }
+    }
+  }
+
+  return PR_FALSE;
+}
+
 PRInt32
 nsSSLThread::checkHandshake(PRInt32 bytesTransfered, 
                             PRBool wasReading,
@@ -1661,6 +1708,12 @@
         return bytesTransfered;
       }
 
+      wantRetry =
+        isClosedConnectionAfterBadCertUIWasShown(bytesTransfered,
+                                                 wasReading,
+                                                 err,
+                                                 socketInfo->GetBadCertUIStatus());
+
       if (!wantRetry // no decision yet
           && isTLSIntoleranceError(err, socketInfo->GetHasCleartextPhase()))
       {
@@ -1678,6 +1731,12 @@
   {
     if (handleHandshakeResultNow)
     {
+      wantRetry =
+        isClosedConnectionAfterBadCertUIWasShown(bytesTransfered,
+                                                 wasReading,
+                                                 0,
+                                                 socketInfo->GetBadCertUIStatus());
+
       if (!wantRetry // no decision yet
           && !socketInfo->GetHasCleartextPhase()) // mirror PR_CONNECT_RESET_ERROR treament
       {
@@ -3035,6 +3094,48 @@
         rv = proxy_bcl->NotifyCertProblem(csi, status, hostWithPortString, 
                                           &suppressMessage);
       }
+    } else {
+      nsCOMPtr<nsIBadCertListener> handler = do_GetInterface(callbacks);
+      nsIBadCertListener *badCertHandler = nsnull;
+      if (handler) {
+        NS_GetProxyForObject(NS_PROXY_TO_MAIN_THREAD,
+                             NS_GET_IID(nsIBadCertListener),
+                             handler,
+                             NS_PROXY_SYNC,
+                             (void**)&badCertHandler);
+      }
+      if (!badCertHandler) {
+        getNSSDialogs((void**)&badCertHandler,
+                      NS_GET_IID(nsIBadCertListener),
+                      NS_BADCERTLISTENER_CONTRACTID);
+      }
+      if (badCertHandler) {
+        PRBool retVal = PR_TRUE;
+        PRInt16 addType = nsIBadCertListener::UNINIT_ADD_FLAG;
+        nsIInterfaceRequestor *csi = static_cast<nsIInterfaceRequestor*>(infoObject);
+        infoObject->SetBadCertUIStatus(nsNSSSocketInfo::bcuis_active);
+        if (remaining_display_errors & nsICertOverrideService::ERROR_UNTRUSTED) {
+          rv = badCertHandler->ConfirmUnknownIssuer(csi, ix509, &addType, &retVal);
+          if (NS_FAILED(rv)) retVal = PR_FALSE;
+        }
+        if (retVal && (remaining_display_errors & nsICertOverrideService::ERROR_MISMATCH)) {
+          rv = badCertHandler->ConfirmMismatchDomain(csi, hostString, ix509, &retVal);
+          if (NS_FAILED(rv)) retVal = PR_FALSE;
+        }
+        if (retVal && (remaining_display_errors & nsICertOverrideService::ERROR_TIME)) {
+          rv = badCertHandler->ConfirmCertExpired(csi, ix509, &retVal);
+          if (NS_FAILED(rv)) retVal = PR_FALSE;
+        }
+        if (overrideService && retVal && addType != nsIBadCertListener::UNINIT_ADD_FLAG) {
+          overrideService->RememberValidityOverride(hostString, port, ix509,
+                                    nsICertOverrideService::ERROR_UNTRUSTED,
+                                    addType == nsIBadCertListener::ADD_TRUSTED_FOR_SESSION);
+        }
+        infoObject->SetBadCertUIStatus(nsNSSSocketInfo::bcuis_was_shown);
+        if (retVal)
+          return SECSuccess;
+        suppressMessage = PR_TRUE;
+      }
     }
   }
 
--- xulrunner-1.9.0.7.orig/security/manager/ssl/src/nsNSSIOLayer.h
+++ xulrunner-1.9.0.7/security/manager/ssl/src/nsNSSIOLayer.h
@@ -185,6 +185,13 @@
 
   void SetAllowTLSIntoleranceTimeout(PRBool aAllow);
 
+  enum BadCertUIStatusType {
+    bcuis_not_shown, bcuis_active, bcuis_was_shown
+  };
+
+  void SetBadCertUIStatus(BadCertUIStatusType aNewStatus);
+  BadCertUIStatusType GetBadCertUIStatus() { return mBadCertUIStatus; }
+
   nsresult GetExternalErrorReporting(PRBool* state);
   nsresult SetExternalErrorReporting(PRBool aState);
 
@@ -220,6 +227,7 @@
   PRPackedBool mHasCleartextPhase;
   PRPackedBool mHandshakeInProgress;
   PRPackedBool mAllowTLSIntoleranceTimeout;
+  BadCertUIStatusType mBadCertUIStatus;
   PRIntervalTime mHandshakeStartTime;
   PRInt32 mPort;
   nsXPIDLCString mHostName;
--- xulrunner-1.9.0.7.orig/xulrunner/Makefile.in
+++ xulrunner-1.9.0.7/xulrunner/Makefile.in
@@ -47,7 +47,6 @@
 	setup \
 	stub \
 	app \
-	examples \
 	$(NULL)
 
 ifeq ($(OS_ARCH),WINNT)
--- xulrunner-1.9.0.7.orig/xulrunner/app/xulrunner.js
+++ xulrunner-1.9.0.7/xulrunner/app/xulrunner.js
@@ -39,7 +39,8 @@
 // We need to override the default values of these preferences since all.js
 // assumes these are in the navigator package, which for us is non-existant.
 // XXX(darin): perhaps all.js should not be seamonkey specific
-pref("general.useragent.locale", "@AB_CD@");
+pref("intl.locale.matchOS", true);
+pref("general.useragent.locale", "chrome://global/locale/intl.properties");
 pref("font.language.group", "chrome://global/locale/intl.properties");
 pref("intl.accept_languages", "chrome://global/locale/intl.properties");
 pref("intl.charsetmenu.browser.static", "chrome://global/locale/intl.properties");
--- xulrunner-1.9.0.7.orig/xulrunner/app/Makefile.in
+++ xulrunner-1.9.0.7/xulrunner/app/Makefile.in
@@ -47,8 +47,6 @@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS		= profile
-
 PREF_JS_EXPORTS = $(srcdir)/xulrunner.js
 GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/,xulrunner.js)
 
@@ -115,7 +113,9 @@
 	$(EXTRA_DSO_LIBS) \
 	$(MOZ_JS_LIBS) \
 	$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
+	-Wl,--no-as-needed \
 	$(XPCOM_LIBS) \
+	-Wl,--as-needed \
 	$(NSPR_LIBS) \
 	$(TK_LIBS) \
 	$(NULL)
@@ -204,7 +204,7 @@
 
 ifneq (,$(filter-out OS2 WINNT Darwin BeOS,$(OS_ARCH)))
 
-xulrunner:: mozilla.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
+xulrunner:: $(topsrcdir)/browser/app/mozilla.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
 	cat $< | sed -e "s|%MOZAPPDIR%|$(mozappdir)|" \
                 -e "s|%MOZ_USER_DIR%|.mozilla/xulrunner|" \
 		-e "s|%MREDIR%|$(mredir)|" > $@
--- xulrunner-1.9.0.7.orig/xulrunner/app/nsXULRunnerApp.cpp
+++ xulrunner-1.9.0.7/xulrunner/app/nsXULRunnerApp.cpp
@@ -43,7 +43,6 @@
 
 #include "nsXULAppAPI.h"
 #include "nsXPCOMGlue.h"
-#include "nsRegisterGRE.h"
 #include "nsAppRunner.h"
 #include "nsILocalFile.h"
 #include "nsIXULAppInstall.h"
@@ -165,12 +164,6 @@
            "  -h, --help                 show this message\n"
            "  -v, --version              show version\n"
            "  --gre-version              print the GRE version string on stdout\n"
-           "  --register-global          register this GRE in the machine registry\n"
-           "  --register-user            register this GRE in the user registry\n"
-           "  --unregister-global        unregister this GRE formerly registered with\n"
-           "                             --register-global\n"
-           "  --unregister-user          unregister this GRE formely registered with\n"
-           "                             --register-user\n"
            "  --find-gre <version>       Find a GRE with version <version> and print\n"
            "                             the path on stdout\n"
            "  --install-app <application> [<destination> [<directoryname>]]\n"
@@ -307,42 +300,6 @@
     if (NS_FAILED(rv))
       return 2;
 
-    PRBool registerGlobal = IsArg(argv[1], "register-global");
-    PRBool registerUser   = IsArg(argv[1], "register-user");
-    if (registerGlobal || registerUser) {
-      if (argc != 2) {
-        Usage(argv[0]);
-        return 1;
-      }
-
-      nsCOMPtr<nsIFile> regDir;
-      rv = GetXULRunnerDir(argv[0], getter_AddRefs(regDir));
-      if (NS_FAILED(rv))
-        return 2;
-
-      return RegisterXULRunner(registerGlobal, regDir,
-                               kGREProperties,
-                               NS_ARRAY_LENGTH(kGREProperties),
-                               milestone.get()) ? 0 : 2;
-    }
-
-    registerGlobal = IsArg(argv[1], "unregister-global");
-    registerUser   = IsArg(argv[1], "unregister-user");
-    if (registerGlobal || registerUser) {
-      if (argc != 2) {
-        Usage(argv[0]);
-        return 1;
-      }
-
-      nsCOMPtr<nsIFile> regDir;
-      rv = GetXULRunnerDir(argv[0], getter_AddRefs(regDir));
-      if (NS_FAILED(rv))
-        return 2;
-
-      UnregisterXULRunner(registerGlobal, regDir, milestone.get());
-      return 0;
-    }
-
     if (IsArg(argv[1], "find-gre")) {
       if (argc != 3) {
         Usage(argv[0]);
--- xulrunner-1.9.0.7.orig/xulrunner/installer/Makefile.in
+++ xulrunner-1.9.0.7/xulrunner/installer/Makefile.in
@@ -67,7 +67,7 @@
 
 include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
 
-$(MOZILLA_VERSION).system.conf: $(topsrcdir)/config/milestone.txt Makefile
+1.9.system.conf: $(topsrcdir)/config/milestone.txt Makefile
 	printf "[%s]\nGRE_PATH=%s\nxulrunner=true\nabi=%s" \
 	  $(MOZILLA_VERSION) $(installdir) $(TARGET_XPCOM_ABI)> $@
 
@@ -75,9 +75,9 @@
 # to register xulrunner per-user, override this with $HOME/.gre.d
 regdir = /etc/gre.d
 
-install:: $(MOZILLA_VERSION).system.conf
+install:: 1.9.system.conf
 	$(NSINSTALL) -D $(DESTDIR)$(regdir)
-	$(SYSINSTALL) $^ $(DESTDIR)$(regdir)
+	$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(regdir)
 endif
 
 # Add pkg-config files to the install:: target
@@ -118,6 +118,7 @@
 	-e "s|%sdkdir%|$(sdkdir)|" \
 	-e "s|%MOZ_APP_NAME%|$(MOZ_APP_NAME)|" \
 	-e "s|%MOZILLA_VERSION%|$(MOZ_APP_VERSION)|" \
+	-e "s|%WCHAR_CFLAGS%|$(WCHAR_CFLAGS)|" \
 	-e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \
 	-e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" \
 	-e "s|%NSPR_NAME%|$(NSPR_NAME)|" \
@@ -128,4 +129,4 @@
 	@echo pkg_config_file: $(pkg_config_files)
 	$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(libdir)/pkgconfig
 
-GARBAGE += $(MOZILLA_VERSION).system.conf $(pkg_config_files)
+GARBAGE += 1.9.system.conf $(pkg_config_files)
--- xulrunner-1.9.0.7.orig/xulrunner/installer/libxul-unstable.pc.in
+++ xulrunner-1.9.0.7/xulrunner/installer/libxul-unstable.pc.in
@@ -9,4 +9,4 @@
 Version: %MOZILLA_VERSION%
 Requires: %NSPR_NAME% >= %NSPR_VERSION%
 Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
-Cflags: -I${includedir}/${includetype} -fshort-wchar
+Cflags: -I${includedir}/${includetype} %WCHAR_CFLAGS%
--- xulrunner-1.9.0.7.orig/xulrunner/installer/libxul.pc.in
+++ xulrunner-1.9.0.7/xulrunner/installer/libxul.pc.in
@@ -13,4 +13,4 @@
 Version: %MOZILLA_VERSION%
 Requires: %NSPR_NAME% >= %NSPR_VERSION%
 Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
-Cflags: -I${includedir}/${includetype} -fshort-wchar
\ No newline at end of file
+Cflags: -I${includedir}/${includetype} %WCHAR_CFLAGS%
--- xulrunner-1.9.0.7.orig/xulrunner/installer/libxul-embedding-unstable.pc.in
+++ xulrunner-1.9.0.7/xulrunner/installer/libxul-embedding-unstable.pc.in
@@ -8,4 +8,4 @@
 Description: Static library for version-independent embedding of the Mozilla runtime (unstable API)
 Version: %MOZILLA_VERSION%
 Libs: -L${sdkdir}/lib -lxpcomglue
-Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar
+Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} %WCHAR_CFLAGS%
--- xulrunner-1.9.0.7.orig/xulrunner/installer/libxul-embedding.pc.in
+++ xulrunner-1.9.0.7/xulrunner/installer/libxul-embedding.pc.in
@@ -12,4 +12,4 @@
 Description: Static library for version-independent embedding of the Mozilla runtime
 Version: %MOZILLA_VERSION%
 Libs: -L${sdkdir}/lib -lxpcomglue
-Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar
+Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} %WCHAR_CFLAGS%
--- xulrunner-1.9.0.7.orig/xulrunner/setup/nsXULAppInstall.js
+++ xulrunner-1.9.0.7/xulrunner/setup/nsXULAppInstall.js
@@ -243,7 +243,7 @@
 #else
       aDirectory = Components.classes["@mozilla.org/file/local;1"].
         createInstance(nsILocalFile);
-      aDirectory.initWithPath("/usr/lib");
+      aDirectory.initWithPath("/usr/local/lib");
       if (vendor)
         aDirectory.append(vendor.toLowerCase());
 #endif
--- xulrunner-1.9.0.7.orig/xulrunner/stub/Makefile.in
+++ xulrunner-1.9.0.7/xulrunner/stub/Makefile.in
@@ -102,3 +102,5 @@
 ifeq ($(OS_ARCH),WINNT)
 OS_LIBS += $(call EXPAND_LIBNAME,shell32)
 endif
+
+nsXULStub.o: DEFINES += -DJEMALLOC_LIB=\"$(DLL_PREFIX)jemalloc$(DLL_SUFFIX)\"
--- xulrunner-1.9.0.7.orig/xulrunner/stub/nsXULStub.cpp
+++ xulrunner-1.9.0.7/xulrunner/stub/nsXULStub.cpp
@@ -208,8 +208,12 @@
   // 3) give up
 
   struct stat fileStat;
-
-  if (!realpath(argv[0], iniPath) || stat(iniPath, &fileStat)) {
+  strncpy(tmpPath, argv[0], sizeof(tmpPath));
+  lastSlash = strrchr(tmpPath, '/');
+  if (lastSlash) {
+    *lastSlash = 0;
+    realpath(tmpPath, iniPath);
+  } else {
     const char *path = getenv("PATH");
     if (!path)
       return 1;
@@ -222,8 +226,11 @@
     char *token = strtok(pathdup, ":");
     while (token) {
       sprintf(tmpPath, "%s/%s", token, argv[0]);
-      if (realpath(tmpPath, iniPath) && stat(iniPath, &fileStat) == 0) {
+      if (stat(tmpPath, &fileStat) == 0) {
         found = PR_TRUE;
+        lastSlash = strrchr(tmpPath, '/');
+        *lastSlash = 0;
+        realpath(tmpPath, iniPath);
         break;
       }
       token = strtok(NULL, ":");
@@ -232,11 +239,15 @@
     if (!found)
       return 1;
   }
+  lastSlash = iniPath + strlen(iniPath);
+  *lastSlash = '/';
 #endif
 
+#ifndef XP_UNIX
   lastSlash = strrchr(iniPath, PATH_SEPARATOR_CHAR);
   if (!lastSlash)
     return 1;
+#endif
 
   *(++lastSlash) = '\0';
 
@@ -311,6 +322,52 @@
   DosSetExtLIBPATH(tmpPath, BEGIN_LIBPATH);
 #endif
 
+  const char *env;
+  env = getenv("MOZILLA_JEMALLOC");
+  if (env && env[0]) {
+    // Fill tmpPath with location to the jemalloc library
+    strcpy(tmpPath, greDir);
+    lastSlash = strrchr(tmpPath, PATH_SEPARATOR_CHAR);
+    if (lastSlash)
+      lastSlash++;
+    else
+      lastSlash = tmpPath;
+    *lastSlash = '\0';
+    strncpy(lastSlash, JEMALLOC_LIB, MAXPATHLEN - (lastSlash - tmpPath) - 1);
+
+    // Don't do anything if libjemalloc doesn't exist
+    struct stat st;
+    if (stat(tmpPath, &st) == 0 && S_ISREG(st.st_mode)) {
+      // Avoid infinite loop
+      unsetenv("MOZILLA_JEMALLOC");
+
+      // Keep previously set LD_PRELOAD
+      char *ldpreload;
+      env = getenv("LD_PRELOAD");
+      setenv("MOZILLA_OLD_PRELOAD", env ? env : "", 1);
+      if (env && env[0]) {
+        int len = strlen(env);
+        ldpreload = (char *) malloc(len + strlen(tmpPath) + 2);
+        strcpy(ldpreload, env);
+        ldpreload[len] = ':';
+        ldpreload[len + 1] = '\0';
+      } else {
+        ldpreload = (char *) malloc(strlen(tmpPath) + 1);
+        *ldpreload = '\0';
+      }
+      // Add jemalloc to LD_PRELOAD
+      strcat(ldpreload, tmpPath);
+      setenv("LD_PRELOAD", ldpreload, 1);
+      execv(argv[0], argv);
+    }
+  }
+  // Even if execv fails we want to do this cleanup
+  env = getenv("MOZILLA_OLD_PRELOAD");
+  if (env) {
+    setenv("LD_PRELOAD", env, 1);
+    unsetenv("MOZILLA_OLD_PRELOAD");
+  }
+
   rv = XPCOMGlueStartup(greDir);
   if (NS_FAILED(rv)) {
     Output(PR_TRUE, "Couldn't load XPCOM.\n");
--- xulrunner-1.9.0.7.orig/netwerk/cookie/src/Makefile.in
+++ xulrunner-1.9.0.7/netwerk/cookie/src/Makefile.in
@@ -60,5 +60,4 @@
 
 include $(topsrcdir)/config/rules.mk
 
-CXXFLAGS += $(WARNINGS_AS_ERRORS)
 DEFINES += -DIMPL_NS_NET
--- xulrunner-1.9.0.7.orig/docshell/build/nsDocShellModule.cpp
+++ xulrunner-1.9.0.7/docshell/build/nsDocShellModule.cpp
@@ -158,6 +158,11 @@
     },
 
     // about redirector
+    { "about:",
+      NS_ABOUT_REDIRECTOR_MODULE_CID,
+      NS_ABOUT_MODULE_CONTRACTID_PREFIX,
+      nsAboutRedirector::Create
+    },
     { "about:config",
       NS_ABOUT_REDIRECTOR_MODULE_CID,
       NS_ABOUT_MODULE_CONTRACTID_PREFIX "config",
@@ -205,11 +210,13 @@
       NS_ABOUT_MODULE_CONTRACTID_PREFIX "licence",
       nsAboutRedirector::Create
     },
+#ifndef MOZ_XUL_APP
     { "about:about",
       NS_ABOUT_REDIRECTOR_MODULE_CID,
       NS_ABOUT_MODULE_CONTRACTID_PREFIX "about",
       nsAboutRedirector::Create
     },
+#endif
     { "about:neterror",
       NS_ABOUT_REDIRECTOR_MODULE_CID,
       NS_ABOUT_MODULE_CONTRACTID_PREFIX "neterror",
--- xulrunner-1.9.0.7.orig/docshell/base/nsAboutRedirector.cpp
+++ xulrunner-1.9.0.7/docshell/base/nsAboutRedirector.cpp
@@ -64,6 +64,8 @@
   URI.  Perhaps we should separate the two concepts out...
  */
 static RedirEntry kRedirMap[] = {
+    { "", "chrome://global/content/about.xhtml",
+      nsIAboutModule::ALLOW_SCRIPT },
     { "credits", "http://www.mozilla.org/credits/",
       nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT },
     { "mozilla", "chrome://global/content/mozilla.xhtml",
@@ -85,7 +87,9 @@
       nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT },
     { "licence", "chrome://global/content/license.html",
       nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT },
+#ifndef MOZ_XUL_APP
     { "about", "chrome://global/content/aboutAbout.html", 0 },
+#endif
     { "neterror", "chrome://global/content/netError.xhtml",
       nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
       nsIAboutModule::ALLOW_SCRIPT }
--- xulrunner-1.9.0.7.orig/modules/libpr0n/encoders/png/nsPNGEncoder.h
+++ xulrunner-1.9.0.7/modules/libpr0n/encoders/png/nsPNGEncoder.h
@@ -65,12 +65,14 @@
 protected:
   nsresult ParseOptions(const nsAString& aOptions,
                            PRBool* useTransparency,
+#ifdef APNG
                            PRBool* skipFirstFrame,
                            PRUint32* numAnimatedFrames,
                            PRUint32* numIterations,
                            PRUint32* frameDispose,
                            PRUint32* frameBlend,
                            PRUint32* frameDelay,
+#endif
                            PRUint32* offsetX,
                            PRUint32* offsetY);
   void ConvertHostARGBRow(const PRUint8* aSrc, PRUint8* aDest,
@@ -83,7 +85,9 @@
   png_struct* mPNG;
   png_info* mPNGinfo;
 
+#ifdef APNG
   PRBool mIsAnimation;
+#endif
 
   // image buffer
   PRUint8* mImageBuffer;
--- xulrunner-1.9.0.7.orig/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
+++ xulrunner-1.9.0.7/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
@@ -51,7 +51,9 @@
 NS_IMPL_THREADSAFE_ISUPPORTS2(nsPNGEncoder, imgIEncoder, nsIInputStream)
 
 nsPNGEncoder::nsPNGEncoder() : mPNG(nsnull), mPNGinfo(nsnull),
+#ifdef APNG
                                mIsAnimation(PR_FALSE),
+#endif
                                mImageBuffer(nsnull), mImageBufferSize(0),
                                mImageBufferUsed(0), mImageBufferReadPoint(0)
 {
@@ -109,9 +111,12 @@
                                              PRUint32 aInputFormat,
                                              const nsAString& aOutputOptions)
 {
-  PRBool useTransparency = PR_TRUE, skipFirstFrame = PR_FALSE;
+  PRBool useTransparency = PR_TRUE;
+#ifdef APNG
+  PRBool skipFirstFrame = PR_FALSE;
   PRUint32 numFrames = 1;
   PRUint32 numPlays = 0; // For animations, 0 == forever
+#endif
 
   // can't initialize more than once
   if (mImageBuffer != nsnull)
@@ -124,14 +129,19 @@
     return NS_ERROR_INVALID_ARG;
 
   // parse and check any provided output options
-  nsresult rv = ParseOptions(aOutputOptions, &useTransparency, &skipFirstFrame,
-                             &numFrames, &numPlays, nsnull, nsnull,
-                             nsnull, nsnull, nsnull);
+  nsresult rv = ParseOptions(aOutputOptions, &useTransparency,
+#ifdef APNG
+                             &skipFirstFrame, &numFrames, &numPlays,
+			     nsnull, nsnull, nsnull,
+#endif
+			     nsnull, nsnull);
   if (rv != NS_OK) { return rv; }
 
+#ifdef APNG
   if (numFrames > 1) {
     mIsAnimation = PR_TRUE;
   }
+#endif
 
   // initialize
   mPNG = png_create_write_struct(PNG_LIBPNG_VER_STRING,
@@ -181,10 +191,12 @@
                PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT,
                PNG_FILTER_TYPE_DEFAULT);
 
+#ifdef APNG
   if (mIsAnimation) {
     png_set_first_frame_is_hidden(mPNG, mPNGinfo, skipFirstFrame);
     png_set_acTL(mPNG, mPNGinfo, numFrames, numPlays);
   }
+#endif
 
   // XXX: support PLTE, gAMA, tRNS, bKGD?
 
@@ -203,9 +215,11 @@
                                           const nsAString& aFrameOptions)
 {
   PRBool useTransparency= PR_TRUE;
+#ifdef APNG
   PRUint32 delay_ms = 500;
   PRUint32 dispose_op = PNG_DISPOSE_OP_NONE;
   PRUint32 blend_op = PNG_BLEND_OP_SOURCE;
+#endif
   PRUint32 x_offset = 0, y_offset = 0;
 
   // must be initialized
@@ -229,17 +243,22 @@
   }
 
   // parse and check any provided output options
-  nsresult rv = ParseOptions(aFrameOptions, &useTransparency, nsnull,
-                             nsnull, nsnull, &dispose_op, &blend_op,
-                             &delay_ms, &x_offset, &y_offset);
+  nsresult rv = ParseOptions(aFrameOptions, &useTransparency,
+#ifdef APNG
+                             nsnull, nsnull, nsnull, &dispose_op,
+			     &blend_op, &delay_ms,
+#endif
+                             &x_offset, &y_offset);
   if (rv != NS_OK) { return rv; }
 
+#ifdef APNG
   if (mIsAnimation) {
     // XXX the row pointers arg (#3) is unused, can it be removed?
     png_write_frame_head(mPNG, mPNGinfo, nsnull,
                          aWidth, aHeight, x_offset, y_offset,
                          delay_ms, 1000, dispose_op, blend_op);
   }
+#endif
 
   // Stride is the padded width of each row, so it better be longer (I'm afraid
   // people will not understand what stride means, so check it well)
@@ -283,9 +302,11 @@
     return NS_ERROR_INVALID_ARG;
   }
 
+#ifdef APNG
   if (mIsAnimation) {
     png_write_frame_tail(mPNG, mPNGinfo);
   }
+#endif
 
   return NS_OK;
 }
@@ -321,12 +342,14 @@
 nsresult
 nsPNGEncoder::ParseOptions(const nsAString& aOptions,
                            PRBool* useTransparency,
+#ifdef APNG
                            PRBool* skipFirstFrame,
                            PRUint32* numFrames,
                            PRUint32* numPlays,
                            PRUint32* frameDispose,
                            PRUint32* frameBlend,
                            PRUint32* frameDelay,
+#endif
                            PRUint32* offsetX,
                            PRUint32* offsetY)
 {
@@ -355,6 +378,7 @@
         return NS_ERROR_INVALID_ARG;
       }
 
+#ifdef APNG
     // skipfirstframe=[yes|no]
     } else if (nsCRT::strcmp(token, "skipfirstframe") == 0 && skipFirstFrame) {
       if (!value) { return NS_ERROR_INVALID_ARG; }
@@ -414,6 +438,7 @@
       if (!value) { return NS_ERROR_INVALID_ARG; }
 
       if (PR_sscanf(value, "%u", frameDelay) != 1) { return NS_ERROR_INVALID_ARG; }
+#endif
 
     // xoffset=#
     } else if (nsCRT::strcmp(token, "xoffset") == 0 && offsetX) {
--- xulrunner-1.9.0.7.orig/modules/libpr0n/decoders/png/nsPNGDecoder.cpp
+++ xulrunner-1.9.0.7/modules/libpr0n/decoders/png/nsPNGDecoder.cpp
@@ -62,7 +62,9 @@
 static void PNGAPI info_callback(png_structp png_ptr, png_infop info_ptr);
 static void PNGAPI row_callback(png_structp png_ptr, png_bytep new_row,
                            png_uint_32 row_num, int pass);
+#ifdef APNG
 static void PNGAPI frame_info_callback(png_structp png_ptr, png_uint_32 frame_num);
+#endif
 static void PNGAPI end_callback(png_structp png_ptr, png_infop info_ptr);
 static void PNGAPI error_callback(png_structp png_ptr, png_const_charp error_msg);
 static void PNGAPI warning_callback(png_structp png_ptr, png_const_charp warning_msg);
@@ -78,7 +80,10 @@
   mPNG(nsnull), mInfo(nsnull),
   mCMSLine(nsnull), interlacebuf(nsnull),
   mInProfile(nsnull), mTransform(nsnull),
-  mChannels(0), mError(PR_FALSE), mFrameIsHidden(PR_FALSE)
+  mChannels(0), mError(PR_FALSE)
+#ifdef APNG
+  , mFrameIsHidden(PR_FALSE)
+#endif
 {
 }
 
@@ -109,8 +114,10 @@
   if (NS_FAILED(rv))
     longjmp(mPNG->jmpbuf, 5); // NS_ERROR_OUT_OF_MEMORY
 
+#ifdef APNG
   if (png_get_valid(mPNG, mInfo, PNG_INFO_acTL))
     SetAnimFrameInfo();
+#endif
   
   mImage->AppendFrame(mFrame);
   
@@ -126,6 +133,7 @@
   mFrameHasNoAlpha = PR_TRUE;
 }
 
+#ifdef APNG
 // set timeout and frame disposal method for the current frame
 void nsPNGDecoder::SetAnimFrameInfo()
 {
@@ -165,6 +173,7 @@
   /*else // 'over' is the default for a gfxImageFrame
       mFrame->SetBlendMethod(imgIContainer::kBlendOver); */
 }
+#endif
 
 // set timeout and frame disposal method for the current frame
 void nsPNGDecoder::EndImageFrame()
@@ -636,12 +645,15 @@
     }
   }
 
+#ifdef APNG
   if (png_get_valid(png_ptr, info_ptr, PNG_INFO_acTL))
     png_set_progressive_frame_fn(png_ptr, frame_info_callback, NULL);
   
   if (png_get_first_frame_is_hidden(png_ptr, info_ptr)) {
     decoder->mFrameIsHidden = PR_TRUE;
-  } else {
+  } else
+#endif
+  {
     decoder->CreateFrame(0, 0, width, height, decoder->format);
   }
   
@@ -662,8 +674,10 @@
     }
   }
   
+#ifdef APNG
   if (png_get_first_frame_is_hidden(png_ptr, info_ptr))
     decoder->mFrame = nsnull;
+#endif
   
   return;
 }
@@ -701,9 +715,11 @@
    */
   nsPNGDecoder *decoder = static_cast<nsPNGDecoder*>(png_get_progressive_ptr(png_ptr));
   
+#ifdef APNG
   // skip this frame
   if (decoder->mFrameIsHidden)
     return;
+#endif
 
   if (new_row) {
     PRInt32 width;
@@ -803,6 +819,7 @@
   }
 }
 
+#ifdef APNG
 // got the header of a new frame that's coming
 void
 frame_info_callback(png_structp png_ptr, png_uint_32 frame_num)
@@ -812,11 +829,15 @@
   
   nsPNGDecoder *decoder = static_cast<nsPNGDecoder*>(png_get_progressive_ptr(png_ptr));
   
+#ifdef APNG
   // old frame is done
   if (!decoder->mFrameIsHidden)
+#endif
     decoder->EndImageFrame();
   
+#ifdef APNG
   decoder->mFrameIsHidden = PR_FALSE;
+#endif
   
   x_offset = png_get_next_frame_x_offset(png_ptr, decoder->mInfo);
   y_offset = png_get_next_frame_y_offset(png_ptr, decoder->mInfo);
@@ -825,6 +846,7 @@
   
   decoder->CreateFrame(x_offset, y_offset, width, height, decoder->format);
 }
+#endif
 
 void
 end_callback(png_structp png_ptr, png_infop info_ptr)
@@ -843,12 +865,14 @@
 
   nsPNGDecoder *decoder = static_cast<nsPNGDecoder*>(png_get_progressive_ptr(png_ptr));
   
+#ifdef APNG
   if (png_get_valid(png_ptr, info_ptr, PNG_INFO_acTL)) {
     PRInt32 num_plays = png_get_num_plays(png_ptr, info_ptr);
     decoder->mImage->SetLoopCount(num_plays - 1);
   }
   
   if (!decoder->mFrameIsHidden)
+#endif
     decoder->EndImageFrame();
   
   decoder->mImage->DecodingComplete();
--- xulrunner-1.9.0.7.orig/modules/libpr0n/decoders/png/nsPNGDecoder.h
+++ xulrunner-1.9.0.7/modules/libpr0n/decoders/png/nsPNGDecoder.h
@@ -73,7 +73,9 @@
 
   void CreateFrame(png_uint_32 x_offset, png_uint_32 y_offset, 
                    PRInt32 width, PRInt32 height, gfx_format format);
+#ifdef APNG
   void SetAnimFrameInfo();
+#endif
   
   void EndImageFrame();
 
@@ -94,7 +96,9 @@
   PRUint8 mChannels;
   PRPackedBool mError;
   PRPackedBool mFrameHasNoAlpha;
+#ifdef APNG
   PRPackedBool mFrameIsHidden;
+#endif
 };
 
 #endif // nsPNGDecoder_h__
--- xulrunner-1.9.0.7.orig/modules/libjar/nsJAR.cpp
+++ xulrunner-1.9.0.7/modules/libjar/nsJAR.cpp
@@ -127,6 +127,7 @@
                 mReleaseTime(PR_INTERVAL_NO_TIMEOUT), 
                 mCache(nsnull), 
                 mLock(nsnull),
+                mMtime(0),
                 mTotalItemsInManifest(0)
 {
 }
@@ -170,13 +171,16 @@
   if (mLock) return NS_ERROR_FAILURE; // Already open!
 
   mZipFile = zipFile;
+  nsresult rv = zipFile->GetLastModifiedTime(&mMtime);
+  if (NS_FAILED(rv)) return rv;
+
   mLock = PR_NewLock();
   NS_ENSURE_TRUE(mLock, NS_ERROR_OUT_OF_MEMORY);
 
   PRFileDesc *fd = OpenFile();
   NS_ENSURE_TRUE(fd, NS_ERROR_FAILURE);
 
-  nsresult rv = mZip.OpenArchive(fd);
+  rv = mZip.OpenArchive(fd);
   if (NS_FAILED(rv)) Close();
 
   return rv;
@@ -1121,6 +1125,7 @@
 {
   NS_ENSURE_ARG_POINTER(zipFile);
   nsresult rv;
+  nsCOMPtr<nsIJAR> antiLockZipGrip;
   nsAutoLock lock(mLock);
 
 #ifdef ZIP_CACHE_HIT_RATE
@@ -1131,15 +1136,23 @@
   rv = zipFile->GetNativePath(path);
   if (NS_FAILED(rv)) return rv;
 
+  PRInt64 Mtime;
+  rv = zipFile->GetLastModifiedTime(&Mtime);
+  if (NS_FAILED(rv)) return rv;
+
   nsCStringKey key(path);
   nsJAR* zip = static_cast<nsJAR*>(static_cast<nsIZipReader*>(mZips.Get(&key))); // AddRefs
-  if (zip) {
+  if (zip && (Mtime == zip->GetMtime())) {
 #ifdef ZIP_CACHE_HIT_RATE
     mZipCacheHits++;
 #endif
     zip->ClearReleaseTime();
   }
   else {
+    if (zip) {
+      antiLockZipGrip = zip;
+      mZips.Remove(&key);
+    }
     zip = new nsJAR();
     if (zip == nsnull)
         return NS_ERROR_OUT_OF_MEMORY;
--- xulrunner-1.9.0.7.orig/modules/libjar/nsJAR.h
+++ xulrunner-1.9.0.7/modules/libjar/nsJAR.h
@@ -133,6 +133,9 @@
       mCache = cache;
     }
 
+    PRInt64 GetMtime() {
+      return mMtime;
+    }
   protected:
     //-- Private data members
     nsCOMPtr<nsIFile>        mZipFile;        // The zip/jar file on disk
@@ -144,6 +147,7 @@
     PRIntervalTime           mReleaseTime;    // used by nsZipReaderCache for flushing entries
     nsZipReaderCache*        mCache;          // if cached, this points to the cache it's contained in
     PRLock*                  mLock;	
+    PRInt64                  mMtime;
     PRInt32                  mTotalItemsInManifest;
     
     //-- Private functions
--- xulrunner-1.9.0.7.orig/modules/libpref/src/prefread.cpp
+++ xulrunner-1.9.0.7/modules/libpref/src/prefread.cpp
@@ -75,6 +75,7 @@
 #define BITS_PER_HEX_DIGIT      4
 
 static const char kUserPref[] = "user_pref";
+static const char kLockPref[] = "lockPref";
 static const char kPref[] = "pref";
 static const char kTrue[] = "true";
 static const char kFalse[] = "false";
@@ -161,7 +162,7 @@
     default:
         break;
     }
-    (*ps->reader)(ps->closure, ps->lb, value, ps->vtype, ps->fdefault);
+    (*ps->reader)(ps->closure, ps->lb, value, ps->vtype, ps->fdefault, ps->flock);
     return PR_TRUE;
 }
 
@@ -220,6 +221,7 @@
                 ps->vb    = NULL;
                 ps->vtype = PREF_INVALID;
                 ps->fdefault = PR_FALSE;
+                ps->flock = PR_FALSE;
             }
             switch (c) {
             case '/':       /* begin comment block or line? */
@@ -230,7 +232,9 @@
                 break;
             case 'u':       /* indicating user_pref */
             case 'p':       /* indicating pref */
-                ps->smatch = (c == 'u' ? kUserPref : kPref);
+            case 'l':       /* indicating lockPref */
+                ps->smatch = (c == 'u' ? kUserPref :
+                                         (c == 'p' ? kPref : kLockPref));
                 ps->sindex = 1;
                 ps->nextstate = PREF_PARSE_UNTIL_OPEN_PAREN;
                 state = PREF_PARSE_MATCH_STRING;
@@ -274,7 +278,8 @@
         /* name parsing */
         case PREF_PARSE_UNTIL_NAME:
             if (c == '\"' || c == '\'') {
-                ps->fdefault = (ps->smatch == kPref);
+                ps->fdefault = (ps->smatch != kUserPref);
+                ps->flock = (ps->smatch == kLockPref);
                 ps->quotechar = c;
                 ps->nextstate = PREF_PARSE_UNTIL_COMMA; /* return here when done */
                 state = PREF_PARSE_QUOTED_STRING;
--- xulrunner-1.9.0.7.orig/modules/libpref/src/prefapi.h
+++ xulrunner-1.9.0.7/modules/libpref/src/prefapi.h
@@ -207,7 +207,8 @@
                           const char *pref,
                           PrefValue   value,
                           PrefType    type,
-                          PRBool      isDefault);
+                          PRBool      isDefault,
+                          PRBool      isLocked);
 
 NSPR_END_EXTERN_C
 #endif
--- xulrunner-1.9.0.7.orig/modules/libpref/src/prefread.h
+++ xulrunner-1.9.0.7/modules/libpref/src/prefread.h
@@ -62,7 +62,8 @@
                            const char *pref,
                            PrefValue   val,
                            PrefType    type,
-                           PRBool      defPref);
+                           PRBool      defPref,
+                           PRBool      lockPref);
 
 /* structure fields are private */
 typedef struct PrefParseState {
@@ -83,6 +84,7 @@
     char       *vb;         /* value buffer (ptr into lb)    */
     PrefType    vtype;      /* PREF_STRING,INT,BOOL          */
     PRBool      fdefault;   /* PR_TRUE if (default) pref     */
+    PRBool      flock;      /* PR_TRUE if pref to be locked  */
 } PrefParseState;
 
 /**
--- xulrunner-1.9.0.7.orig/modules/libpref/src/prefapi.cpp
+++ xulrunner-1.9.0.7/modules/libpref/src/prefapi.cpp
@@ -957,7 +957,10 @@
                          const char *pref,
                          PrefValue   value,
                          PrefType    type,
-                         PRBool      isDefault)
+                         PRBool      isDefault,
+                         PRBool      isLocked)
 {
     pref_HashPref(pref, value, type, isDefault);
+    if (isLocked)
+        PREF_LockPref(pref, PR_TRUE);
 }
--- xulrunner-1.9.0.7.orig/modules/libpref/src/init/all.js
+++ xulrunner-1.9.0.7/modules/libpref/src/init/all.js
@@ -501,6 +501,7 @@
 pref("javascript.allow.mailnews",           false);
 pref("javascript.options.strict",           false);
 pref("javascript.options.relimit",          false);
+pref("javascript.options.showInConsole",    true);
 
 // advanced prefs
 pref("security.enable_java",                true);
@@ -2229,7 +2230,7 @@
 pref("network.hosts.smtp_server", "localhost");
 pref("network.hosts.pop_server", "pop");
 pref("network.protocol-handler.warn-external.file", false);
-pref("layout.css.dpi", -1); // max(96dpi, System setting)
+pref("layout.css.dpi", 0); // System setting
 pref("browser.drag_out_of_frame_style", 1);
 pref("editor.singleLine.pasteNewlines", 0);
 
@@ -2258,7 +2259,7 @@
 pref("ui.allow_platform_file_picker", true);
 
 // should NetworkManager be authoritative for online/offline status?
-pref("toolkit.networkmanager.disable", false);
+pref("toolkit.networkmanager.disable", true);
 
 pref("helpers.global_mime_types_file", "/etc/mime.types");
 pref("helpers.global_mailcap_file", "/etc/mailcap");
--- xulrunner-1.9.0.7.orig/modules/plugin/base/src/nsPluginHostImpl.cpp
+++ xulrunner-1.9.0.7/modules/plugin/base/src/nsPluginHostImpl.cpp
@@ -260,6 +260,24 @@
 nsIFile *nsPluginHostImpl::sPluginTempDir;
 nsPluginHostImpl *nsPluginHostImpl::sInst;
 
+// Globally disable plugins
+static
+int pluginsdisabled()
+{
+  static int _disabled = -1;
+
+  if (_disabled >= 0)
+    return _disabled;
+
+  const char *env = PR_GetEnv("MOZILLA_DISABLE_PLUGINS");
+  if (env && env[0])
+    _disabled = 1;
+  else
+    _disabled = 0;
+
+  return _disabled;
+}
+
 ////////////////////////////////////////////////////////////////////////
 // flat file reg funcs
 static
@@ -5380,6 +5398,10 @@
   // possible reset in subsequent ScanPluginsDirectory calls
   PRBool pluginschanged = PR_FALSE;
 
+  if (pluginsdisabled()) {
+    mPluginsLoaded = PR_TRUE;
+    return NS_OK;
+  }
   // Scan the app-defined list of plugin dirs.
   rv = dirService->Get(NS_APP_PLUGINS_DIR_LIST, NS_GET_IID(nsISimpleEnumerator), getter_AddRefs(dirList));
   if (NS_SUCCEEDED(rv)) {
@@ -5694,6 +5716,9 @@
 nsresult
 nsPluginHostImpl::ReadPluginInfo()
 {
+  if (pluginsdisabled())
+    return NS_ERROR_FAILURE;
+
   nsresult rv;
 
   nsCOMPtr<nsIProperties> directoryService(do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID,&rv));
--- xulrunner-1.9.0.7.orig/xpfe/appshell/src/Makefile.in
+++ xulrunner-1.9.0.7/xpfe/appshell/src/Makefile.in
@@ -86,7 +86,6 @@
 		nsAppShellWindowEnumerator.cpp \
 		nsWebShellWindow.cpp \
 		nsWindowMediator.cpp \
-		nsAbout.cpp \
 		nsAppShellFactory.cpp \
 		$(NULL)
 
--- xulrunner-1.9.0.7.orig/xpfe/appshell/src/nsAppShellFactory.cpp
+++ xulrunner-1.9.0.7/xpfe/appshell/src/nsAppShellFactory.cpp
@@ -40,7 +40,6 @@
 #include "nscore.h"
 #include "nsIComponentManager.h"
 #include "nsIWindowMediator.h"
-#include "nsAbout.h"
 #include "nsIGenericFactory.h"
 
 #include "nsIAppShellService.h"
@@ -63,11 +62,6 @@
     NS_WINDOWMEDIATOR_CID,
     NS_WINDOWMEDIATOR_CONTRACTID,
     nsWindowMediatorConstructor,
-  },
-  { "kAboutModuleCID",
-    NS_ABOUT_CID,
-    NS_ABOUT_MODULE_CONTRACTID_PREFIX,
-    nsAbout::Create,
   }
 };
 
--- xulrunner-1.9.0.7.orig/layout/xul/base/src/tree/src/nsTreeSelection.cpp
+++ xulrunner-1.9.0.7/layout/xul/base/src/tree/src/nsTreeSelection.cpp
@@ -268,6 +268,8 @@
 nsTreeSelection::~nsTreeSelection()
 {
   delete mFirstRange;
+  if (mSelectTimer)
+    mSelectTimer->Cancel();
 }
 
 // QueryInterface implementation for nsBoxObject
