2 AC_INIT([Yelp],[2.31.7],[http://bugzilla.gnome.org/enter_bug.cgi?product=yelp],[yelp])
4 AC_CONFIG_SRCDIR([src/yelp.c])
5 AC_CONFIG_HEADERS([config.h])
6 AC_CONFIG_MACRO_DIR([m4])
8 AM_INIT_AUTOMAKE([1.11 dist-bzip2 no-dist-gzip])
9 AM_MAINTAINER_MODE([enable])
11 AM_SILENT_RULES([yes])
22 AC_PATH_PROGS(SED, gsed sed)
28 PKG_CHECK_MODULES(YELP,
37 webkitgtk-3.0 >= 1.3.2
40 AC_SUBST([YELP_CFLAGS])
45 GNOME_COMPILE_WARNINGS([maximum])
46 GNOME_MAINTAINER_MODE_DEFINES
50 if test "x$enable_debug" = "xyes"; then
51 AC_DEFINE([YELP_DEBUG],[1],[Enable Yelp debugging])
52 AM_CFLAGS="$AM_CFLAGS -pedantic -ansi"
55 dnl NOTE : it appears that some systems do not like it when you use line
56 dnl continuation charactes to split CFLAGS into readable chunks
57 if test "x$GCC" = "xyes"; then
58 AM_CFLAGS="$AM_CFLAGS -Wall -Wno-uninitialized -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare"
62 IT_PROG_INTLTOOL([0.41.0])
65 AC_SUBST(GETTEXT_PACKAGE)
66 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
67 [The gettext translation domain])
70 AM_GLIB_DEFINE_LOCALEDIR([GNOMELOCALEDIR])
74 AS_HELP_STRING([--enable-lzma],[Enable lzma decoder support [[default=yes]]]),
75 [enable_lzma=$enableval],
77 if test x"$enable_lzma" = "xauto"; then
78 PKG_CHECK_MODULES(YELP_LZMA,
79 liblzma >= $LIBLZMA_REQUIRED,
82 elif test x"$enable_lzma" = "xyes"; then
83 PKG_CHECK_MODULES(YELP_LZMA, liblzma >= $LIBLZMA_REQUIRED)
85 if test x"$enable_lzma" = "xyes"; then
86 YELP_CFLAGS="$YELP_LZMA_CFLAGS $YELP_CFLAGS";
87 YELP_LIBS="$YELP_LZMA_LIBS $YELP_LIBS";
88 AC_DEFINE(ENABLE_LZMA, 1, [Enable lzma decoder support])
90 AM_CONDITIONAL([ENABLE_LZMA],[test x"$enable_lzma" != "xno"])
93 AS_HELP_STRING([--enable-bz2],[Enable bz2 decoder support [[default=yes]]]),
94 [enable_bz2=$enableval],
96 if test x"$enable_bz2" = "xauto"; then
101 elif test x"$enable_bz2" = "xyes"; then
102 AC_CHECK_LIB(bz2, BZ2_bzread)
104 if test x"$enable_bz2" = "xyes"; then
105 YELP_LIBS="-lbz2 $YELP_LIBS";
106 AC_DEFINE(ENABLE_BZ2, 1, [Enable bz2 decoder support])
108 AM_CONDITIONAL([ENABLE_BZ2],[test x"$enable_bz2" != "xno"])
110 AC_SUBST([YELP_CFLAGS])
111 AC_SUBST([YELP_LIBS])
115 NONE) prefix=$ac_default_prefix ;;
118 eval echo $(eval echo $datadir)/yelp
123 XSL_PATH="`$PKG_CONFIG --variable=xsltdir yelp-xsl`"
124 XSL_DB_TITLE="$XSLT_PATH""/docbook/common/db-title.xsl"
125 AC_SUBST(XSL_DB_TITLE)
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"
140 XSL_GETTEXT="`$PKG_CONFIG --variable=gettext yelp-xsl`"
141 AC_SUBST(XSL_GETTEXT)
143 YELP_ICON_PATH="`$PKG_CONFIG --variable=icondir yelp-xsl`"
144 AC_SUBST(YELP_ICON_PATH)
146 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
147 AC_SUBST(GLIB_GENMARSHAL)
150 # If Pango included the shared library dependencies from X11 in
151 # the pkg-config output, then we use that (to avoid duplicates).
152 # but if they were omitted to avoid binary compatibility problems
153 # then we need to repeat the checks.
155 if $PKG_CONFIG --exists pangoxft ; then
156 PANGO_PACKAGES="pangox pangoxft"
158 PANGO_PACKAGES="pangox"
161 x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
163 *-lX11*) pango_omitted_x_deps=no ;;
164 *) pango_omitted_x_deps=yes ;;
167 if test $pango_omitted_x_deps = yes ; then
170 if test x$no_x = xyes ; then
171 AC_MSG_ERROR([X development libraries not found])
173 X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
181 AM_CPPFLAGS="$AM_CPPFLAGS $DEPRECATION_FLAGS"
182 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS $MORE_WARN_FLAGS"
185 AC_SUBST([AM_CPPFLAGS])
186 AC_SUBST([AM_CFLAGS])
187 AC_SUBST([AM_LDFLAGS])
189 GTK_DOC_CHECK([1.13],[--flavour no-tmpl])
194 docs/libyelp/Makefile
195 docs/libyelp/version.xml
199 stylesheets/db2html.xsl
200 stylesheets/db-title.xsl
201 stylesheets/info2html.xsl
202 stylesheets/mal2html.xsl
203 stylesheets/man2html.xsl
204 stylesheets/toc2html.xsl
205 stylesheets/yelp-common.xsl
208 data/icons/hicolor/Makefile
209 data/icons/hicolor/16x16/Makefile
210 data/icons/hicolor/16x16/status/Makefile
218 dnl ==========================================================================
223 source code location: ${srcdir}
226 Documentation: ${enable_gtk_doc}
227 Debug enabled: ${enable_debug}
228 Search backend: ${search_backend}
229 Enable BZ2: ${enable_bz2}
230 Enable LZMA: ${enable_lzma}