2 AC_INIT([Yelp],[3.28.0],[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])
27 PKG_CHECK_MODULES(YELP,
37 webkit2gtk-4.0 >= 2.19.2
40 AC_SUBST([YELP_CFLAGS])
48 PKG_CHECK_MODULES([YELP_EXTENSION], [webkit2gtk-web-extension-4.0 >= 2.7.2])
49 AC_SUBST(YELP_EXTENSION_CFLAGS)
50 AC_SUBST(YELP_EXTENSION_LIBS)
53 AX_REQUIRE_DEFINED([IT_PROG_INTLTOOL])
54 IT_PROG_INTLTOOL([0.41.0])
56 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
60 AC_SUBST(GETTEXT_PACKAGE)
61 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
62 [The gettext translation domain])
64 AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
65 AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
66 if test x"$ITSTOOL" = x; then
67 AC_MSG_ERROR([itstool is required to build the translation XML files])
69 ITSTOOL_VERSION=`itstool --version | cut -d' ' -f2 | awk -F. '{print $ 1 * 10000 + $ 2 * 100 + $ 3; }'`
70 if test "$ITSTOOL_VERSION" -lt 10200; then
71 AC_MSG_ERROR([itstool >= 1.2.0 is required to build the translation XML files])
76 AS_HELP_STRING([--enable-lzma],[Enable lzma decoder support [[default=yes]]]),
77 [enable_lzma=$enableval],
79 if test x"$enable_lzma" = "xauto"; then
80 PKG_CHECK_MODULES(YELP_LZMA,
81 liblzma >= $LIBLZMA_REQUIRED,
84 elif test x"$enable_lzma" = "xyes"; then
85 PKG_CHECK_MODULES(YELP_LZMA, liblzma >= $LIBLZMA_REQUIRED)
87 if test x"$enable_lzma" = "xyes"; then
88 YELP_CFLAGS="$YELP_LZMA_CFLAGS $YELP_CFLAGS";
89 YELP_LIBS="$YELP_LZMA_LIBS $YELP_LIBS";
90 AC_DEFINE(ENABLE_LZMA, 1, [Enable lzma decoder support])
92 AM_CONDITIONAL([ENABLE_LZMA],[test x"$enable_lzma" != "xno"])
95 AS_HELP_STRING([--enable-bz2],[Enable bz2 decoder support [[default=yes]]]),
96 [enable_bz2=$enableval],
98 if test x"$enable_bz2" = "xauto"; then
103 elif test x"$enable_bz2" = "xyes"; then
104 AC_CHECK_LIB(bz2, BZ2_bzread)
106 if test x"$enable_bz2" = "xyes"; then
107 YELP_LIBS="-lbz2 $YELP_LIBS";
108 AC_DEFINE(ENABLE_BZ2, 1, [Enable bz2 decoder support])
110 AM_CONDITIONAL([ENABLE_BZ2],[test x"$enable_bz2" != "xno"])
112 AC_SUBST([YELP_CFLAGS])
113 AC_SUBST([YELP_LIBS])
117 NONE) prefix=$ac_default_prefix ;;
120 eval echo $(eval echo $datadir)/yelp
125 XSL_PATH="`$PKG_CONFIG --variable=xsltdir yelp-xsl`"
127 XSL_DB2XHTML="`$PKG_CONFIG --variable=db2xhtml yelp-xsl`"
128 AC_SUBST(XSL_DB2XHTML)
130 XSL_MAL2XHTML="`$PKG_CONFIG --variable=mal2xhtml yelp-xsl`"
131 AC_SUBST(XSL_MAL2XHTML)
133 XSL_COLOR="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/color.xsl"
135 XSL_ICONS="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/icons.xsl"
137 XSL_HTML="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/html.xsl"
139 XSL_JSDIR="`$PKG_CONFIG --variable=jsdir yelp-xsl`"
142 XSL_GETTEXT="`$PKG_CONFIG --variable=gettext yelp-xsl`"
143 AC_SUBST(XSL_GETTEXT)
145 YELP_ICON_PATH="`$PKG_CONFIG --variable=icondir yelp-xsl`"
146 AC_SUBST(YELP_ICON_PATH)
148 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
149 AC_SUBST(GLIB_GENMARSHAL)
152 AX_REQUIRE_DEFINED([GTK_DOC_CHECK])
153 GTK_DOC_CHECK([1.13],[--flavour no-tmpl])
157 docs/libyelp/Makefile
158 docs/libyelp/version.xml
160 data/xslt/db2html.xsl
161 data/xslt/info2html.xsl
162 data/xslt/mal2html.xsl
163 data/xslt/man2html.xsl
164 data/xslt/yelp-common.xsl
171 dnl ==========================================================================
176 source code location: ${srcdir}
179 Documentation: ${enable_gtk_doc}
180 Debug enabled: ${enable_debug}
181 Enable BZ2: ${enable_bz2}
182 Enable LZMA: ${enable_lzma}