[Libreoffice-commits] core.git: 3 commits - configure.ac curl/curl-7.26.0_strlcat.patch curl/UnpackedTarball_curl.mk

Tor Lillqvist tml at collabora.com
Fri Sep 13 09:58:52 PDT 2013


 configure.ac                   |  207 +++++++++++++++++++++--------------------
 curl/UnpackedTarball_curl.mk   |    1 
 curl/curl-7.26.0_strlcat.patch |    9 +
 3 files changed, 121 insertions(+), 96 deletions(-)

New commits:
commit d042e96658efb9c842681aa5dc769acbbafd11b8
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Sep 12 23:14:41 2013 +0300

    For fun, handle --enable-64-bit for iOS, too
    
    Change-Id: I745d51c5b8f4296c00ae1b652b42a311d89a0ed9

diff --git a/configure.ac b/configure.ac
index 0521e27..a12823a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2833,6 +2833,12 @@ dnl ===================================================================
 
 if test $_os = iOS; then
 
+    if test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then
+        :
+    else
+        BITNESS_OVERRIDE=64
+    fi
+
     AC_MSG_CHECKING([what iOS SDK to use])
 
     xcode_developer=`xcode-select -print-path`
@@ -2840,11 +2846,20 @@ if test $_os = iOS; then
     if test "$enable_ios_simulator" = yes; then
         platform=iPhoneSimulator
         versionmin=-mmacosx-version-min=10.7
-        arch=i386
+        if test "$BITNESS_OVERRIDE" = 64; then
+            arch=x86_64
+        else
+            arch=i386
+        fi
     else
         platform=iPhoneOS
-        versionmin=-miphoneos-version-min=5.0
-        arch=armv7
+        if test "$BITNESS_OVERRIDE" = 64; then
+            arch=arm64
+            versionmin=-miphoneos-version-min=7.0
+        else
+            arch=armv7
+            versionmin=-miphoneos-version-min=5.0
+        fi
     fi
 
     pref_sdk_ver=6.1
commit 3bd926eeef1346c8ed052883ecd2d3828c58e6d5
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Sep 12 23:12:23 2013 +0300

    If we have strlcat(), we have strlcat(), no need to declare it
    
    The system strlcat() might be some clever built-in or macro thing
    anyway, and having a bogus duplicate declaration can cause
    problems. And does, in the iOS 7 SDK.
    
    Change-Id: I0aed0ad0f7b96c1c887ed928a2c07fc99bd703f7

diff --git a/curl/UnpackedTarball_curl.mk b/curl/UnpackedTarball_curl.mk
index 70ac670..f90007f 100644
--- a/curl/UnpackedTarball_curl.mk
+++ b/curl/UnpackedTarball_curl.mk
@@ -24,6 +24,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,curl,\
 	curl/curl-7.26.0_win.patch \
 	curl/curl-7.26.0_mingw.patch \
 	curl/curl-7.26.0_win-proxy.patch \
+	curl/curl-7.26.0_strlcat.patch \
 ))
 ifeq ($(OS),ANDROID)
 $(eval $(call gb_UnpackedTarball_add_patches,curl,\
diff --git a/curl/curl-7.26.0_strlcat.patch b/curl/curl-7.26.0_strlcat.patch
new file mode 100644
index 0000000..c5536f8
--- /dev/null
+++ b/curl/curl-7.26.0_strlcat.patch
@@ -0,0 +1,9 @@
+--- curl-7.26.0/lib/strequal.h
++++ misc/build/curl-7.26.0/strequal.h
+@@ -30,6 +30,5 @@
+ #ifndef HAVE_STRLCAT
+ #define strlcat(x,y,z) Curl_strlcat(x,y,z)
+ #endif
+-size_t strlcat(char *dst, const char *src, size_t siz);
+ 
+ #endif
commit bf57f81bece64052f1fb232beac2b3f842d4a0d2
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Sep 12 21:42:57 2013 +0300

    Use consistent indentation
    
    Change-Id: I2989e2aea344a7079a6da158ca318c3496c813ff

diff --git a/configure.ac b/configure.ac
index 32a976a..0521e27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -337,8 +337,8 @@ dnl Also --with-android-sdk is mandatory
 dnl ===================================================================
 ANDROID_SDK_HOME=
 if test -n "$with_android_sdk"; then
-   ANDROID_SDK_HOME=$with_android_sdk
-   PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
+    ANDROID_SDK_HOME=$with_android_sdk
+    PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
 fi
 AC_SUBST(ANDROID_SDK_HOME)
 
@@ -2313,13 +2313,13 @@ if test -n "${with_galleries}"; then
         AC_MSG_ERROR([unknown value --with-galleries=$with_galleries])
     fi
 else
-   if test $_os != iOS -a $_os != Android; then
+    if test $_os != iOS -a $_os != Android; then
         WITH_GALLERY_BUILD=YES
         AC_MSG_RESULT([internal src images for desktop])
-   else
+    else
         WITH_GALLERY_BUILD=
         AC_MSG_RESULT([disable src imgage build])
-   fi
+    fi
 fi
 AC_SUBST(WITH_GALLERY_BUILD)
 
@@ -4431,7 +4431,7 @@ if test "$cross_compiling" = "yes"; then
         enable_winegcc_for_build=
         for pkgformat in $PKGFORMAT; do
             case "$pkgformat" in
-                msi|native) enable_winegcc_for_build=yes ;;
+            msi|native) enable_winegcc_for_build=yes ;;
             esac
         done
         test -n "$enable_winegcc_for_build" && sub_conf_opts="$sub_conf_opts --enable-winegcc"
@@ -7127,7 +7127,7 @@ if test -n "$ENABLE_JAVA" -a \( -z "$JAVALIB" -o -z "$JAVAINC" \); then
 
         case "$host_cpu" in
 
-    arm|armel)
+        arm|armel)
             JAVA_ARCH="arm"
             JAVA_TOOLKIT="server"
             ;;
@@ -7405,8 +7405,8 @@ fi
 
 ENABLE_LWP=
 if test "$enable_lotuswordpro" = "yes"; then
-   ENABLE_LWP="TRUE"
-   SCPDEFS="$SCPDEFS -DDISABLE_LWP"
+    ENABLE_LWP="TRUE"
+    SCPDEFS="$SCPDEFS -DDISABLE_LWP"
 fi
 AC_SUBST(ENABLE_LWP)
 
@@ -10599,30 +10599,30 @@ AC_SUBST(COMMONS_LOGGING_JAR)
 # scripting provider for BeanShell?
 AC_MSG_CHECKING([whether to build support for scripts in BeanShell])
 if test "${enable_scripting_beanshell}" != "no" -a "x$with_java" != "xno"; then
-   AC_MSG_RESULT([yes])
-   ENABLE_SCRIPTING_BEANSHELL=TRUE
-
-   dnl ===================================================================
-   dnl Check for system beanshell
-   dnl ===================================================================
-   AC_MSG_CHECKING([which beanshell to use])
-   if test "$with_system_beanshell" = "yes"; then
-       AC_MSG_RESULT([external])
-       SYSTEM_BSH=YES
-       if test -z $BSH_JAR; then
-           BSH_JAR=/usr/share/java/bsh.jar
-       fi
-       AC_CHECK_FILE($BSH_JAR, [],
-                  [AC_MSG_ERROR(bsh.jar not found.)], [])
-   else
-       AC_MSG_RESULT([internal])
-       SYSTEM_BSH=NO
-       BUILD_TYPE="$BUILD_TYPE BSH"
-   fi
-else
-   AC_MSG_RESULT([no])
-   ENABLE_SCRIPTING_BEANSHELL=
-   SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_BEANSHELL"
+    AC_MSG_RESULT([yes])
+    ENABLE_SCRIPTING_BEANSHELL=TRUE
+
+    dnl ===================================================================
+    dnl Check for system beanshell
+    dnl ===================================================================
+    AC_MSG_CHECKING([which beanshell to use])
+    if test "$with_system_beanshell" = "yes"; then
+        AC_MSG_RESULT([external])
+        SYSTEM_BSH=YES
+        if test -z $BSH_JAR; then
+            BSH_JAR=/usr/share/java/bsh.jar
+        fi
+        AC_CHECK_FILE($BSH_JAR, [],
+                   [AC_MSG_ERROR(bsh.jar not found.)], [])
+    else
+        AC_MSG_RESULT([internal])
+        SYSTEM_BSH=NO
+        BUILD_TYPE="$BUILD_TYPE BSH"
+    fi
+else
+    AC_MSG_RESULT([no])
+    ENABLE_SCRIPTING_BEANSHELL=
+    SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_BEANSHELL"
 fi
 AC_SUBST(ENABLE_SCRIPTING_BEANSHELL)
 AC_SUBST(SYSTEM_BSH)
@@ -10631,30 +10631,30 @@ AC_SUBST(BSH_JAR)
 # scripting provider for JavaScript?
 AC_MSG_CHECKING([whether to build support for scripts in JavaScript])
 if test "${enable_scripting_javascript}" != "no" -a "x$with_java" != "xno"; then
-   AC_MSG_RESULT([yes])
-   ENABLE_SCRIPTING_JAVASCRIPT=TRUE
-
-   dnl ===================================================================
-   dnl Check for system rhino
-   dnl ===================================================================
-   AC_MSG_CHECKING([which rhino to use])
-   if test "$with_system_rhino" = "yes"; then
-       AC_MSG_RESULT([external])
-       SYSTEM_RHINO=YES
-       if test -z $RHINO_JAR; then
-           RHINO_JAR=/usr/share/java/js.jar
-       fi
-       AC_CHECK_FILE($RHINO_JAR, [],
-                  [AC_MSG_ERROR(js.jar not found.)], [])
-   else
-       AC_MSG_RESULT([internal])
-       SYSTEM_RHINO=NO
-       BUILD_TYPE="$BUILD_TYPE RHINO"
-   fi
-else
-   AC_MSG_RESULT([no])
-   ENABLE_SCRIPTING_JAVASCRIPT=
-   SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_JAVASCRIPT"
+    AC_MSG_RESULT([yes])
+    ENABLE_SCRIPTING_JAVASCRIPT=TRUE
+
+    dnl ===================================================================
+    dnl Check for system rhino
+    dnl ===================================================================
+    AC_MSG_CHECKING([which rhino to use])
+    if test "$with_system_rhino" = "yes"; then
+        AC_MSG_RESULT([external])
+        SYSTEM_RHINO=YES
+        if test -z $RHINO_JAR; then
+            RHINO_JAR=/usr/share/java/js.jar
+        fi
+        AC_CHECK_FILE($RHINO_JAR, [],
+                   [AC_MSG_ERROR(js.jar not found.)], [])
+    else
+        AC_MSG_RESULT([internal])
+        SYSTEM_RHINO=NO
+        BUILD_TYPE="$BUILD_TYPE RHINO"
+    fi
+else
+    AC_MSG_RESULT([no])
+    ENABLE_SCRIPTING_JAVASCRIPT=
+    SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_JAVASCRIPT"
 fi
 AC_SUBST(ENABLE_SCRIPTING_JAVASCRIPT)
 AC_SUBST(SYSTEM_RHINO)
@@ -11209,8 +11209,8 @@ WITH_THEMES=""
 if test "x$with_theme" != "xno"; then
     for theme in $with_theme; do
         case $theme in
-            crystal|default|galaxy|hicontrast|human|industrial|oxygen|sifr|tango|tango_testing) : ;;
-            *) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
+        crystal|default|galaxy|hicontrast|human|industrial|oxygen|sifr|tango|tango_testing) : ;;
+        *) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
         esac
         WITH_THEMES="$WITH_THEMES $theme"
     done
@@ -12165,7 +12165,7 @@ AC_SUBST(PRODUCTNAME)
 INSTALLDIRNAME=`echo AC_PACKAGE_NAME | tr '[[:upper:]]' '[[:lower:]]'`
 AC_MSG_CHECKING([for install dirname])
 if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes"; then
-   INSTALLDIRNAME="$with_install_dirname"
+    INSTALLDIRNAME="$with_install_dirname"
 fi
 AC_MSG_RESULT([$INSTALLDIRNAME])
 AC_SUBST(INSTALLDIRNAME)
@@ -12381,55 +12381,55 @@ AC_MSG_CHECKING([MPL subset])
 MPL_SUBSET=
 
 if test "$enable_mpl_subset" = "yes"; then
-   warn_report=false
-   if test "$enable_report_builder" != "no" -a "$with_java" != "no"; then
+    warn_report=false
+    if test "$enable_report_builder" != "no" -a "$with_java" != "no"; then
         warn_report=true
-   elif test "$ENABLE_REPORTBUILDER" = "TRUE"; then
+    elif test "$ENABLE_REPORTBUILDER" = "TRUE"; then
         warn_report=true
-   fi
-   if test "$warn_report" = "true"; then
+    fi
+    if test "$warn_report" = "true"; then
         AC_MSG_ERROR([need to --disable-report-builder - extended database report builder.])
-   fi
-   if test "x$enable_postgresql_sdbc" != "xno"; then
+    fi
+    if test "x$enable_postgresql_sdbc" != "xno"; then
         AC_MSG_ERROR([need to --disable-postgresql-sdbc - the postgress database backend.])
-   fi
-   if test "$enable_lotuswordpro" = "yes"; then
+    fi
+    if test "$enable_lotuswordpro" = "yes"; then
         AC_MSG_ERROR([need to --disable-lotuswordpro - a Lotus Word Pro file format import filter.])
-   fi
-   if test "$enable_neon" != "no" -o "x$DISABLE_NEON" != "xTRUE"; then
+    fi
+    if test "$enable_neon" != "no" -o "x$DISABLE_NEON" != "xTRUE"; then
         AC_MSG_ERROR([need to --disable-neon - webdav support.])
-   fi
-   if test "x$enable_ext_mariadb_connector" = "xyes"; then
+    fi
+    if test "x$enable_ext_mariadb_connector" = "xyes"; then
         AC_MSG_ERROR([need to --disable-ext-mariadb-connector - mariadb/mysql support.])
-   fi
-   if test "x$ENABLE_PDFIMPORT" != "xFALSE"; then
+    fi
+    if test "x$ENABLE_PDFIMPORT" != "xFALSE"; then
         if test "x$SYSTEM_POPPLER" != "xNO"; then
-                AC_MSG_ERROR([need to disable PDF import via poppler or use system library])
+            AC_MSG_ERROR([need to disable PDF import via poppler or use system library])
         fi
-   fi
-   # cf. m4/libo_check_extension.m4
-   if test "x$WITH_EXTRA_EXTENSIONS" != "x"; then
+    fi
+    # cf. m4/libo_check_extension.m4
+    if test "x$WITH_EXTRA_EXTENSIONS" != "x"; then
         AC_MSG_ERROR([need to disable extra extensions '$WITH_EXTRA_EXTENSIONS'])
-   fi
-   for theme in $WITH_THEMES; do
+    fi
+    for theme in $WITH_THEMES; do
         case $theme in
-            crystal|default|hicontrast|human|oxygen|sifr)
-                AC_MSG_ERROR([need to disable icon themes from '$WITH_THEMES': $theme present, use --with-theme=tango]) ;;
-            *) : ;;
+        crystal|default|hicontrast|human|oxygen|sifr)
+            AC_MSG_ERROR([need to disable icon themes from '$WITH_THEMES': $theme present, use --with-theme=tango]) ;;
+        *) : ;;
         esac
-   done
-   if test "$enable_opengl" != "no" -o "x$ENABLE_OPENGL" == "xTRUE"; then
+    done
+    if test "$enable_opengl" != "no" -o "x$ENABLE_OPENGL" == "xTRUE"; then
         AC_MSG_ERROR([need to --disable-opengl - GL transitions support.])
-   fi
-   if test "$enable_lpsolve" != "no" -o "x$ENABLE_LPSOLVE" == "xTRUE"; then
+    fi
+    if test "$enable_lpsolve" != "no" -o "x$ENABLE_LPSOLVE" == "xTRUE"; then
         AC_MSG_ERROR([need to --disable-lpsolve - calc linear programming solver.])
-   fi
+    fi
 
-   MPL_SUBSET="TRUE"
-   AC_DEFINE(MPL_HAVE_SUBSET)
-   AC_MSG_RESULT([only])
+    MPL_SUBSET="TRUE"
+    AC_DEFINE(MPL_HAVE_SUBSET)
+    AC_MSG_RESULT([only])
 else
-   AC_MSG_RESULT([no restrictions])
+    AC_MSG_RESULT([no restrictions])
 fi
 AC_SUBST(MPL_SUBSET)
 


More information about the Libreoffice-commits mailing list