Commit 810704b6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

configure: use pkg-config for fontconfig

It´s shipped a .pc file for about 15 years.
parent f564aefb
...@@ -3170,13 +3170,13 @@ if test "${enable_freetype}" != "no"; then ...@@ -3170,13 +3170,13 @@ if test "${enable_freetype}" != "no"; then
dnl fontconfig support dnl fontconfig support
if test "${SYS}" != "mingw32" -a "${SYS}" != "darwin" ; then AS_IF([test "${enable_fontconfig}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "darwin"], [
if test "${enable_fontconfig}" != "no"; then PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [
AC_CHECK_HEADERS(fontconfig/fontconfig.h, [
have_fontconfig="yes" have_fontconfig="yes"
],[AC_MSG_WARN([library fontconfig not found. Styles will be disabled in freetype])]) ], [
fi AC_MSG_WARN([${FONTCONFIG_PKG_ERRORS}. Styles will be disabled in FreeType.])
fi ])
dnl fribidi support dnl fribidi support
if test "${enable_fribidi}" != "no"; then if test "${enable_fribidi}" != "no"; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment