summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@qnx.com>2016-05-04 15:18:01 -0400
committerJames McDonnell <jmcdonnell@qnx.com>2016-05-12 18:57:54 +0000
commitd179931ada9c9055eb7c86ee264fa5f2e1ec3453 (patch)
treed11b8499a0dd2dc66037d6e98d450f766bba2269 /configure
parent8d5b1bdca8b13972fc653638fca426a5485343b1 (diff)
Warn when -fontconfig forces -system-freetype
Let the user know that configure's switch from -no-freetype/-qt-freetype to -system-freetype when -fontconfig is used is expected. Task-number: QTBUG-35886 Change-Id: I95daaeffb0878bb785149f314096405a5c0fdc7a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 4c052d5a23..ce5b9c2b27 100755
--- a/configure
+++ b/configure
@@ -5360,6 +5360,7 @@ if [ "$CFG_OPENGL" = "es2" ]; then
fi
# auto-detect FontConfig support
+ORIG_CFG_FREETYPE="$CFG_FREETYPE"
if [ "$CFG_FONTCONFIG" != "no" ]; then
if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists fontconfig --exists freetype2 2>/dev/null; then
QT_CFLAGS_FONTCONFIG=`$PKG_CONFIG --cflags fontconfig --cflags freetype2 2>/dev/null`
@@ -7405,6 +7406,15 @@ if [ "$CFG_SHARED" = "no" ]; then
echo "loaded plugins. Make sure to import all needed static plugins,"
echo "or compile needed modules into the library."
fi
+if [ "$CFG_FREETYPE" = "system" ]; then
+ if [ "$ORIG_CFG_FREETYPE" = "qt" ]; then
+ echo
+ echo "WARNING: Bundled FreeType can't be used. FontConfig use requires system FreeType."
+ elif [ "$ORIG_CFG_FREETYPE" = "no" ]; then
+ echo
+ echo "WARNING: FreeType can't be disabled. FontConfig use requires system FreeType."
+ fi
+fi
if [ "$CFG_OPENSSL" = "linked" ] && [ "$OPENSSL_LIBS" = "" ]; then
echo
echo "NOTE: When linking against OpenSSL, you can override the default"