summaryrefslogtreecommitdiff
blob: a07cd2f862744a07312dcdf0ab269875b68d4ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://bugs.gentoo.org/657998

--- asc-2.6.0.0/configure.ac
+++ asc-2.6.0.0/configure.ac
@@ -401,22 +401,7 @@
       FREETYPE_CFLAGS="`$ac_cv_path_freetype_config --cflags`"
       FREETYPE_LIBS="`$ac_cv_path_freetype_config --libs`"
    else
-      AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=yes)
-      AC_CHECK_HEADER(ft2build.h,have_ft2build=yes)
-      if test "$have_ft2build" != "yes"; then
-         have_freetype="no"
-      elif test "$have_freetype" = "yes"; then
-         FREETYPE_LIBS="-lfreetype"
-         ft2inc="no"
-         AC_MSG_CHECKING(freetype2 include directory)
-         if test -d /usr/local/include/freetype2; then
-            ft2inc="/usr/local/include/freetype2"
-         elif test -d /usr/include/freetype2; then
-            ft2inc="/usr/include/freetype2"
-         fi
-         AC_MSG_RESULT($ft2inc)
-         FREETYPE_CFLAGS="-I$ft2inc"
-      fi
+      PKG_CHECK_MODULES(FREETYPE, freetype2, have_freetype=yes)
    fi
 
    if test x$have_freetype = xno; then