Werner, please take a look at the patch attached below.
I'm now using PKG_CHECK_MODULES as you requested, when freetype-config can't be found or is set to "no" by the user.
It's also possible to skip pkg-config altogether by setting PKG_CONFIG=true and passing FREETYPE_CFLAGS and FREETYPE_LIBS directly on the configure command line.
Let me know if this is what you had in mind, thanks.
C.
Makes sense, I’ll do that.
Il 9 gen 2018, 19:22 +0000, Werner LEMBERG <
address@hidden>, ha scritto:
autoconf is not my cup of tea, but I've tried anyway. See the patch
attached below.
Thanks! However, this is not exactly what I had in mind – and sorry
for not telling you earlier: If `freetype-config' isn't found, the
configure script should call the `PKG_CHECK_MODULES' macro (as with
harfbuzz), trying to find `freetype2.pc'. This should be much less
code. As a side effect, this macro also provides the
`FREETYPE2_CFLAGS' and `FREETYPE2_LIBS' environment variables.
Please try again, if you find some time :-)
Werner