Reference manual: fix NAIExporter documentation
[nautilus-actions.git] / configure.ac
blob27ffca0e6228bb43f89d7ed9a9334c3a7928b24a
1 # Nautilus Actions
2 # A Nautilus extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009, 2010 Pierre Wieser and others (see AUTHORS)
8 # This Program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # This Program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public
19 # License along with this Library; see the file COPYING.  If not,
20 # write to the Free Software Foundation, Inc., 59 Temple Place,
21 # Suite 330, Boston, MA 02111-1307, USA.
23 # Authors:
24 #   Frederic Ruaudel <grumz@grumz.net>
25 #   Rodrigo Moya <rodrigo@gnome-db.org>
26 #   Pierre Wieser <pwieser@trychlos.org>
27 #   ... and many others (see AUTHORS)
29 AC_PREREQ([2.53])
31 AC_INIT([Nautilus-Actions],[3.0.3],[maintainer@nautilus-actions.org],,[http://www.nautilus-actions.org])
33 AC_CANONICAL_TARGET
35 AM_INIT_AUTOMAKE
37 AC_CONFIG_SRCDIR([src/plugin-menu/nautilus-module.c])
39 AC_CONFIG_HEADERS([src/config.h])
41 AC_CONFIG_FILES([
42         Makefile
43         data/Makefile
44         data/actions/Makefile
45         data/exports/Makefile
46         data/gconf-schemas/Makefile
47         docs/Makefile
48         docs/nact/Makefile
49         docs/reference/Makefile
50         docs/reference/version.xml
51         m4/Makefile
52         icons/Makefile
53         icons/16x16/Makefile
54         icons/22x22/Makefile
55         icons/32x32/Makefile
56         icons/48x48/Makefile
57         icons/scalable/Makefile
58         src/Makefile
59         src/api/Makefile
60         src/core/Makefile
61         src/io-desktop/Makefile
62         src/io-gconf/Makefile
63         src/io-xml/Makefile
64         src/plugin-menu/Makefile
65         src/plugin-tracker/Makefile
66         src/nact/Makefile
67         src/test/Makefile
68         src/utils/Makefile
69         po/Makefile.in
72 AC_CONFIG_MACRO_DIR([m4])
74 # pwi 2009-05-15 disabled as GNOME_COMMON_INIT takes care of that
75 #AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
77 # don't agree with maintainer mode use
78 # see http://www.gnu.org/software/automake/manual/automake.html#index-AM_005fMAINTAINER_005fMODE-1001
79 # but gnome-autogen.sh forces its usage and gnome_common_init requires it
80 AM_MAINTAINER_MODE
82 # check for compiler characteristics and options
83 AC_PROG_CC
84 AC_PROG_GCC_TRADITIONAL
85 AC_STDC_HEADERS
86 AM_DISABLE_STATIC
88 # other traditional tools
89 AC_PROG_INSTALL
90 AC_PROG_MAKE_SET
92 # Gnome stuff
93 GNOME_COMMON_INIT
94 GNOME_DOC_INIT
95 GNOME_MAINTAINER_MODE_DEFINES
96 NA_GNOME_COMPILE_WARNINGS([],[-ansi -Wno-overlength-strings -Wformat=2])
97 AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} ${WARN_CFLAGS}"])
99 # GLib marshaling
100 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
102 # check for gtk-doc
103 GTK_DOC_CHECK([1.10],[--flavour no-tmpl])
105 # libtool
106 AM_PROG_LIBTOOL
108 # localization
109 # note that this same version is also required by autogen.sh
110 IT_PROG_INTLTOOL([0.35.5])
111 GETTEXT_PACKAGE=${PACKAGE}
112 AC_SUBST([GETTEXT_PACKAGE])
113 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[gettext package])
114 AM_GLIB_GNU_GETTEXT
116 # GConf support
117 AC_PATH_PROG([GCONFTOOL],[gconftool-2],[no])
118 AM_GCONF_SOURCE_2
120 # note that requiring through pkg-config the version number of the
121 # nautilus-extension library actually returns the version number of
122 # nautilus itself (e.g. 2.24.2) instead of the library version info
123 # (1.1.0) ; for the usual final user, this is very analog to requiring
124 # a whole gnome version
126 # GLib >= 2.16: GVFS/GIO
127 # Gtk  >= 2.12: GtkBuilder
129 # [configure.ac, nautilus-actions.c] remove test for
130 #       nautilus_menu_provider_emit_items_updated_signal() when Gnome >= 2.16
132 GLIB_REQUIRED=2.16.0
133 GTK_REQUIRED=2.12.0
134 NAUTILUS_EXTENSION=2.8.0
135 GCONF_REQUIRED=2.8.0
136 LIBXML_REQUIRED=2.6.0
137 GOBJECT_REQUIRED=2.4.0
138 LIBGTOP_REQUIRED=2.23.1
140 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
141 if test "${PKG_CONFIG}" = "no"; then
142         AC_MSG_ERROR([You need to install pkg-config])
145 PKG_CHECK_MODULES([NAUTILUS_ACTIONS], \
146         glib-2.0                                >= ${GLIB_REQUIRED}                     \
147         gmodule-2.0                             >= ${GLIB_REQUIRED}                     \
148         gtk+-2.0                                >= ${GTK_REQUIRED}                      \
149         gconf-2.0                               >= ${GCONF_REQUIRED}            \
150         libxml-2.0                              >= ${LIBXML_REQUIRED}           \
151         libnautilus-extension   >= ${NAUTILUS_EXTENSION}        \
152         libgtop-2.0                             >= ${LIBGTOP_REQUIRED}          \
153         sm                                              >= 1.0.0                                        \
154         uuid                                                                                            \
155         unique-1.0                                                                                      \
156         dbus-glib-1
159 AC_SUBST([NAUTILUS_ACTIONS_CFLAGS])
160 AC_DEFINE_UNQUOTED([NAUTILUS_ACTIONS_CFLAGS],["${NAUTILUS_ACTIONS_CFLAGS}"],[N-A compiler flags])
161 AC_SUBST([NAUTILUS_ACTIONS_LIBS])
162 AC_DEFINE_UNQUOTED([NAUTILUS_ACTIONS_LIBS],["${NAUTILUS_ACTIONS_LIBS}"],[N-A linker flags])
164 # defines log domains when in maintainer mode
165 NA_LOG_DOMAINS
167 # add --enable-html-manuals and --enable-pdf-manuals configure options
168 NA_ENABLE_MANUALS
170 # add --with-default-io-provider option
171 NA_SET_DEFAULT_IO_PROVIDER([na-desktop])
173 # when working in a test environment, nautilus extensions are typically
174 # installed in a non-standard location ; lets specify them here
175 NA_NAUTILUS_EXTDIR
177 # define NA_MAINTAINER_MODE variable
178 NA_IS_MAINTAINER_MODE
179 AC_DEFINE([NAUTILUS_ACTIONS_DEBUG],["NAUTILUS_ACTIONS_DEBUG"],[Debug environment variable])
181 # Check for menu update function
182 AC_CHECK_LIB(nautilus-extension, nautilus_menu_item_new)
183 AC_CHECK_FUNCS(nautilus_menu_provider_emit_items_updated_signal)
185 # display and keep configuration informations
186 config_options="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 
187 AC_DEFINE_UNQUOTED([NA_CONFIG_OPTIONS],["$0 ${config_options}"],["Configure options"])
189 AC_OUTPUT
191 if test "x${enable_schemas_install}" = "xno"; then
192         _ac_na_schemas_install="disabled"; else
193         _ac_na_schemas_install="enabled in ${GCONF_SCHEMA_FILE_DIR}"
195 _ac_na_gtk_html_doc=`if test "x${enable_gtk_doc_html}" = "xno"; then echo disabled; else echo "enabled with gtk-doc"; fi`
196 _ac_na_gtk_pdf_doc=`if test "x${enable_gtk_doc_pdf}" = "xno"; then echo disabled; else echo enabled; fi`
197 $as_echo "
198         ${PACKAGE_STRING} configuration summary:
200         Installation prefix             ${prefix}
201         Build system type               ${ac_cv_build}
202         Preprocessor flags              ${AM_CPPFLAGS}
203         Compiler flags                  ${AM_CFLAGS} ${NAUTILUS_ACTIONS_CFLAGS}
204         Linker flags                    ${NAUTILUS_ACTIONS_LIBS}
205         Nautilus extensions directory   ${ac_with_nact_nautilus_extdir}
206         Default I/O provider            ${with_default_io_provider}
207         GConf schemas installation      ${_ac_na_schemas_install}
208         Maintainer mode                 ${_ac_na_maintainer_mode}
209         HTML API Reference generation   ${_ac_na_gtk_html_doc}
210         PDF API Reference generation    ${_ac_na_gtk_pdf_doc}
211         HTML manuals generation         ${_ac_na_html_manuals}
212         PDF manuals generation          ${_ac_na_pdf_manuals}