summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.lib6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index dbeaf0587..42ef61e68 100644
--- a/config.lib
+++ b/config.lib
@@ -2077,6 +2077,12 @@ detect_fontconfig() {
fontconfig_config=""
return 0
fi
+ if [ "$with_fontconfig" != "2" ] && [ -z "$freetype_config" ]; then
+ log 1 "checking libfontconfig... no freetype, skipping"
+
+ fontconfig_config=""
+ return 0
+ fi
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "WINCE" ]; then
log 1 "checking libfontconfig... WIN32, skipping"