2 AC_INIT(harfbuzz, 0.1, [http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz])
3 AC_CONFIG_SRCDIR([harfbuzz.pc.in])
4 AC_CONFIG_HEADERS([config.h])
5 AM_INIT_AUTOMAKE([1.9.6 gnu dist-bzip2 no-dist-gzip -Wall no-define])
6 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
9 AC_PROG_LIBTOOL dnl ([1.4]) Don't remove!
14 AC_CHECK_FUNCS(mprotect sysconf getpagesize)
15 AC_CHECK_HEADERS(unistd.h sys/mman.h)
17 # Make sure we don't link to libstdc++
18 if test "x$GCC" = "xyes"; then
19 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
22 dnl ==========================================================================
24 PKG_CHECK_MODULES(GLIB, glib-2.0, have_glib=true, have_glib=false)
26 AC_DEFINE(HAVE_GLIB, 1, [Have glib2 library])
28 AM_CONDITIONAL(HAVE_GLIB, $have_glib)
30 PKG_CHECK_MODULES(ICU, icu, have_icu=true, have_icu=false)
32 AC_DEFINE(HAVE_ICU, 1, [Have ICU library])
34 AM_CONDITIONAL(HAVE_ICU, $have_icu)
36 PKG_CHECK_MODULES(FREETYPE, freetype2, have_freetype=true, have_freetype=false)
37 if $have_freetype; then
38 AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library])
40 _save_cflags="$CFLAGS"
41 LIBS="$LIBS $FREETYPE_LIBS"
42 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
43 AC_CHECK_FUNCS(FT_Face_GetCharVariantIndex)
45 CFLAGS="$_save_cflags"
47 AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
49 dnl ==========================================================================