File devhelp-xulrunner.patch of Package devhelp
--- config.h.in
+++ config.h.in
@@ -61,6 +61,9 @@
#undef HAVE_ZLIB_H
/* dummy */
+#undef MOZILLA_IS_XULRUNNER
+
+/* dummy */
#undef MOZ_NSIXULCHROMEREGISTRY_SELECTSKIN
/* Name of package */
--- configure.in
+++ configure.in
@@ -44,11 +44,11 @@
MOZILLA=
AC_ARG_WITH([mozilla],
- AC_HELP_STRING([--with-mozilla@<:@=mozilla|firefox|thunderbird@:>@],
- [Whether to use mozilla, firefox or thunderbird gtkmozembed (default: mozilla)]),
+ AC_HELP_STRING([--with-mozilla@<:@=mozilla|firefox|thunderbird|xulrunner@:>@],
+ [Whether to use mozilla, firefox, thunderbird or xulrunner gtkmozembed (default: mozilla)]),
[MOZILLA="$withval"])
-dnl try to autodetect: if mozilla exists, use it, else try firefox, then thunderbird
+dnl try to autodetect: if mozilla exists, use it, else try firefox, then thunderbird, then xulrunner
if test "x$MOZILLA" = "x"; then
if pkg-config --exists mozilla-gtkmozembed; then
MOZILLA=mozilla
@@ -56,10 +56,13 @@
MOZILLA=firefox
elif pkg-config --exists thunderbird-gtkmozembed; then
MOZILLA=thunderbird
+ elif pkg-config --exists xulrunner-gtkmozembed; then
+ MOZILLA=xulrunner
+ AC_DEFINE([MOZILLA_IS_XULRUNNER],[1],[Define if using xulrunner])
else
AC_MSG_ERROR([no mozilla installation found])
fi
-elif test "x$with_mozilla" != "xmozilla" -a "x$with_mozilla" != "xfirefox" -a "x$with_mozilla" != "xthunderbird"; then
+elif test "x$with_mozilla" != "xmozilla" -a "x$with_mozilla" != "xfirefox" -a "x$with_mozilla" != "xthunderbird" -a "x$with_mozilla" != "xxulrunner" ; then
AC_MSG_ERROR([unknown mozilla name ($MOZILLA)])
fi
@@ -71,6 +74,7 @@
mozilla) min_version=1.7 flavour=mozilla ;;
firefox) min_version=0.10 flavour=toolkit ;;
thunderbird) min_version=0.8 flavour=toolkit ;;
+xulrunner) min_version=1.7 flavour=toolkit ;;
esac
MOZILLA_FLAVOUR=$flavour
--- src/dh-gecko-utils.cpp
+++ src/dh-gecko-utils.cpp
@@ -31,12 +31,15 @@
#define MOZILLA_INTERNAL_API
#include <nsIServiceManager.h>
#undef MOZILLA_INTERNAL_API
+#ifndef MOZILLA_IS_XULRUNNER
#include <nsIWindowWatcher.h>
#include <nsIIOService.h>
+#endif
#include <nsISupportsPrimitives.h>
#include <nsILocalFile.h>
+#ifndef MOZILLA_IS_XULRUNNER
#include <nsIURI.h>
-
+#endif
#include <stdlib.h>
#if defined (HAVE_CHROME_NSICHROMEREGISTRYSEA_H)