Update ChangeLog before releasing
[nautilus-actions.git] / m4 / na-default-io-provider.m4
blob02b123b2d1c19cab86385ee6313d82f307ce5acd
1 # Nautilus-Actions
2 # A Nautilus extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009-2014 Pierre Wieser and others (see AUTHORS)
8 # Nautilus-Actions 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 # Nautilus-Actions 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 GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with Nautilus-Actions; see the file COPYING. If not, see
20 # <http://www.gnu.org/licenses/>.
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 # serial 2 remove the input parameter
30 dnl --with-default-io-provider=gconf|desktop
31 dnl   Defines the default I/O Provider when creating a new action
32 dnl   Default to 'na-desktop'
33 dnl
34 dnl configure.ac usage:  NA_SET_DEFAULT_IO_PROVIDER
35 dnl
36 dnl ac_define NA_DEFAULT_IO_PROVIDER variable
38 AC_DEFUN([NA_SET_DEFAULT_IO_PROVIDER],[
39         _AC_ARG_NA_WITH_DEFAULT_IO_PROVIDER([na-desktop])
40         _CHECK_FOR_DEFAULT_IO_PROVIDER
43 AC_DEFUN([_AC_ARG_NA_WITH_DEFAULT_IO_PROVIDER],[
44         AC_ARG_WITH(
45                 [default-io-provider],
46                 AS_HELP_STRING(
47                         [--with-default-io-provider<provider>],
48                         [define default I/O provider  @<:@$1@:>@]),
49                 [with_default_io_provider=$withval],
50                 [with_default_io_provider="$1"])
53 AC_DEFUN([_CHECK_FOR_DEFAULT_IO_PROVIDER],[
54         AC_MSG_CHECKING([for default I/O provider on new items])
55         AC_MSG_RESULT([${with_default_io_provider}])
56         if test "${with_default_io_provider}" != "na-gconf"; then
57                 if test "${with_default_io_provider}" != "na-desktop"; then
58                         AC_MSG_ERROR([a default I/O provider must be specified, must be 'na-gconf' or 'na-desktop'])
59                 fi
60         fi
62         AC_DEFINE_UNQUOTED([NA_DEFAULT_IO_PROVIDER],["${with_default_io_provider}"],[Default I/O Provider])