You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/asc/files/asc-2.6.0.0-freetype_pkgcon...

29 lines
1012 B

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