~mhr3/unity-lens-files/fix-921665

212 by Michal Hruby
Release 5.4.0
1
AC_INIT(unity-lens-files, 5.4.0, https://launchpad.net/unity-lens-files)
210 by Michal Hruby
Release 5.2.0
2
AC_COPYRIGHT([Copyright 2010-2012 Canonical])
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
3
4
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
5
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
6
#####################################################
7
# Silent build rules
8
#####################################################
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
9
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
10
11
AC_PREREQ(2.59)
12
13
AC_CONFIG_HEADERS([config.h])
14
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
15
#####################################################
16
# Init the other things we depend on
17
#####################################################
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
18
AM_MAINTAINER_MODE
206.1.4 by Michal Hruby
Bump valac requirement
19
AM_PROG_VALAC([0.14.0])
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
20
AS_IF([test -z "$VALAC"], [AC_MSG_ERROR(["No valac compiler found."])])
21
AC_PROG_CC
22
AM_PROG_CC_C_O
23
AC_HEADER_STDC
24
25
LT_INIT
26
AC_CONFIG_MACRO_DIR([m4])
27
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
28
#############################################
29
# Gettext
30
#############################################
31
GETTEXT_PACKAGE="$PACKAGE"
32
AC_SUBST(GETTEXT_PACKAGE)
33
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
34
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext domain])
76 by Mikkel Kamstrup Erlandsen
Bring gettext configure.ac magic more in line with what is described on the Ubuntu wiki
35
AM_GLIB_GNU_GETTEXT
36
37
# AM_GNOME_GETTEXT above substs $DATADIRNAME
38
# this is the directory where the *.{mo,gmo} files are installed
39
localedir='${prefix}/${DATADIRNAME}/locale'
40
AC_SUBST(localedir)
41
42
IT_PROG_INTLTOOL([0.40.0])
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
43
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
44
AC_DEFINE_UNQUOTED(LOCALE_DIR, "${PREFIX}/${DATADIRNAME}/locale",[Locale directory])
45
AC_DEFINE_UNQUOTED(DATADIR, "${PREFIX}/${DATADIRNAME}",[Data directory])
46
AC_DEFINE_UNQUOTED(PREFIXDIR, "${PREFIX}",[Prefix directory])
47
99.1.1 by Mikkel Kamstrup Erlandsen
Make .place file translatable
48
######################################################
172.1.1 by Neil Jagdish Patel
half-way-house
49
# intltool rule for generating translated .lens file
99.1.1 by Mikkel Kamstrup Erlandsen
Make .place file translatable
50
######################################################
172.1.1 by Neil Jagdish Patel
half-way-house
51
INTLTOOL_LENS_RULE='%.lens: %.lens.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
52
AC_SUBST(INTLTOOL_LENS_RULE)
99.1.1 by Mikkel Kamstrup Erlandsen
Make .place file translatable
53
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
54
#####################################################
55
# Check for module and library dependancies
56
#####################################################
128 by Mikkel Kamstrup Erlandsen
Require glib >= 2.27 in order to get GApplication
57
GLIB_REQUIRED=2.27
172.1.1 by Neil Jagdish Patel
half-way-house
58
PKG_CHECK_MODULES(LENS_DAEMON,
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
59
                  glib-2.0 >= $GLIB_REQUIRED
60
                  gobject-2.0 >= $GLIB_REQUIRED
61
                  gio-2.0 >= $GLIB_REQUIRED
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
62
                  gio-unix-2.0 >= $GLIB_REQUIRED
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
63
                  gee-1.0
160 by Mikkel Kamstrup Erlandsen
Release 0.5.44 (bumping Dee dep to 0.5.16)
64
                  dee-1.0 >= 0.5.16
163.1.1 by Mikkel Kamstrup Erlandsen
Require latest libzeitgeist in order to get the fixed VAPI for ZeitgeistMonitor
65
                  zeitgeist-1.0 >= 0.3.7
196.1.2 by Michal Hruby
Use new libunity API
66
                  unity >= 4.99.0)
141 by Mikkel Kamstrup Erlandsen
Adapt to API break in libunity revno 37, v3.4.3. Flattening on Unity.Place namespace
67
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
68
172.1.1 by Neil Jagdish Patel
half-way-house
69
AC_SUBST(LENS_DAEMON_CFLAGS)
70
AC_SUBST(LENS_DAEMON_LIBS)
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
71
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
72
#####################################################
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
73
# local install for distcheck and stand-alone running
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
74
#####################################################
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
75
with_localinstall="no"
76
AC_ARG_ENABLE(localinstall,
77
              AS_HELP_STRING([--enable-localinstall],
78
                             [Install all of the files locally instead of in system directories (for distcheck)]),
79
              with_localinstall=$enableval,
80
              with_localinstall=no)
81
82
AM_CONDITIONAL([HAVE_LOCALINSTALL], [test "x$with_localinstall" = "xyes"])
25.1.1 by Didier Roche
- install daemon binary to lib/
83
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
84
#####################################################
85
# Expand variables needed for config.vala
86
#####################################################
20 by Mikkel Kamstrup Erlandsen
Properly expand all variables in config.vala at build time
87
AS_AC_EXPAND(PREFIX, $prefix)
88
AC_SUBST(PREFIX)
89
90
AS_AC_EXPAND(DATADIR, $datarootdir)
91
AC_SUBST(DATADIR)
92
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
93
#####################################################
173 by Neil Jagdish Patel
[merge] Place => Lens
94
# Look for dbus service dir
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
95
#####################################################
96
if test "x$with_localinstall" = "xyes"; then
97
	DBUSSERVICEDIR="${datadir}/dbus-1/services/"
98
else
99
	DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
100
fi
101
AC_SUBST(DBUSSERVICEDIR)
102
103
#####################################################
173 by Neil Jagdish Patel
[merge] Place => Lens
104
# Look for correct Lenses dir
105
#####################################################
106
if test "x$with_localinstall" = "xyes"; then
174 by Neil Jagdish Patel
Fix a boo boo
107
	LENSESDIR="${datadir}/unity/lenses"
173 by Neil Jagdish Patel
[merge] Place => Lens
108
else
109
	LENSESDIR=`$PKG_CONFIG --variable=lensesdir unity`
110
fi
111
AC_SUBST(LENSESDIR)
112
113
#####################################################
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
114
# Create the Makefiles
115
#####################################################
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
116
AC_CONFIG_FILES([
117
  Makefile
172.1.1 by Neil Jagdish Patel
half-way-house
118
  files.lens.in
25.1.1 by Didier Roche
- install daemon binary to lib/
119
  data/Makefile
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
120
  src/Makefile
11 by Mikkel Kamstrup Erlandsen
Flatten src/ dir and ensure distcheck passes. Clean up unused files. Bump version to 0.3.1
121
  src/config.vala
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
122
  po/Makefile.in
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
123
])
124
AC_OUTPUT
125
73.1.1 by Mikkel Kamstrup Erlandsen
Prettify configure.ac
126
#####################################################
127
# Output the results
128
#####################################################
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
129
AC_MSG_NOTICE([
130
172.1.1 by Neil Jagdish Patel
half-way-house
131
  Unity Files Lens Daemon $VERSION
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
132
  -------------------------------
133
173 by Neil Jagdish Patel
[merge] Place => Lens
134
  Prefix          : ${prefix}
73.1.2 by Mikkel Kamstrup Erlandsen
Enable i18n
135
  
173 by Neil Jagdish Patel
[merge] Place => Lens
136
  Local install   : ${with_localinstall}
137
138
  Extra CFlags    : ${CPPFLAGS} $MAINTAINER_CFLAGS
139
  Extra ValaFlags : ${CPPFLAGS} $MAINTAINER_VALAFLAGS
140
141
  Lenses Directory: ${LENSESDIR}
1 by Mikkel Kamstrup Erlandsen
Initial project setup of a Unity Place Daemon providing recently used files. At the time of writing we require dbusmodel trunk and libzeitgeist trunk in order to work.
142
])