Remove useless 'field_changed_cb' handler from icon name field
[nautilus-actions.git] / configure.ac
blob7379e4717c35e98078830f1631c51055976bf976
1 # Nautilus Actions
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.
22 # Authors:
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)
28 AC_PREREQ([2.53])
30 AC_INIT([nautilus-actions],[1.10.1],[maintainer@nautilus-actions.org])
31 AC_CANONICAL_TARGET
32 AM_INIT_AUTOMAKE
34 AC_CONFIG_SRCDIR([plugin/nautilus-actions.c])
36 AC_CONFIG_HEADERS([config.h])
38 AC_CONFIG_FILES([
39         Makefile
40         m4/Makefile
41         icons/Makefile
42         icons/16x16/Makefile
43         icons/22x22/Makefile
44         icons/32x32/Makefile
45         icons/48x48/Makefile
46         icons/scalable/Makefile
47         po/Makefile.in
48         libnautilus-actions/Makefile
49         nact/Makefile
50         utils/Makefile
51         plugin/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
62 AM_MAINTAINER_MODE
64 # check for compiler characteristics and options
65 AC_PROG_CC
66 AC_PROG_GCC_TRADITIONAL
67 AC_STDC_HEADERS
68 AM_DISABLE_STATIC
70 # other traditional tools
71 AC_PROG_INSTALL
72 AC_PROG_MAKE_SET
74 # Gnome stuff
75 GNOME_COMMON_INIT
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}"])
81 # libtool
82 AM_PROG_LIBTOOL
84 # localization
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])
90 AM_GLIB_GNU_GETTEXT
92 # GConf support
93 AC_PATH_PROG([GCONFTOOL],[gconftool-2])
94 AM_GCONF_SOURCE_2
96 # these are the version as distributed with CentOS 4.x
97 # - Gnome 2.8
98 # - glib 2.4.7
99 # - autoconf 2.59
100 # - automake 1.9
101 # - intltool 0.31
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
108 GLIB_REQUIRED=2.4.0
109 GTK_REQUIRED=2.4.0
110 GLADE_REQUIRED=2.4.0
111 GNOME_REQUIRED=2.7.0
112 NAUTILUS_EXTENSION=2.8.0
113 GCONF_REQUIRED=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}        \
136         uuid)
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
142 NACT_NAUTILUS_EXTDIR
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`
159 #               else
160 #                       BINDIR=`eval echo $bindir`
161 #               fi
162 #       else
163 #               BINDIR=`eval echo $prefix/bin`
164 #       fi
165 #else
166 #       BINDIR=`eval echo $bindir`
168 #AC_SUBST(BINDIR)
169 #       
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])
174 #else
175 #  DATADIR="${prefix}/${DATADIRNAME}"
176 #  LOCALEDIR="${DATADIR}/locale"
177 #  AC_DEFINE_UNQUOTED(LOCALEDIR, "${LOCALEDIR}", [Locale dir])
179 #AC_SUBST(DATADIR)
180 #AC_SUBST(LOCALEDIR)
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])
185 AC_OUTPUT