Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 1 | AC_PREREQ([2.64]) |
Behdad Esfahbod | 8c5f5e6 | 2012-06-17 14:58:59 -0400 | [diff] [blame] | 2 | AC_INIT([HarfBuzz], |
Behdad Esfahbod | ff2f814 | 2018-03-07 16:05:14 +0100 | [diff] [blame] | 3 | [1.7.6], |
ebraminio | 7c6937e | 2017-11-20 14:49:22 -0500 | [diff] [blame] | 4 | [https://github.com/harfbuzz/harfbuzz/issues/new], |
Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 5 | [harfbuzz], |
Behdad Esfahbod | 5b21eff | 2011-05-25 14:49:35 -0400 | [diff] [blame] | 6 | [http://harfbuzz.org/]) |
Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 7 | |
Behdad Esfahbod | c7afac0 | 2012-10-02 14:44:47 -0400 | [diff] [blame] | 8 | AC_CONFIG_MACRO_DIR([m4]) |
Behdad Esfahbod | 22ce096 | 2013-05-28 17:18:30 -0400 | [diff] [blame] | 9 | AC_CONFIG_SRCDIR([src/harfbuzz.pc.in]) |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 10 | AC_CONFIG_HEADERS([config.h]) |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 11 | |
Behdad Esfahbod | 504f913 | 2018-01-09 23:15:54 +0100 | [diff] [blame] | 12 | AM_INIT_AUTOMAKE([1.13.0 gnits tar-ustar dist-bzip2 no-dist-gzip -Wall no-define color-tests -Wno-portability]) |
Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 13 | AM_SILENT_RULES([yes]) |
Ebrahim Byagowi | f739979 | 2018-03-03 22:55:09 +0330 | [diff] [blame] | 14 | AX_CODE_COVERAGE |
Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 15 | |
Behdad Esfahbod | c62e41b | 2012-01-27 02:20:58 -0500 | [diff] [blame] | 16 | # Initialize libtool |
Behdad Esfahbod | 03adf38 | 2013-04-29 13:40:52 -0400 | [diff] [blame] | 17 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
Behdad Esfahbod | c62e41b | 2012-01-27 02:20:58 -0500 | [diff] [blame] | 18 | LT_PREREQ([2.2]) |
| 19 | LT_INIT([disable-static]) |
| 20 | |
Javier Jardón | 2abe126 | 2011-01-09 22:18:53 -0500 | [diff] [blame] | 21 | # Check for programs |
Behdad Esfahbod | 1181642 | 2016-10-26 16:04:30 +0200 | [diff] [blame] | 22 | AC_USE_SYSTEM_EXTENSIONS |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 23 | AC_PROG_CC |
Behdad Esfahbod | 94d32d1 | 2018-02-16 15:36:20 -0800 | [diff] [blame] | 24 | AC_PROG_CC_C99 |
Behdad Esfahbod | 0109816 | 2010-10-05 18:36:45 -0400 | [diff] [blame] | 25 | AM_PROG_CC_C_O |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 26 | AC_PROG_CXX |
Behdad Esfahbod | 22d8c76 | 2018-01-12 09:46:38 +0100 | [diff] [blame] | 27 | dnl AX_CXX_COMPILE_STDCXX(11, noext, optional) |
Behdad Esfahbod | 7201fdd | 2016-10-04 14:53:17 -0700 | [diff] [blame] | 28 | AC_SYS_LARGEFILE |
Behdad Esfahbod | c7afac0 | 2012-10-02 14:44:47 -0400 | [diff] [blame] | 29 | PKG_PROG_PKG_CONFIG([0.20]) |
Behdad Esfahbod | bb8ffb5 | 2014-03-04 13:03:51 -0800 | [diff] [blame] | 30 | AM_MISSING_PROG([RAGEL], [ragel]) |
| 31 | AM_MISSING_PROG([GIT], [git]) |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 32 | |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 33 | # Version |
Behdad Esfahbod | 329c157 | 2011-05-25 16:07:07 -0400 | [diff] [blame] | 34 | m4_define(hb_version_triplet,m4_split(AC_PACKAGE_VERSION,[[.]])) |
| 35 | m4_define(hb_version_major,m4_argn(1,hb_version_triplet)) |
| 36 | m4_define(hb_version_minor,m4_argn(2,hb_version_triplet)) |
| 37 | m4_define(hb_version_micro,m4_argn(3,hb_version_triplet)) |
| 38 | HB_VERSION_MAJOR=hb_version_major |
| 39 | HB_VERSION_MINOR=hb_version_minor |
| 40 | HB_VERSION_MICRO=hb_version_micro |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 41 | HB_VERSION=AC_PACKAGE_VERSION |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 42 | AC_SUBST(HB_VERSION_MAJOR) |
| 43 | AC_SUBST(HB_VERSION_MINOR) |
| 44 | AC_SUBST(HB_VERSION_MICRO) |
| 45 | AC_SUBST(HB_VERSION) |
| 46 | |
Behdad Esfahbod | 329c157 | 2011-05-25 16:07:07 -0400 | [diff] [blame] | 47 | # Libtool version |
| 48 | m4_define([hb_version_int], |
| 49 | m4_eval(hb_version_major*10000 + hb_version_minor*100 + hb_version_micro)) |
| 50 | m4_if(m4_eval(hb_version_minor % 2), [1], |
| 51 | dnl for unstable releases |
| 52 | [m4_define([hb_libtool_revision], 0)], |
| 53 | dnl for stable releases |
| 54 | [m4_define([hb_libtool_revision], hb_version_micro)]) |
| 55 | m4_define([hb_libtool_age], |
| 56 | m4_eval(hb_version_int - hb_libtool_revision)) |
| 57 | m4_define([hb_libtool_current], |
Behdad Esfahbod | 2604423 | 2015-07-26 23:39:10 +0200 | [diff] [blame] | 58 | m4_eval(hb_libtool_age)) |
Behdad Esfahbod | 329c157 | 2011-05-25 16:07:07 -0400 | [diff] [blame] | 59 | HB_LIBTOOL_VERSION_INFO=hb_libtool_current:hb_libtool_revision:hb_libtool_age |
| 60 | AC_SUBST(HB_LIBTOOL_VERSION_INFO) |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 61 | |
Khaled Hosny | 0b94d59 | 2018-02-12 16:45:36 +0200 | [diff] [blame] | 62 | AC_ARG_WITH([libstdc++], |
| 63 | [AS_HELP_STRING([--with-libstdc++=@<:@yes/no@:>@], |
| 64 | [Allow linking with libstdc++ @<:@default=no@:>@])], |
| 65 | [with_libstdcxx=$withval], |
| 66 | [with_libstdcxx=no]) |
| 67 | AM_CONDITIONAL(WITH_LIBSTDCXX, [test "x$with_libstdcxx" = "xyes"]) |
Ebrahim Byagowi | 2efc896 | 2018-02-12 12:00:07 +0330 | [diff] [blame] | 68 | |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 69 | # Documentation |
| 70 | have_gtk_doc=false |
| 71 | m4_ifdef([GTK_DOC_CHECK], [ |
Behdad Esfahbod | 79d754e | 2013-08-28 13:43:35 -0400 | [diff] [blame] | 72 | GTK_DOC_CHECK([1.15],[--flavour no-tmpl]) |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 73 | if test "x$enable_gtk_doc" = xyes; then |
| 74 | have_gtk_doc=true |
| 75 | fi |
| 76 | ], [ |
| 77 | AM_CONDITIONAL([ENABLE_GTK_DOC], false) |
| 78 | ]) |
Behdad Esfahbod | b9b10ad | 2011-09-13 13:30:39 -0400 | [diff] [blame] | 79 | |
Behdad Esfahbod | e916447 | 2018-02-18 12:41:24 -0800 | [diff] [blame] | 80 | # Functions, and headers |
Chun-wei Fan | 89dbabf | 2018-03-12 13:27:38 +0800 | [diff] [blame] | 81 | |
Behdad Esfahbod | 127096e | 2018-03-15 13:23:27 -0700 | [diff] [blame] | 82 | AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l) |
Chun-wei Fan | 89dbabf | 2018-03-12 13:27:38 +0800 | [diff] [blame] | 83 | |
| 84 | save_libs="$LIBS" |
| 85 | LIBS="$LIBS -lm" |
| 86 | AC_CHECK_FUNCS([round], ,[AC_CHECK_DECLS([round], , ,[#include <math.h>])]) |
| 87 | LIBS="$save_libs" |
| 88 | |
| 89 | AC_CHECK_HEADERS(unistd.h sys/mman.h xlocale.h stdbool.h) |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 90 | |
Behdad Esfahbod | 174e3fe | 2011-05-05 19:37:53 -0400 | [diff] [blame] | 91 | # Compiler flags |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 92 | AC_CANONICAL_HOST |
Behdad Esfahbod | 824d00d | 2014-06-09 14:17:33 -0400 | [diff] [blame] | 93 | AC_CHECK_ALIGNOF([struct{char;}]) |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 94 | if test "x$GCC" = "xyes"; then |
Behdad Esfahbod | 5b7f389 | 2011-04-27 15:10:12 -0400 | [diff] [blame] | 95 | |
Behdad Esfahbod | 71cef14 | 2011-05-06 19:30:59 -0400 | [diff] [blame] | 96 | # Make symbols link locally |
Ebrahim Byagowi | 7b4333b | 2018-03-16 22:45:09 +0330 | [diff] [blame] | 97 | AX_CHECK_LINK_FLAG([[-Bsymbolic-functions]], [LDFLAGS="$LDFLAGS -Bsymbolic-functions"]) |
Behdad Esfahbod | 71cef14 | 2011-05-06 19:30:59 -0400 | [diff] [blame] | 98 | |
Behdad Esfahbod | 11c4ad4 | 2012-07-13 11:29:31 -0400 | [diff] [blame] | 99 | # Assorted warnings |
| 100 | CXXFLAGS="$CXXFLAGS -Wcast-align" |
| 101 | |
Behdad Esfahbod | 5b7f389 | 2011-04-27 15:10:12 -0400 | [diff] [blame] | 102 | case "$host" in |
Behdad Esfahbod | 560d68a | 2012-08-08 17:16:01 -0400 | [diff] [blame] | 103 | *-*-mingw*) |
Behdad Esfahbod | e3320ec | 2012-08-06 11:44:10 -0700 | [diff] [blame] | 104 | ;; |
| 105 | *) |
| 106 | # Hide inline methods |
| 107 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 108 | ;; |
| 109 | esac |
| 110 | |
| 111 | case "$host" in |
Behdad Esfahbod | 5b7f389 | 2011-04-27 15:10:12 -0400 | [diff] [blame] | 112 | arm-*-*) |
Behdad Esfahbod | 824d00d | 2014-06-09 14:17:33 -0400 | [diff] [blame] | 113 | if test "x$ac_cv_alignof_struct_char__" != x1; then |
Behdad Esfahbod | 3f38c11 | 2014-06-06 16:03:40 -0400 | [diff] [blame] | 114 | # Request byte alignment |
| 115 | CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8" |
| 116 | fi |
Behdad Esfahbod | 5b7f389 | 2011-04-27 15:10:12 -0400 | [diff] [blame] | 117 | ;; |
| 118 | esac |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 119 | fi |
| 120 | |
Behdad Esfahbod | e784632 | 2013-01-14 00:27:21 -0600 | [diff] [blame] | 121 | AM_CONDITIONAL(HAVE_GCC, test "x$GCC" = "xyes") |
| 122 | |
Behdad Esfahbod | 0e292eb | 2012-10-02 14:59:00 -0400 | [diff] [blame] | 123 | hb_os_win32=no |
Behdad Esfahbod | 560d68a | 2012-08-08 17:16:01 -0400 | [diff] [blame] | 124 | AC_MSG_CHECKING([for native Win32]) |
| 125 | case "$host" in |
| 126 | *-*-mingw*) |
| 127 | hb_os_win32=yes |
| 128 | ;; |
Behdad Esfahbod | 560d68a | 2012-08-08 17:16:01 -0400 | [diff] [blame] | 129 | esac |
| 130 | AC_MSG_RESULT([$hb_os_win32]) |
| 131 | AM_CONDITIONAL(OS_WIN32, test "$hb_os_win32" = "yes") |
| 132 | |
Behdad Esfahbod | 66efe89 | 2012-10-02 14:55:32 -0400 | [diff] [blame] | 133 | have_pthread=false |
Behdad Esfahbod | 0e292eb | 2012-10-02 14:59:00 -0400 | [diff] [blame] | 134 | if test "$hb_os_win32" = no; then |
| 135 | AX_PTHREAD([have_pthread=true]) |
| 136 | fi |
Behdad Esfahbod | 66efe89 | 2012-10-02 14:55:32 -0400 | [diff] [blame] | 137 | if $have_pthread; then |
| 138 | AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads]) |
| 139 | fi |
| 140 | AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread) |
| 141 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 142 | dnl ========================================================================== |
| 143 | |
Behdad Esfahbod | 68c75b4 | 2012-06-05 19:55:46 -0400 | [diff] [blame] | 144 | have_ot=true |
| 145 | if $have_ot; then |
| 146 | AC_DEFINE(HAVE_OT, 1, [Have native OpenType Layout backend]) |
| 147 | fi |
| 148 | AM_CONDITIONAL(HAVE_OT, $have_ot) |
| 149 | |
Konstantin Ritt | c9522de | 2014-01-22 21:07:13 +0200 | [diff] [blame] | 150 | have_fallback=true |
| 151 | if $have_fallback; then |
| 152 | AC_DEFINE(HAVE_FALLBACK, 1, [Have simple TrueType Layout backend]) |
| 153 | fi |
| 154 | AM_CONDITIONAL(HAVE_FALLBACK, $have_fallback) |
| 155 | |
Behdad Esfahbod | 68c75b4 | 2012-06-05 19:55:46 -0400 | [diff] [blame] | 156 | dnl =========================================================================== |
| 157 | |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 158 | AC_ARG_WITH(glib, |
| 159 | [AS_HELP_STRING([--with-glib=@<:@yes/no/auto@:>@], |
Behdad Esfahbod | 5e25eb7 | 2013-05-27 19:30:48 -0400 | [diff] [blame] | 160 | [Use glib @<:@default=auto@:>@])],, |
| 161 | [with_glib=auto]) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 162 | have_glib=false |
Mike Hommey | 1c98ff8 | 2016-09-30 18:15:37 +0900 | [diff] [blame] | 163 | GLIB_DEPS="glib-2.0 >= 2.19.1" |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 164 | AC_SUBST(GLIB_DEPS) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 165 | if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 166 | PKG_CHECK_MODULES(GLIB, $GLIB_DEPS, have_glib=true, :) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 167 | fi |
| 168 | if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then |
| 169 | AC_MSG_ERROR([glib support requested but glib-2.0 not found]) |
| 170 | fi |
Behdad Esfahbod | f94cf6b | 2009-11-02 18:55:19 -0500 | [diff] [blame] | 171 | if $have_glib; then |
Behdad Esfahbod | d94647e | 2009-11-03 16:35:10 -0500 | [diff] [blame] | 172 | AC_DEFINE(HAVE_GLIB, 1, [Have glib2 library]) |
Behdad Esfahbod | f94cf6b | 2009-11-02 18:55:19 -0500 | [diff] [blame] | 173 | fi |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 174 | AM_CONDITIONAL(HAVE_GLIB, $have_glib) |
| 175 | |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 176 | dnl =========================================================================== |
| 177 | |
Behdad Esfahbod | 71439a8 | 2013-08-26 20:56:58 -0400 | [diff] [blame] | 178 | AC_ARG_WITH(gobject, |
| 179 | [AS_HELP_STRING([--with-gobject=@<:@yes/no/auto@:>@], |
Behdad Esfahbod | 601126a | 2017-11-03 20:34:11 -0400 | [diff] [blame] | 180 | [Use gobject @<:@default=no@:>@])],, |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 181 | [with_gobject=no]) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 182 | have_gobject=false |
Behdad Esfahbod | 71439a8 | 2013-08-26 20:56:58 -0400 | [diff] [blame] | 183 | if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then |
| 184 | PKG_CHECK_MODULES(GOBJECT, gobject-2.0 glib-2.0, have_gobject=true, :) |
| 185 | fi |
| 186 | if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then |
| 187 | AC_MSG_ERROR([gobject support requested but gobject-2.0 / glib-2.0 not found]) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 188 | fi |
Behdad Esfahbod | c214cff | 2011-08-14 15:17:16 +0200 | [diff] [blame] | 189 | if $have_gobject; then |
| 190 | AC_DEFINE(HAVE_GOBJECT, 1, [Have gobject2 library]) |
Behdad Esfahbod | d75333f | 2011-08-19 19:59:24 +0200 | [diff] [blame] | 191 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
| 192 | AC_SUBST(GLIB_MKENUMS) |
Behdad Esfahbod | c214cff | 2011-08-14 15:17:16 +0200 | [diff] [blame] | 193 | fi |
| 194 | AM_CONDITIONAL(HAVE_GOBJECT, $have_gobject) |
Ben Boeckel | d38f37b | 2018-02-23 16:55:53 -0500 | [diff] [blame] | 195 | AC_SUBST(have_gobject) |
Behdad Esfahbod | c214cff | 2011-08-14 15:17:16 +0200 | [diff] [blame] | 196 | |
Behdad Esfahbod | ca65326 | 2013-05-27 19:09:50 -0400 | [diff] [blame] | 197 | dnl =========================================================================== |
| 198 | |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 199 | |
| 200 | dnl =========================================================================== |
| 201 | # Gobject-Introspection |
| 202 | have_introspection=false |
| 203 | m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [ |
| 204 | if $have_gobject; then |
Behdad Esfahbod | 50a0053 | 2014-04-10 16:03:29 -0700 | [diff] [blame] | 205 | GOBJECT_INTROSPECTION_CHECK([1.34.0]) |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 206 | if test "x$found_introspection" = xyes; then |
| 207 | have_introspection=true |
| 208 | fi |
| 209 | else |
| 210 | AM_CONDITIONAL([HAVE_INTROSPECTION], false) |
| 211 | fi |
| 212 | ], [ |
| 213 | AM_CONDITIONAL([HAVE_INTROSPECTION], false) |
| 214 | ]) |
| 215 | |
Behdad Esfahbod | 174e3fe | 2011-05-05 19:37:53 -0400 | [diff] [blame] | 216 | dnl ========================================================================== |
| 217 | |
Behdad Esfahbod | f8087ff | 2013-05-27 19:43:48 -0400 | [diff] [blame] | 218 | AC_ARG_WITH(cairo, |
| 219 | [AS_HELP_STRING([--with-cairo=@<:@yes/no/auto@:>@], |
| 220 | [Use cairo @<:@default=auto@:>@])],, |
| 221 | [with_cairo=auto]) |
| 222 | have_cairo=false |
| 223 | if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then |
Behdad Esfahbod | 270cfd7 | 2013-06-06 18:57:15 -0400 | [diff] [blame] | 224 | PKG_CHECK_MODULES(CAIRO, cairo >= 1.8.0, have_cairo=true, :) |
Behdad Esfahbod | f8087ff | 2013-05-27 19:43:48 -0400 | [diff] [blame] | 225 | fi |
| 226 | if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then |
| 227 | AC_MSG_ERROR([cairo support requested but not found]) |
| 228 | fi |
Behdad Esfahbod | 5353bf4 | 2011-02-22 18:06:19 -0500 | [diff] [blame] | 229 | if $have_cairo; then |
| 230 | AC_DEFINE(HAVE_CAIRO, 1, [Have cairo graphics library]) |
| 231 | fi |
| 232 | AM_CONDITIONAL(HAVE_CAIRO, $have_cairo) |
| 233 | |
Behdad Esfahbod | f8087ff | 2013-05-27 19:43:48 -0400 | [diff] [blame] | 234 | have_cairo_ft=false |
| 235 | if $have_cairo; then |
Behdad Esfahbod | 270cfd7 | 2013-06-06 18:57:15 -0400 | [diff] [blame] | 236 | PKG_CHECK_MODULES(CAIRO_FT, cairo-ft, have_cairo_ft=true, :) |
Behdad Esfahbod | f8087ff | 2013-05-27 19:43:48 -0400 | [diff] [blame] | 237 | fi |
Behdad Esfahbod | 5353bf4 | 2011-02-22 18:06:19 -0500 | [diff] [blame] | 238 | if $have_cairo_ft; then |
| 239 | AC_DEFINE(HAVE_CAIRO_FT, 1, [Have cairo-ft support in cairo graphics library]) |
| 240 | fi |
| 241 | AM_CONDITIONAL(HAVE_CAIRO_FT, $have_cairo_ft) |
| 242 | |
Behdad Esfahbod | 174e3fe | 2011-05-05 19:37:53 -0400 | [diff] [blame] | 243 | dnl ========================================================================== |
| 244 | |
Behdad Esfahbod | fe97b65 | 2014-08-06 16:49:51 -0400 | [diff] [blame] | 245 | AC_ARG_WITH(fontconfig, |
| 246 | [AS_HELP_STRING([--with-fontconfig=@<:@yes/no/auto@:>@], |
| 247 | [Use fontconfig @<:@default=auto@:>@])],, |
| 248 | [with_fontconfig=auto]) |
| 249 | have_fontconfig=false |
| 250 | if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then |
| 251 | PKG_CHECK_MODULES(FONTCONFIG, fontconfig, have_fontconfig=true, :) |
| 252 | fi |
| 253 | if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then |
| 254 | AC_MSG_ERROR([fontconfig support requested but not found]) |
| 255 | fi |
| 256 | if $have_fontconfig; then |
| 257 | AC_DEFINE(HAVE_FONTCONFIG, 1, [Have fontconfig library]) |
| 258 | fi |
| 259 | AM_CONDITIONAL(HAVE_FONTCONFIG, $have_fontconfig) |
| 260 | |
| 261 | dnl ========================================================================== |
| 262 | |
Behdad Esfahbod | 932b747 | 2013-05-27 19:04:40 -0400 | [diff] [blame] | 263 | AC_ARG_WITH(icu, |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 264 | [AS_HELP_STRING([--with-icu=@<:@yes/no/builtin/auto@:>@], |
Behdad Esfahbod | 932b747 | 2013-05-27 19:04:40 -0400 | [diff] [blame] | 265 | [Use ICU @<:@default=auto@:>@])],, |
| 266 | [with_icu=auto]) |
| 267 | have_icu=false |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 268 | if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then |
Behdad Esfahbod | 570bccc | 2013-06-10 13:56:51 -0400 | [diff] [blame] | 269 | PKG_CHECK_MODULES(ICU, icu-uc, have_icu=true, :) |
Behdad Esfahbod | 932b747 | 2013-05-27 19:04:40 -0400 | [diff] [blame] | 270 | |
| 271 | dnl Fallback to icu-config if ICU pkg-config files could not be found |
| 272 | if test "$have_icu" != "true"; then |
| 273 | AC_CHECK_TOOL(ICU_CONFIG, icu-config, no) |
| 274 | AC_MSG_CHECKING([for ICU by using icu-config fallback]) |
| 275 | if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then |
| 276 | have_icu=true |
| 277 | # We don't use --cflags as this gives us a lot of things that we don't |
| 278 | # necessarily want, like debugging and optimization flags |
| 279 | # See man (1) icu-config for more info. |
| 280 | ICU_CFLAGS=`$ICU_CONFIG --cppflags` |
| 281 | ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly` |
| 282 | AC_SUBST(ICU_CFLAGS) |
| 283 | AC_SUBST(ICU_LIBS) |
| 284 | AC_MSG_RESULT([yes]) |
| 285 | else |
| 286 | AC_MSG_RESULT([no]) |
| 287 | fi |
Behdad Esfahbod | 14cfab5 | 2013-03-11 19:53:44 -0400 | [diff] [blame] | 288 | fi |
| 289 | fi |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 290 | if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then |
Behdad Esfahbod | 932b747 | 2013-05-27 19:04:40 -0400 | [diff] [blame] | 291 | AC_MSG_ERROR([icu support requested but icu-uc not found]) |
| 292 | fi |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 293 | |
Behdad Esfahbod | d94647e | 2009-11-03 16:35:10 -0500 | [diff] [blame] | 294 | if $have_icu; then |
Behdad Esfahbod | e5dbf39 | 2013-01-07 17:34:24 -0600 | [diff] [blame] | 295 | CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`" |
Behdad Esfahbod | d94647e | 2009-11-03 16:35:10 -0500 | [diff] [blame] | 296 | AC_DEFINE(HAVE_ICU, 1, [Have ICU library]) |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 297 | if test "x$with_icu" = "xbuiltin"; then |
| 298 | AC_DEFINE(HAVE_ICU_BUILTIN, 1, [Use hb-icu Unicode callbacks]) |
| 299 | fi |
Behdad Esfahbod | d94647e | 2009-11-03 16:35:10 -0500 | [diff] [blame] | 300 | fi |
| 301 | AM_CONDITIONAL(HAVE_ICU, $have_icu) |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 302 | AM_CONDITIONAL(HAVE_ICU_BUILTIN, $have_icu && test "x$with_icu" = "xbuiltin") |
| 303 | |
| 304 | dnl =========================================================================== |
| 305 | |
Behdad Esfahbod | 53543f8 | 2017-01-05 20:12:32 -0800 | [diff] [blame] | 306 | AC_ARG_WITH(ucdn, |
| 307 | [AS_HELP_STRING([--with-ucdn=@<:@yes/no@:>@], |
| 308 | [Use builtin UCDN library @<:@default=yes@:>@])],, |
| 309 | [with_ucdn=yes]) |
| 310 | have_ucdn=false |
| 311 | if test "x$with_ucdn" = "xyes"; then |
| 312 | have_ucdn=true |
Kal Conley | b424b6c | 2016-02-26 00:35:15 +0100 | [diff] [blame] | 313 | fi |
| 314 | if $have_ucdn; then |
| 315 | AC_DEFINE(HAVE_UCDN, 1, [Have UCDN Unicode functions]) |
| 316 | fi |
| 317 | AM_CONDITIONAL(HAVE_UCDN, $have_ucdn) |
Behdad Esfahbod | d94647e | 2009-11-03 16:35:10 -0500 | [diff] [blame] | 318 | |
Behdad Esfahbod | 4637739 | 2011-08-24 02:12:05 +0200 | [diff] [blame] | 319 | dnl ========================================================================== |
Behdad Esfahbod | 1f49cf3 | 2011-08-24 01:29:25 +0200 | [diff] [blame] | 320 | |
Behdad Esfahbod | 5a78d23 | 2013-05-27 18:47:58 -0400 | [diff] [blame] | 321 | AC_ARG_WITH(graphite2, |
| 322 | [AS_HELP_STRING([--with-graphite2=@<:@yes/no/auto@:>@], |
| 323 | [Use the graphite2 library @<:@default=no@:>@])],, |
| 324 | [with_graphite2=no]) |
| 325 | have_graphite2=false |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 326 | GRAPHITE2_DEPS="graphite2" |
| 327 | AC_SUBST(GRAPHITE2_DEPS) |
Behdad Esfahbod | 5a78d23 | 2013-05-27 18:47:58 -0400 | [diff] [blame] | 328 | if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 329 | PKG_CHECK_MODULES(GRAPHITE2, $GRAPHITE2_DEPS, have_graphite2=true, :) |
Phil Krylov | f16bf6c | 2016-09-27 12:38:49 +0200 | [diff] [blame] | 330 | if test "x$have_graphite2" != "xtrue"; then |
| 331 | # If pkg-config is not available, graphite2 can still be there |
| 332 | ac_save_CFLAGS="$CFLAGS" |
| 333 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 334 | CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS" |
| 335 | CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS" |
| 336 | AC_CHECK_HEADER(graphite2/Segment.h, have_graphite2=true, :) |
| 337 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 338 | CFLAGS="$ac_save_CFLAGS" |
| 339 | fi |
Behdad Esfahbod | 1f49cf3 | 2011-08-24 01:29:25 +0200 | [diff] [blame] | 340 | fi |
Behdad Esfahbod | 5a78d23 | 2013-05-27 18:47:58 -0400 | [diff] [blame] | 341 | if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then |
| 342 | AC_MSG_ERROR([graphite2 support requested but libgraphite2 not found]) |
| 343 | fi |
| 344 | if $have_graphite2; then |
Behdad Esfahbod | 9a3b748 | 2014-12-28 17:27:39 -0800 | [diff] [blame] | 345 | AC_DEFINE(HAVE_GRAPHITE2, 1, [Have Graphite2 library]) |
Behdad Esfahbod | 5a78d23 | 2013-05-27 18:47:58 -0400 | [diff] [blame] | 346 | fi |
| 347 | AM_CONDITIONAL(HAVE_GRAPHITE2, $have_graphite2) |
Behdad Esfahbod | 4637739 | 2011-08-24 02:12:05 +0200 | [diff] [blame] | 348 | |
| 349 | dnl ========================================================================== |
Behdad Esfahbod | 174e3fe | 2011-05-05 19:37:53 -0400 | [diff] [blame] | 350 | |
Behdad Esfahbod | 82eddfe | 2013-05-27 19:33:36 -0400 | [diff] [blame] | 351 | AC_ARG_WITH(freetype, |
| 352 | [AS_HELP_STRING([--with-freetype=@<:@yes/no/auto@:>@], |
| 353 | [Use the FreeType library @<:@default=auto@:>@])],, |
| 354 | [with_freetype=auto]) |
| 355 | have_freetype=false |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 356 | FREETYPE_DEPS="freetype2 >= 12.0.6" |
| 357 | AC_SUBST(FREETYPE_DEPS) |
Behdad Esfahbod | 82eddfe | 2013-05-27 19:33:36 -0400 | [diff] [blame] | 358 | if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then |
Behdad Esfahbod | 350f3a0 | 2014-12-28 17:44:26 -0800 | [diff] [blame] | 359 | # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2 |
Behdad Esfahbod | 539a610 | 2015-08-11 12:58:49 +0200 | [diff] [blame] | 360 | PKG_CHECK_MODULES(FREETYPE, $FREETYPE_DEPS, have_freetype=true, :) |
Behdad Esfahbod | 82eddfe | 2013-05-27 19:33:36 -0400 | [diff] [blame] | 361 | fi |
| 362 | if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then |
| 363 | AC_MSG_ERROR([FreeType support requested but libfreetype2 not found]) |
| 364 | fi |
Behdad Esfahbod | f94cf6b | 2009-11-02 18:55:19 -0500 | [diff] [blame] | 365 | if $have_freetype; then |
| 366 | AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library]) |
Behdad Esfahbod | 42c8142 | 2016-09-13 23:49:46 +0200 | [diff] [blame] | 367 | save_libs=$LIBS |
| 368 | LIBS="$LIBS $FREETYPE_LIBS" |
Behdad Esfahbod | d0f3e7f | 2018-02-10 12:45:28 -0600 | [diff] [blame] | 369 | AC_CHECK_FUNCS(FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var) |
Behdad Esfahbod | 42c8142 | 2016-09-13 23:49:46 +0200 | [diff] [blame] | 370 | LIBS=$save_libs |
Behdad Esfahbod | f94cf6b | 2009-11-02 18:55:19 -0500 | [diff] [blame] | 371 | fi |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 372 | AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype) |
| 373 | |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 374 | dnl =========================================================================== |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 375 | |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 376 | AC_ARG_WITH(uniscribe, |
| 377 | [AS_HELP_STRING([--with-uniscribe=@<:@yes/no/auto@:>@], |
| 378 | [Use the Uniscribe library @<:@default=no@:>@])],, |
| 379 | [with_uniscribe=no]) |
| 380 | have_uniscribe=false |
| 381 | if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then |
Behdad Esfahbod | 2a17f95 | 2013-05-28 13:10:51 -0400 | [diff] [blame] | 382 | AC_CHECK_HEADERS(usp10.h windows.h, have_uniscribe=true) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 383 | fi |
| 384 | if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then |
| 385 | AC_MSG_ERROR([uniscribe support requested but not found]) |
| 386 | fi |
Behdad Esfahbod | 0fbb2dc | 2011-08-03 19:55:04 -0400 | [diff] [blame] | 387 | if $have_uniscribe; then |
| 388 | UNISCRIBE_CFLAGS= |
Behdad Esfahbod | 8ac2e88 | 2013-07-21 16:06:49 -0400 | [diff] [blame] | 389 | UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4" |
Behdad Esfahbod | 0fbb2dc | 2011-08-03 19:55:04 -0400 | [diff] [blame] | 390 | AC_SUBST(UNISCRIBE_CFLAGS) |
| 391 | AC_SUBST(UNISCRIBE_LIBS) |
Behdad Esfahbod | ab2af17 | 2013-05-27 19:27:43 -0400 | [diff] [blame] | 392 | AC_DEFINE(HAVE_UNISCRIBE, 1, [Have Uniscribe library]) |
Behdad Esfahbod | 0fbb2dc | 2011-08-03 19:55:04 -0400 | [diff] [blame] | 393 | fi |
| 394 | AM_CONDITIONAL(HAVE_UNISCRIBE, $have_uniscribe) |
| 395 | |
Behdad Esfahbod | 04bc1ee | 2012-06-05 20:16:56 -0400 | [diff] [blame] | 396 | dnl =========================================================================== |
| 397 | |
Chun-wei Fan | c679285 | 2016-02-03 18:31:23 +0800 | [diff] [blame] | 398 | AC_ARG_WITH(directwrite, |
| 399 | [AS_HELP_STRING([--with-directwrite=@<:@yes/no/auto@:>@], |
| 400 | [Use the DirectWrite library (experimental) @<:@default=no@:>@])],, |
| 401 | [with_directwrite=no]) |
| 402 | have_directwrite=false |
| 403 | AC_LANG_PUSH([C++]) |
| 404 | if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then |
| 405 | AC_CHECK_HEADERS(dwrite.h, have_directwrite=true) |
| 406 | fi |
| 407 | AC_LANG_POP([C++]) |
| 408 | if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then |
| 409 | AC_MSG_ERROR([directwrite support requested but not found]) |
| 410 | fi |
| 411 | if $have_directwrite; then |
| 412 | DIRECTWRITE_CXXFLAGS= |
| 413 | DIRECTWRITE_LIBS="-ldwrite" |
| 414 | AC_SUBST(DIRECTWRITE_CXXFLAGS) |
| 415 | AC_SUBST(DIRECTWRITE_LIBS) |
| 416 | AC_DEFINE(HAVE_DIRECTWRITE, 1, [Have DirectWrite library]) |
| 417 | fi |
| 418 | AM_CONDITIONAL(HAVE_DIRECTWRITE, $have_directwrite) |
| 419 | |
| 420 | dnl =========================================================================== |
| 421 | |
Behdad Esfahbod | eb63e78 | 2013-05-27 19:29:09 -0400 | [diff] [blame] | 422 | AC_ARG_WITH(coretext, |
| 423 | [AS_HELP_STRING([--with-coretext=@<:@yes/no/auto@:>@], |
| 424 | [Use CoreText @<:@default=no@:>@])],, |
| 425 | [with_coretext=no]) |
| 426 | have_coretext=false |
| 427 | if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then |
| 428 | AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <ApplicationServices/ApplicationServices.h>]) |
Konstantin Ritt | b96af03 | 2014-03-20 16:01:30 +0200 | [diff] [blame] | 429 | |
| 430 | if $have_coretext; then |
| 431 | CORETEXT_CFLAGS= |
| 432 | CORETEXT_LIBS="-framework ApplicationServices" |
| 433 | AC_SUBST(CORETEXT_CFLAGS) |
| 434 | AC_SUBST(CORETEXT_LIBS) |
| 435 | else |
| 436 | # On iOS CoreText and CoreGraphics are stand-alone frameworks |
| 437 | if test "x$have_coretext" != "xtrue"; then |
Behdad Esfahbod | 331c46c | 2016-10-11 13:45:22 -0700 | [diff] [blame] | 438 | # Check for a different symbol to avoid getting cached result. |
| 439 | AC_CHECK_TYPE(CTRunRef, have_coretext=true,, [#include <CoreText/CoreText.h>]) |
Konstantin Ritt | b96af03 | 2014-03-20 16:01:30 +0200 | [diff] [blame] | 440 | fi |
| 441 | |
| 442 | if $have_coretext; then |
| 443 | CORETEXT_CFLAGS= |
Romain Ouabdelkader | 3db1d34 | 2017-12-21 14:39:34 +0100 | [diff] [blame] | 444 | CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation" |
Konstantin Ritt | b96af03 | 2014-03-20 16:01:30 +0200 | [diff] [blame] | 445 | AC_SUBST(CORETEXT_CFLAGS) |
| 446 | AC_SUBST(CORETEXT_LIBS) |
| 447 | fi |
| 448 | fi |
Behdad Esfahbod | eb63e78 | 2013-05-27 19:29:09 -0400 | [diff] [blame] | 449 | fi |
| 450 | if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then |
| 451 | AC_MSG_ERROR([CoreText support requested but libcoretext not found]) |
| 452 | fi |
Jonathan Kew | aa6d849 | 2012-07-24 15:52:32 -0400 | [diff] [blame] | 453 | if $have_coretext; then |
Jonathan Kew | aa6d849 | 2012-07-24 15:52:32 -0400 | [diff] [blame] | 454 | AC_DEFINE(HAVE_CORETEXT, 1, [Have Core Text backend]) |
| 455 | fi |
| 456 | AM_CONDITIONAL(HAVE_CORETEXT, $have_coretext) |
| 457 | |
| 458 | dnl =========================================================================== |
| 459 | |
Behdad Esfahbod | 04bc1ee | 2012-06-05 20:16:56 -0400 | [diff] [blame] | 460 | AC_CACHE_CHECK([for Intel atomic primitives], hb_cv_have_intel_atomic_primitives, [ |
| 461 | hb_cv_have_intel_atomic_primitives=false |
Behdad Esfahbod | 12f5c0a | 2012-06-26 11:16:13 -0400 | [diff] [blame] | 462 | AC_TRY_LINK([ |
Behdad Esfahbod | 04bc1ee | 2012-06-05 20:16:56 -0400 | [diff] [blame] | 463 | void memory_barrier (void) { __sync_synchronize (); } |
Behdad Esfahbod | 12f5c0a | 2012-06-26 11:16:13 -0400 | [diff] [blame] | 464 | int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); } |
| 465 | int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); } |
| 466 | void mutex_unlock (int *m) { __sync_lock_release (m); } |
| 467 | ], [], hb_cv_have_intel_atomic_primitives=true |
Behdad Esfahbod | 04bc1ee | 2012-06-05 20:16:56 -0400 | [diff] [blame] | 468 | ) |
| 469 | ]) |
| 470 | if $hb_cv_have_intel_atomic_primitives; then |
| 471 | AC_DEFINE(HAVE_INTEL_ATOMIC_PRIMITIVES, 1, [Have Intel __sync_* atomic primitives]) |
| 472 | fi |
| 473 | |
| 474 | dnl =========================================================================== |
| 475 | |
Behdad Esfahbod | 2dcb333 | 2013-01-10 01:17:59 -0600 | [diff] [blame] | 476 | AC_CACHE_CHECK([for Solaris atomic operations], hb_cv_have_solaris_atomic_ops, [ |
| 477 | hb_cv_have_solaris_atomic_ops=false |
| 478 | AC_TRY_LINK([ |
| 479 | #include <atomic.h> |
| 480 | /* This requires Solaris Studio 12.2 or newer: */ |
| 481 | #include <mbarrier.h> |
| 482 | void memory_barrier (void) { __machine_rw_barrier (); } |
| 483 | int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); } |
| 484 | void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); } |
| 485 | ], [], hb_cv_have_solaris_atomic_ops=true |
| 486 | ) |
| 487 | ]) |
| 488 | if $hb_cv_have_solaris_atomic_ops; then |
| 489 | AC_DEFINE(HAVE_SOLARIS_ATOMIC_OPS, 1, [Have Solaris __machine_*_barrier and atomic_* operations]) |
| 490 | fi |
| 491 | |
| 492 | if test "$os_win32" = no && ! $have_pthread; then |
| 493 | AC_CHECK_HEADERS(sched.h) |
| 494 | AC_SEARCH_LIBS(sched_yield,rt,AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield])) |
| 495 | fi |
| 496 | |
| 497 | dnl =========================================================================== |
| 498 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 499 | AC_CONFIG_FILES([ |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 500 | Makefile |
| 501 | src/Makefile |
Behdad Esfahbod | c78f448 | 2011-05-05 21:31:04 -0400 | [diff] [blame] | 502 | src/hb-version.h |
Ben Boeckel | d38f37b | 2018-02-23 16:55:53 -0500 | [diff] [blame] | 503 | src/harfbuzz-config.cmake |
Behdad Esfahbod | 3f33f0d | 2012-10-02 16:03:18 -0400 | [diff] [blame] | 504 | src/hb-ucdn/Makefile |
Behdad Esfahbod | 511a136 | 2011-08-09 15:03:00 +0200 | [diff] [blame] | 505 | util/Makefile |
Behdad Esfahbod | bbdeff5 | 2011-04-07 16:05:07 -0400 | [diff] [blame] | 506 | test/Makefile |
Behdad Esfahbod | 4d6dafd | 2012-01-19 14:52:02 -0500 | [diff] [blame] | 507 | test/api/Makefile |
Behdad Esfahbod | 1930018 | 2015-11-05 23:08:50 -0800 | [diff] [blame] | 508 | test/fuzzing/Makefile |
Behdad Esfahbod | d4de562 | 2012-01-19 15:21:04 -0500 | [diff] [blame] | 509 | test/shaping/Makefile |
Behdad Esfahbod | 6db0b17 | 2018-01-10 05:40:43 +0100 | [diff] [blame] | 510 | test/shaping/data/Makefile |
| 511 | test/shaping/data/in-house/Makefile |
| 512 | test/shaping/data/text-rendering-tests/Makefile |
Garret Rieger | 0853260 | 2018-01-29 13:30:02 -0800 | [diff] [blame] | 513 | test/subset/Makefile |
| 514 | test/subset/data/Makefile |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 515 | docs/Makefile |
Behdad Esfahbod | 5783e05 | 2015-08-31 19:18:10 +0100 | [diff] [blame] | 516 | docs/version.xml |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 517 | ]) |
| 518 | |
| 519 | AC_OUTPUT |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 520 | |
| 521 | AC_MSG_NOTICE([ |
| 522 | |
| 523 | Build configuration: |
| 524 | |
| 525 | Unicode callbacks (you want at least one): |
Behdad Esfahbod | 53543f8 | 2017-01-05 20:12:32 -0800 | [diff] [blame] | 526 | Builtin (UCDN): ${have_ucdn} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 527 | Glib: ${have_glib} |
| 528 | ICU: ${have_icu} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 529 | |
Behdad Esfahbod | fcb8be1 | 2018-02-04 12:38:18 -0500 | [diff] [blame] | 530 | Font callbacks (the more the merrier): |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 531 | FreeType: ${have_freetype} |
| 532 | |
| 533 | Tools used for command-line utilities: |
| 534 | Cairo: ${have_cairo} |
Behdad Esfahbod | fe97b65 | 2014-08-06 16:49:51 -0400 | [diff] [blame] | 535 | Fontconfig: ${have_fontconfig} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 536 | |
Behdad Esfahbod | fcb8be1 | 2018-02-04 12:38:18 -0500 | [diff] [blame] | 537 | Additional shapers (the more the merrier): |
Behdad Esfahbod | 5a78d23 | 2013-05-27 18:47:58 -0400 | [diff] [blame] | 538 | Graphite2: ${have_graphite2} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 539 | |
Behdad Esfahbod | ac1b723 | 2013-08-30 19:32:10 -0400 | [diff] [blame] | 540 | Platform shapers (not normally needed): |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 541 | CoreText: ${have_coretext} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 542 | Uniscribe: ${have_uniscribe} |
Chun-wei Fan | c679285 | 2016-02-03 18:31:23 +0800 | [diff] [blame] | 543 | DirectWrite: ${have_directwrite} |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 544 | |
Behdad Esfahbod | 23027f7 | 2013-08-22 19:03:21 -0400 | [diff] [blame] | 545 | Other features: |
Khaled Hosny | cf943f6 | 2018-02-04 12:05:12 +0200 | [diff] [blame] | 546 | Documentation: ${enable_gtk_doc} |
Behdad Esfahbod | 71439a8 | 2013-08-26 20:56:58 -0400 | [diff] [blame] | 547 | GObject bindings: ${have_gobject} |
Behdad Esfahbod | 71ef22b | 2013-08-28 12:52:55 -0400 | [diff] [blame] | 548 | Introspection: ${have_introspection} |
Behdad Esfahbod | d16ddbc | 2012-12-20 01:02:36 -0500 | [diff] [blame] | 549 | ]) |