summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-09-19 21:20:36 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-09-19 21:20:36 +0000
commitc8c873fb519799f61034d61f23f6e2ec1decb569 (patch)
tree8dea4cc686de762827186c88a82dc23537c94a31 /configure.in
parentcbfc2bbc09c9a666eedba8b965037f3c10be04c2 (diff)
downloadpango-c8c873fb519799f61034d61f23f6e2ec1decb569.tar.gz
header to abstract the difference between FreeType 2.0.3 and 2.0.4 error
2001-09-19 Havoc Pennington <hp@redhat.com> * pango/opentype/fterrcompat.h: header to abstract the difference between FreeType 2.0.3 and 2.0.4 error codes, based on the configure check. * configure.in: check for the tterrors.h header in FreeType 2.0.3, and define HAVE_FREETYPE_2_0_3 if we have it
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 77b75448..780c6be4 100644
--- a/configure.in
+++ b/configure.in
@@ -87,6 +87,12 @@ AC_SUBST(FREETYPE_LIBS)
AC_SUBST(FREETYPE_CFLAGS)
AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
+## see which freetype we have, 2.0.3 vs. 2.0.4
+pango_save_cppflags="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+AC_CHECK_HEADER(freetype/internal/tterrors.h, AC_DEFINE(HAVE_FREETYPE_2_0_3))
+CPPFLAGS="$pango_save_cppflags"
+
#
# Checks for Xft/XRender
#