[PATCH 4/5] configure: Try to detect MinGW liblcms2 using pkg-config if --with-system-dllpath is specified.
Zebediah Figura
zfigura at codeweavers.com
Wed Dec 1 15:03:41 CST 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
configure.ac | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/configure.ac b/configure.ac
index 6d357f9a984..914a178cbf4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1055,6 +1055,15 @@ then
WINE_NOTICE([libjpeg ${notice_platform}MinGW development files not found; using bundled version.])
fi
+ WINE_MINGW_PACKAGE_FLAGS(LCMS2,[lcms2],[-llcms2],,,
+ [WINE_CHECK_MINGW_HEADER(lcms2.h,
+ [WINE_CHECK_MINGW_LIB(lcms2,cmsOpenProfileFromFile,[:],[LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""],[$LCMS2_PE_LIBS])],
+ [LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""])])
+ if test "x$LCMS2_PE_LIBS" = "x"
+ then
+ WINE_NOTICE([liblcms2 ${notice_platform}MinGW development files not found; 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.0
More information about the wine-devel
mailing list