summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-09-30 23:25:46 -0400
committerDavid Thompson <dthompson2@worcester.edu>2020-10-03 22:02:26 -0400
commit1560e460223f89ea61537e13b499d70792d3f3b1 (patch)
tree17265cdbcb8f8d0083f9b47591d1df5da8f733a3 /configure.ac
parent6d7ccaff8777345dfc7387c36c575548f1e44658 (diff)
Add OTF/TTF font support via freetype.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1e7da13..52146b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,4 +53,14 @@ AS_IF([test "MPG123_LIBDIR" = "x"], [
])
AC_SUBST([MPG123_LIBDIR])
+PKG_CHECK_MODULES([freetype], [freetype2])
+PKG_CHECK_VAR([FREETYPE_LIBDIR], [freetype2], [libdir])
+AC_MSG_CHECKING([freetype library path])
+AS_IF([test "FREETYPE_LIBDIR" = "x"], [
+ AC_MSG_FAILURE([Unable to identify freetype lib path.])
+], [
+ AC_MSG_RESULT([$FREETYPE_LIBDIR])
+])
+AC_SUBST([FREETYPE_LIBDIR])
+
AC_OUTPUT