2 AM_INIT_AUTOMAKE(harfbuzz, 0.1)
7 AM_CONFIG_HEADER(config.h)
9 if test "x$ac_compiler_gnu" = xyes; then
10 CFLAGS="$CFLAGS -Wall -W -pedantic -ansi"
11 CXXFLAGS="$CXXFLAGS -Wall -W"
14 AC_PATH_PROG(ft_config,freetype-config,no)
15 if test "$ft_config" = "no"; then
16 AC_MSG_ERROR([You must have freetype installed; see http://www.freetype.org/])
19 FREETYPE_CFLAGS="`$ft_config --cflags`"
20 FREETYPE_LIBS="`$ft_config --libs`"
22 AC_SUBST(FREETYPE_LIBS)
23 AC_SUBST(FREETYPE_CFLAGS)
25 AC_ARG_ENABLE(qt, AS_HELP_STRING([--disable-qt], [Build Qt support (default: auto)]), [QT=$enableval], [QT=auto])
27 if test "x$QT" = xauto; then
28 PKG_CHECK_MODULES(QT, [QtGui >= 4.3], [QT=yes], [QT=no])
30 if test "x$QT" = xyes; then
31 PKG_CHECK_MODULES(QT_GUI, [QtGui >= 4.3])
32 PKG_CHECK_MODULES(QT_QTEST, [QtTest >= 4.3])
34 _PKG_CONFIG(QT_INCDIR, [variable=includedir], [QtGui >= 4.3])
35 QT_GUI_CFLAGS="$QT_GUI_CFLAGS -I$pkg_cv_QT_INCDIR/../Qt"
37 AC_SUBST(QT_GUI_CFLAGS)
39 AC_SUBST(QT_QTEST_CFLAGS)
40 AC_SUBST(QT_QTEST_LIBS)
42 _PKG_CONFIG(QT_MOC, [variable=moc_location], [QtGui >= 4.3])
46 AM_CONDITIONAL(QT, [test "x$QT" = xyes])
52 tests/linebreaking/Makefile
53 tests/shaping/Makefile