summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-10-18 12:05:08 +0200
committerJan Holesovsky <kendy@suse.cz>2011-10-18 12:10:05 +0200
commitd37209912b44f5accee73e7f774122b195fe2183 (patch)
tree03debcabc2cb73b294ba1e1d074e33f2c99d9073
parent5f3a31f6f5a0271a5d2d04852e88a66672027bd1 (diff)
Decouple NSS build from the Mozilla build.
This allows xmlsecurity to be built even when --disable-mozilla is provided.
-rw-r--r--configure.in83
-rw-r--r--libxmlsec/makefile.mk4
-rw-r--r--postprocess/packcomponents/makefile.mk2
-rw-r--r--scp2/source/ooo/file_library_ooo.scp2
4 files changed, 44 insertions, 47 deletions
diff --git a/configure.in b/configure.in
index 5a84e686f03f..0fb9e7b85b09 100644
--- a/configure.in
+++ b/configure.in
@@ -2321,13 +2321,11 @@ if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
fi
if test $_os = WINNT -a \
\( "$enable_mozilla" = yes -o \
- "$enable_nss_module" = yes -o \
"$enable_build_mozilla" = yes \); then
# We can't build against the Mozilla stuff if using _DEBUG, will get linking errors
# See connectivity/drivers/mozab
AC_MSG_WARN([Also disabling Mozilla stuff then])
enable_mozilla=no
- enable_nss_module=no
enable_build_mozilla=no
fi
else
@@ -5679,11 +5677,10 @@ else
fi
AC_SUBST(SYSTEM_ODBC_HEADERS)
-AC_MSG_CHECKING([whether to enable build of Mozilla/Mozilla NSS-using components])
+AC_MSG_CHECKING([whether to enable build of Mozilla])
if test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([no])
WITH_MOZILLA=NO
- ENABLE_NSS_MODULE=NO
else
AC_MSG_RESULT([yes])
WITH_MOZILLA=YES
@@ -5700,8 +5697,8 @@ else
fi
AC_MSG_CHECKING([whether to build XML Security support])
-if test "$enable_mozilla" = "no"; then
- AC_MSG_RESULT([no, since Mozilla (NSS) disabled but needed])
+if test "$enable_nss_module" = "no"; then
+ AC_MSG_RESULT([no, NSS disabled])
else
AC_MSG_RESULT([yes])
fi
@@ -5841,8 +5838,6 @@ Please recompile $tmp with --enable-ldap or use --with-openldap.])
elif test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([none])
WITH_MOZILLA=NO
- ENABLE_NSS_MODULE=NO
- enable_nss_module=no
else
AC_MSG_RESULT([internal])
SYSTEM_MOZILLA=NO
@@ -5893,40 +5888,6 @@ else
AC_MSG_RESULT([no])
fi
-AC_MSG_CHECKING([whether to build provided NSS module])
-if test "$enable_nss_module" != "no"; then
- ENABLE_NSS_MODULE="YES"
- BUILD_TYPE="$BUILD_TYPE NSS"
- AC_MSG_RESULT([yes])
- if test "$build_os" = "cygwin"; then
- AC_MSG_CHECKING([for Mozilla build tooling])
- if test -z "$MOZILLABUILD" ; then
- AC_MSG_ERROR([Mozilla build tooling not found.
-Use the --with-mozilla-build option after installing the tools obtained
-from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32])
- else
- if test \( "$WITH_MINGW" = "yes" \) ; then
- if test ! -d "$MOZILLABUILD" ; then
- AC_MSG_ERROR([Mozilla build tooling incomplete!])
- else
- AC_MSG_RESULT([ok])
- fi
- else
- if test ! -d "$MOZILLABUILD/moztools" \
- -o ! -d "$MOZILLABUILD/msys" ; then
- AC_MSG_ERROR([Mozilla build tooling incomplete!])
- else
- AC_MSG_RESULT([ok])
- fi
- fi
- fi
- fi
-else
- ENABLE_NSS_MODULE="NO"
- AC_MSG_RESULT([no])
-fi
-
-
if test "$BUILD_MOZAB" = "TRUE"; then
if test "$_os" = "WINNT"; then
if test "$WITH_MINGW" != "yes"; then
@@ -6008,7 +5969,6 @@ fi
AC_SUBST(BUILD_MOZAB)
fi
-AC_SUBST(ENABLE_NSS_MODULE)
AC_SUBST(MOZILLABUILD)
AC_SUBST(SYSTEM_MOZILLA)
AC_SUBST(MOZ_FLAVOUR)
@@ -6020,6 +5980,43 @@ AC_SUBST(MOZ_NSS_CFLAGS)
AC_SUBST(MOZ_LDAP_CFLAGS)
dnl ===================================================================
+dnl Check for system NSS
+dnl ===================================================================
+AC_MSG_CHECKING([whether to build provided NSS module])
+if test "$enable_nss_module" != "no"; then
+ ENABLE_NSS_MODULE="YES"
+ BUILD_TYPE="$BUILD_TYPE NSS"
+ AC_MSG_RESULT([yes])
+ if test "$build_os" = "cygwin"; then
+ AC_MSG_CHECKING([for Mozilla build tooling])
+ if test -z "$MOZILLABUILD" ; then
+ AC_MSG_ERROR([Mozilla build tooling not found.
+Use the --with-mozilla-build option after installing the tools obtained
+from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32])
+ else
+ if test \( "$WITH_MINGW" = "yes" \) ; then
+ if test ! -d "$MOZILLABUILD" ; then
+ AC_MSG_ERROR([Mozilla build tooling incomplete!])
+ else
+ AC_MSG_RESULT([ok])
+ fi
+ else
+ if test ! -d "$MOZILLABUILD/moztools" \
+ -o ! -d "$MOZILLABUILD/msys" ; then
+ AC_MSG_ERROR([Mozilla build tooling incomplete!])
+ else
+ AC_MSG_RESULT([ok])
+ fi
+ fi
+ fi
+ fi
+else
+ ENABLE_NSS_MODULE="NO"
+ AC_MSG_RESULT([no])
+fi
+AC_SUBST(ENABLE_NSS_MODULE)
+
+dnl ===================================================================
dnl Check for system sane
dnl ===================================================================
AC_MSG_CHECKING([which sane header to use])
diff --git a/libxmlsec/makefile.mk b/libxmlsec/makefile.mk
index 58fc9b99d58f..673cdbff388e 100644
--- a/libxmlsec/makefile.mk
+++ b/libxmlsec/makefile.mk
@@ -35,9 +35,9 @@ EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
.INCLUDE : settings.mk
-.IF "$(WITH_MOZILLA)" == "NO"
+.IF "$(ENABLE_NSS_MODULE)" == "NO"
@all:
- @echo "Mozilla disabled -> no nss -> no libxmlsec...."
+ @echo "NSS module disabled => no libxmlsec...."
.ENDIF
# --- Files --------------------------------------------------------
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index 2da7af8041f2..e41ead326653 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -276,7 +276,7 @@ my_components += \
my_components += ldapbe2
.END
-.IF "$(WITH_MOZILLA)" != "NO"
+.IF "$(ENABLE_NSS_MODULE)" != "NO"
my_components += \
component/xmlsecurity/util/xsec_fw \
pl
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 6ac33ab033cf..d98f7458fcaa 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -1432,7 +1432,7 @@ File gid_File_Lib_XSec_XMLSecurity
Styles = (PACKED);
End
-#ifndef WITHOUT_MOZILLA
+#ifdef ENABLE_NSS_MODULE
File gid_File_Lib_XSec_Framework
TXT_FILE_BODY;
#ifdef UNX