[Libreoffice-commits] core.git: configure.ac

Tor Lillqvist tml at iki.fi
Fri Aug 2 08:20:39 PDT 2013


 configure.ac |   68 ++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 35 insertions(+), 33 deletions(-)

New commits:
commit 64ddbd26a58fd84b56b270c21411ce7c246081ef
Author: Tor Lillqvist <tml at iki.fi>
Date:   Fri Aug 2 18:13:12 2013 +0300

    Enforce no Java if sandboxed
    
    Change-Id: I3c58684cc3914d8f7554c87d8d9e0735e95ea381

diff --git a/configure.ac b/configure.ac
index fff3f07..bc6ddb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1136,8 +1136,8 @@ AC_ARG_ENABLE(macosx-code-signing,
 AC_ARG_ENABLE(macosx-sandbox,
     AS_HELP_STRING([--enable-macosx-sandbox],
         [Make the app bundle run in a sandbox. Requires code signing.
-         The default is to not do this. Experimental work in progress,
-         don't use unless you are working on this.]),
+         Is required by apps distributed in the Mac App Store, and implies
+         adherence to App Store rules.]),
 ,)
 
 AC_ARG_WITH(macosx-bundle-identifier,
@@ -2431,6 +2431,37 @@ fi
 AC_SUBST(ENABLE_LTO)
 
 dnl ===================================================================
+dnl Java support enable
+dnl ===================================================================
+AC_MSG_CHECKING([whether to build with Java support])
+if test "$with_java" != "no"; then
+    if test "$DISABLE_SCRIPTING" = TRUE; then
+        AC_MSG_RESULT([no, overridden by --disable-scripting])
+        SOLAR_JAVA=""
+        with_java=no
+    else
+        AC_MSG_RESULT([yes])
+        SOLAR_JAVA="TRUE"
+    fi
+else
+    AC_MSG_RESULT([no])
+    SOLAR_JAVA=""
+fi
+
+AC_SUBST(SOLAR_JAVA)
+
+dnl SOLAR_JAVA="YES" (yes, silly name, should rename) indicates whether we
+dnl want there to be *run-time* (and build-time) support for Java extensions in the
+dnl built LibreOffice.
+
+dnl SOLAR_JAVA="BUILD" is claimed to indicate build-time only support
+dnl (no runtime support). It doesn't seem to ever be set to this
+dnl value, though, and everywhere SOLAR_JAVA is only checked for being
+dnl empty or non-empty.
+
+dnl SOLAR_JAVA="" indicate no java support at all
+
+dnl ===================================================================
 dnl  Test the Solaris compiler version
 dnl ===================================================================
 if test "$_os" = "SunOS"; then
@@ -2731,6 +2762,8 @@ if test $_os = Darwin; then
 
     if test -z "$MACOSX_CODESIGNING_IDENTITY" -a "$enable_macosx_sandbox" = yes; then
         AC_MSG_ERROR([OS X sandboxing requires code signing])
+    elif test -n "$SOLAR_JAVA" -a "$enable_macosx_sandbox" = yes; then
+        AC_MSG_ERROR([OS X sandboxing (actually App Store rules) disallows use of Java])
     elif test -n "$MACOSX_CODESIGNING_IDENTITY" -a "$enable_macosx_sandbox" = yes; then
         ENABLE_MACOSX_SANDBOX=YES
         AC_DEFINE(HAVE_FEATURE_MACOSX_SANDBOX)
@@ -6242,37 +6275,6 @@ else
 fi
 AC_SUBST(BUILD_VER_STRING)
 
-dnl ===================================================================
-dnl Java support enable
-dnl ===================================================================
-AC_MSG_CHECKING([whether to build with Java support])
-if test "$with_java" != "no"; then
-    if test "$DISABLE_SCRIPTING" = TRUE; then
-        AC_MSG_RESULT([no, overridden by --disable-scripting])
-        SOLAR_JAVA=""
-        with_java=no
-    else
-        AC_MSG_RESULT([yes])
-        SOLAR_JAVA="TRUE"
-    fi
-else
-    AC_MSG_RESULT([no])
-    SOLAR_JAVA=""
-fi
-
-AC_SUBST(SOLAR_JAVA)
-
-dnl SOLAR_JAVA="YES" (yes, silly name, should rename) indicates whether we
-dnl want there to be *run-time* (and build-time) support for Java extensions in the
-dnl built LibreOffice.
-
-dnl SOLAR_JAVA="BUILD" is claimed to indicate build-time only support
-dnl (no runtime support). It doesn't seem to ever be set to this
-dnl value, though, and everywhere SOLAR_JAVA is only checked for being
-dnl empty or non-empty.
-
-dnl SOLAR_JAVA="" indicate no java support at all
-
 JITC_PROCESSOR_TYPE=""
 if test "$_os" = "Linux" -a "$host_cpu" = "powerpc"; then
     # IBMs JDK needs this...


More information about the Libreoffice-commits mailing list