summaryrefslogtreecommitdiffstats
path: root/meta/packages/mozilla-headless
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-01-28 15:39:05 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-28 15:39:05 +0000
commit53314a0125bf85adf07bbc82e41e896f7f501ccd (patch)
tree74226e430163225d34ce7776750cd5c683db32a6 /meta/packages/mozilla-headless
parent463c2d644939f54854d27cf0f0afc0a3bf762968 (diff)
downloadpoky-53314a0125bf85adf07bbc82e41e896f7f501ccd.tar.gz
Add mozilla-headless
Diffstat (limited to 'meta/packages/mozilla-headless')
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/arm/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/configurefix.patch760
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/mozconfig23
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless/powerpc/jsautocfg.h54
-rw-r--r--meta/packages/mozilla-headless/mozilla-headless_git.bb49
9 files changed, 1156 insertions, 0 deletions
diff --git a/meta/packages/mozilla-headless/mozilla-headless/arm/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/arm/jsautocfg.h
new file mode 100644
index 0000000000..e9d37dee91
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/arm/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT, unless you are an OE dev :) */
5
6#define IS_LITTLE_ENDIAN 1
7#undef IS_BIG_ENDIAN
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 8L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 8L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless/configurefix.patch b/meta/packages/mozilla-headless/mozilla-headless/configurefix.patch
new file mode 100644
index 0000000000..8a5fbbb77f
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/configurefix.patch
@@ -0,0 +1,760 @@
1Index: git/configure.in
2===================================================================
3--- git.orig/configure.in 2009-01-27 16:11:22.000000000 +0000
4+++ git/configure.in 2009-01-27 16:16:45.000000000 +0000
5@@ -62,7 +62,6 @@
6
7 AC_PREREQ(2.13)
8 AC_INIT(config/config.mk)
9-AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
10 AC_CANONICAL_SYSTEM
11 TARGET_CPU="${target_cpu}"
12 TARGET_VENDOR="${target_vendor}"
13@@ -103,7 +102,6 @@
14 _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS"
15 _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS"
16 _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
17-_SUBDIR_CONFIG_ARGS="$ac_configure_args"
18
19 dnl Set the version number of the libs included with mozilla
20 dnl ========================================================
21@@ -137,6 +135,9 @@
22
23 MSMANIFEST_TOOL=
24
25+ac_cv_have_usable_wchar_v2=no
26+ac_cv_have_usable_wchar_option_v2=no
27+
28 dnl Set various checks
29 dnl ========================================================
30 MISSING_X=
31@@ -263,7 +264,7 @@
32 ;;
33 esac
34
35-if test -n "$CROSS_COMPILE" && test "$target" != "$host"; then
36+
37 echo "cross compiling from $host to $target"
38 cross_compiling=yes
39
40@@ -301,7 +302,7 @@
41
42 AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
43 AC_TRY_COMPILE([], [return(0);],
44- [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])],
45+ [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])],
46 AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) )
47
48 CC="$HOST_CXX"
49@@ -309,7 +310,7 @@
50
51 AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works])
52 AC_TRY_COMPILE([], [return(0);],
53- [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])],
54+ [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])],
55 AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) )
56
57 CC=$_SAVE_CC
58@@ -330,7 +331,7 @@
59 ;;
60 esac
61
62- AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :)
63+ CC="${target_alias}-gcc"
64 unset ac_cv_prog_CC
65 AC_PROG_CC
66 AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :)
67@@ -354,37 +355,7 @@
68 AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", :)
69 AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", :)
70 AC_DEFINE(CROSS_COMPILE)
71-else
72- AC_PROG_CC
73- AC_PROG_CXX
74- AC_PROG_RANLIB
75- AC_PATH_PROGS(AS, $AS as, $CC)
76- AC_CHECK_PROGS(AR, ar, :)
77- AC_CHECK_PROGS(LD, ld, :)
78- AC_CHECK_PROGS(STRIP, strip, :)
79- AC_CHECK_PROGS(WINDRES, windres, :)
80- if test -z "$HOST_CC"; then
81- HOST_CC="$CC"
82- fi
83- if test -z "$HOST_CFLAGS"; then
84- HOST_CFLAGS="$CFLAGS"
85- fi
86- if test -z "$HOST_CXX"; then
87- HOST_CXX="$CXX"
88- fi
89- if test -z "$HOST_CXXFLAGS"; then
90- HOST_CXXFLAGS="$CXXFLAGS"
91- fi
92- if test -z "$HOST_LDFLAGS"; then
93- HOST_LDFLAGS="$LDFLAGS"
94- fi
95- if test -z "$HOST_RANLIB"; then
96- HOST_RANLIB="$RANLIB"
97- fi
98- if test -z "$HOST_AR"; then
99- HOST_AR="$AR"
100- fi
101-fi
102+
103
104 GNU_AS=
105 GNU_LD=
106@@ -1467,6 +1438,7 @@
107 '
108
109 dnl test that the macros actually work:
110+ac_cv_static_assertion_macros_work="yes"
111 AC_MSG_CHECKING(that static assertion macros used in autoconf tests work)
112 AC_CACHE_VAL(ac_cv_static_assertion_macros_work,
113 [AC_LANG_SAVE
114@@ -2625,9 +2597,13 @@
115 AC_LANG_C
116 AC_HEADER_STDC
117 AC_C_CONST
118+ac_cv_type_mode_t=yes
119 AC_TYPE_MODE_T
120+ac_cv_type_off_t=yes
121 AC_TYPE_OFF_T
122+ac_cv_type_pid_t=yes
123 AC_TYPE_PID_T
124+ac_cv_type_size_t=yes
125 AC_TYPE_SIZE_T
126 AC_STRUCT_ST_BLKSIZE
127 AC_MSG_CHECKING(for siginfo_t)
128@@ -3009,19 +2985,9 @@
129 dnl We don't want to link against libm or libpthread on Darwin since
130 dnl they both are just symlinks to libSystem and explicitly linking
131 dnl against libSystem causes issues when debugging (see bug 299601).
132-case $target in
133-*-darwin*)
134- ;;
135-*-beos*)
136- ;;
137-*)
138 AC_CHECK_LIB(m, atan)
139 AC_CHECK_LIB(dl, dlopen,
140- AC_CHECK_HEADER(dlfcn.h,
141- LIBS="-ldl $LIBS"
142- AC_DEFINE(HAVE_LIBDL)))
143- ;;
144-esac
145+ AC_DEFINE(HAVE_LIBDL))
146
147 _SAVE_CFLAGS="$CFLAGS"
148 CFLAGS="$CFLAGS -D_GNU_SOURCE"
149@@ -6763,18 +6729,13 @@
150
151 # Demangle only for debug or trace-malloc builds
152 MOZ_DEMANGLE_SYMBOLS=
153-if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then
154- MOZ_DEMANGLE_SYMBOLS=1
155- AC_DEFINE(MOZ_DEMANGLE_SYMBOLS)
156-fi
157+
158 AC_SUBST(MOZ_DEMANGLE_SYMBOLS)
159
160 dnl ========================================================
161 dnl = Support for gcc stack unwinding (from gcc 3.3)
162 dnl ========================================================
163-if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then
164- AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace))
165-fi
166+
167
168 dnl ========================================================
169 dnl =
170@@ -7288,10 +7249,7 @@
171 dnl if no gtk/libIDL1 or gtk2/libIDL2 combination was found, fall back
172 dnl to either libIDL1 or libIDL2.
173 if test -z "$_LIBIDL_FOUND"; then
174- AM_PATH_LIBIDL($LIBIDL_VERSION,_LIBIDL_FOUND=1)
175- if test -z "$_LIBIDL_FOUND"; then
176 PKG_CHECK_MODULES(LIBIDL, libIDL-2.0 >= 0.8.0,_LIBIDL_FOUND=1)
177- fi
178 fi
179 dnl
180 dnl If we don't have a libIDL config program & not cross-compiling,
181@@ -7364,11 +7322,7 @@
182
183 if test -z "$SKIP_PATH_CHECKS"; then
184 if test -z "${GLIB_CFLAGS}" || test -z "${GLIB_LIBS}" ; then
185- if test "$MOZ_ENABLE_GTK2" || test "$USE_ELF_DYNSTR_GC" || test "$MOZ_ENABLE_HEADLESS"; then
186 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 1.3.7 gobject-2.0)
187- else
188- AM_PATH_GLIB(${GLIB_VERSION})
189- fi
190 fi
191 fi
192
193@@ -8214,10 +8168,7 @@
194 HAVE_WCRTOMB
195 "
196
197-AC_CONFIG_HEADER(
198-netwerk/necko-config.h
199-xpcom/xpcom-config.h
200-xpcom/xpcom-private.h
201+AC_CONFIG_HEADER(netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h
202 )
203
204 # Save the defines header file before autoconf removes it.
205@@ -8276,28 +8227,9 @@
206 dnl To add new Makefiles, edit allmakefiles.sh.
207 dnl allmakefiles.sh sets the variable, MAKEFILES.
208 . ${srcdir}/allmakefiles.sh
209-dnl
210-dnl Run a perl script to quickly create the makefiles.
211-dnl If it succeeds, it outputs a shell command to set CONFIG_FILES
212-dnl for the files it cannot handle correctly. This way, config.status
213-dnl will handle these files.
214-dnl If it fails, nothing is set and config.status will run as usual.
215-dnl
216-dnl This does not change the $MAKEFILES variable.
217-dnl
218-dnl OpenVMS gets a line overflow on the long eval command, so use a temp file.
219-dnl
220-if test -z "${AS_PERL}"; then
221-echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh
222-else
223-echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh
224-fi
225-. ./conftest.sh
226-rm conftest.sh
227
228-echo $MAKEFILES > unallmakefiles
229
230-AC_OUTPUT($MAKEFILES)
231+echo $MAKEFILES > unallmakefiles
232
233 dnl Prevent the regeneration of cairo-features.h forcing rebuilds of gfx stuff
234 if test "$CAIRO_FEATURES_H"; then
235@@ -8323,14 +8255,14 @@
236 HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS"
237 RC=
238
239-unset MAKEFILES
240-unset CONFIG_FILES
241+#unset MAKEFILES
242+#unset CONFIG_FILES
243
244 # No need to run subconfigures when building with LIBXUL_SDK_DIR
245 if test "$COMPILE_ENVIRONMENT" -a -z "$LIBXUL_SDK_DIR"; then
246
247 if test -z "$MOZ_NATIVE_NSPR"; then
248- ac_configure_args="$_SUBDIR_CONFIG_ARGS --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla"
249+ ac_configure_args="$ac_configure_args --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla"
250 if test -z "$MOZ_DEBUG"; then
251 ac_configure_args="$ac_configure_args --disable-debug"
252 fi
253@@ -8346,8 +8278,7 @@
254 if test -n "$USE_ARM_KUSER"; then
255 ac_configure_args="$ac_configure_args --with-arm-kuser"
256 fi
257- AC_OUTPUT_SUBDIRS(nsprpub)
258- ac_configure_args="$_SUBDIR_CONFIG_ARGS"
259+ AC_CONFIG_SUBDIRS(nsprpub)
260 fi
261
262 if test -z "$MOZ_NATIVE_NSPR"; then
263@@ -8364,7 +8295,6 @@
264
265 # Run the SpiderMonkey 'configure' script.
266 dist=$MOZ_BUILD_ROOT/dist
267-ac_configure_args="$_SUBDIR_CONFIG_ARGS"
268 ac_configure_args="$ac_configure_args --enable-threadsafe"
269 if test -z "$MOZ_NATIVE_NSPR"; then
270 ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'"
271@@ -8378,7 +8308,11 @@
272 if test "$MOZ_MEMORY"; then
273 ac_configure_args="$ac_configure_args --enable-jemalloc"
274 fi
275-AC_OUTPUT_SUBDIRS(js/src)
276-ac_configure_args="$_SUBDIR_CONFIG_ARGS"
277+AC_CONFIG_SUBDIRS(js/src)
278
279 fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR
280+
281+m4_pattern_allow(AS_BIN)
282+
283+AC_OUTPUT($MAKEFILES)
284+
285Index: git/js/src/configure.in
286===================================================================
287--- git.orig/js/src/configure.in 2009-01-27 16:11:53.000000000 +0000
288+++ git/js/src/configure.in 2009-01-27 16:16:45.000000000 +0000
289@@ -62,7 +62,6 @@
290
291 AC_PREREQ(2.13)
292 AC_INIT(jsapi.h)
293-AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
294 AC_CONFIG_HEADER(js-config.h)
295 AC_CANONICAL_SYSTEM
296 TARGET_CPU="${target_cpu}"
297@@ -101,6 +100,9 @@
298 _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
299 _SUBDIR_CONFIG_ARGS="$ac_configure_args"
300
301+ac_cv_have_usable_wchar_v2=no
302+ac_cv_have_usable_wchar_option_v2=no
303+
304 dnl Set the version number of the libs included with mozilla
305 dnl ========================================================
306 NSPR_VERSION=4
307@@ -114,6 +116,8 @@
308
309 MSMANIFEST_TOOL=
310
311+m4_pattern_allow(AS_BIN)
312+
313 dnl Set various checks
314 dnl ========================================================
315 MISSING_X=
316@@ -201,7 +205,7 @@
317
318 if test "$COMPILE_ENVIRONMENT"; then
319
320-if test "$target" != "$host"; then
321+
322 echo "cross compiling from $host to $target"
323
324 _SAVE_CC="$CC"
325@@ -238,7 +242,7 @@
326
327 AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
328 AC_TRY_COMPILE([], [return(0);],
329- [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])],
330+ [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])],
331 AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) )
332
333 CC="$HOST_CXX"
334@@ -246,7 +250,7 @@
335
336 AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works])
337 AC_TRY_COMPILE([], [return(0);],
338- [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])],
339+ [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])],
340 AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) )
341
342 CC=$_SAVE_CC
343@@ -267,7 +271,7 @@
344 ;;
345 esac
346
347- AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :)
348+ CC="${target_alias}-gcc"
349 unset ac_cv_prog_CC
350 AC_PROG_CC
351 AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :)
352@@ -297,37 +301,6 @@
353 dnl able to run ppc code in a translated environment, making a cross
354 dnl compiler appear native. So we override that here.
355 cross_compiling=yes
356-else
357- AC_PROG_CC
358- AC_PROG_CXX
359- AC_PROG_RANLIB
360- AC_PATH_PROGS(AS, $AS as, $CC)
361- AC_CHECK_PROGS(AR, ar, :)
362- AC_CHECK_PROGS(LD, ld, :)
363- AC_CHECK_PROGS(STRIP, strip, :)
364- AC_CHECK_PROGS(WINDRES, windres, :)
365- if test -z "$HOST_CC"; then
366- HOST_CC="$CC"
367- fi
368- if test -z "$HOST_CFLAGS"; then
369- HOST_CFLAGS="$CFLAGS"
370- fi
371- if test -z "$HOST_CXX"; then
372- HOST_CXX="$CXX"
373- fi
374- if test -z "$HOST_CXXFLAGS"; then
375- HOST_CXXFLAGS="$CXXFLAGS"
376- fi
377- if test -z "$HOST_LDFLAGS"; then
378- HOST_LDFLAGS="$LDFLAGS"
379- fi
380- if test -z "$HOST_RANLIB"; then
381- HOST_RANLIB="$RANLIB"
382- fi
383- if test -z "$HOST_AR"; then
384- HOST_AR="$AR"
385- fi
386-fi
387
388 GNU_AS=
389 GNU_LD=
390@@ -1396,6 +1369,8 @@
391 fi # GNU_CC
392 fi # COMPILE_ENVIRONMENT
393
394+ac_cv_static_assertion_macros_work=yes
395+
396 dnl =================================================================
397 dnl Set up and test static assertion macros used to avoid AC_TRY_RUN,
398 dnl which is bad when cross compiling.
399@@ -2524,9 +2499,13 @@
400 AC_LANG_C
401 AC_HEADER_STDC
402 AC_C_CONST
403+ac_cv_type_mode_t=yes
404 AC_TYPE_MODE_T
405+ac_cv_type_off_t=yes
406 AC_TYPE_OFF_T
407+ac_cv_type_pid_t=yes
408 AC_TYPE_PID_T
409+ac_cv_type_size_t=yes
410 AC_TYPE_SIZE_T
411 AC_STRUCT_ST_BLKSIZE
412 AC_MSG_CHECKING(for siginfo_t)
413@@ -2551,7 +2530,8 @@
414
415 AC_CHECK_HEADER(stdint.h)
416 if test "$ac_cv_header_stdint_h" = yes; then
417- AC_DEFINE(JS_HAVE_STDINT_H)
418+ AC_DEFINE(JS_HAVE_STDINT_H, 1, [have stdint.h])
419+ AC_DEFINE(HAVE_STDINT_H)
420 else
421 dnl We'll figure them out for ourselves. List more likely types
422 dnl earlier. If we ever really encounter a size for which none of
423@@ -2937,10 +2917,7 @@
424 ;;
425 *)
426 AC_CHECK_LIB(m, atan)
427- AC_CHECK_LIB(dl, dlopen,
428- AC_CHECK_HEADER(dlfcn.h,
429- LIBS="-ldl $LIBS"
430- AC_DEFINE(HAVE_LIBDL)))
431+ AC_CHECK_LIB(dl, dlopen, AC_DEFINE(HAVE_LIBDL))
432 ;;
433 esac
434
435@@ -3839,6 +3816,7 @@
436 [ --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR.
437 See --with-nspr-cflags for more details.],
438 NSPR_LIBS=$withval)
439+$NSPR_LIBS="$NSPR_LIBS -L$(LIBXUL_DIST)/sdk/lib"
440 AC_SUBST(NSPR_CFLAGS)
441 AC_SUBST(NSPR_LIBS)
442
443@@ -4467,18 +4445,11 @@
444
445 # Demangle only for debug or trace-malloc builds
446 MOZ_DEMANGLE_SYMBOLS=
447-if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then
448- MOZ_DEMANGLE_SYMBOLS=1
449- AC_DEFINE(MOZ_DEMANGLE_SYMBOLS)
450-fi
451 AC_SUBST(MOZ_DEMANGLE_SYMBOLS)
452
453 dnl ========================================================
454 dnl = Support for gcc stack unwinding (from gcc 3.3)
455 dnl ========================================================
456-if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then
457- AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace))
458-fi
459
460 dnl ========================================================
461 dnl =
462@@ -5161,6 +5132,8 @@
463 done
464 AC_SUBST(LIBS_PATH)
465
466+
467+
468 dnl ========================================================
469 dnl JavaScript shell
470 dnl ========================================================
471@@ -5292,3 +5265,4 @@
472 # 'js-config' in Makefile.in.
473 AC_MSG_RESULT(invoking make to create js-config script)
474 $MAKE js-config
475+
476Index: git/nsprpub/configure.in
477===================================================================
478--- git.orig/nsprpub/configure.in 2009-01-27 16:12:40.000000000 +0000
479+++ git/nsprpub/configure.in 2009-01-27 16:16:45.000000000 +0000
480@@ -42,7 +42,6 @@
481 AC_PREREQ(2.12)
482 AC_INIT(config/libc_r.h)
483
484-AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
485 AC_CANONICAL_SYSTEM
486
487 dnl ========================================================
488@@ -400,7 +399,7 @@
489 dnl ========================================================
490 dnl Checks for compilers.
491 dnl ========================================================
492-if test "$target" != "$host"; then
493+
494 echo "cross compiling from $host to $target"
495 cross_compiling=yes
496
497@@ -427,7 +426,7 @@
498
499 AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
500 AC_TRY_COMPILE([], [return(0);],
501- [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
502+ [ac_cv_prog_host_cc_works=1; AC_MSG_RESULT([yes])],
503 AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
504
505 CC=$_SAVE_CC
506@@ -448,7 +447,7 @@
507 ;;
508 esac
509
510- AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", echo)
511+ CC="${target_alias}-gcc"
512 unset ac_cv_prog_CC
513 AC_PROG_CC
514 if test -n "$USE_CPLUS"; then
515@@ -474,30 +473,6 @@
516 AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", echo)
517 AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", echo)
518
519-else
520- AC_PROG_CC
521- if test -n "$USE_CPLUS"; then
522- if test "$CC" = "cl" -a -z "$CXX"; then
523- CXX=$CC
524- else
525- AC_PROG_CXX
526- fi
527- fi
528- AC_PROG_CPP
529- AC_PROG_RANLIB
530- AC_PATH_PROGS(AS, as, $CC)
531- AC_PATH_PROGS(AR, ar, echo not_ar)
532- AC_PATH_PROGS(LD, ld link, echo not_ld)
533- AC_PATH_PROGS(STRIP, strip, echo not_strip)
534- AC_PATH_PROGS(WINDRES, windres, echo not_windres)
535- if test -z "$HOST_CC"; then
536- HOST_CC="$CC"
537- fi
538- if test -z "$HOST_CFLAGS"; then
539- HOST_CFLAGS="$CFLAGS"
540- fi
541-fi
542-
543 if test "$GCC" = "yes"; then
544 GNU_CC=1
545 fi
546@@ -518,11 +493,8 @@
547 ;;
548 esac
549
550-if test "$cross_compiling" = "yes"; then
551+
552 CROSS_COMPILE=1
553-else
554- CROSS_COMPILE=
555-fi
556
557 dnl ========================================================
558 dnl Check for gcc -pipe support
559@@ -2254,10 +2226,7 @@
560 *-darwin*|*-beos*)
561 ;;
562 *)
563- AC_CHECK_LIB(dl, dlopen,
564- AC_CHECK_HEADER(dlfcn.h,
565- OS_LIBS="-ldl $OS_LIBS"))
566- ;;
567+ AC_CHECK_LIB(dl, dlopen)
568 esac
569
570
571@@ -2874,6 +2843,8 @@
572 dnl pr/tests/w16gui/Makefile
573 dnl tools/Makefile
574
575+m4_pattern_allow(AS_BIN)
576+
577 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
578 MAKEFILES="$MAKEFILES pr/src/threads/combined/Makefile"
579 elif test -n "$USE_PTHREADS"; then
580@@ -2889,3 +2860,5 @@
581 echo $MAKEFILES > unallmakefiles
582
583 AC_OUTPUT([$MAKEFILES], [chmod +x config/nspr-config])
584+
585+
586Index: git/toolkit/toolkit-makefiles.sh
587===================================================================
588--- git.orig/toolkit/toolkit-makefiles.sh 2009-01-27 16:13:11.000000000 +0000
589+++ git/toolkit/toolkit-makefiles.sh 2009-01-27 16:16:45.000000000 +0000
590@@ -632,7 +632,6 @@
591 toolkit/crashreporter/client/Makefile
592 toolkit/crashreporter/google-breakpad/src/client/Makefile
593 toolkit/crashreporter/google-breakpad/src/client/mac/handler/Makefile
594- toolkit/crashreporter/google-breakpad/src/client/windows/Makefile
595 toolkit/crashreporter/google-breakpad/src/client/windows/handler/Makefile
596 toolkit/crashreporter/google-breakpad/src/client/windows/sender/Makefile
597 toolkit/crashreporter/google-breakpad/src/common/Makefile
598Index: git/js/src/Makefile.in
599===================================================================
600--- git.orig/js/src/Makefile.in 2009-01-27 16:11:52.000000000 +0000
601+++ git/js/src/Makefile.in 2009-01-27 16:16:45.000000000 +0000
602@@ -513,20 +513,8 @@
603
604 export:: jsautocfg.h
605
606-ifeq (,$(CROSS_COMPILE)$(filter-out WINNT,$(OS_ARCH)))
607 jsautocfg.h:
608 touch $@
609-else
610-ifeq ($(OS_ARCH),WINCE)
611-jsautocfg.h:
612- touch $@
613-else
614-jsautocfg.h: jscpucfg$(HOST_BIN_SUFFIX)
615- @rm -f $@ jsautocfg.tmp
616- ./jscpucfg > jsautocfg.tmp
617- mv jsautocfg.tmp $@
618-endif
619-endif
620
621 # jscpucfg is a strange target
622 # Needs to be built with the host compiler but needs to include
623@@ -556,7 +544,7 @@
624 echo no need to build jscpucfg $<
625 else
626 jscpucfg$(HOST_BIN_SUFFIX): jscpucfg.cpp Makefile.in
627- $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $<
628+ $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) -I$(DIST)/sdk/include $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $<
629 endif
630 endif
631
632Index: git/js/src/xpconnect/loader/mozJSComponentLoader.cpp
633===================================================================
634--- git.orig/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-01-27 16:11:55.000000000 +0000
635+++ git/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-01-27 16:16:45.000000000 +0000
636@@ -47,6 +47,8 @@
637
638 #include <stdarg.h>
639
640+#include "mozilla-config.h"
641+
642 #include "prlog.h"
643
644 #include "nsCOMPtr.h"
645Index: git/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp
646===================================================================
647--- git.orig/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-01-27 16:11:55.000000000 +0000
648+++ git/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-01-27 16:16:45.000000000 +0000
649@@ -39,6 +39,8 @@
650 *
651 * ***** END LICENSE BLOCK ***** */
652
653+#include "mozilla-config.h"
654+
655 #if !defined(XPCONNECT_STANDALONE) && !defined(NO_SUBSCRIPT_LOADER)
656
657 #include "mozJSSubScriptLoader.h"
658Index: git/modules/lcms/include/icc34.h
659===================================================================
660--- git.orig/modules/lcms/include/icc34.h 2009-01-27 16:12:31.000000000 +0000
661+++ git/modules/lcms/include/icc34.h 2009-01-27 16:16:45.000000000 +0000
662@@ -144,7 +144,7 @@
663 */
664
665
666-#ifdef PACKAGE_NAME
667+#if 0
668 /*
669 June 9, 2003, Adapted for use with configure by Bob Friesenhahn
670 Added the stupid check for autoconf by Marti Maria.
671Index: git/toolkit/mozapps/update/src/updater/Makefile.in
672===================================================================
673--- git.orig/toolkit/mozapps/update/src/updater/Makefile.in 2009-01-27 16:13:09.000000000 +0000
674+++ git/toolkit/mozapps/update/src/updater/Makefile.in 2009-01-27 16:16:45.000000000 +0000
675@@ -59,7 +59,7 @@
676
677 LIBS += \
678 $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX) \
679- $(BZ2_LIBS) \
680+ $(BZ2_LIBS) -lpthread \
681 $(NULL)
682
683 ifeq ($(OS_ARCH),WINNT)
684Index: git/xpcom/sample/program/Makefile.in
685===================================================================
686--- git.orig/xpcom/sample/program/Makefile.in 2009-01-27 16:13:18.000000000 +0000
687+++ git/xpcom/sample/program/Makefile.in 2009-01-27 16:16:45.000000000 +0000
688@@ -57,7 +57,7 @@
689 # that the application be linked against the XPCOM dynamic library or the NSPR
690 # dynamic libraries.
691 LIBS = \
692- $(XPCOM_STANDALONE_GLUE_LDOPTS) \
693+ $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \
694 $(NULL)
695
696 # Need to link with CoreFoundation on Mac
697Index: git/xpcom/tools/registry/Makefile.in
698===================================================================
699--- git.orig/xpcom/tools/registry/Makefile.in 2009-01-27 16:13:18.000000000 +0000
700+++ git/xpcom/tools/registry/Makefile.in 2009-01-27 16:16:45.000000000 +0000
701@@ -54,7 +54,7 @@
702 SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
703
704 LIBS = \
705- $(XPCOM_STANDALONE_GLUE_LDOPTS) \
706+ $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \
707 $(NULL)
708
709 # Need to link with CoreFoundation on Mac
710Index: git/xulrunner/app/Makefile.in
711===================================================================
712--- git.orig/xulrunner/app/Makefile.in 2009-01-27 16:13:19.000000000 +0000
713+++ git/xulrunner/app/Makefile.in 2009-01-27 16:16:45.000000000 +0000
714@@ -180,7 +180,7 @@
715 RCFLAGS += -DXULRUNNER_ICO=\"$(DIST)/branding/xulrunner.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\"
716 endif
717
718-LIBS += $(JEMALLOC_LIBS)
719+LIBS += $(JEMALLOC_LIBS) -lpthread -ldl
720
721 include $(topsrcdir)/config/rules.mk
722
723Index: git/xulrunner/stub/Makefile.in
724===================================================================
725--- git.orig/xulrunner/stub/Makefile.in 2009-01-27 16:13:20.000000000 +0000
726+++ git/xulrunner/stub/Makefile.in 2009-01-27 16:16:45.000000000 +0000
727@@ -101,7 +101,7 @@
728 endif
729 endif
730
731-LIBS += $(JEMALLOC_LIBS)
732+LIBS += $(JEMALLOC_LIBS) -lpthread -ldl
733
734 include $(topsrcdir)/config/rules.mk
735
736Index: git/modules/plugin/test/testplugin/Makefile.in
737===================================================================
738--- git.orig/modules/plugin/test/testplugin/Makefile.in 2009-01-27 16:12:37.000000000 +0000
739+++ git/modules/plugin/test/testplugin/Makefile.in 2009-01-27 16:16:45.000000000 +0000
740@@ -63,9 +63,7 @@
741 CMMSRCS = nptest_macosx.mm
742 endif
743
744-ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
745 CPPSRCS += nptest_gtk2.cpp
746-endif
747
748 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
749 CPPSRCS += nptest_windows.cpp
750Index: git/xulrunner/installer/libxul-unstable.pc.in
751===================================================================
752--- git.orig/xulrunner/installer/libxul-unstable.pc.in 2009-01-27 18:07:55.000000000 +0000
753+++ git/xulrunner/installer/libxul-unstable.pc.in 2009-01-28 15:19:22.000000000 +0000
754@@ -8,5 +8,5 @@
755 Description: The Mozilla Runtime and Embedding Engine (unstable API)
756 Version: %MOZILLA_VERSION%
757 Requires: %NSPR_NAME% >= %NSPR_VERSION%
758-Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
759+Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom -lsmime3 -lnss3 -lssl3 -lnssutil3 -L${sdkdir}/../xulrunner-1.9.2a1pre
760 Cflags: -I${includedir}/${includetype} %WCHAR_CFLAGS%
diff --git a/meta/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h
new file mode 100644
index 0000000000..394271a7ea
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT */
5
6#define IS_LITTLE_ENDIAN 1
7#undef IS_BIG_ENDIAN
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 4L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 4L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h
new file mode 100644
index 0000000000..394271a7ea
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT */
5
6#define IS_LITTLE_ENDIAN 1
7#undef IS_BIG_ENDIAN
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 4L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 4L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h
new file mode 100644
index 0000000000..394271a7ea
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT */
5
6#define IS_LITTLE_ENDIAN 1
7#undef IS_BIG_ENDIAN
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 4L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 4L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h
new file mode 100644
index 0000000000..394271a7ea
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT */
5
6#define IS_LITTLE_ENDIAN 1
7#undef IS_BIG_ENDIAN
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 4L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 4L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless/mozconfig b/meta/packages/mozilla-headless/mozilla-headless/mozconfig
new file mode 100644
index 0000000000..6123d11d27
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/mozconfig
@@ -0,0 +1,23 @@
1# this line sets the directory for all build output
2mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-headless-release
3
4# comment out the previous line and uncomment these two for a debug build
5#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-headless-debug
6#ac_add_options --disable-optimize --enable-debug
7
8# this is the line that enables the headless implementation
9ac_add_options --enable-default-toolkit=cairo-headless
10
11# comment out the previous line and uncomment these two for a GTK build
12#ac_add_options --enable-system-cairo
13#ac_add_options --enable-default-toolkit=cairo-gtk2
14
15ac_add_options --disable-tests
16ac_add_options --disable-javaxpcom
17ac_add_options --enable-application=xulrunner
18ac_add_options --enable-pango
19ac_add_options --disable-printing
20ac_add_options --disable-crashreporter
21ac_add_options --enable-plugins
22ac_add_options --disable-accessibility
23mk_add_options MOZ_CO_PROJECT=xulrunner
diff --git a/meta/packages/mozilla-headless/mozilla-headless/powerpc/jsautocfg.h b/meta/packages/mozilla-headless/mozilla-headless/powerpc/jsautocfg.h
new file mode 100644
index 0000000000..408a5e4ac4
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless/powerpc/jsautocfg.h
@@ -0,0 +1,54 @@
1#ifndef js_cpucfg___
2#define js_cpucfg___
3
4/* AUTOMATICALLY GENERATED - DO NOT EDIT */
5
6#undef IS_LITTLE_ENDIAN
7#define IS_BIG_ENDIAN 1
8
9#define JS_BYTES_PER_BYTE 1L
10#define JS_BYTES_PER_SHORT 2L
11#define JS_BYTES_PER_INT 4L
12#define JS_BYTES_PER_INT64 8L
13#define JS_BYTES_PER_LONG 4L
14#define JS_BYTES_PER_FLOAT 4L
15#define JS_BYTES_PER_DOUBLE 8L
16#define JS_BYTES_PER_WORD 4L
17#define JS_BYTES_PER_DWORD 8L
18
19#define JS_BITS_PER_BYTE 8L
20#define JS_BITS_PER_SHORT 16L
21#define JS_BITS_PER_INT 32L
22#define JS_BITS_PER_INT64 64L
23#define JS_BITS_PER_LONG 32L
24#define JS_BITS_PER_FLOAT 32L
25#define JS_BITS_PER_DOUBLE 64L
26#define JS_BITS_PER_WORD 32L
27
28#define JS_BITS_PER_BYTE_LOG2 3L
29#define JS_BITS_PER_SHORT_LOG2 4L
30#define JS_BITS_PER_INT_LOG2 5L
31#define JS_BITS_PER_INT64_LOG2 6L
32#define JS_BITS_PER_LONG_LOG2 5L
33#define JS_BITS_PER_FLOAT_LOG2 5L
34#define JS_BITS_PER_DOUBLE_LOG2 6L
35#define JS_BITS_PER_WORD_LOG2 5L
36
37#define JS_ALIGN_OF_SHORT 2L
38#define JS_ALIGN_OF_INT 4L
39#define JS_ALIGN_OF_LONG 4L
40#define JS_ALIGN_OF_INT64 8L
41#define JS_ALIGN_OF_FLOAT 4L
42#define JS_ALIGN_OF_DOUBLE 8L
43#define JS_ALIGN_OF_POINTER 4L
44#define JS_ALIGN_OF_WORD 4L
45
46#define JS_BYTES_PER_WORD_LOG2 2L
47#define JS_BYTES_PER_DWORD_LOG2 3L
48#define JS_WORDS_PER_DWORD_LOG2 1L
49
50#define JS_STACK_GROWTH_DIRECTION (-1)
51
52#define JS_HAVE_LONG_LONG
53
54#endif /* js_cpucfg___ */
diff --git a/meta/packages/mozilla-headless/mozilla-headless_git.bb b/meta/packages/mozilla-headless/mozilla-headless_git.bb
new file mode 100644
index 0000000000..9a016ad69b
--- /dev/null
+++ b/meta/packages/mozilla-headless/mozilla-headless_git.bb
@@ -0,0 +1,49 @@
1
2SRC_URI = "git://git.o-hand.com/${PN}.git;protocol=git \
3 file://configurefix.patch;patch=1 \
4 file://jsautocfg.h \
5 file://mozconfig"
6PV = "0.0+git${SRCREV}"
7PR = "r8"
8
9S = "${WORKDIR}/git"
10
11DEPENDS = "gconf gnome-vfs pango dbus-glib alsa-lib libidl-native sqlite3"
12
13FILES_${PN} += "${libdir}/xulrunner-1.9.2a1pre"
14FILES_${PN}-dev += "${libdir}/xulrunner-devel-1.9.2a1pre"
15FILES_${PN}-dbg += "${libdir}/xulrunner-devel-1.9.2a1pre/sdk/lib/.debug"
16
17inherit autotools_stage mozilla
18
19acpaths = "-I ${S}/build/autoconf "
20
21export topsrcdir = "${S}"
22
23do_configure () {
24 cp ${S}/build/autoconf/install-sh ${S}
25 autotools_do_configure
26 # Yes, we run this twice. The first pass sets up npsrpub-config which then
27 # sets the values correctly on the second try. Ick.
28 autotools_do_configure
29}
30
31do_compile () {
32 cp ${WORKDIR}/jsautocfg.h ${S}/js/src/
33 #oe_runmake -f client.mk build_all
34 base_do_compile
35}
36
37EXTRA_OECONF =+ "--enable-application=xulrunner --disable-javaxpcom --enable-system-sqlite --enable-default-toolkit=cairo-headless --disable-printing --disable-crashreporter --disable-plugins --disable-accessibility --enable-pango --disable-tests"
38
39export LIBXUL_DIST="${S}/dist"
40
41do_stage_append () {
42 autotools_stage_dir ${STAGE_TEMP}/${libdir}/xulrunner-1.9.2a1pre ${STAGING_DIR_HOST}${layout_libdir}/xulrunner-1.9.2a1pre/
43 autotools_stage_dir ${STAGE_TEMP}/${libdir}/xulrunner-devel-1.9.2a1pre ${STAGING_DIR_HOST}${layout_libdir}/xulrunner-devel-1.9.2a1pre/
44 ln -fs ${STAGING_DIR_HOST}${layout_libdir}/xulrunner-1.9.2a1pre/ /media/build2/builds/poky/build1/moblin/staging/i586-poky-linux/usr/lib/xulrunner-devel-1.9.2a1pre/bin
45 ln -fs ${STAGING_DIR_HOST}${layout_datadir}/xulrunner-1.9.2a1pre/unstable/ /media/build2/builds/poky/build1/moblin/staging/i586-poky-linux/usr/lib/xulrunner-devel-1.9.2a1pre/idl
46 ln -fs ${STAGING_DIR_HOST}${layout_includedir}/xulrunner-1.9.2a1pre/unstable/ /media/build2/builds/poky/build1/moblin/staging/i586-poky-linux/usr/lib/xulrunner-devel-1.9.2a1pre/include
47 ln -fs ${STAGING_DIR_HOST}${layout_libdir}/xulrunner-devel-1.9.2a1pre/sdk/lib/ /media/build2/builds/poky/build1/moblin/staging/i586-poky-linux/usr/lib/xulrunner-devel-1.9.2a1pre/lib
48}
49