2009-12-08 13:41:27 +01:00
|
|
|
From: Hans Petter Jansson <hpj@copyleft.no>
|
|
|
|
Wolfgang Rosenauer <wr@rosenauer.org>
|
|
|
|
Subject: use libnsssharedhelper if available at compile time
|
|
|
|
(can be disabled by exporting MOZ_XRE_NO_NSSHELPER=1)
|
|
|
|
References:
|
|
|
|
|
|
|
|
diff --git a/config/autoconf.mk.in b/config/autoconf.mk.in
|
|
|
|
--- a/config/autoconf.mk.in
|
2010-07-24 17:36:48 +02:00
|
|
|
+++ b/config/autoconf.mk.in
|
2011-12-20 09:05:23 +01:00
|
|
|
@@ -451,16 +451,20 @@ MOZ_PANGO_LIBS = @MOZ_PANGO_LIB
|
2009-12-08 13:41:27 +01:00
|
|
|
XT_LIBS = @XT_LIBS@
|
2009-12-08 11:23:17 +01:00
|
|
|
|
2009-12-08 13:41:27 +01:00
|
|
|
MOZ_ALSA_LIBS = @MOZ_ALSA_LIBS@
|
|
|
|
|
|
|
|
GLIB_CFLAGS = @GLIB_CFLAGS@
|
2009-07-21 12:08:52 +02:00
|
|
|
GLIB_LIBS = @GLIB_LIBS@
|
|
|
|
GLIB_GMODULE_LIBS = @GLIB_GMODULE_LIBS@
|
|
|
|
|
|
|
|
+MOZ_ENABLE_NSSHELPER = @MOZ_ENABLE_NSSHELPER@
|
|
|
|
+NSSHELPER_CFLAGS = @NSSHELPER_CFLAGS@
|
|
|
|
+NSSHELPER_LIBS = @NSSHELPER_LIBS@
|
|
|
|
+
|
|
|
|
MOZ_NATIVE_MAKEDEPEND = @SYSTEM_MAKEDEPEND@
|
|
|
|
|
|
|
|
MOZ_AUTO_DEPS = @MOZ_AUTO_DEPS@
|
2009-12-08 13:41:27 +01:00
|
|
|
COMPILER_DEPEND = @COMPILER_DEPEND@
|
|
|
|
MDDEPDIR := @MDDEPDIR@
|
2011-06-28 20:42:13 +02:00
|
|
|
CC_WRAPPER = @CC_WRAPPER@
|
|
|
|
CXX_WRAPPER = @CXX_WRAPPER@
|
2010-07-24 17:36:48 +02:00
|
|
|
|
2009-12-08 13:41:27 +01:00
|
|
|
diff --git a/configure.in b/configure.in
|
|
|
|
--- a/configure.in
|
2010-07-24 17:36:48 +02:00
|
|
|
+++ b/configure.in
|
2011-12-20 09:05:23 +01:00
|
|
|
@@ -6680,16 +6680,31 @@ AC_SUBST(QCMS_LIBS)
|
2009-12-08 13:41:27 +01:00
|
|
|
|
|
|
|
dnl ========================================================
|
2011-06-28 20:42:13 +02:00
|
|
|
dnl HarfBuzz
|
2010-12-10 10:44:42 +01:00
|
|
|
dnl ========================================================
|
2011-06-28 20:42:13 +02:00
|
|
|
MOZ_HARFBUZZ_LIBS='$(DEPTH)/mozilla/gfx/harfbuzz/src/$(LIB_PREFIX)mozharfbuzz.$(LIB_SUFFIX)'
|
|
|
|
AC_SUBST(MOZ_HARFBUZZ_LIBS)
|
2009-07-21 12:08:52 +02:00
|
|
|
|
|
|
|
dnl ========================================================
|
|
|
|
+dnl Check for nss-shared-helper
|
|
|
|
+dnl ========================================================
|
|
|
|
+
|
|
|
|
+ PKG_CHECK_MODULES(NSSHELPER, nss-shared-helper,
|
|
|
|
+ [MOZ_ENABLE_NSSHELPER=1],
|
|
|
|
+ [MOZ_ENABLE_NSSHELPER=])
|
|
|
|
+
|
|
|
|
+if test "$MOZ_ENABLE_NSSHELPER"; then
|
|
|
|
+ AC_DEFINE(MOZ_ENABLE_NSSHELPER)
|
|
|
|
+fi
|
|
|
|
+AC_SUBST(MOZ_ENABLE_NSSHELPER)
|
|
|
|
+AC_SUBST(NSSHELPER_CFLAGS)
|
|
|
|
+AC_SUBST(NSSHELPER_LIBS)
|
|
|
|
+
|
|
|
|
+dnl ========================================================
|
|
|
|
dnl disable xul
|
|
|
|
dnl ========================================================
|
|
|
|
MOZ_ARG_DISABLE_BOOL(xul,
|
2009-12-08 13:41:27 +01:00
|
|
|
[ --disable-xul Disable XUL],
|
|
|
|
MOZ_XUL= )
|
|
|
|
if test "$MOZ_XUL"; then
|
|
|
|
AC_DEFINE(MOZ_XUL)
|
|
|
|
fi
|
2010-07-24 17:36:48 +02:00
|
|
|
diff --git a/mail/app/Makefile.in b/mail/app/Makefile.in
|
|
|
|
--- a/mail/app/Makefile.in
|
|
|
|
+++ b/mail/app/Makefile.in
|
2012-02-01 15:14:46 +01:00
|
|
|
@@ -101,16 +101,17 @@ STL_FLAGS=
|
|
|
|
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2011-12-20 09:05:23 +01:00
|
|
|
TK_LIBS := -framework Cocoa $(TK_LIBS)
|
|
|
|
endif
|
2011-08-02 14:57:20 +02:00
|
|
|
|
2010-07-24 17:36:48 +02:00
|
|
|
LIBS += \
|
2009-12-08 13:41:27 +01:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2011-12-20 09:05:23 +01:00
|
|
|
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
|
2009-12-08 13:41:27 +01:00
|
|
|
+ $(NSSHELPER_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-09-26 15:57:38 +02:00
|
|
|
ifdef MOZ_JPROF
|
|
|
|
LIBS += -ljprof
|
|
|
|
endif
|
2010-07-24 17:36:48 +02:00
|
|
|
|
2011-09-26 15:57:38 +02:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
|
|
|
LIBS += $(MOZ_DBUS_GLIB_LIBS)
|