[Libreoffice-commits] .: configure.in

Tor Lillqvist tml at kemper.freedesktop.org
Mon Jul 30 11:13:19 PDT 2012


 configure.in |   26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

New commits:
commit 6e60ee677ebbb47ac22d4cb18925afb1fd7e6c9f
Author: Tor Lillqvist <tml at iki.fi>
Date:   Mon Jul 30 21:10:41 2012 +0300

    Add "support" for building against the 10.8 SDK
    
    Presumably like building against the 10.7 SDK, --enable-coretext
    should be used to avoid compilation errors, and it will likely get
    into a loop at run-time quite quickly.
    
    Change-Id: Ib773368a0c5f79dafd3264a8229c5133943f88d6

diff --git a/configure.in b/configure.in
index 48ccef8..20d5b88 100644
--- a/configure.in
+++ b/configure.in
@@ -2487,8 +2487,14 @@ if test "$_os" = "Darwin"; then
         AC_MSG_WARN([Building with SDK 10.7 is known to fail in vcl])
         echo "Building with SDK 10.7 is known to fail in vcl" >> warn
         ;;
+    10.8)
+        MACOSX_SDK_PATH="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
+        MACOSX_SDK_VERSION="1080"
+        AC_MSG_WARN([Building with SDK 10.8 is known to fail in vcl])
+        echo "Building with SDK 10.8 is known to fail in vcl" >> warn
+        ;;
     *)
-        AC_MSG_ERROR([$with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7])
+        AC_MSG_ERROR([$with_macosx_sdk is not a supported SDK value, supported value are 10.4--8])
         ;;
     esac
     AC_MSG_CHECKING([the presence of the SDK $with_macosx_sdk])
@@ -2532,8 +2538,17 @@ if test "$_os" = "Darwin"; then
             CXX="g++-4.2 -m32"
         fi
         ;;
+    10.8)
+        MAC_OS_X_VERSION_MIN_REQUIRED="1080"
+        AC_MSG_WARN([Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build])
+        echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
+        if test -z "$save_CC"; then
+            CC="gcc-4.2 -m32"
+            CXX="g++-4.2 -m32"
+        fi
+        ;;
     *)
-        AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7])
+        AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4--8])
         ;;
     esac
 
@@ -2551,8 +2566,11 @@ if test "$_os" = "Darwin"; then
     10.7)
         MAC_OS_X_VERSION_MAX_ALLOWED="1070"
         ;;
+    10.8)
+        MAC_OS_X_VERSION_MAX_ALLOWED="1080"
+        ;;
     *)
-        AC_MSG_ERROR([with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7])
+        AC_MSG_ERROR([with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4--8])
         ;;
     esac
 
@@ -6747,7 +6765,7 @@ else
             case $with_macosx_sdk in
             10.6)
                 python_version=2.6;;
-            10.7)
+            10.7|10.8)
                 python_version=2.7;;
             *)
                 # ???


More information about the Libreoffice-commits mailing list