3 # Copyright (C) 2005 The GNOME Foundation
4 # Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
5 # Copyright (C) 2009 Pierre Wieser and others (see AUTHORS)
7 # This Program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation; either version 2 of
10 # the License, or (at your option) any later version.
12 # This Program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public
18 # License along with this Library; see the file COPYING. If not,
19 # write to the Free Software Foundation, Inc., 59 Temple Place,
20 # Suite 330, Boston, MA 02111-1307, USA.
23 # Frederic Ruaudel <grumz@grumz.net>
24 # Rodrigo Moya <rodrigo@gnome-db.org>
25 # Pierre Wieser <pwieser@trychlos.org>
26 # ... and many others (see AUTHORS)
30 AC_INIT([nautilus-actions],[1.10.1],[maintainer@nautilus-actions.org])
34 AC_CONFIG_SRCDIR([plugin/nautilus-actions.c])
36 AC_CONFIG_HEADERS([config.h])
46 icons/scalable/Makefile
48 libnautilus-actions/Makefile
54 AC_CONFIG_MACRO_DIR([m4])
56 # pwi 2009-05-15 disabled as GNOME_COMMON_INIT takes care of that
57 #AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
59 # don't agree with maintainer mode use
60 # see http://www.gnu.org/software/automake/manual/automake.html#index-AM_005fMAINTAINER_005fMODE-1001
61 # but gnome-autogen.sh forces its usage and gnome_common_init requires it
64 # check for compiler characteristics and options
66 AC_PROG_GCC_TRADITIONAL
70 # other traditional tools
76 GNOME_MAINTAINER_MODE_DEFINES
77 NACT_GNOME_COMPILE_WARNINGS([error],[-ansi])
78 AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} ${DISABLE_DEPRECATED}"])
79 AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} ${WARN_CFLAGS}"])
85 # note that this same version is also required for in autogen.sh
86 IT_PROG_INTLTOOL([0.35.5])
87 GETTEXT_PACKAGE=${PACKAGE}
88 AC_SUBST([GETTEXT_PACKAGE])
89 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[gettext package])
93 AC_PATH_PROG([GCONFTOOL],[gconftool-2])
96 # these are the version as distributed with CentOS 4.x
103 # note that requiring through pkg-config the version number of the
104 # nautilus-extension library actually returns the version number of
105 # nautilus itself (e.g. 2.24.2) instead of the library version info
106 # (1.1.0) ; for the usual final user, this is very analog to requiring
107 # a whole gnome version
112 NAUTILUS_EXTENSION=2.8.0
114 LIBXML_REQUIRED=2.6.0
115 GOBJECT_REQUIRED=2.4.0
117 #AC_SUBST(GLIB_REQUIRED)
118 #AC_SUBST(GTK_REQUIRED)
119 #AC_SUBST(GLADE_REQUIRED)
121 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
122 if test "${PKG_CONFIG}" = "no"; then
123 AC_MSG_ERROR([You need to install pkg-config])
126 PKG_CHECK_MODULES([NAUTILUS_ACTIONS], \
127 glib-2.0 >= ${GLIB_REQUIRED} \
128 gthread-2.0 >= ${GLIB_REQUIRED} \
129 gmodule-2.0 >= ${GLIB_REQUIRED} \
130 gtk+-2.0 >= ${GTK_REQUIRED} \
131 libglade-2.0 >= ${GLADE_REQUIRED} \
132 libgnome-2.0 >= ${GNOME_REQUIRED} \
133 libgnomeui-2.0 >= ${GNOME_REQUIRED} \
134 gconf-2.0 >= ${GCONF_REQUIRED} \
135 libnautilus-extension >= ${NAUTILUS_EXTENSION} \
137 AC_SUBST([NAUTILUS_ACTIONS_CFLAGS])
138 AC_SUBST([NAUTILUS_ACTIONS_LIBS])
140 # when working in a test environment, nautilus is typically installed in
141 # a non-standard location ; lets specify this here
144 # building or not the commandline tools
145 NACT_COMMANDLINE_TOOLS
147 # define NACT_MAINTAINER_MODE variable
148 NACT_IS_MAINTAINER_MODE
150 # Check for menu update function
151 AC_CHECK_LIB(nautilus-extension, nautilus_menu_item_new)
152 AC_CHECK_FUNCS(nautilus_menu_provider_emit_items_updated_signal)
154 # pwi 2009-05-15 disabled as useless or badly explained
155 #if test "x${exec_prefix}" = "xNONE"; then
156 # if test "x${prefix}" = "xNONE"; then
157 # if test "x${bindir}" = "xNONE"; then
158 # BINDIR=`eval echo $ac_default_prefix/bin`
160 # BINDIR=`eval echo $bindir`
163 # BINDIR=`eval echo $prefix/bin`
166 # BINDIR=`eval echo $bindir`
170 #if test "x${prefix}" = "xNONE"; then
171 # DATADIR="${ac_default_prefix}/${DATADIRNAME}"
172 # LOCALEDIR="${DATADIR}/locale"
173 # AC_DEFINE_UNQUOTED(LOCALEDIR, "${LOCALEDIR}", [Locale dir])
175 # DATADIR="${prefix}/${DATADIRNAME}"
176 # LOCALEDIR="${DATADIR}/locale"
177 # AC_DEFINE_UNQUOTED(LOCALEDIR, "${LOCALEDIR}", [Locale dir])
182 AC_DEFINE_UNQUOTED(NAUTILUS_ACTIONS_CONFIG_VERSION, "2.0", [Version of the configuration format])
183 AC_DEFINE_UNQUOTED(NAUTILUS_ACTIONS_CONFIG_GCONF_BASEDIR, "/apps/nautilus-actions", [GConf base dir where all config will be stored])