1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
dnl Process this file with autoconf to create configure.
AC_INIT(ChangeLog)
AM_INIT_AUTOMAKE(pango, 0.8)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_LIBTOOL
changequote(,)dnl
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
esac
fi
changequote([,])dnl
gtk_works=no
AM_PATH_GTK(1.2.0,
[CFLAGS="$GTK_CFLAGS $CFLAGS"; gtk_works=yes],
AC_MSG_WARN("Disabling GTK+-based tests"))
AM_CONDITIONAL(BUILD_TESTS, test x$gtk_works = xyes)
AC_CHECK_LIB(fribidi, fribidi_map_range, :,
AC_MSG_ERROR([*** libfribidi not found.]))
# We run glib-config separately to get the gmodule cflags so we
# can add them to pango-config
AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
if test x$GLIB_CONFIG = xno ; then
AC_MSG_ERROR([*** glib-config not found])
fi
GLIB_CFLAGS="`glib-config --cflags gmodule`"
CFLAGS="$CFLAGS $GLIB_CFLAGS"
GLIB_LIBS="`glib-config --libs gmodule`"
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)
AC_PATH_PROG(UNICODE_CONFIG, unicode-config, no)
if test x$UNICODE_CONFIG = xno ; then
AC_MSG_ERROR([*** unicode-config not found])
fi
UNICODE_CFLAGS="`unicode-config --cflags`"
CFLAGS="$CFLAGS $UNICODE_CFLAGS"
UNICODE_LIBS="`unicode-config --libs`"
AC_SUBST(UNICODE_LIBS)
AC_SUBST(UNICODE_CFLAGS)
AC_CHECK_FUNCS(flockfile)
AC_CHECK_LIB(unicode, unicode_type, :,
AC_MSG_ERROR([*** libunicode not found.]), $UNICODE_LIBS)
AC_CHECK_PROG(gtkdoc, gtkdoc-scan, yes, no)
AM_CONDITIONAL(HAVE_GTK_DOC, test x$gtkdoc = xyes)
AC_OUTPUT([
Makefile
libpango/Makefile
modules/Makefile
modules/arabic/Makefile
modules/basic/Makefile
modules/hangul/Makefile
modules/tamil/Makefile
examples/Makefile
docs/Makefile
tools/Makefile
fonts/Makefile
pango.spec
pango-config
],[case "$CONFIG_FILES" in
*pango-config*)chmod +x pango-config;;
esac])
|