~zeitgeist/zeitgeist/mimetype-icons

1 by Manish Sinha
Created the basic skeleton of alm
1
AC_INIT([activity-log-manager], 
2
        [0.9.5], 
3
        [http://bugs.launchpad.net/activity-log-manager])
4
36 by Rico Tzschichholz
build: Some cleaning and updating, create xz-tarballs from now on
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])
1 by Manish Sinha
Created the basic skeleton of alm
11
AC_CONFIG_HEADERS([config.h])
36 by Rico Tzschichholz
build: Some cleaning and updating, create xz-tarballs from now on
12
AC_CONFIG_SRCDIR([configure.ac])
13
AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip -Wno-portability])
14
AM_MAINTAINER_MODE
1 by Manish Sinha
Created the basic skeleton of alm
15
16
AC_PROG_CC
17
AM_PROG_CC_C_O
18
LT_INIT
36 by Rico Tzschichholz
build: Some cleaning and updating, create xz-tarballs from now on
19
PKG_PROG_PKG_CONFIG([0.21])
20
21
AC_SUBST([CFLAGS])
22
AC_SUBST([CPPFLAGS])
23
AC_SUBST([LDFLAGS])
1 by Manish Sinha
Created the basic skeleton of alm
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
37 by Rico Tzschichholz
build: Bump valac to 0.16 as needed
31
AM_PROG_VALAC([0.16.0])
1 by Manish Sinha
Created the basic skeleton of alm
32
33
IT_PROG_INTLTOOL([0.35.0])
34
36 by Rico Tzschichholz
build: Some cleaning and updating, create xz-tarballs from now on
35
GETTEXT_PACKAGE=AC_PACKAGE_NAME
1 by Manish Sinha
Created the basic skeleton of alm
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-1.0, [HAVE_LIBZG=yes], [HAVE_LIBZG=no])
45
PKG_CHECK_MODULES(GTK, gtk+-3.0, [HAVE_GTK=yes], [HAVE_GTK=no])
46
PKG_CHECK_MODULES(GEE, gee-1.0, [HAVE_GEE=yes], [HAVE_GEE=no])
47
PKG_CHECK_MODULES(GIO_UNIX, gio-unix-2.0, [HAVE_GIO_UNIX=yes], [HAVE_GIO_UNIX=no])
48
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1, [HAVE_POLKIT=yes], [HAVE_POLKIT=no])
19 by Manish Sinha
Added libwhoopsie check
49
PKG_CHECK_MODULES(LIBWHOOPSIE, libwhoopsie, [HAVE_LIBWHOOPSIE=yes], [HAVE_LIBWHOOPSIE=no])
25 by Manish Sinha
Managed to make the elementary switchboard building
50
PKG_CHECK_MODULES(PANTHEON, pantheon, [HAVE_PANTHEON=yes], [HAVE_PANTHEON=no])
1 by Manish Sinha
Created the basic skeleton of alm
51
20 by Manish Sinha
Fixed the i18n error, added po to SUBDIRS, added correct file names in POTFILES.in and POTFILES.skip and cleaning up the generated files via EXTRA_DIST
52
PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0)
53
AC_SUBST(GLIB_LIBS)
54
AC_SUBST(GLIB_CFLAGS)
55
1 by Manish Sinha
Created the basic skeleton of alm
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@:>@])],
16 by Manish Sinha
The build system now differenciates between --with-whoopsie and --without-whoopsie
65
  [with_ccpanel=yes],
1 by Manish Sinha
Created the basic skeleton of alm
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
15 by Manish Sinha
Got the build working and commented out all the Switchboard related content temporarily
74
20 by Manish Sinha
Fixed the i18n error, added po to SUBDIRS, added correct file names in POTFILES.in and POTFILES.skip and cleaning up the generated files via EXTRA_DIST
75
AC_ARG_WITH([switchboard],
76
  [AS_HELP_STRING([--with-switchboard],
77
    [build elementary switchboard integration @<:@default=check@:>@])],
78
  [],
79
  [with_switchboard=check])
1 by Manish Sinha
Created the basic skeleton of alm
80
81
82
PKG_CHECK_MODULES(CCPANEL, libgnome-control-center,
16 by Manish Sinha
The build system now differenciates between --with-whoopsie and --without-whoopsie
83
  [
84
   AC_SUBST(CCPANEL_CFLAGS)
1 by Manish Sinha
Created the basic skeleton of alm
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
19 by Manish Sinha
Added libwhoopsie check
90
   if test "x$with_whoopsie" != xcheck && test "x$HAVE_LIBWHOOPSIE" != xyes; then
91
      AC_MSG_FAILURE(
92
        [--with-whoopsie was given, but libwhoopsie was not found])
93
   fi
16 by Manish Sinha
The build system now differenciates between --with-whoopsie and --without-whoopsie
94
  ]
1 by Manish Sinha
Created the basic skeleton of alm
95
16 by Manish Sinha
The build system now differenciates between --with-whoopsie and --without-whoopsie
96
  AC_SUBST(CCPANEL_DIR),
97
  [
98
    if test "x$with_whoopsie" != xcheck; then
1 by Manish Sinha
Created the basic skeleton of alm
99
      AC_MSG_FAILURE(
100
        [--with-whoopsie was given, but test for libgnome-control-center failed])
101
    fi
102
    if test "x$with_ccpanel" != xcheck; then
103
      AC_MSG_FAILURE(
104
        [--with-ccpanel was given, but test for libgnome-control-center failed])
105
    fi
106
  ]
107
)
108
27 by Manish Sinha
Fix the build system such that make distcheck doesn't explode
109
AM_CONDITIONAL([HAVE_CCPANEL], [test -n "$CCPANEL_LIBS"  && test "x$with_ccpanel" != xno])
1 by Manish Sinha
Created the basic skeleton of alm
110
111
AM_CONDITIONAL([HAVE_WHOOPSIE], [test -n "$POLKIT_LIBS"])
20 by Manish Sinha
Fixed the i18n error, added po to SUBDIRS, added correct file names in POTFILES.in and POTFILES.skip and cleaning up the generated files via EXTRA_DIST
112
1 by Manish Sinha
Created the basic skeleton of alm
113
114
AC_CONFIG_FILES([
115
Makefile
116
data/Makefile
117
src/Makefile
35 by Rico Tzschichholz
build: Fix make dist
118
src/diagnostics/Makefile
14 by Manish Sinha
Upodated configure.ac to make sure the po/Makefile.in and po/Makefile are being created
119
po/Makefile.in
1 by Manish Sinha
Created the basic skeleton of alm
120
])
121
19 by Manish Sinha
Added libwhoopsie check
122
123
if test "x$with_whoopsie" != xno && test "x$HAVE_POLKIT" != xno && test "x$HAVE_LIBWHOOPSIE" != xno; then
124
  WHOOPSIE_ENABLE=yes
125
else
126
  WHOOPSIE_ENABLE=no
127
fi
128
26 by Manish Sinha
Make sure that HAVE_PANTHEON is used for SWITCHBOARD_ENABLE and HAVE_SWITCHBOARD takes into consideration $with_switchboard
129
if test "x$with_switchboard" != xno && test "x$HAVE_PANTHEON" != xno; then
25 by Manish Sinha
Managed to make the elementary switchboard building
130
  SWITCHBOARD_ENABLE=yes
131
else
132
  SWITCHBOARD_ENABLE=no
133
fi
134
27 by Manish Sinha
Fix the build system such that make distcheck doesn't explode
135
if test -n "$CCPANEL_LIBS"  && test "x$with_ccpanel" != xno; then
136
  CC_ENABLE=yes
137
else
138
  CC_ENABLE=no
139
fi
140
26 by Manish Sinha
Make sure that HAVE_PANTHEON is used for SWITCHBOARD_ENABLE and HAVE_SWITCHBOARD takes into consideration $with_switchboard
141
AM_CONDITIONAL([HAVE_SWITCHBOARD], [test -n "$PANTHEON_LIBS" && test "x$with_switchboard" != xno])
19 by Manish Sinha
Added libwhoopsie check
142
143
AM_CONDITIONAL([HAVE_DIAG], [test "x$WHOOPSIE_ENABLE" = xyes])
18 by Manish Sinha
Added diagnostic's Makefile.in and some minor changes to let SUBDIRS included
144
1 by Manish Sinha
Created the basic skeleton of alm
145
AC_OUTPUT
146
147
cat <<EOF
148
149
${PACKAGE}-${VERSION}
150
151
  Build Environment
152
    Install Prefix:     ${prefix}
153
    Datadir:            ${expanded_datadir}
154
    Libdir:             ${expanded_libdir}
155
156
  Optional Integration
16 by Manish Sinha
The build system now differenciates between --with-whoopsie and --without-whoopsie
157
    System Settings:    ${CC_ENABLE}
158
    Whoopsie:           ${WHOOPSIE_ENABLE}
20 by Manish Sinha
Fixed the i18n error, added po to SUBDIRS, added correct file names in POTFILES.in and POTFILES.skip and cleaning up the generated files via EXTRA_DIST
159
    Switchboard:        ${SWITCHBOARD_ENABLE}
1 by Manish Sinha
Created the basic skeleton of alm
160
161
EOF