Huw D M Davies <hdavies@codeweavers.com> Don't define HAVE_FREETYPE unless we have freetype.h
Index: configure.in =================================================================== RCS file: /home/wine/wine/configure.in,v retrieving revision 1.250 diff -u -r1.250 configure.in --- configure.in 2002/01/29 03:02:50 1.250 +++ configure.in 2002/01/29 09:04:28 @@ -406,7 +406,6 @@ FREETYPEINCL="" wine_cv_msg_freetype=yes else - AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed]) FREETYPELIBS=`$ft_devel --libs` FREETYPEINCL=`$ft_devel --cflags` ac_save_CPPFLAGS="$CPPFLAGS" @@ -424,7 +423,16 @@ AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1, [Define if you have the <freetype/fttrigon.h> header file.])) CPPFLAGS="$ac_save_CPPFLAGS" - wine_cv_msg_freetype=no + dnl Check that we have at least freetype/freetype.h + if test "$ac_cv_header_freetype_freetype_h" = "yes" + then + AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed]) + wine_cv_msg_freetype=no + else + FREETYPELIBS="" + FREETYPEINCL="" + wine_cv_msg_freetype=yes + fi fi fi AC_SUBST(FREETYPELIBS) @@ -1426,7 +1434,8 @@ then echo echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" - echo "*** installed, but 'freetype-config' is not in your PATH. Install the" + echo "*** installed, but either 'freetype-config' is not in your PATH or" + echi "*** you do not have the FreeType include files. Install the" echo "*** freetype-devel package (or its equivalent on your distribution) to" echo "*** enable Wine to use TrueType fonts." fi