Nick Wellnhofer
30c8d9bb23
http: Simplify IPv6 checks
...
This should also enable IPv6 support on Windows. Untested and mostly
useless anyway, since we don't support HTTPS.
2022-09-05 02:26:13 +02:00
Nick Wellnhofer
9e5a016ef0
autotools: Fix network checks on Windows
2022-09-05 01:25:35 +02:00
Nick Wellnhofer
98acf28f71
Use $MSYSTEM and 'bash -lc' in MinGW CI
...
Setting the $MSYSTEM environment variable and invoking shell scripts
with 'bash -lc' sets up the correct MinGW environment.
See https://www.msys2.org/docs/ci/
2022-09-04 22:42:46 +02:00
Nick Wellnhofer
5d32b12645
Fix detection of GNU libiconv
...
GNU libiconv prefixes symbols with "lib".
2022-09-04 22:05:16 +02:00
Nick Wellnhofer
460ba0cb7e
Add CI job for MinGW/Autotools
2022-09-04 22:00:57 +02:00
Nick Wellnhofer
0cc9c1d1b7
Consolidate CI scripts
2022-09-04 20:27:27 +02:00
Nick Wellnhofer
89aeb4df44
Allow empty MINGW_PACKAGE_PREFIX
2022-09-04 20:27:27 +02:00
Nick Wellnhofer
efc0e85c02
Move Dockerfile to .gitlab-ci directory
2022-09-04 20:27:27 +02:00
Nick Wellnhofer
02e1237196
cmake: Fix Python installation
...
Don't install into ${Python_SITEARCH} for now.
2022-09-04 20:27:27 +02:00
Nick Wellnhofer
243fdbc31c
cmake: Don't check for Python 2
2022-09-04 20:27:27 +02:00
Nick Wellnhofer
b0556e1449
testapi: Disable on Windows for now
...
It's incredibly slow for some reason.
2022-09-04 20:27:21 +02:00
Nick Wellnhofer
27b2b86417
configure.ac: Also check for MSYS host
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
3a1c5ee7c1
Disable fuzzer tests if glob.h wasn't found
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
ad6f10a81b
Fix Python build on Windows
...
Build Python bindings with -no-undefined on Windows. Remove libs that
should already be set by PKG_CHECK_MODULE.
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
22b82d14d1
Improve network library detection
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
0d90125859
Fix Windows compiler warnings in python/types.c
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
71736b4e9a
Fix libxml_PyFileGet
...
Broken in commit 75cdb6dd.
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
f9fcb2c47a
Revert "CI job for MingW64/Autotools"
...
This reverts commit 6bfebf4d5886bd5f2a3979ceedc27ebd6c3c5009.
2022-09-04 04:47:48 +02:00
Nick Wellnhofer
6bfebf4d58
CI job for MingW64/Autotools
2022-09-04 04:04:45 +02:00
Nick Wellnhofer
0048fd0a50
Detect ws2_32 with AC_SEARCH_LIBS
2022-09-04 03:57:09 +02:00
Nick Wellnhofer
60b03c9ec9
Rework network configure checks
...
Migrate to AC_SEARCH_LIBS. Don't pollute LIBS.
2022-09-04 03:47:09 +02:00
Nick Wellnhofer
fe02289fa5
Remove arg cast configure checks
...
We can simply cast to non-const char * unconditionally.
2022-09-04 03:19:01 +02:00
Nick Wellnhofer
2d164d6835
Fix dlopen check
2022-09-04 02:54:20 +02:00
Nick Wellnhofer
1e60c76821
Remove HAVE_WIN32_THREADS configuration flag
...
Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
2022-09-04 01:49:41 +02:00
Nick Wellnhofer
13a6637815
Remove BeOS support
...
Haiku shouldn't be affected.
2022-09-04 01:05:51 +02:00
Nick Wellnhofer
38290ec103
Rework dlopen and pthread detection
...
Migrate to AC_SEARCH_LIBS. Remove check for ancient GCC 3.3.
2022-09-04 00:49:36 +02:00
Nick Wellnhofer
e47df37be9
Fix test in configure.ac
...
Broken in commit b4847d60.
2022-09-04 00:46:32 +02:00
Nick Wellnhofer
202b8e1954
cmake: Enable GCC compiler warnings
2022-09-02 18:44:59 +02:00
Nick Wellnhofer
81621b1fe4
Fix compiler warnings in SAX2.c
2022-09-02 18:44:59 +02:00
Nick Wellnhofer
caef85633e
Move automata test to runtest.c
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
c59df16d1d
Always link with -no-undefined
...
This is a good idea to detect errors early.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
513d65fee8
Use AM_CFLAGS and AM_LDFLAGS consistently
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
75cdb6dd55
Fix unused variable warning in python/types.c
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
1bd24d448a
Fix compiler warning in examples
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
d0ab5c4fe6
Fix compiler warnings in fuzzing code
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
17d505e2d2
Remove -Wredundant-decls
...
Some Python headers contain redundant redeclarations.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
4d911ebc08
Call AC_CHECK_* with multiple arguments
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
75bd98a5ef
Remove unused code in nanohttp.c
...
This was hidden behind an undocumented flag RES_USE_INET6.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
5bffa33a12
Stop including sys/types.h
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
05fc6ee27c
configure.ac: Remove checks for unused programs
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
16ae1d8f71
Don't define WIN32 macro
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
0f77167f76
Rework library detection in configure.ac
...
Migrate to AC_CHECK_LIB and AC_SEARCH_LIBS. Don't pollute CPPFLAGS,
LDFLAGS and LIBS.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
f2dda8e804
Rearrange configure.ac
...
Move some sections around and align headers.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
6a5c88cc5e
Consolidate zlib and lzma detection
...
Don't depend on a global variable for flag backup. Now the blocks can be
moved freely around.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
59f2f60e3e
Remove "runtime debugging"
...
This doesn't seem useful as configuration option.
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
b4847d60b9
Consolidate simple API modules in configure.ac
...
Add some small consistency fixes.
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
88a8757bfe
Fix dependency resolution in configure.ac
...
This mainly fixes the case of disabling a single module, for example
./configure --without-xpath
Before, there were still a few cases where a module wouldn't be disabled
unless another module depending on it were disabled, too. Finding the
correct options to really disable some modules could be extremely hard
for casual users.
Now every --without option should reliably disable dependent modules
unless they were specifcally requested. In the latter case, a warning is
printed consistently.
Some missing dependencies were added and the logic was consolidated in a
single code section.
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
c714979293
Fix --with-valid --without-regexps build
...
This build config resulted in segfaults in 'runtest' because a special
xmlElementContentPtr showed up in a few places. I'm not sure if this is
the right fix.
An error message was changed to conform to the --with-regexps build.
There are still a few missing validity errors, so the tests don't pass.
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
884e142dc5
Fix --with-schemas --without-xpath build
...
xmlXPathInit must be called for schemas.
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
14d38a7114
Don't build unneeded .c source files
2022-09-02 18:33:35 +02:00