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.
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)
31 AC_INIT([Nautilus-Actions],[2.99.6],[maintainer@nautilus-actions.org])
35 AC_CONFIG_SRCDIR([src/plugin-menu/nautilus-module.c])
37 AC_CONFIG_HEADERS([src/config.h])
44 data/gconf-schemas/Makefile
48 doc/internals/Makefile
57 icons/scalable/Makefile
61 src/io-desktop/Makefile
64 src/plugin-menu/Makefile
65 src/plugin-tracker/Makefile
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
82 # check for compiler characteristics and options
84 AC_PROG_GCC_TRADITIONAL
88 # other traditional tools
95 GNOME_MAINTAINER_MODE_DEFINES
96 NA_GNOME_COMPILE_WARNINGS([error],[-ansi -Wno-overlength-strings -Wformat=2])
97 AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} ${DISABLE_DEPRECATED}"])
98 AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} -DGSEAL_ENABLED"])
99 AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} ${WARN_CFLAGS}"])
102 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
105 GTK_DOC_CHECK([1.10],[--flavour no-tmpl])
111 # note that this same version is also required by autogen.sh
112 IT_PROG_INTLTOOL([0.35.5])
113 GETTEXT_PACKAGE=${PACKAGE}
114 AC_SUBST([GETTEXT_PACKAGE])
115 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[gettext package])
119 AC_PATH_PROG([GCONFTOOL],[gconftool-2],[no])
122 # note that requiring through pkg-config the version number of the
123 # nautilus-extension library actually returns the version number of
124 # nautilus itself (e.g. 2.24.2) instead of the library version info
125 # (1.1.0) ; for the usual final user, this is very analog to requiring
126 # a whole gnome version
128 # GLib >= 2.16: GVFS/GIO
129 # Gtk >= 2.12: GtkBuilder
131 # [configure.ac, nautilus-actions.c] remove test for
132 # nautilus_menu_provider_emit_items_updated_signal() when Gnome >= 2.16
136 NAUTILUS_EXTENSION=2.8.0
138 LIBXML_REQUIRED=2.6.0
139 GOBJECT_REQUIRED=2.4.0
140 LIBGTOP_REQUIRED=2.23.1
142 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
143 if test "${PKG_CONFIG}" = "no"; then
144 AC_MSG_ERROR([You need to install pkg-config])
147 PKG_CHECK_MODULES([NAUTILUS_ACTIONS], \
148 glib-2.0 >= ${GLIB_REQUIRED} \
149 gmodule-2.0 >= ${GLIB_REQUIRED} \
150 gtk+-2.0 >= ${GTK_REQUIRED} \
151 gconf-2.0 >= ${GCONF_REQUIRED} \
152 libxml-2.0 >= ${LIBXML_REQUIRED} \
153 libnautilus-extension >= ${NAUTILUS_EXTENSION} \
154 libgtop-2.0 >= ${LIBGTOP_REQUIRED} \
161 AC_SUBST([NAUTILUS_ACTIONS_CFLAGS])
162 AC_SUBST([NAUTILUS_ACTIONS_LIBS])
164 # defines log domains when in maintainer mode
167 # add --enable-html-manual and --enable-pdf-manual configure options
170 # when working in a test environment, nautilus is typically installed in
171 # a non-standard location ; lets specify this here
174 # define NACT_MAINTAINER_MODE variable
175 NA_IS_MAINTAINER_MODE
177 # Check for menu update function
178 AC_CHECK_LIB(nautilus-extension, nautilus_menu_item_new)
179 AC_CHECK_FUNCS(nautilus_menu_provider_emit_items_updated_signal)