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
81
82
83
84
85
86
87
88
89
|
AC_INIT([yelp-xsl],[3.7.3],[http://bugzilla.gnome.org/enter_bug.cgi?product=yelp-xsl])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.10 no-dist-gzip dist-bzip2])
# Check for programs
dnl In the interest of portability, we don't use GNU awk extensions,
dnl even though they rule. To prevent accidental use and subsequent
dnl bug reports after busted tarballs were shipped, we use -W compat
dnl whenever our awk is gawk.
AC_PROG_AWK
if test x$AWK = xgawk; then
YELP_XSL_AWK='gawk -W compat';
else
YELP_XSL_AWK=$AWK;
fi
AC_SUBST(YELP_XSL_AWK)
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
if test x"$ITSTOOL" = x; then
AC_MSG_ERROR([itstool is required to build the translation XML files])
fi
ITSTOOL_VERSION=`itstool --version | cut -d' ' -f2 | awk -F. '{print $ 1 * 10000 + $ 2 * 100 + $ 3; }'`
if test "$ITSTOOL_VERSION" -lt 10200; then
AC_MSG_ERROR([itstool >= 1.2.0 is required to build the translation XML files])
fi
# Dependecies
PKG_CHECK_MODULES(YELP_XSL,
[
libxml-2.0 >= 2.6.12
libxslt >= 1.1.8
])
# i18n stuff
GETTEXT_PACKAGE=yelp-xsl
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
IT_PROG_INTLTOOL([0.40.0])
ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
AC_SUBST(ALL_LINGUAS)
AC_ARG_ENABLE(doc,
[AS_HELP_STRING([--enable-doc],[build and install developer documentation [default=no]])],,
enable_doc=no)
AM_CONDITIONAL(ENABLE_DOC, test "x$enable_doc" != "xno")
AC_CONFIG_FILES([
Makefile
yelp-xsl.pc
icons/Makefile
icons/hicolor/Makefile
icons/hicolor/24x24/Makefile
icons/hicolor/24x24/status/Makefile
icons/hicolor/48x48/Makefile
icons/hicolor/48x48/status/Makefile
icons/hicolor/scalable/Makefile
icons/hicolor/scalable/status/Makefile
icons/hicolor/watermarks/Makefile
js/Makefile
doc/Makefile
doc/yelp-xsl/Makefile
po/Makefile.in
xslt/Makefile
xslt/common/Makefile
xslt/common/domains/Makefile
xslt/docbook/Makefile
xslt/docbook/common/Makefile
xslt/docbook/html/Makefile
xslt/mallard/Makefile
xslt/mallard/cache/Makefile
xslt/mallard/common/Makefile
xslt/mallard/html/Makefile
])
AC_OUTPUT
dnl ==========================================================================
echo "
yelp-xsl-$VERSION:
prefix: ${prefix}
Documentation: ${enable_doc}
"
|