1diff -ur misc/rasqal-0.9.33/src/rasqal_config.h.in misc/build/rasqal-0.9.33/src/rasqal_config.h.in
2--- misc/rasqal-0.9.33/src/rasqal_config.h.in	2014-11-23 14:11:50.000000000 -0800
3+++ misc/build/rasqal-0.9.33/src/rasqal_config.h.in	2016-08-23 00:00:45.440707000 -0700
4@@ -1,272 +1,273 @@
5+/* src/rasqal_config.h.  Generated from rasqal_config.h.in by configure.  */
6 /* src/rasqal_config.h.in.  Generated from configure.ac by autoheader.  */
7
8 /* Define if building universal (internal helper macro) */
9-#undef AC_APPLE_UNIVERSAL_BUILD
10+/* #undef AC_APPLE_UNIVERSAL_BUILD */
11
12 /* Flex version as a decimal */
13-#undef FLEX_VERSION_DECIMAL
14+#define FLEX_VERSION_DECIMAL 00000
15
16 /* Define to 1 if you have the <dlfcn.h> header file. */
17-#undef HAVE_DLFCN_H
18+/* #define HAVE_DLFCN_H */
19
20 /* Define to 1 if you have the <errno.h> header file. */
21-#undef HAVE_ERRNO_H
22+#define HAVE_ERRNO_H 1
23
24 /* Define to 1 if you have the <float.h> header file. */
25-#undef HAVE_FLOAT_H
26+#define HAVE_FLOAT_H 1
27
28 /* Define to 1 if you have the <gcrypt.h> header file. */
29-#undef HAVE_GCRYPT_H
30+/* #undef HAVE_GCRYPT_H */
31
32 /* Define to 1 if you have the `getopt' function. */
33-#undef HAVE_GETOPT
34+#define HAVE_GETOPT 1
35
36 /* Define to 1 if you have the <getopt.h> header file. */
37-#undef HAVE_GETOPT_H
38+#define HAVE_GETOPT_H 1
39
40 /* Define to 1 if you have the `getopt_long' function. */
41-#undef HAVE_GETOPT_LONG
42+#define HAVE_GETOPT_LONG 1
43
44 /* Define to 1 if you have the `gettimeofday' function. */
45-#undef HAVE_GETTIMEOFDAY
46+/* #undef HAVE_GETTIMEOFDAY */
47
48 /* Define to 1 if you have the <gmp.h> header file. */
49-#undef HAVE_GMP_H
50+/* #undef HAVE_GMP_H */
51
52 /* Have gmp_version constant */
53-#undef HAVE_GMP_VERSION
54+/* #undef HAVE_GMP_VERSION */
55
56 /* Define to 1 if you have the `gmtime_r' function. */
57-#undef HAVE_GMTIME_R
58+/* #undef HAVE_GMTIME_R */
59
60 /* Define to 1 if you have the `initstate' function. */
61-#undef HAVE_INITSTATE
62+#define HAVE_INITSTATE 1
63
64 /* Define to 1 if you have the `initstate_r' function. */
65-#undef HAVE_INITSTATE_R
66+/* #undef HAVE_INITSTATE_R */
67
68 /* Define to 1 if you have the <inttypes.h> header file. */
69-#undef HAVE_INTTYPES_H
70+#define HAVE_INTTYPES_H 1
71
72 /* Define to 1 if you have the <libxml/schemasInternals.h> header file. */
73-#undef HAVE_LIBXML_SCHEMASINTERNALS_H
74+#define HAVE_LIBXML_SCHEMASINTERNALS_H 1
75
76 /* Define to 1 if you have the <libxml/xmlschemastypes.h> header file. */
77-#undef HAVE_LIBXML_XMLSCHEMASTYPES_H
78+#define HAVE_LIBXML_XMLSCHEMASTYPES_H 1
79
80 /* Define to 1 if you have the <libxml/xmlschemas.h> header file. */
81-#undef HAVE_LIBXML_XMLSCHEMAS_H
82+#define HAVE_LIBXML_XMLSCHEMAS_H 1
83
84 /* Define to 1 if you have the <limits.h> header file. */
85-#undef HAVE_LIMITS_H
86+#define HAVE_LIMITS_H 1
87
88 /* Define to 1 if you have the <math.h> header file. */
89-#undef HAVE_MATH_H
90+#define HAVE_MATH_H 1
91
92 /* Define to 1 if you have the <memory.h> header file. */
93-#undef HAVE_MEMORY_H
94+#define HAVE_MEMORY_H 1
95
96 /* Define to 1 if you have the <mhash.h> header file. */
97-#undef HAVE_MHASH_H
98+/* #undef HAVE_MHASH_H */
99
100 /* Define to 1 if you have the <mpfr.h> header file. */
101-#undef HAVE_MPFR_H
102+/* #undef HAVE_MPFR_H */
103
104 /* Define to 1 if you have the `rand' function. */
105-#undef HAVE_RAND
106+#define HAVE_RAND 1
107
108 /* Define to 1 if you have the `random' function. */
109-#undef HAVE_RANDOM
110+#define HAVE_RANDOM 1
111
112 /* Define to 1 if you have the `random_r' function. */
113-#undef HAVE_RANDOM_R
114+/* #undef HAVE_RANDOM_R */
115
116 /* Define to 1 if you have the `rand_r' function. */
117-#undef HAVE_RAND_R
118+#define HAVE_RAND_R 1
119
120 /* Define to 1 if you have the <regex.h> header file. */
121-#undef HAVE_REGEX_H
122+/* #undef HAVE_REGEX_H */
123
124 /* have PCRE regex - Perl Compatible Regular Expressions */
125-#undef HAVE_REGEX_PCRE
126+/* #undef HAVE_REGEX_PCRE */
127
128 /* have POSIX regex library */
129-#undef HAVE_REGEX_POSIX
130+/* #undef HAVE_REGEX_POSIX */
131
132 /* Define to 1 if you have the `srand' function. */
133-#undef HAVE_SRAND
134+#define HAVE_SRAND 1
135
136 /* Define to 1 if you have the <stddef.h> header file. */
137-#undef HAVE_STDDEF_H
138+#define HAVE_STDDEF_H 1
139
140 /* Define to 1 if you have the <stdint.h> header file. */
141-#undef HAVE_STDINT_H
142+/* #undef HAVE_STDINT_H */
143
144 /* Define to 1 if you have the <stdlib.h> header file. */
145-#undef HAVE_STDLIB_H
146+#define HAVE_STDLIB_H 1
147
148 /* Define to 1 if you have the `strcasecmp' function. */
149-#undef HAVE_STRCASECMP
150+/* #undef HAVE_STRCASECMP */
151
152 /* Define to 1 if you have the `stricmp' function. */
153-#undef HAVE_STRICMP
154+#define HAVE_STRICMP 1
155
156 /* Define to 1 if you have the <strings.h> header file. */
157-#undef HAVE_STRINGS_H
158+/* #undef HAVE_STRINGS_H */
159
160 /* Define to 1 if you have the <string.h> header file. */
161-#undef HAVE_STRING_H
162+#define HAVE_STRING_H 1
163
164 /* Define to 1 if you have the <sys/stat.h> header file. */
165-#undef HAVE_SYS_STAT_H
166+#define HAVE_SYS_STAT_H 1
167
168 /* Define to 1 if you have the <sys/time.h> header file. */
169-#undef HAVE_SYS_TIME_H
170+/* #undef HAVE_SYS_TIME_H */
171
172 /* Define to 1 if you have the <sys/types.h> header file. */
173-#undef HAVE_SYS_TYPES_H
174+#define HAVE_SYS_TYPES_H 1
175
176 /* Define to 1 if you have the `timegm' function. */
177-#undef HAVE_TIMEGM
178+/* #undef HAVE_TIMEGM */
179
180 /* Define to 1 if you have the <time.h> header file. */
181-#undef HAVE_TIME_H
182+#define HAVE_TIME_H 1
183
184 /* struct tm has tm_gmtoff field */
185-#undef HAVE_TM_GMTOFF
186+/* #undef HAVE_TM_GMTOFF */
187
188 /* Define to 1 if you have the <unistd.h> header file. */
189-#undef HAVE_UNISTD_H
190+#define HAVE_UNISTD_H 1
191
192 /* Define to 1 if you have the <uuid/uuid.h> header file. */
193-#undef HAVE_UUID_UUID_H
194+/* #undef HAVE_UUID_UUID_H */
195
196 /* Define to 1 if you have the `vsnprintf' function. */
197-#undef HAVE_VSNPRINTF
198+#define HAVE_VSNPRINTF 1
199
200 /* Is __FUNCTION__ available */
201-#undef HAVE___FUNCTION__
202+#define HAVE___FUNCTION__ 1
203
204 /* Define to the sub-directory in which libtool stores uninstalled libraries.
205    */
206-#undef LT_OBJDIR
207+#define LT_OBJDIR ".libs/"
208
209 /* need 'extern int optind' declaration? */
210-#undef NEED_OPTIND_DECLARATION
211+/* #undef NEED_OPTIND_DECLARATION */
212
213 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
214-#undef NO_MINUS_C_MINUS_O
215+/* #undef NO_MINUS_C_MINUS_O */
216
217 /* Name of package */
218-#undef PACKAGE
219+#define PACKAGE "rasqal"
220
221 /* Define to the address where bug reports for this package should be sent. */
222-#undef PACKAGE_BUGREPORT
223+#define PACKAGE_BUGREPORT "http://bugs.librdf.org/"
224
225 /* Define to the full name of this package. */
226-#undef PACKAGE_NAME
227+#define PACKAGE_NAME "Rasqal RDF Query Library"
228
229 /* Define to the full name and version of this package. */
230-#undef PACKAGE_STRING
231+#define PACKAGE_STRING "Rasqal RDF Query Library 0.9.33"
232
233 /* Define to the one symbol short name of this package. */
234-#undef PACKAGE_TARNAME
235+#define PACKAGE_TARNAME "rasqal"
236
237 /* Define to the home page for this package. */
238-#undef PACKAGE_URL
239+#define PACKAGE_URL ""
240
241 /* Define to the version of this package. */
242-#undef PACKAGE_VERSION
243+#define PACKAGE_VERSION "0.9.33"
244
245 /* Use GMP gmp_randseed_ui() and mpz_urandomm() */
246-#undef RANDOM_ALGO_GMP_RAND
247+/* #undef RANDOM_ALGO_GMP_RAND */
248
249 /* Use internal Mersenne Twister */
250-#undef RANDOM_ALGO_MTWIST
251+/* #undef RANDOM_ALGO_MTWIST */
252
253 /* Use POSIX srand() and rand() */
254-#undef RANDOM_ALGO_RAND
255+#define RANDOM_ALGO_RAND 1
256
257 /* Use BSD initstate() and random() */
258-#undef RANDOM_ALGO_RANDOM
259+/* #undef RANDOM_ALGO_RANDOM */
260
261 /* Use glibc initstate_r() and random_r() */
262-#undef RANDOM_ALGO_RANDOM_R
263+/* #undef RANDOM_ALGO_RANDOM_R */
264
265 /* Use POSIX rand_r() */
266-#undef RANDOM_ALGO_RAND_R
267+/* #undef RANDOM_ALGO_RAND_R */
268
269 /* Decimal from GNU MP library */
270-#undef RASQAL_DECIMAL_GMP
271+/* #undef RASQAL_DECIMAL_GMP */
272
273 /* Decimal from MPFR library */
274-#undef RASQAL_DECIMAL_MPFR
275+/* #undef RASQAL_DECIMAL_MPFR */
276
277 /* Decimal without a library */
278-#undef RASQAL_DECIMAL_NONE
279+#define RASQAL_DECIMAL_NONE 1
280
281 /* Use gcrypt library for message digests */
282-#undef RASQAL_DIGEST_GCRYPT
283+/* #undef RASQAL_DIGEST_GCRYPT */
284
285 /* Use internal routines for message digests */
286-#undef RASQAL_DIGEST_INTERNAL
287+#define RASQAL_DIGEST_INTERNAL 1
288
289 /* Use mhash library for message digests */
290-#undef RASQAL_DIGEST_MHASH
291+/* #undef RASQAL_DIGEST_MHASH */
292
293 /* Use no message digest library */
294-#undef RASQAL_DIGEST_NONE
295+/* #undef RASQAL_DIGEST_NONE */
296
297 /* Building LAQRS query */
298-#undef RASQAL_QUERY_LAQRS
299+#define RASQAL_QUERY_LAQRS 1
300
301 /* Building SPARQL query */
302-#undef RASQAL_QUERY_SPARQL
303+#define RASQAL_QUERY_SPARQL 1
304
305 /* Use no regex library */
306-#undef RASQAL_REGEX_NONE
307+/* #undef RASQAL_REGEX_NONE */
308
309 /* Use PCRE regex library */
310-#undef RASQAL_REGEX_PCRE
311+/* #undef RASQAL_REGEX_PCRE */
312
313 /* Use POSIX regex library */
314-#undef RASQAL_REGEX_POSIX
315+/* #undef RASQAL_REGEX_POSIX */
316
317 /* Use internal routines for UUID */
318-#undef RASQAL_UUID_INTERNAL
319+#define RASQAL_UUID_INTERNAL 1
320
321 /* Use UUID in libc library for UUID */
322-#undef RASQAL_UUID_LIBC
323+/* #undef RASQAL_UUID_LIBC */
324
325 /* Use libuuid library for UUID */
326-#undef RASQAL_UUID_LIBUUID
327+/* #undef RASQAL_UUID_LIBUUID */
328
329 /* Use no UUID library */
330-#undef RASQAL_UUID_NONE
331+/* #undef RASQAL_UUID_NONE */
332
333 /* Use OSSP library for UUID */
334-#undef RASQAL_UUID_OSSP
335+/* #undef RASQAL_UUID_OSSP */
336
337 /* Release version as a decimal */
338-#undef RASQAL_VERSION_DECIMAL
339+#define RASQAL_VERSION_DECIMAL 933
340
341 /* Major version number */
342-#undef RASQAL_VERSION_MAJOR
343+#define RASQAL_VERSION_MAJOR 0
344
345 /* Minor version number */
346-#undef RASQAL_VERSION_MINOR
347+#define RASQAL_VERSION_MINOR 9
348
349 /* Release version number */
350-#undef RASQAL_VERSION_RELEASE
351+#define RASQAL_VERSION_RELEASE 33
352
353 /* Define to 1 if you have the ANSI C header files. */
354-#undef STDC_HEADERS
355+#define STDC_HEADERS 1
356
357 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
358-#undef TIME_WITH_SYS_TIME
359+/* #undef TIME_WITH_SYS_TIME */
360
361 /* Version number of package */
362-#undef VERSION
363+#define VERSION "0.9.33"
364
365 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
366    significant byte first (like Motorola and SPARC, unlike Intel). */
367@@ -276,13 +277,13 @@
368 # endif
369 #else
370 # ifndef WORDS_BIGENDIAN
371-#  undef WORDS_BIGENDIAN
372+/* #  undef WORDS_BIGENDIAN */
373 # endif
374 #endif
375
376 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
377    `char[]'. */
378-#undef YYTEXT_POINTER
379+#define YYTEXT_POINTER 1
380
381 /* Define to empty if `const' does not conform to ANSI C. */
382-#undef const
383+/* #undef const */
384Only in misc/build/rasqal-0.9.33/src: rasqal_config.h.in.orig
385diff -ur misc/rasqal-0.9.33/src/rasqal_ntriples.c misc/build/rasqal-0.9.33/src/rasqal_ntriples.c
386--- misc/rasqal-0.9.33/src/rasqal_ntriples.c	2013-12-12 14:42:49.000000000 -0800
387+++ misc/build/rasqal-0.9.33/src/rasqal_ntriples.c	2016-08-23 00:19:55.840632000 -0700
388@@ -25,6 +25,10 @@
389 #include <rasqal_config.h>
390 #endif
391
392+#ifdef WIN32
393+#include <win32_rasqal_config.h>
394+#endif
395+
396 #include <stdio.h>
397 #include <string.h>
398 #include <ctype.h>
399