aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-20 04:24:31 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-20 04:24:31 +0800
commit78ed4ddf68133188de0eba69d7826d06afd7994a (patch)
tree6bee6769316184e173d14942bd8eb0159107cb84
parent53335d175e672507e860d16292fca8fb75648e0b (diff)
downloadgsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar.gz
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar.bz2
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar.lz
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar.xz
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.tar.zst
gsoc2013-epiphany-78ed4ddf68133188de0eba69d7826d06afd7994a.zip
Only build those files when we have mozilla psm.
2004-11-19 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: Only build those files when we have mozilla psm.
-rw-r--r--ChangeLog10
-rw-r--r--configure.ac6
-rw-r--r--embed/mozilla/GtkNSSClientAuthDialogs.cpp4
-rw-r--r--embed/mozilla/GtkNSSDialogs.cpp4
-rw-r--r--embed/mozilla/GtkNSSKeyPairDialogs.cpp4
-rw-r--r--embed/mozilla/Makefile.am16
6 files changed, 24 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index bbd66e261..57fa8d10d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2004-11-19 Christian Persch <chpe@cvs.gnome.org>
+ * configure.ac:
+ * embed/mozilla/GtkNSSClientAuthDialogs.cpp:
+ * embed/mozilla/GtkNSSDialogs.cpp:
+ * embed/mozilla/GtkNSSKeyPairDialogs.cpp:
+ * embed/mozilla/Makefile.am:
+
+ Only build those files when we have mozilla psm.
+
+2004-11-19 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/EphyBrowser.cpp:
Use the dom window from the event.
diff --git a/configure.ac b/configure.ac
index 1a4fd85c6..a489613af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -378,8 +378,10 @@ CXXFLAGS=$_SAVE_CXXFLAGS
AC_LANG_POP(C++)
AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/pipnss/nsIX509Cert.h],
- [AC_DEFINE(HAVE_MOZILLA_PSM, 1,
- [Define if you have the mozilla psm headers installed])])
+ [AC_DEFINE([HAVE_MOZILLA_PSM],[1],
+ [Define if you have the mozilla psm headers installed]) have_psm=yes],
+ [have_psm=no])
+AM_CONDITIONAL([HAVE_MOZILLA_PSM],[test "x$have_psm" = "xyes"])
if test "x$flavour" = "xmozilla"; then
AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/nsIPassword.h],
diff --git a/embed/mozilla/GtkNSSClientAuthDialogs.cpp b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
index cd1ee2fb9..d8f68c883 100644
--- a/embed/mozilla/GtkNSSClientAuthDialogs.cpp
+++ b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
@@ -24,8 +24,6 @@
#include "config.h"
-#ifdef HAVE_MOZILLA_PSM
-
#include "EphyUtils.h"
#include <nsIServiceManager.h>
@@ -284,5 +282,3 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx,
gtk_widget_destroy (dialog);
return NS_OK;
}
-
-#endif
diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp
index c245a082d..52a2e351a 100644
--- a/embed/mozilla/GtkNSSDialogs.cpp
+++ b/embed/mozilla/GtkNSSDialogs.cpp
@@ -30,8 +30,6 @@
#include "config.h"
-#ifdef HAVE_MOZILLA_PSM
-
#include "EphyUtils.h"
#include <nsCOMPtr.h>
@@ -1465,5 +1463,3 @@ GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx,
gtk_widget_destroy (dialog);
return NS_OK;
}
-
-#endif
diff --git a/embed/mozilla/GtkNSSKeyPairDialogs.cpp b/embed/mozilla/GtkNSSKeyPairDialogs.cpp
index 90a1d958f..4670abd06 100644
--- a/embed/mozilla/GtkNSSKeyPairDialogs.cpp
+++ b/embed/mozilla/GtkNSSKeyPairDialogs.cpp
@@ -39,8 +39,6 @@
#include "config.h"
-#ifdef HAVE_MOZILLA_PSM
-
#include "EphyUtils.h"
#include <nsIServiceManager.h>
@@ -711,5 +709,3 @@ NS_IMETHODIMP KeyPairHelperWindow::GetWindowRoot(nsIDOMEventTarget * *aWindowRoo
{
MOZ_NOT_IMPLEMENTED
}
-
-#endif
diff --git a/embed/mozilla/Makefile.am b/embed/mozilla/Makefile.am
index 029956db0..ec3913a64 100644
--- a/embed/mozilla/Makefile.am
+++ b/embed/mozilla/Makefile.am
@@ -66,12 +66,6 @@ libephymozillaembed_la_SOURCES = \
EventContext.h \
GlobalHistory.cpp \
GlobalHistory.h \
- GtkNSSClientAuthDialogs.cpp \
- GtkNSSClientAuthDialogs.h \
- GtkNSSDialogs.cpp \
- GtkNSSDialogs.h \
- GtkNSSKeyPairDialogs.cpp \
- GtkNSSKeyPairDialogs.h \
MozDownload.cpp \
MozDownload.h \
MozillaPrivate.cpp \
@@ -98,3 +92,13 @@ libephymozillaembed_la_SOURCES += \
FilePicker.cpp \
FilePicker.h
endif
+
+if HAVE_MOZILLA_PSM
+libephymozillaembed_la_SOURCES += \
+ GtkNSSClientAuthDialogs.cpp \
+ GtkNSSClientAuthDialogs.h \
+ GtkNSSDialogs.cpp \
+ GtkNSSDialogs.h \
+ GtkNSSKeyPairDialogs.cpp \
+ GtkNSSKeyPairDialogs.h
+endif