Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From 8bb183926078b6dd54048fb6820838fe7b6e6163 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> |
| 3 | Date: Sun, 23 Oct 2016 22:46:43 +0200 |
| 4 | Subject: [PATCH] use pkg-config to find freetype2 |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 9 | Upstream-Status: Inappropriate [OE specific] |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | |
| 11 | Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com> |
| 12 | --- |
| 13 | configure.ac | 9 +++++++-- |
| 14 | 1 file changed, 7 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/configure.ac b/configure.ac |
| 17 | index 53560ea..b5bb6a3 100644 |
| 18 | --- a/configure.ac |
| 19 | +++ b/configure.ac |
| 20 | @@ -41,8 +41,13 @@ AC_CHECK_FUNCS(strndup) |
| 21 | |
| 22 | AC_PATH_X |
| 23 | |
| 24 | -AC_CHECK_FT2([9.0.3],[], |
| 25 | - [AC_MSG_ERROR([FreeType2 is required to compile this library])]) |
| 26 | +PKG_CHECK_MODULES(FT2, freetype2, |
| 27 | + CFLAGS="$CFLAGS $FT2_CFLAGS" |
| 28 | + LIBS="$LIBS $FT2_LIBS", |
| 29 | + AC_MSG_ERROR([FreeType2 is required to compile this library]) |
| 30 | +) |
| 31 | +AC_SUBST([FT2_CFLAGS]) |
| 32 | +AC_SUBST([FT2_LIBS]) |
| 33 | |
| 34 | AC_PATH_XTRA |
| 35 | |
| 36 | -- |
| 37 | 2.5.5 |
| 38 | |