From 8714493ab797441da25d7de61b074924d50f77d3 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sun, 8 Nov 1998 19:52:27 +0100 Subject: [PATCH] better test for freetype include stuff Rev: src/modules/_Image_TTF/configure.in:1.3 --- src/modules/_Image_TTF/configure.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/_Image_TTF/configure.in b/src/modules/_Image_TTF/configure.in index 40dd67b98e..230720d31a 100644 --- a/src/modules/_Image_TTF/configure.in +++ b/src/modules/_Image_TTF/configure.in @@ -1,5 +1,5 @@ # -# $Id: configure.in,v 1.2 1998/11/01 05:20:42 per Exp $ +# $Id: configure.in,v 1.3 1998/11/08 18:52:27 mirar Exp $ # AC_INIT(image_ttf.c) AC_CONFIG_HEADER(config.h) @@ -9,11 +9,16 @@ AC_MODULE_INIT() if test x$with_ttflib = xyes ; then AC_CHECK_HEADERS(freetype.h) - if test $ac_cv_header_freetype_h = yes ; then + AC_CHECK_HEADERS(ftxkern.h) + if test $ac_cv_header_freetype_h = yes -a \ + $ac_cv_header_ftxkern_h = yes ; then AC_CHECK_LIB(ttf, Load_TrueType_Names, [ AC_DEFINE(HAVE_LIBTTF) LIBS="${LIBS-} -lttf" ]) + elif test $ac_cv_header_freetype_h = yes -a \ + $ac_cv_header_ftxkern_h = no ; then + AC_MSG_WARN(Detected freetype library (libttf), but too old version) fi fi -- GitLab