[xml] libxslt-1.0.32 mingw patch



This is libxslt-1.0.32 mingw patch which will allow libxslt compilation using 
msys on mingw.

Thanks,
--MG

--- ../libxslt-1.0.32/configure.in      2003-08-09 17:43:33.000000000 -0400
+++ configure.in        2003-08-18 15:27:16.000000000 -0400
@@ -413,6 +413,21 @@
    # PYTHONSODV="libxsltmod.so.dv"
 fi
 
+WIN32_EXTRA_LIBADD=
+WIN32_EXTRA_LDFLAGS=
+case "$host" in
+ *-*-mingw*)
+ WIN32_EXTRA_LIBADD="-lwsock32"
+ WIN32_EXTRA_LDFLAGS="-no-undefined"
+ AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
+ AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
+ AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around])
+ ;;
+esac
+AC_SUBST(WIN32_EXTRA_LIBADD)
+AC_SUBST(WIN32_EXTRA_LDFLAGS)
+
+
 AC_SUBST(XSLTPROCDV)
 AC_SUBST(PYTHONSODV)
 AC_SUBST(XML_CONFIG)
--- ../libxslt-1.0.32/libxslt/libxslt.h 2002-03-18 14:40:46.000000000 -0500
+++ libxslt/libxslt.h   2003-08-18 15:28:45.000000000 -0400
@@ -9,13 +9,13 @@
 #ifndef __XSLT_LIBXSLT_H__
 #define __XSLT_LIBXSLT_H__
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && !defined (__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
 #endif
 
-#if defined(WIN32) && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined (__MINGW32__)
 #include "xsltwin32config.h"
 #else
 #include "xsltconfig.h"
--- ../libxslt-1.0.32/libexslt/libexslt.h       2002-03-18 14:42:13.000000000 -
0500
+++ libexslt/libexslt.h 2003-08-18 15:29:40.000000000 -0400
@@ -9,13 +9,13 @@
 #ifndef __XSLT_LIBEXSLT_H__
 #define __XSLT_LIBEXSLT_H__
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && !defined (__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
 #endif
 
-#if defined(WIN32) && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined (__MINGW32__)
 #include "xsltwin32config.h"
 #else
 #include "xsltconfig.h"
--- ../libxslt-1.0.32/libexslt/common.c 2002-03-18 14:41:26.000000000 -0500
+++ libexslt/common.c   2003-08-18 15:32:46.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/date.c   2003-08-02 12:24:04.000000000 -0400
+++ libexslt/date.c     2003-08-18 15:33:01.000000000 -0400
@@ -22,7 +22,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/dynamic.c        2002-05-31 03:25:23.000000000 -
0400
+++ libexslt/dynamic.c  2003-08-18 15:33:14.000000000 -0400
@@ -23,7 +23,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/exslt.c  2002-05-30 17:20:58.000000000 -0400
+++ libexslt/exslt.c    2003-08-18 15:33:34.000000000 -0400
@@ -3,7 +3,7 @@
 
 #include <libxml/xmlversion.h>
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/functions.c      2003-07-09 11:55:19.000000000 -
0400
+++ libexslt/functions.c        2003-08-18 15:33:52.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/math.c   2003-04-17 05:10:32.000000000 -0400
+++ libexslt/math.c     2003-08-18 15:34:05.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/saxon.c  2002-03-18 14:41:45.000000000 -0500
+++ libexslt/saxon.c    2003-08-18 15:34:17.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/sets.c   2003-06-13 10:11:08.000000000 -0400
+++ libexslt/sets.c     2003-08-18 15:34:29.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/libexslt/strings.c        2003-08-02 12:24:05.000000000 -
0400
+++ libexslt/strings.c  2003-08-18 15:34:40.000000000 -0400
@@ -1,7 +1,7 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__)
+#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
 #include <win32config.h>
 #else
 #include "config.h"
--- ../libxslt-1.0.32/xsltproc/Makefile.am      2003-02-25 09:58:03.000000000 -
0500
+++ xsltproc/Makefile.am        2003-08-18 16:49:16.000000000 -0400
@@ -16,7 +16,8 @@
 LDADDS = @STATIC_BINARIES@ \
          $(top_builddir)/libxslt/libxslt.la \
          $(top_builddir)/libexslt/libexslt.la \
-       @LIBXML_LIBS@ $(EXTRA_LIBS)
+       @LIBXML_LIBS@ $(EXTRA_LIBS) @WIN32_EXTRA_LIBADD@
 
 xsltproc.dv: xsltproc.o
        $(CC) $(CFLAGS) -o xsltproc 
xsltproc.o ../libexslt/.libs/libexslt.a ../libxslt/.libs/libxslt.a 
@LIBXML_LIBS@ $(EXTRA_LIBS)
+

Attachment: xslt-1.0.32-mingw.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]