3 [https://github.com/khaledhosny/ots/issues],
5 [https://github.com/khaledhosny/ots])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE([foreign subdir-objects])
11 AM_SILENT_RULES([yes])
16 PKG_PROG_PKG_CONFIG([0.20])
19 PKG_CHECK_MODULES(FREETYPE, freetype2, have_freetype=true, :)
20 if $have_freetype; then
21 AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library])
23 AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
26 AX_PTHREAD([have_pthread=true])
27 if $have_pthread; then
28 GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"
30 GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"
32 AC_SUBST([GTEST_CPPFLAGS])
35 AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <ApplicationServices/ApplicationServices.h>])
36 if $have_coretext; then
38 CORETEXT_LIBS="-framework ApplicationServices"
39 AC_DEFINE(HAVE_CORETEXT, 1, [Have Core Text framework])
41 AC_SUBST(CORETEXT_CFLAGS)
42 AC_SUBST(CORETEXT_LIBS)
43 AM_CONDITIONAL(HAVE_CORETEXT, $have_coretext)
45 AC_CONFIG_FILES([Makefile])