[PATCH 3/4] configure: Try to detect MinGW libxml2 using pkg-config if --with-system-dllpath is specified.
Zebediah Figura
zfigura at codeweavers.com
Thu Dec 2 19:22:09 CST 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
configure.ac | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5a15414ccfd..4b11fb97b70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1091,6 +1091,22 @@ then
WINE_NOTICE([libtiff ${notice_platform}MinGW development files not found; using bundled version.])
fi
+ WINE_MINGW_PACKAGE_FLAGS(XML2,[libxml-2.0],[-lxml2],
+ [WINE_CHECK_MINGW_HEADER(libxml/parser.h)
+ WINE_CHECK_MINGW_HEADER(libxml/xmlsave.h)
+ WINE_CHECK_MINGW_HEADER(libxml/SAX2.h)
+ if test "$ac_cv_mingw_header_libxml_parser_h" = "yes" -a "$ac_cv_mingw_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_mingw_header_libxml_SAX2_h" = "yes"
+ then
+ WINE_CHECK_MINGW_LIB(xml2,xmlFirstElementChild,[:],[XML2_PE_CFLAGS=""; XML2_PE_LIBS=""],[$XML2_PE_LIBS])
+ else
+ XML2_PE_CFLAGS=""
+ XML2_PE_LIBS=""
+ fi])
+ if test "x$XML2_PE_LIBS" = "x"
+ then
+ WINE_NOTICE([libxml2 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
+ fi
+
WINE_MINGW_PACKAGE_FLAGS(ZLIB,[zlib],[-lz],
[WINE_CHECK_MINGW_HEADER(zlib.h,
[WINE_CHECK_MINGW_LIB(z,inflate,[:],[ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""],[$ZLIB_PE_LIBS])],
--
2.34.1
More information about the wine-devel
mailing list