~ubuntu-branches/ubuntu/precise/deja-dup/precise-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2010-01-10 10:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100110100306-awjywmnuln6yusb9
Tags: upstream-13.5
Import upstream version 13.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# along with Déjà Dup.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
# Sets up autoconf.
21
 
AC_INIT([Déjà Dup],[11.1],[deja-dup-team@lists.launchpad.net],[deja-dup])
 
21
AC_INIT([Déjà Dup],[13.5],[deja-dup-team@lists.launchpad.net],[deja-dup])
22
22
AC_PREREQ([2.53])
23
23
AC_CONFIG_SRCDIR(deja-dup/main.vala)
24
24
AC_CONFIG_HEADERS([config.h:config.h.in])
42
42
AC_PATH_PROG(PO4A, po4a)
43
43
 
44
44
# Checks for vala
45
 
AC_PROG_VALAC([0.7.6])
 
45
AC_PROG_VALAC([0.7.8])
46
46
 
47
47
# Sets up gettext.
48
48
GETTEXT_PACKAGE="$PACKAGE"
63
63
AC_DEFINE_UNQUOTED(PKG_DATA_DIR, "${PREFIX}/${DATADIRNAME}/${PACKAGE}",[Package data directory])
64
64
 
65
65
GTK_REQ_VER=2.14
66
 
GLIB_REQ_VER=2.18
 
66
GLIB_REQ_VER=2.20
67
67
GIO_REQ_VER=$GLIB_REQ_VER
68
68
 
69
69
# Check dependencies
84
84
AC_SUBST(PREF_CFLAGS)
85
85
AC_SUBST(PREF_LIBS)
86
86
 
87
 
PKG_CHECK_MODULES(LIBRARY,
88
 
                  gtk+-2.0 >= $GTK_REQ_VER
 
87
PKG_CHECK_MODULES(COMMON,
89
88
                  gio-2.0 >= $GIO_REQ_VER
90
 
                  gio-unix-2.0
91
89
                  gconf-2.0
92
 
                  unique-1.0
93
90
                  dbus-glib-1
94
91
                  gnome-keyring-1)
95
 
AC_SUBST(LIBRARY_CFLAGS)
96
 
AC_SUBST(LIBRARY_LIBS)
 
92
AC_SUBST(COMMON_CFLAGS)
 
93
AC_SUBST(COMMON_LIBS)
 
94
 
 
95
PKG_CHECK_MODULES(WIDGETS,
 
96
                  gtk+-2.0 >= $GTK_REQ_VER
 
97
                  gconf-2.0)
 
98
AC_SUBST(WIDGETS_CFLAGS)
 
99
AC_SUBST(WIDGETS_LIBS)
97
100
 
98
101
PKG_CHECK_MODULES(MONITOR,
99
102
                  gconf-2.0
100
103
                  gio-2.0 >= $GIO_REQ_VER
101
 
                  dbus-glib-1)
 
104
                  dbus-glib-1
 
105
                  libnotify)
102
106
AC_SUBST(MONITOR_CFLAGS)
103
107
AC_SUBST(MONITOR_LIBS)
104
108
 
112
116
NAUTILUS_EXTENSION_DIR="${libdir}/nautilus/extensions-2.0"
113
117
AC_SUBST(NAUTILUS_EXTENSION_DIR)
114
118
 
 
119
AH_TEMPLATE([HAVE_APPINDICATOR], [whether libappindicator is available])
 
120
AC_ARG_WITH([appindicator],
 
121
  [AS_HELP_STRING([--with-appindicator],
 
122
    [use libappindicator for notification icons @<:@default=check@:>@])],
 
123
  [],
 
124
  [with_appindicator=check])
 
125
AS_IF([test "x$with_appindicator" != xno],
 
126
  [PKG_CHECK_MODULES(APPINDICATOR, appindicator-0.1,
 
127
    [AC_DEFINE(HAVE_APPINDICATOR)
 
128
     AC_SUBST(APPINDICATOR_CFLAGS)
 
129
     AC_SUBST(APPINDICATOR_LIBS)],
 
130
    [if test "x$with_appindicator" != xcheck; then
 
131
        AC_MSG_FAILURE(
 
132
          [--with-appindicator was given, but test for appindicator failed])
 
133
      fi
 
134
    ]
 
135
  )]
 
136
)
 
137
 
115
138
# Sets up output files.
116
139
AC_CONFIG_FILES([Makefile
 
140
                 common/Makefile
117
141
                 data/Makefile
118
 
                 libdeja-dup/Makefile
119
 
                 monitor/Makefile
120
142
                 deja-dup/Makefile
121
143
                 help/Makefile
 
144
                 monitor/Makefile
122
145
                 nautilus/Makefile
123
146
                 po/Makefile.in
124
147
                 preferences/Makefile
125
148
                 tests/Makefile
126
 
                 vapi/Makefile])
 
149
                 vapi/Makefile
 
150
                 widgets/Makefile])
127
151
AC_OUTPUT
128