all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: fontconfig required version
Date: Thu, 21 Feb 2008 13:58:23 +0100	[thread overview]
Message-ID: <20080221125823.GG45296@orion.lan> (raw)
In-Reply-To: <20080221124006.GF45296@orion.lan>

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

I didn't notice that the check is done only when xft is not available,
but it should be done regardless since ftfont.c is used in both cases.
Attached patch should be better.

[-- Attachment #2: configure-fontconfig.diff --]
[-- Type: text/x-diff, Size: 1017 bytes --]

--- configure.in.~1.511~	2008-02-21 13:48:06.000000000 +0100
+++ configure.in	2008-02-21 13:51:00.000000000 +0100
@@ -2025,9 +2025,11 @@
 fi
 
 
-HAVE_FREETYPE=no
+PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.2.0, HAVE_FC=yes, HAVE_FC=no)
+if test "${HAVE_FC}" = "no"; then
+  HAVE_FREETYPE=no
 ### Use -lfreetype if available, unless `--with-freetype=no'.
-if test "${HAVE_XFT}" = "yes"; then
+elif test "${HAVE_XFT}" = "yes"; then
   dnl As we use Xft, we anyway use freetype.
   dnl In this case, there's no need of additional CFLAGS and LIBS.
   HAVE_FREETYPE=yes
@@ -2038,13 +2040,6 @@
   fi
 
   PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no)
-  if test "${HAVE_FREETYPE}" = "yes"; then
-    PKG_CHECK_MODULES(FONTCONFIG, fontconfig, HAVE_FC=yes, HAVE_FC=no)
-    if test "${HAVE_FC}" = "no"; then
-      dnl Witout fontconfig, we can't use freetype at the moment.
-      HAVE_FREETYPE=no
-    fi
-  fi
 fi
 
 HAVE_LIBOTF=no


Diffs between working revision and workfile end here.

      reply	other threads:[~2008-02-21 12:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 12:40 fontconfig required version Emanuele Giaquinta
2008-02-21 12:58 ` Emanuele Giaquinta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080221125823.GG45296@orion.lan \
    --to=emanuele.giaquinta@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.