~ubuntu-branches/ubuntu/trusty/activity-log-manager/trusty-updates

« back to all changes in this revision

Viewing changes to .pc/10_build-with-gee-0.8.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-03-25 12:56:33 UTC
  • Revision ID: package-import@ubuntu.com-20140325125633-epl6k2b3y7q52f0x
Tags: 0.9.7-0ubuntu12
* debian/patches/10_build-with-gee-0.8.patch: Port to gee 0.8 API to avoid
  loading two gee versions in the same process (LP: #1293036)
* 01_really_hide_automatic_reports.patch: Delete, this is obsolete given
  03_use_libwhoopsie-preferences.patch. Add 13_hide_automatic_reports.patch
  to achieve this with that new patch. (LP: #1203042)
* 11_make_all_widgets_sensitive.patch: Recursively make all widgets
  sensitive/insensitive when we need to, to avoid missing some.
* 12_hide_lock_unlock_button.patch: Hide Lock button when it doesn't do
  anything (when the user can't drop the permissions). (LP: #1239752)
* 14_seconds_combo.patch: Make the entries translatable. (LP: #1235627)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT([activity-log-manager], 
 
2
        [0.9.7], 
 
3
        [http://bugs.launchpad.net/activity-log-manager])
 
4
 
 
5
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
6
 
 
7
AC_PREREQ([2.65])
 
8
 
 
9
AC_CONFIG_MACRO_DIR([m4])
 
10
AC_CONFIG_SRCDIR([Makefile.am])
 
11
AC_CONFIG_HEADERS([config.h])
 
12
AC_CONFIG_SRCDIR([configure.ac])
 
13
AM_INIT_AUTOMAKE([1.13 tar-ustar dist-xz no-dist-gzip -Wno-portability])
 
14
AM_MAINTAINER_MODE
 
15
 
 
16
AC_PROG_CC
 
17
AM_PROG_CC_C_O
 
18
LT_INIT
 
19
PKG_PROG_PKG_CONFIG([0.21])
 
20
 
 
21
AC_SUBST([CFLAGS])
 
22
AC_SUBST([CPPFLAGS])
 
23
AC_SUBST([LDFLAGS])
 
24
 
 
25
AC_DEFINE_UNQUOTED(LOCALE_DIR, "${PREFIX}/${DATADIRNAME}/locale",[Locale directory])
 
26
AC_DEFINE_UNQUOTED(THEME_DIR, "${PREFIX}/${DATADIRNAME}/icons",[Icon directory])
 
27
AC_DEFINE_UNQUOTED(PKG_DATA_DIR, "${PREFIX}/${DATADIRNAME}/${PACKAGE}",[Package data directory])
 
28
 
 
29
 
 
30
dnl Check for vala
 
31
AM_PROG_VALAC([0.16.0])
 
32
 
 
33
IT_PROG_INTLTOOL([0.35.0])
 
34
 
 
35
GETTEXT_PACKAGE=AC_PACKAGE_NAME
 
36
AC_SUBST(GETTEXT_PACKAGE)
 
37
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
 
38
                   [The domain to use with gettext])
 
39
AM_GLIB_GNU_GETTEXT
 
40
 
 
41
PROGRAMNAME_LOCALEDIR=[${datadir}/locale]
 
42
AC_SUBST(PROGRAMNAME_LOCALEDIR)
 
43
 
 
44
PKG_CHECK_MODULES(ZEITGEIST, zeitgeist-2.0, [HAVE_LIBZG=yes])
 
45
PKG_CHECK_MODULES(GTK, gtk+-3.0, [HAVE_GTK=yes])
 
46
PKG_CHECK_MODULES(GEE, gee-1.0, [HAVE_GEE=yes])
 
47
PKG_CHECK_MODULES(GIO_UNIX, gio-unix-2.0, [HAVE_GIO_UNIX=yes])
 
48
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1, [HAVE_POLKIT=yes], [HAVE_POLKIT=no])
 
49
PKG_CHECK_MODULES(LIBWHOOPSIEPREFS, libwhoopsie-preferences, [HAVE_LIBWHOOPSIE=yes], [HAVE_LIBWHOOPSIE=no])
 
50
PKG_CHECK_MODULES(PANTHEON, pantheon, [HAVE_PANTHEON=yes], [HAVE_PANTHEON=no])
 
51
 
 
52
PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0)
 
53
AC_SUBST(GLIB_LIBS)
 
54
AC_SUBST(GLIB_CFLAGS)
 
55
 
 
56
AC_ARG_WITH([extensiondir],
 
57
  [AS_HELP_STRING([--with-extensiondir],
 
58
    [use pkg-config extensiondir instead of PREFIX for plugins @<:@default=yes@:>@])],
 
59
  [],
 
60
  [with_extensiondir=yes])
 
61
 
 
62
AC_ARG_WITH([whoopsie],
 
63
  [AS_HELP_STRING([--with-whoopsie],
 
64
    [build control-center plugin Ubuntu crash reporting page @<:@default=check@:>@])],
 
65
  [with_ccpanel=check],
 
66
  [with_whoopsie=check])
 
67
 
 
68
AC_ARG_WITH([ccpanel],
 
69
  [AS_HELP_STRING([--with-ccpanel],
 
70
    [build control-center plugin @<:@default=check@:>@])],
 
71
  [],
 
72
  [with_ccpanel=check])
 
73
 
 
74
 
 
75
AC_ARG_WITH([switchboard],
 
76
  [AS_HELP_STRING([--with-switchboard],
 
77
    [build elementary switchboard integration @<:@default=check@:>@])],
 
78
  [],
 
79
  [with_switchboard=check])
 
80
 
 
81
 
 
82
PKG_CHECK_MODULES(CCPANEL, libgnome-control-center,
 
83
  [
 
84
   AC_SUBST(CCPANEL_CFLAGS)
 
85
   AC_SUBST(CCPANEL_LIBS)
 
86
   if test "x$with_whoopsie" != xcheck && test "x$HAVE_POLKIT" != xyes; then
 
87
      AC_MSG_FAILURE(
 
88
        [--with-whoopsie was given, but polkit-gobject-1 was not found])
 
89
   fi
 
90
   if test "x$with_whoopsie" != xcheck && test "x$HAVE_LIBWHOOPSIE" != xyes; then
 
91
      AC_MSG_FAILURE(
 
92
        [--with-whoopsie was given, but libwhoopsie or libwhoopsie-preferences was not found])
 
93
   fi
 
94
  ]
 
95
 
 
96
  AC_SUBST(CCPANEL_DIR),
 
97
  [
 
98
    if test "x$with_ccpanel" != xcheck; then
 
99
      AC_MSG_FAILURE(
 
100
        [--with-ccpanel was given, but test for libgnome-control-center failed])
 
101
    fi
 
102
  ]
 
103
)
 
104
 
 
105
PKG_CHECK_MODULES(UNITY_CCPANEL, libunity-control-center,
 
106
  [
 
107
   AC_SUBST(UNITY_CCPANEL_CFLAGS)
 
108
   AC_SUBST(UNITY_CCPANEL_LIBS)
 
109
   if test "x$with_whoopsie" != xcheck && test "x$HAVE_POLKIT" != xyes; then
 
110
      AC_MSG_FAILURE(
 
111
        [--with-whoopsie was given, but polkit-gobject-1 was not found])
 
112
   fi
 
113
   if test "x$with_whoopsie" != xcheck && test "x$HAVE_LIBWHOOPSIE" != xyes; then
 
114
      AC_MSG_FAILURE(
 
115
        [--with-whoopsie was given, but libwhoopsie or libwhoopsie-preferences was not found])
 
116
   fi
 
117
  ]
 
118
 
 
119
  AC_SUBST(UNITY_CCPANEL_DIR),
 
120
  [
 
121
    if test "x$with_ccpanel" != xcheck; then
 
122
      AC_MSG_FAILURE(
 
123
        [--with-ccpanel was given, but test for libunity-control-center failed])
 
124
    fi
 
125
  ]
 
126
)
 
127
 
 
128
AM_CONDITIONAL([HAVE_CCPANEL], [test -n "$CCPANEL_LIBS"  && test "x$with_ccpanel" != xno])
 
129
AM_CONDITIONAL([HAVE_UNITY_CCPANEL], [test -n "$UNITY_CCPANEL_LIBS"  && test "x$with_unity_ccpanel" != xno])
 
130
AM_CONDITIONAL([HAVE_WHOOPSIE], [test -n "$POLKIT_LIBS" && test -n "$LIBWHOOPSIEPREFS_LIBS"])
 
131
 
 
132
AC_CONFIG_FILES([
 
133
Makefile
 
134
data/Makefile
 
135
src/Makefile
 
136
src/gnome-control-center/Makefile
 
137
src/unity-control-center/Makefile
 
138
po/Makefile.in
 
139
])
 
140
 
 
141
if test "x$with_whoopsie" != xno && test "x$HAVE_POLKIT" != xno && test "x$HAVE_LIBWHOOPSIE" != xno; then
 
142
  AC_DEFINE([HAVE_WHOOPSIE], 1, [Enable Whoopsie])
 
143
  WHOOPSIE_ENABLE=yes
 
144
else
 
145
  WHOOPSIE_ENABLE=no
 
146
fi
 
147
 
 
148
if test "x$with_switchboard" != xno && test "x$HAVE_PANTHEON" != xno; then
 
149
  SWITCHBOARD_ENABLE=yes
 
150
else
 
151
  SWITCHBOARD_ENABLE=no
 
152
fi
 
153
 
 
154
if test -n "$CCPANEL_LIBS"  && test "x$with_ccpanel" != xno; then
 
155
  CC_ENABLE=yes
 
156
else
 
157
  CC_ENABLE=no
 
158
fi
 
159
 
 
160
if test -n "$UNITY_CCPANEL_LIBS"  && test "x$with_unity_ccpanel" != xno; then
 
161
  UNITY_CC_ENABLE=yes
 
162
else
 
163
  UNITY_CC_ENABLE=no
 
164
fi
 
165
 
 
166
AM_CONDITIONAL([HAVE_SWITCHBOARD], [test -n "$PANTHEON_LIBS" && test "x$with_switchboard" != xno])
 
167
 
 
168
AM_CONDITIONAL([HAVE_DIAG], [test "x$WHOOPSIE_ENABLE" = xyes])
 
169
 
 
170
AC_OUTPUT
 
171
 
 
172
cat <<EOF
 
173
 
 
174
${PACKAGE}-${VERSION}
 
175
 
 
176
  Build Environment
 
177
    Install Prefix:     ${prefix}
 
178
    Datadir:            ${expanded_datadir}
 
179
    Libdir:             ${expanded_libdir}
 
180
 
 
181
  Optional Integration
 
182
    System Settings:    ${CC_ENABLE}
 
183
    Unity:              ${UNITY_CC_ENABLE}
 
184
    Whoopsie:           ${WHOOPSIE_ENABLE}
 
185
    Switchboard:        ${SWITCHBOARD_ENABLE}
 
186
 
 
187
EOF