2 AC_INIT([Yelp],[3.21.3],[http://bugzilla.gnome.org/enter_bug.cgi?product=yelp],[yelp])
4 AC_CONFIG_AUX_DIR([build-aux])
5 AC_CONFIG_SRCDIR([src/yelp.c])
6 AC_CONFIG_HEADERS([config.h])
7 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([1.11.2 dist-xz no-dist-gzip subdir-objects tar-ustar])
10 AM_MAINTAINER_MODE([enable])
12 AM_SILENT_RULES([yes])
14 AX_IS_RELEASE([git-directory])
15 AX_CHECK_ENABLE_DEBUG([info], [YELP_DEBUG], [$ax_is_release])
17 AX_COMPILER_FLAGS([], [], [$ax_is_release])
26 PKG_CHECK_MODULES(YELP,
36 webkit2gtk-4.0 >= 2.7.1
39 AC_SUBST([YELP_CFLAGS])
47 PKG_CHECK_MODULES([YELP_EXTENSION], [webkit2gtk-web-extension-4.0 >= 2.7.2])
48 AC_SUBST(YELP_EXTENSION_CFLAGS)
49 AC_SUBST(YELP_EXTENSION_LIBS)
52 AX_REQUIRE_DEFINED([IT_PROG_INTLTOOL])
53 IT_PROG_INTLTOOL([0.41.0])
55 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
59 AC_SUBST(GETTEXT_PACKAGE)
60 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
61 [The gettext translation domain])
63 AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
64 AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
65 if test x"$ITSTOOL" = x; then
66 AC_MSG_ERROR([itstool is required to build the translation XML files])
68 ITSTOOL_VERSION=`itstool --version | cut -d' ' -f2 | awk -F. '{print $ 1 * 10000 + $ 2 * 100 + $ 3; }'`
69 if test "$ITSTOOL_VERSION" -lt 10200; then
70 AC_MSG_ERROR([itstool >= 1.2.0 is required to build the translation XML files])
75 AS_HELP_STRING([--enable-lzma],[Enable lzma decoder support [[default=yes]]]),
76 [enable_lzma=$enableval],
78 if test x"$enable_lzma" = "xauto"; then
79 PKG_CHECK_MODULES(YELP_LZMA,
80 liblzma >= $LIBLZMA_REQUIRED,
83 elif test x"$enable_lzma" = "xyes"; then
84 PKG_CHECK_MODULES(YELP_LZMA, liblzma >= $LIBLZMA_REQUIRED)
86 if test x"$enable_lzma" = "xyes"; then
87 YELP_CFLAGS="$YELP_LZMA_CFLAGS $YELP_CFLAGS";
88 YELP_LIBS="$YELP_LZMA_LIBS $YELP_LIBS";
89 AC_DEFINE(ENABLE_LZMA, 1, [Enable lzma decoder support])
91 AM_CONDITIONAL([ENABLE_LZMA],[test x"$enable_lzma" != "xno"])
94 AS_HELP_STRING([--enable-bz2],[Enable bz2 decoder support [[default=yes]]]),
95 [enable_bz2=$enableval],
97 if test x"$enable_bz2" = "xauto"; then
102 elif test x"$enable_bz2" = "xyes"; then
103 AC_CHECK_LIB(bz2, BZ2_bzread)
105 if test x"$enable_bz2" = "xyes"; then
106 YELP_LIBS="-lbz2 $YELP_LIBS";
107 AC_DEFINE(ENABLE_BZ2, 1, [Enable bz2 decoder support])
109 AM_CONDITIONAL([ENABLE_BZ2],[test x"$enable_bz2" != "xno"])
111 AC_SUBST([YELP_CFLAGS])
112 AC_SUBST([YELP_LIBS])
116 NONE) prefix=$ac_default_prefix ;;
119 eval echo $(eval echo $datadir)/yelp
124 XSL_PATH="`$PKG_CONFIG --variable=xsltdir yelp-xsl`"
126 XSL_DB2XHTML="`$PKG_CONFIG --variable=db2xhtml yelp-xsl`"
127 AC_SUBST(XSL_DB2XHTML)
129 XSL_MAL2XHTML="`$PKG_CONFIG --variable=mal2xhtml yelp-xsl`"
130 AC_SUBST(XSL_MAL2XHTML)
132 XSL_COLOR="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/color.xsl"
134 XSL_ICONS="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/icons.xsl"
136 XSL_HTML="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/html.xsl"
138 XSL_JSDIR="`$PKG_CONFIG --variable=jsdir yelp-xsl`"
141 XSL_GETTEXT="`$PKG_CONFIG --variable=gettext yelp-xsl`"
142 AC_SUBST(XSL_GETTEXT)
144 YELP_ICON_PATH="`$PKG_CONFIG --variable=icondir yelp-xsl`"
145 AC_SUBST(YELP_ICON_PATH)
147 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
148 AC_SUBST(GLIB_GENMARSHAL)
151 AX_REQUIRE_DEFINED([GTK_DOC_CHECK])
152 GTK_DOC_CHECK([1.13],[--flavour no-tmpl])
156 docs/libyelp/Makefile
157 docs/libyelp/version.xml
159 data/xslt/db2html.xsl
160 data/xslt/info2html.xsl
161 data/xslt/mal2html.xsl
162 data/xslt/man2html.xsl
163 data/xslt/yelp-common.xsl
170 dnl ==========================================================================
175 source code location: ${srcdir}
178 Documentation: ${enable_gtk_doc}
179 Debug enabled: ${enable_debug}
180 Enable BZ2: ${enable_bz2}
181 Enable LZMA: ${enable_lzma}