projects/guix·blob java-team · refs

52 lines · 1.8 KiB

1Source: https://www.gaia-gis.it/fossil/libspatialite/tktview?name=ac85f0fca3
2
3Index: spatialite-5.1.0/configure.ac
4===================================================================
5--- a/configure.ac
6+++ b/configure.ac
7@@ -61,6 +61,8 @@ AH_TEMPLATE([OMIT_FREEXL],
8 [Should be defined in order to disable FREEXL support.])
9 AH_TEMPLATE([ENABLE_LIBXML2],
10 [Should be defined in order to enable LIBXML2 support.])
11+AH_TEMPLATE([ENABLE_LIBXML2_NANOHTTP],
12+ [Should be defined in order to enable LIBXML2 HTTP support.])
13 AH_TEMPLATE([ENABLE_MINIZIP],
14 [Should be defined in order to enable MiniZIP support.])
15 AH_TEMPLATE([ENABLE_GEOPACKAGE],
16@@ -441,6 +443,7 @@ if test x"$enable_libxml2" != "xno"; the
17 AC_SUBST(LIBXML2_CFLAGS)
18 AC_SUBST(LIBXML2_LIBS)
19 AC_DEFINE(ENABLE_LIBXML2)
20+ AC_SEARCH_LIBS(xmlNanoHTTPCleanup,xml2,AC_DEFINE(ENABLE_LIBXML2_NANOHTTP),,)
21 fi
22
23 #-----------------------------------------------------------------------
24Index: spatialite-5.1.0/src/wfs/wfs_in.c
25===================================================================
26--- a/src/wfs/wfs_in.c
27+++ b/src/wfs/wfs_in.c
28@@ -76,7 +76,10 @@ Regione Toscana - Settore Sistema Inform
29 #ifdef ENABLE_LIBXML2 /* LIBXML2 enabled: supporting XML documents */
30
31 #include <libxml/parser.h>
32+
33+#ifdef ENABLE_LIBXML2_NANOHTTP
34 #include <libxml/nanohttp.h>
35+#endif
36
37 #define MAX_GTYPES 28
38
39@@ -4636,8 +4639,13 @@ get_wfs_schema_column_info (gaiaWFScolum
40 SPATIALITE_DECLARE void
41 reset_wfs_http_connection (void)
42 {
43+#ifdef ENABLE_LIBXML2_NANOHTTP
44 /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */
45 xmlNanoHTTPCleanup ();
46+#else
47+/* LIBXML2 doesn't have HTTP support: does absolutely nothing */
48+ return;
49+#endif
50 }
51
52 #else /* LIBXML2 isn't enabled */