1
AC_INIT([activity-log-manager],
3
[http://bugs.launchpad.net/activity-log-manager])
5
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
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])
19
PKG_PROG_PKG_CONFIG([0.21])
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])
31
AM_PROG_VALAC([0.16.0])
33
IT_PROG_INTLTOOL([0.35.0])
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])
41
PROGRAMNAME_LOCALEDIR=[${datadir}/locale]
42
AC_SUBST(PROGRAMNAME_LOCALEDIR)
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])
52
PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0)
56
AC_ARG_WITH([extensiondir],
57
[AS_HELP_STRING([--with-extensiondir],
58
[use pkg-config extensiondir instead of PREFIX for plugins @<:@default=yes@:>@])],
60
[with_extensiondir=yes])
62
AC_ARG_WITH([whoopsie],
63
[AS_HELP_STRING([--with-whoopsie],
64
[build control-center plugin Ubuntu crash reporting page @<:@default=check@:>@])],
66
[with_whoopsie=check])
68
AC_ARG_WITH([ccpanel],
69
[AS_HELP_STRING([--with-ccpanel],
70
[build control-center plugin @<:@default=check@:>@])],
75
AC_ARG_WITH([switchboard],
76
[AS_HELP_STRING([--with-switchboard],
77
[build elementary switchboard integration @<:@default=check@:>@])],
79
[with_switchboard=check])
82
PKG_CHECK_MODULES(CCPANEL, libgnome-control-center,
84
AC_SUBST(CCPANEL_CFLAGS)
85
AC_SUBST(CCPANEL_LIBS)
86
if test "x$with_whoopsie" != xcheck && test "x$HAVE_POLKIT" != xyes; then
88
[--with-whoopsie was given, but polkit-gobject-1 was not found])
90
if test "x$with_whoopsie" != xcheck && test "x$HAVE_LIBWHOOPSIE" != xyes; then
92
[--with-whoopsie was given, but libwhoopsie or libwhoopsie-preferences was not found])
96
AC_SUBST(CCPANEL_DIR),
98
if test "x$with_ccpanel" != xcheck; then
100
[--with-ccpanel was given, but test for libgnome-control-center failed])
105
PKG_CHECK_MODULES(UNITY_CCPANEL, libunity-control-center,
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
111
[--with-whoopsie was given, but polkit-gobject-1 was not found])
113
if test "x$with_whoopsie" != xcheck && test "x$HAVE_LIBWHOOPSIE" != xyes; then
115
[--with-whoopsie was given, but libwhoopsie or libwhoopsie-preferences was not found])
119
AC_SUBST(UNITY_CCPANEL_DIR),
121
if test "x$with_ccpanel" != xcheck; then
123
[--with-ccpanel was given, but test for libunity-control-center failed])
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"])
136
src/gnome-control-center/Makefile
137
src/unity-control-center/Makefile
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])
148
if test "x$with_switchboard" != xno && test "x$HAVE_PANTHEON" != xno; then
149
SWITCHBOARD_ENABLE=yes
151
SWITCHBOARD_ENABLE=no
154
if test -n "$CCPANEL_LIBS" && test "x$with_ccpanel" != xno; then
160
if test -n "$UNITY_CCPANEL_LIBS" && test "x$with_unity_ccpanel" != xno; then
166
AM_CONDITIONAL([HAVE_SWITCHBOARD], [test -n "$PANTHEON_LIBS" && test "x$with_switchboard" != xno])
168
AM_CONDITIONAL([HAVE_DIAG], [test "x$WHOOPSIE_ENABLE" = xyes])
174
${PACKAGE}-${VERSION}
177
Install Prefix: ${prefix}
178
Datadir: ${expanded_datadir}
179
Libdir: ${expanded_libdir}
182
System Settings: ${CC_ENABLE}
183
Unity: ${UNITY_CC_ENABLE}
184
Whoopsie: ${WHOOPSIE_ENABLE}
185
Switchboard: ${SWITCHBOARD_ENABLE}