Gnutls is supposed to be able to detect and use libidn2, but it
tries to do this without pkg-config, in a way that doesn't
consider transitive dependencies. Using pkg-config with libidn2.pc
seems to work okay with MXE's version of libidn2.
The following script was applied:
sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')
sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
$(git grep -l 'part of MXE.*See index.html')
before='This file is part of MXE. See index.html for further information.'
after='This file is part of MXE. See LICENSE.md for licensing information.'
sed "s/$before/$after/" -i $(git grep -l 'part of MXE')
Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.
See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
* libopts_cv_with_libregex=no is not in ./configure
* dist-lzip isn't used by MXE, but can be worked around with
the make variables DIST_ARCHIVES and DIST_TARGETS
Fixes#849
-Replace echo and sed hacks
-gai_strerror test seems to work now without hack.
-Disable crywrap for Windows with configure logic.
-Disable doc and tests targets with patch.
-Improve handling of LIBS and .pc file
-zlib is already in GNUTLS_REQUIRES_PRIVATE
-Use LIBS to introduce -lws32_2 into Libs.private