From 57b8ed13984eab1ab0eaf70c1904dc0f50fe6129 Mon Sep 17 00:00:00 2001
From: Jan Kratochvil
Date: Thu, 18 May 2023 08:48:16 +0000
Subject: [PATCH] 8308290: Add fontconfig requirement to building.md
Reviewed-by: erikj
---
doc/building.html | 12 ++++++++++++
doc/building.md | 11 +++++++++++
2 files changed, 23 insertions(+)
diff --git a/doc/building.html b/doc/building.html
index 1aaf1d100bb..4f6a07a9338 100644
--- a/doc/building.html
+++ b/doc/building.html
@@ -80,6 +80,7 @@ id="toc-getting-jdk-binaries">Getting JDK binaries
id="toc-external-library-requirements">External Library Requirements
Use --with-freetype-include=<path>
and
--with-freetype-lib=<path>
if configure
does not automatically locate the platform FreeType files.
+Fontconfig
+Fontconfig from freedesktop.org
+Fontconfig is required on all platforms except Windows and
+macOS.
+
+- To install on an rpm-based Linux, try running
+
sudo yum install fontconfig-devel
.
+
+Use --with-fontconfig-include=<path>
and
+--with-fontconfig=<path>
if configure
+does not automatically locate the platform Fontconfig files.
CUPS
CUPS, Common UNIX Printing System
header files are required on all platforms, except Windows. Often these
diff --git a/doc/building.md b/doc/building.md
index a1180ae7056..9b8aeb74d41 100644
--- a/doc/building.md
+++ b/doc/building.md
@@ -471,6 +471,17 @@ rather than bundling the JDK's own copy.
Use `--with-freetype-include=` and `--with-freetype-lib=`
if `configure` does not automatically locate the platform FreeType files.
+### Fontconfig
+
+Fontconfig from [freedesktop.org Fontconfig](http://fontconfig.org) is required
+on all platforms except Windows and macOS.
+
+ * To install on an rpm-based Linux, try running `sudo yum install
+ fontconfig-devel`.
+
+Use `--with-fontconfig-include=` and `--with-fontconfig=`
+if `configure` does not automatically locate the platform Fontconfig files.
+
### CUPS
CUPS, [Common UNIX Printing System](http://www.cups.org) header files are