~ci-train-bot/hud/hud-ubuntu-zesty-2345

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Ted Gould
  • Date: 2010-04-19 17:29:36 UTC
  • Revision ID: ted@gould.cx-20100419172936-gjri3tzun8kgkbtd
Tags: upstream-0.0.0
Boot strap

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
AC_INIT(indicator-appmenu, 0.0.0, ted@canonical.com)
 
3
AC_COPYRIGHT([Copyright 2010 Canonical])
 
4
 
 
5
AC_PREREQ(2.53)
 
6
 
 
7
AM_CONFIG_HEADER(config.h)
 
8
AM_INIT_AUTOMAKE(indicator-appmenu, 0.0.0)
 
9
 
 
10
AM_MAINTAINER_MODE
 
11
 
 
12
AC_ISC_POSIX
 
13
AC_PROG_CC
 
14
AM_PROG_CC_C_O
 
15
AC_STDC_HEADERS
 
16
AC_PROG_LIBTOOL
 
17
 
 
18
AC_SUBST(VERSION)
 
19
AC_CONFIG_MACRO_DIR([m4])
 
20
 
 
21
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
22
 
 
23
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
 
24
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
 
25
 
 
26
PKG_PROG_PKG_CONFIG
 
27
 
 
28
###########################
 
29
# GTK Doc
 
30
###########################
 
31
 
 
32
GTK_DOC_CHECK([1.9])
 
33
AC_CONFIG_MACRO_DIR(m4)
 
34
 
 
35
 
 
36
###########################
 
37
# Dependencies
 
38
###########################
 
39
 
 
40
GTK_REQUIRED_VERSION=2.12
 
41
INDICATOR_REQUIRED_VERSION=0.3.5
 
42
DBUSMENUGTK_REQUIRED_VERSION=0.2.2
 
43
DBUS_GLIB_REQUIRED_VERSION=0.82
 
44
 
 
45
PKG_CHECK_MODULES(INDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION
 
46
                             indicator >= $INDICATOR_REQUIRED_VERSION
 
47
                             dbus-glib-1 >= $DBUS_GLIB_REQUIRED_VERSION
 
48
                             dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION)
 
49
 
 
50
AC_SUBST(INDICATOR_CFLAGS)
 
51
AC_SUBST(INDICATOR_LIBS)
 
52
 
 
53
###########################
 
54
# Check to see if we're local
 
55
###########################
 
56
 
 
57
with_localinstall="no"
 
58
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
 
59
 
 
60
###########################
 
61
# Indicator Info
 
62
###########################
 
63
 
 
64
if test "x$with_localinstall" = "xyes"; then
 
65
        INDICATORDIR="${libdir}/indicators/3/"
 
66
        INDICATORICONSDIR="${datadir}/libindicate/icons/"
 
67
else
 
68
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
 
69
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
 
70
fi
 
71
AC_SUBST(INDICATORDIR)
 
72
AC_SUBST(INDICATORICONSDIR)
 
73
 
 
74
###########################
 
75
# DBus Service Info
 
76
###########################
 
77
 
 
78
if test "x$with_localinstall" = "xyes"; then
 
79
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
80
else
 
81
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
82
fi
 
83
AC_SUBST(DBUSSERVICEDIR)
 
84
 
 
85
###########################
 
86
# Files
 
87
###########################
 
88
 
 
89
AC_OUTPUT([
 
90
Makefile
 
91
])
 
92
 
 
93
###########################
 
94
# Results
 
95
###########################
 
96
 
 
97
AC_MSG_NOTICE([
 
98
 
 
99
App Menu Indicator Configuration:
 
100
 
 
101
        Prefix:        $prefix
 
102
        Indicator Dir: $INDICATORDIR
 
103
])