summaryrefslogtreecommitdiff
path: root/liborcus
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-27 22:16:52 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 10:01:33 -0500
commite3ee369076f0097f3415923bde06a1a760fa2d78 (patch)
treeef114f9183b12ba106fb4051f84f2dc124d30a13 /liborcus
parentedf0652d878587f9a0d0d79361f045e02ce44bff (diff)
Remove patches that are no longer needed.
Per feedback from David T. the patch author. Change-Id: I6adae0a70926f6e402ba1f7680806e6c6097616e
Diffstat (limited to 'liborcus')
-rw-r--r--liborcus/UnpackedTarball_orcus.mk3
-rw-r--r--liborcus/liborcus_0.1.0-link-with-Boost.System.patch634
-rw-r--r--liborcus/liborcus_0.1.0-mingw.patch123
3 files changed, 0 insertions, 760 deletions
diff --git a/liborcus/UnpackedTarball_orcus.mk b/liborcus/UnpackedTarball_orcus.mk
index 0a662f51d582..3375c9556c24 100644
--- a/liborcus/UnpackedTarball_orcus.mk
+++ b/liborcus/UnpackedTarball_orcus.mk
@@ -16,11 +16,8 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,orcus,0))
orcus_patches :=
# make config.sub recognize arm-linux-androideabi
orcus_patches += liborcus_0.1.0-configure.patch
-# fix MinGW build
-#orcus_patches += liborcus_0.1.0-mingw.patch
# disable boost "auto lib" in MSVC build
orcus_patches += liborcus_0.1.0-boost_disable_auto_lib.patch
-#orcus_patches += liborcus_0.1.0-link-with-Boost.System.patch
$(eval $(call gb_UnpackedTarball_fix_end_of_line,orcus,\
vsprojects/liborcus-static-nozip/liborcus-static-nozip.vcproj \
diff --git a/liborcus/liborcus_0.1.0-link-with-Boost.System.patch b/liborcus/liborcus_0.1.0-link-with-Boost.System.patch
deleted file mode 100644
index 55a6307dbf92..000000000000
--- a/liborcus/liborcus_0.1.0-link-with-Boost.System.patch
+++ /dev/null
@@ -1,634 +0,0 @@
-diff -up ./configure.dt ./configure
---- ./configure.dt 2012-11-22 15:19:53.138663523 +0100
-+++ ./configure 2012-11-22 15:20:55.648956963 +0100
-@@ -650,6 +650,9 @@ LIBZIP_CFLAGS
- HAVE_STATIC_LIB_FALSE
- HAVE_STATIC_LIB_TRUE
- ORCUS_API_VERSION
-+BOOST_SYSTEM_LIB
-+BOOST_LDFLAGS
-+BOOST_CPPFLAGS
- LIBOBJS
- POW_LIB
- PKG_CONFIG_LIBDIR
-@@ -787,6 +790,9 @@ enable_fast_install
- with_gnu_ld
- with_sysroot
- enable_libtool_lock
-+with_boost
-+with_boost_libdir
-+with_boost_system
- enable_werror
- enable_debug
- with_libzip
-@@ -8555,6 +8574,10 @@ _lt_linker_boilerplate=`cat conftest.err
- $RM -r conftest*
-
-
-+## CAVEAT EMPTOR:
-+## There is no encapsulation within the following macros, do not change
-+## the running order or otherwise move them around unless you know exactly
-+## what you are doing...
- if test -n "$compiler"; then
-
- lt_prog_compiler_no_builtin_flag=
-@@ -16021,6 +16044,559 @@ $as_echo "#define _REENTRANT /**/" >>con
- $as_echo "#define BOOST_ALL_NO_LIB /**/" >>confdefs.h
-
-
-+
-+# Check whether --with-boost was given.
-+if test "${with_boost+set}" = set; then :
-+ withval=$with_boost;
-+ if test "$withval" = "no"; then
-+ want_boost="no"
-+ elif test "$withval" = "yes"; then
-+ want_boost="yes"
-+ ac_boost_path=""
-+ else
-+ want_boost="yes"
-+ ac_boost_path="$withval"
-+ fi
-+
-+else
-+ want_boost="yes"
-+fi
-+
-+
-+
-+
-+# Check whether --with-boost-libdir was given.
-+if test "${with_boost_libdir+set}" = set; then :
-+ withval=$with_boost_libdir;
-+ if test -d "$withval"
-+ then
-+ ac_boost_lib_path="$withval"
-+ else
-+ as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
-+ fi
-+
-+else
-+ ac_boost_lib_path=""
-+
-+fi
-+
-+
-+if test "x$want_boost" = "xyes"; then
-+ boost_lib_version_req=1.20.0
-+ boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
-+ boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
-+ boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
-+ boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
-+ if test "x$boost_lib_version_req_sub_minor" = "x" ; then
-+ boost_lib_version_req_sub_minor="0"
-+ fi
-+ WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
-+$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
-+ succeeded=no
-+
-+ libsubdirs="lib"
-+ ax_arch=`uname -m`
-+ if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
-+ libsubdirs="lib64 lib lib64"
-+ fi
-+
-+ if test "$ac_boost_path" != ""; then
-+ BOOST_CPPFLAGS="-I$ac_boost_path/include"
-+ for ac_boost_path_tmp in $libsubdirs; do
-+ if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
-+ BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
-+ break
-+ fi
-+ done
-+ elif test "$cross_compiling" != yes; then
-+ for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
-+ if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
-+ for libsubdir in $libsubdirs ; do
-+ if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
-+ done
-+ BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
-+ BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
-+ break;
-+ fi
-+ done
-+ fi
-+
-+ if test "$ac_boost_lib_path" != ""; then
-+ BOOST_LDFLAGS="-L$ac_boost_lib_path"
-+ fi
-+
-+ CPPFLAGS_SAVED="$CPPFLAGS"
-+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
-+ export CPPFLAGS
-+
-+ LDFLAGS_SAVED="$LDFLAGS"
-+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
-+ export LDFLAGS
-+
-+
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+ #include <boost/version.hpp>
-+
-+int
-+main ()
-+{
-+
-+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
-+ // Everything is okay
-+ #else
-+ # error Boost version is too old
-+ #endif
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_compile "$LINENO"; then :
-+
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; }
-+ succeeded=yes
-+ found_system=yes
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+
-+
-+
-+ if test "x$succeeded" != "xyes"; then
-+ _version=0
-+ if test "$ac_boost_path" != ""; then
-+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
-+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
-+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
-+ V_CHECK=`expr $_version_tmp \> $_version`
-+ if test "$V_CHECK" = "1" ; then
-+ _version=$_version_tmp
-+ fi
-+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
-+ BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
-+ done
-+ fi
-+ else
-+ if test "$cross_compiling" != yes; then
-+ for ac_boost_path in /usr /usr/local /opt /opt/local ; do
-+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
-+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
-+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
-+ V_CHECK=`expr $_version_tmp \> $_version`
-+ if test "$V_CHECK" = "1" ; then
-+ _version=$_version_tmp
-+ best_path=$ac_boost_path
-+ fi
-+ done
-+ fi
-+ done
-+
-+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
-+ BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
-+ if test "$ac_boost_lib_path" = ""; then
-+ for libsubdir in $libsubdirs ; do
-+ if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
-+ done
-+ BOOST_LDFLAGS="-L$best_path/$libsubdir"
-+ fi
-+ fi
-+
-+ if test "x$BOOST_ROOT" != "x"; then
-+ for libsubdir in $libsubdirs ; do
-+ if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
-+ done
-+ if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
-+ version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
-+ stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
-+ stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
-+ V_CHECK=`expr $stage_version_shorten \>\= $_version`
-+ if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
-+$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
-+ BOOST_CPPFLAGS="-I$BOOST_ROOT"
-+ BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
-+ fi
-+ fi
-+ fi
-+ fi
-+
-+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
-+ export CPPFLAGS
-+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
-+ export LDFLAGS
-+
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+ #include <boost/version.hpp>
-+
-+int
-+main ()
-+{
-+
-+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
-+ // Everything is okay
-+ #else
-+ # error Boost version is too old
-+ #endif
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_compile "$LINENO"; then :
-+
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; }
-+ succeeded=yes
-+ found_system=yes
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+ fi
-+
-+ if test "$succeeded" != "yes" ; then
-+ if test "$_version" = "0" ; then
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
-+$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
-+ else
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
-+$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
-+ fi
-+ # execute ACTION-IF-NOT-FOUND (if present):
-+ :
-+ else
-+
-+
-+
-+$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
-+
-+ # execute ACTION-IF-FOUND (if present):
-+ :
-+ fi
-+
-+ CPPFLAGS="$CPPFLAGS_SAVED"
-+ LDFLAGS="$LDFLAGS_SAVED"
-+fi
-+
-+
-+
-+# ===========================================================
-+# Determine if we are going to need to link with Boost.System
-+# ===========================================================
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to link with Boost.System" >&5
-+$as_echo_n "checking if we need to link with Boost.System... " >&6; }
-+ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+#include <boost/version.hpp>
-+
-+int
-+main ()
-+{
-+
-+#if BOOST_VERSION >= 105000
-+# error yes, we need to link with Boost.System
-+#endif
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_compile "$LINENO"; then :
-+
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-+$as_echo "no" >&6; }
-+
-+else
-+
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; }
-+
-+
-+# Check whether --with-boost-system was given.
-+if test "${with_boost_system+set}" = set; then :
-+ withval=$with_boost_system;
-+ if test "$withval" = "no"; then
-+ want_boost="no"
-+ elif test "$withval" = "yes"; then
-+ want_boost="yes"
-+ ax_boost_user_system_lib=""
-+ else
-+ want_boost="yes"
-+ ax_boost_user_system_lib="$withval"
-+ fi
-+
-+else
-+ want_boost="yes"
-+
-+fi
-+
-+
-+ if test "x$want_boost" = "xyes"; then
-+
-+
-+ CPPFLAGS_SAVED="$CPPFLAGS"
-+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
-+ export CPPFLAGS
-+
-+ LDFLAGS_SAVED="$LDFLAGS"
-+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
-+ export LDFLAGS
-+
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
-+$as_echo_n "checking whether the Boost::System library is available... " >&6; }
-+if ${ax_cv_boost_system+:} false; then :
-+ $as_echo_n "(cached) " >&6
-+else
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+ CXXFLAGS_SAVE=$CXXFLAGS
-+
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+#include <boost/system/error_code.hpp>
-+int
-+main ()
-+{
-+boost::system::system_category
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_compile "$LINENO"; then :
-+ ax_cv_boost_system=yes
-+else
-+ ax_cv_boost_system=no
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+ CXXFLAGS=$CXXFLAGS_SAVE
-+ ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+
-+fi
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
-+$as_echo "$ax_cv_boost_system" >&6; }
-+ if test "x$ax_cv_boost_system" = "xyes"; then
-+
-+
-+
-+$as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
-+
-+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
-+
-+ LDFLAGS_SAVE=$LDFLAGS
-+ if test "x$ax_boost_user_system_lib" = "x"; then
-+ for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
-+ ax_lib=${libextension}
-+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
-+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
-+if eval \${$as_ac_Lib+:} false; then :
-+ $as_echo_n "(cached) " >&6
-+else
-+ ac_check_lib_save_LIBS=$LIBS
-+LIBS="-l$ax_lib $LIBS"
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+/* Override any GCC internal prototype to avoid an error.
-+ Use char because int might match the return type of a GCC
-+ builtin and then its argument prototype would still apply. */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+char exit ();
-+int
-+main ()
-+{
-+return exit ();
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_link "$LINENO"; then :
-+ eval "$as_ac_Lib=yes"
-+else
-+ eval "$as_ac_Lib=no"
-+fi
-+rm -f core conftest.err conftest.$ac_objext \
-+ conftest$ac_exeext conftest.$ac_ext
-+LIBS=$ac_check_lib_save_LIBS
-+fi
-+eval ac_res=\$$as_ac_Lib
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-+$as_echo "$ac_res" >&6; }
-+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
-+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
-+else
-+ link_system="no"
-+fi
-+
-+ done
-+ if test "x$link_system" != "xyes"; then
-+ for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
-+ ax_lib=${libextension}
-+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
-+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
-+if eval \${$as_ac_Lib+:} false; then :
-+ $as_echo_n "(cached) " >&6
-+else
-+ ac_check_lib_save_LIBS=$LIBS
-+LIBS="-l$ax_lib $LIBS"
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+/* Override any GCC internal prototype to avoid an error.
-+ Use char because int might match the return type of a GCC
-+ builtin and then its argument prototype would still apply. */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+char exit ();
-+int
-+main ()
-+{
-+return exit ();
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_link "$LINENO"; then :
-+ eval "$as_ac_Lib=yes"
-+else
-+ eval "$as_ac_Lib=no"
-+fi
-+rm -f core conftest.err conftest.$ac_objext \
-+ conftest$ac_exeext conftest.$ac_ext
-+LIBS=$ac_check_lib_save_LIBS
-+fi
-+eval ac_res=\$$as_ac_Lib
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-+$as_echo "$ac_res" >&6; }
-+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
-+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
-+else
-+ link_system="no"
-+fi
-+
-+ done
-+ fi
-+
-+ else
-+ for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
-+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
-+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
-+if eval \${$as_ac_Lib+:} false; then :
-+ $as_echo_n "(cached) " >&6
-+else
-+ ac_check_lib_save_LIBS=$LIBS
-+LIBS="-l$ax_lib $LIBS"
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+/* Override any GCC internal prototype to avoid an error.
-+ Use char because int might match the return type of a GCC
-+ builtin and then its argument prototype would still apply. */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+char exit ();
-+int
-+main ()
-+{
-+return exit ();
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_cxx_try_link "$LINENO"; then :
-+ eval "$as_ac_Lib=yes"
-+else
-+ eval "$as_ac_Lib=no"
-+fi
-+rm -f core conftest.err conftest.$ac_objext \
-+ conftest$ac_exeext conftest.$ac_ext
-+LIBS=$ac_check_lib_save_LIBS
-+fi
-+eval ac_res=\$$as_ac_Lib
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-+$as_echo "$ac_res" >&6; }
-+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
-+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
-+else
-+ link_system="no"
-+fi
-+
-+ done
-+
-+ fi
-+ if test "x$ax_lib" = "x"; then
-+ as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
-+ fi
-+ if test "x$link_system" = "xno"; then
-+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
-+ fi
-+ fi
-+
-+ CPPFLAGS="$CPPFLAGS_SAVED"
-+ LDFLAGS="$LDFLAGS_SAVED"
-+ fi
-+
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+ac_ext=cpp
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+
- # =============
- # Set orcus api
- # =============
-diff -up ./src/liborcus/Makefile.in.dt ./src/liborcus/Makefile.in
---- ./src/liborcus/Makefile.in.dt 2012-11-22 15:20:12.680747546 +0100
-+++ ./src/liborcus/Makefile.in 2012-11-22 15:20:55.181954251 +0100
-@@ -303,6 +307,9 @@ AUTOCONF = @AUTOCONF@
- AUTOHEADER = @AUTOHEADER@
- AUTOMAKE = @AUTOMAKE@
- AWK = @AWK@
-+BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
-+BOOST_LDFLAGS = @BOOST_LDFLAGS@
-+BOOST_SYSTEM_LIB = @BOOST_SYSTEM_LIB@
- CC = @CC@
- CCDEPMODE = @CCDEPMODE@
- CFLAGS = @CFLAGS@
-@@ -437,11 +444,13 @@ liborcus_@ORCUS_API_VERSION@_la_SOURCES
- liborcus-@ORCUS_API_VERSION@.la
-
- liborcus_@ORCUS_API_VERSION@_la_CXXFLAGS = \
-+ $(BOOST_SYSTEM_CFLAGS) \
- $(LIBZIP_CFLAGS) \
- $(LIBIXION_CFLAGS)
-
- liborcus_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined
- liborcus_@ORCUS_API_VERSION@_la_LIBADD = \
-+ $(BOOST_SYSTEM_LIBS) $(BOOST_SYSTEM_LIB) \
- $(LIBZIP_LIBS) \
- $(LIBIXION_LIBS)
-
-diff -up ./src/Makefile.in.dt ./src/Makefile.in
---- ./src/Makefile.in.dt 2012-11-22 15:20:04.274713103 +0100
-+++ ./src/Makefile.in 2012-11-22 15:20:55.059953542 +0100
-@@ -288,6 +292,9 @@ AUTOCONF = @AUTOCONF@
- AUTOHEADER = @AUTOHEADER@
- AUTOMAKE = @AUTOMAKE@
- AWK = @AWK@
-+BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
-+BOOST_LDFLAGS = @BOOST_LDFLAGS@
-+BOOST_SYSTEM_LIB = @BOOST_SYSTEM_LIB@
- CC = @CC@
- CCDEPMODE = @CCDEPMODE@
- CFLAGS = @CFLAGS@
diff --git a/liborcus/liborcus_0.1.0-mingw.patch b/liborcus/liborcus_0.1.0-mingw.patch
deleted file mode 100644
index 68d51502707b..000000000000
--- a/liborcus/liborcus_0.1.0-mingw.patch
+++ /dev/null
@@ -1,123 +0,0 @@
-+++ configure.dt
-+++ configure
-@@ -619,6 +619,8 @@ WITH_LIBZIP_FALSE
- WITH_LIBZIP_TRUE
- LIBZIP_LIBS
- LIBZIP_CFLAGS
-+HAVE_STATIC_LIB_FALSE
-+HAVE_STATIC_LIB_TRUE
- ORCUS_API_VERSION
- LIBOBJS
- POW_LIB
-@@ -15985,6 +15987,18 @@ if test x"$enable_werror" != "xno"; then
-
- fi
-
-+# =========================================================
-+# Determine if we are going to build static lib (for MinGW)
-+# =========================================================
-+ if test "$enable_shared" = no -a "$enable_static" = yes; then
-+ HAVE_STATIC_LIB_TRUE=
-+ HAVE_STATIC_LIB_FALSE='#'
-+else
-+ HAVE_STATIC_LIB_TRUE='#'
-+ HAVE_STATIC_LIB_FALSE=
-+fi
-+
-+
- # =====
- # Debug
- # =====
-@@ -16413,6 +16427,10 @@ if test -z "${am__fastdepCXX_TRUE}" && t
- as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
- fi
-+if test -z "${HAVE_STATIC_LIB_TRUE}" && test -z "${HAVE_STATIC_LIB_FALSE}"; then
-+ as_fn_error $? "conditional \"HAVE_STATIC_LIB\" was never defined.
-+Usually this means the macro was only invoked conditionally." "$LINENO" 5
-+fi
- if test -z "${WITH_LIBZIP_TRUE}" && test -z "${WITH_LIBZIP_FALSE}"; then
- as_fn_error $? "conditional \"WITH_LIBZIP\" was never defined.
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
-+++ src/liborcus/Makefile.in.dt
-+++ src/liborcus/Makefile.in
-@@ -362,7 +361,8 @@ INCDIR = $(top_srcdir)/include
- SRCDIR = $(top_srcdir)/src/liborcus
- BINDIR = $(top_srcdir)/bin
- INCLUDES = -I$(top_srcdir)/include
--AM_CXXFLAGS = -D__ORCUS_BUILDING_DLL=1
-+@HAVE_STATIC_LIB_FALSE@AM_CPPFLAGS = -D__ORCUS_BUILDING_DLL=1
-+@HAVE_STATIC_LIB_TRUE@AM_CPPFLAGS = -D__ORCUS_STATIC_LIB=1
- lib_LTLIBRARIES = liborcus-@ORCUS_API_VERSION@.la
- liborcus_@ORCUS_API_VERSION@_la_SOURCES = dom_tree.cpp exception.cpp \
- global.cpp spreadsheet_interface.cpp orcus_css.cpp \
-+++ src/Makefile.in.dt
-+++ src/Makefile.in
-@@ -37,26 +37,35 @@ host_triplet = @host@
- bin_PROGRAMS = orcus-xml-dump$(EXEEXT) $(am__EXEEXT_2) $(am__EXEEXT_3)
- EXTRA_PROGRAMS = orcus-test-common$(EXEEXT) orcus-test-xml$(EXEEXT) \
- $(am__EXEEXT_1)
-+@HAVE_STATIC_LIB_TRUE@am__append_1 = -D__ORCUS_STATIC_LIB=1
-+@HAVE_STATIC_LIB_TRUE@am__append_2 = -D__ORCUS_STATIC_LIB=1
-+@HAVE_STATIC_LIB_TRUE@am__append_3 = -D__ORCUS_STATIC_LIB=1
- TESTS = orcus-test-common$(EXEEXT) orcus-test-xml$(EXEEXT) \
- $(am__EXEEXT_1)
-
- #----------------------------------------------------------------------------
- # spreadsheet model
- #----------------------------------------------------------------------------
--@BUILD_SPREADSHEET_MODEL_TRUE@am__append_1 = \
-+@BUILD_SPREADSHEET_MODEL_TRUE@am__append_4 = \
- @BUILD_SPREADSHEET_MODEL_TRUE@ orcus-csv orcus-xml
-
--@BUILD_SPREADSHEET_MODEL_TRUE@am__append_2 = \
-+@BUILD_SPREADSHEET_MODEL_TRUE@am__append_5 = \
- @BUILD_SPREADSHEET_MODEL_TRUE@ orcus-test-csv \
- @BUILD_SPREADSHEET_MODEL_TRUE@ orcus-test-xml-mapped
-
--@BUILD_SPREADSHEET_MODEL_TRUE@am__append_3 = \
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@am__append_6 = -D__ORCUS_STATIC_LIB=1
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@am__append_7 = -D__ORCUS_STATIC_LIB=1
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@am__append_8 = -D__ORCUS_STATIC_LIB=1
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@am__append_9 = -D__ORCUS_STATIC_LIB=1
-+@BUILD_SPREADSHEET_MODEL_TRUE@am__append_10 = \
- @BUILD_SPREADSHEET_MODEL_TRUE@ orcus-test-csv \
- @BUILD_SPREADSHEET_MODEL_TRUE@ orcus-test-xml-mapped
-
--@BUILD_SPREADSHEET_MODEL_TRUE@@WITH_LIBZIP_TRUE@am__append_4 = \
-+@BUILD_SPREADSHEET_MODEL_TRUE@@WITH_LIBZIP_TRUE@am__append_11 = \
- @BUILD_SPREADSHEET_MODEL_TRUE@@WITH_LIBZIP_TRUE@ orcus-ods orcus-xlsx
-
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@@WITH_LIBZIP_TRUE@am__append_12 = -D__ORCUS_STATIC_LIB=1
-+@BUILD_SPREADSHEET_MODEL_TRUE@@HAVE_STATIC_LIB_TRUE@@WITH_LIBZIP_TRUE@am__append_13 = -D__ORCUS_STATIC_LIB=1
- subdir = src
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
- ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-@@ -344,21 +353,24 @@ orcus_format_xml_SOURCES = orcus_format_xml.
- orcus_format_xml_LDADD = \
- liborcus/liborcus-@ORCUS_API_VERSION@.la
-
--orcus_format_xml_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la
-+orcus_format_xml_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la \
-+ $(am__append_1)
-
- # orcus-test-common
- orcus_test_common_SOURCES = orcus_test_common.cpp
- orcus_test_common_LDADD = \
- liborcus/liborcus-@ORCUS_API_VERSION@.la
-
--orcus_test_common_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la
-+orcus_test_common_CPPFLAGS = \
-+ -I$(top_builddir)/lib/liborcus/liborcus.la $(am__append_2)
-
- # orcus-test-xml
- orcus_test_xml_SOURCES = orcus_test_xml.cpp
- orcus_test_xml_LDADD = \
- liborcus/liborcus-@ORCUS_API_VERSION@.la
-
--orcus_test_xml_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la
-+orcus_test_xml_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la \
-+ $(am__append_3)
-
- # orcus-csv
- @BUILD_SPREADSHEET_MODEL_TRUE@orcus_csv_SOURCES = \