12
10
AC_MSG_ERROR([You need to install pkg-config])
15
dnl Handle various possible C# compilers
16
AC_PATH_PROG(CSC, csc, no)
13
SHAMROCK_EXPAND_LIBDIR
14
SHAMROCK_EXPAND_BINDIR
15
SHAMROCK_EXPAND_DATADIR
17
19
AC_PATH_PROG(GMCS, gmcs, no)
18
AC_PATH_PROG(RUNTIME, mono, no)
21
if test "x$CSC" = "xno" ; then
22
if test "x$GMCS" = "xno" ; then
23
if test "x$MCS" = "xno" ; then
24
AC_MSG_ERROR([No $CS compiler found])
37
dnl - Check dependencies
39
PKG_CHECK_MODULES([DO_ADDINS], [do.addins])
40
PKG_CHECK_MODULES([DO_DBUS], [do.dbus])
42
AC_SUBST(DO_ADDINS_LIBS)
43
AC_SUBST(DO_DBUS_LIBS)
46
dnl - Evolution plugin
48
AC_ARG_ENABLE([evolution-plugin],
49
AS_HELP_STRING([--enable-evolution-plugin],[Enable the Evolution plugin]),
50
enable_evo_plugin=$enableval,
51
enable_evo_plugin=auto)
53
if test "x$enable_evo_plugin" != "xno" ; then
54
PKG_CHECK_MODULES([EVOLUTION_SHARP],
58
AC_SUBST(EVOLUTION_SHARP_LIBS)
61
if test "x$has_evo_deps" = "xno" ; then
62
if test "x$enable_evo_plugin" = "xyes" ; then
63
dnl Error out if explicitly asked for the Evolution plugin
64
AC_MSG_ERROR([Could not find evolution-sharp])
66
enable_evo_plugin="no"
68
if test "x$enable_evo_plugin" = "xauto" ; then
69
enable_evo_plugin="yes"
73
AM_CONDITIONAL(ENABLE_EVO_PLUGIN, test "x$enable_evo_plugin" = "xyes")
76
AC_ARG_ENABLE([amarok-plugin],
77
AS_HELP_STRING([--enable-amarok-plugin],[Enable the Amarok plugin]),
78
enable_amarok_plugin=$enableval,
79
enable_amarok_plugin=yes)
81
AM_CONDITIONAL(ENABLE_AMAROK_PLUGIN, test "x$enable_amarok_plugin" = "xyes")
83
dnl - OpenSearch plugin
84
AC_ARG_ENABLE([opensearch-plugin],
85
AS_HELP_STRING([--enable-opensearch-plugin],[Enable the OpenSearch plugin]),
86
enable_opensearch_plugin=$enableval,
87
enable_opensearch_plugin=yes)
89
AM_CONDITIONAL(ENABLE_OPENSEARCH_PLUGIN,
90
test "x$enable_opensearch_plugin" = "xyes")
93
AC_ARG_ENABLE([pastebin-plugin],
94
AS_HELP_STRING([--enable-pastebin-plugin],[Enable the Pastebin plugin]),
95
enable_pastebin_plugin=$enableval,
96
enable_pastebin_plugin=yes)
98
AM_CONDITIONAL(ENABLE_PASTEBIN_PLUGIN, test "x$enable_pastebin_plugin" = "xyes")
101
AC_ARG_ENABLE([banshee-plugin],
102
AS_HELP_STRING([--enable-banshee-plugin],[Enable the Banshee plugin]),
103
enable_banshee_plugin=$enableval,
104
enable_banshee_plugin=auto)
106
if test "x$enable_banshee_plugin" != "xno" ; then
107
PKG_CHECK_MODULES([NDESK_DBUS],
108
[ndesk-dbus-1.0 ndesk-dbus-glib-1.0],
109
has_banshee_deps=yes,
111
AC_SUBST(NDESK_DBUS_LIBS)
114
if test "x$has_banshee_deps" = "xno" ; then
115
if test "x$enable_banshee_plugin" = "xyes" ; then
116
dnl Error out if explicitly asked for the BANSHEE plugin
117
AC_MSG_ERROR([Could not find ndesk-dbus or ndesk-dbus-glib])
119
enable_banshee_plugin="no"
121
if test "x$enable_banshee_plugin" = "xauto" ; then
122
enable_banshee_plugin="yes"
126
AM_CONDITIONAL(ENABLE_BANSHEE_PLUGIN, test "x$enable_banshee_plugin" = "xyes")
130
AC_ARG_ENABLE([ssh-plugin],
131
AS_HELP_STRING([--enable-ssh-plugin],[Enable the SSH plugin]),
132
enable_ssh_plugin=$enableval,
133
enable_ssh_plugin=yes)
135
if test "x$enable_ssh_plugin" != "xno" ; then
136
PKG_CHECK_MODULES([GCONF_SHARP],
140
AC_SUBST(GCONF_SHARP_LIBS)
143
if test "x$has_ssh_deps" = "xno" ; then
144
if test "x$enable_ssh_plugin" = "xyes" ; then
145
dnl Error out if explicitly asked for the SSH plugin
146
AC_MSG_ERROR([Could not find gconf-sharp-2.0])
148
enable_ssh_plugin="no"
150
if test "x$enable_ssh_plugin" = "xauto" ; then
151
enable_ssh_plugin="yes"
155
AM_CONDITIONAL(ENABLE_SSH_PLUGIN, test "x$enable_ssh_plugin" = "xyes")
157
dnl - Launchpad plugin
158
AC_ARG_ENABLE([launchpad-plugin],
159
AS_HELP_STRING([--enable-launchpad-plugin],[Enable the Launchpad plugin]),
160
enable_launchpad_plugin=$enableval,
161
enable_launchpad_plugin=yes)
163
AM_CONDITIONAL(ENABLE_LAUNCHPAD_PLUGIN, test "x$enable_launchpad_plugin" = "xyes")
166
AC_ARG_ENABLE([tomboy-plugin],
167
AS_HELP_STRING([--enable-tomboy-plugin],[Enable the Tomboy plugin]),
168
enable_tomboy_plugin=$enableval,
169
enable_tomboy_plugin=yes)
171
AM_CONDITIONAL(ENABLE_TOMBOY_PLUGIN, test "x$enable_tomboy_plugin" = "xyes")
174
AC_ARG_ENABLE([twitter-plugin],
175
AS_HELP_STRING([--enable-twitter-plugin],[Enable the Twitter plugin]),
176
enable_twitter_plugin=$enableval,
177
enable_twitter_plugin=yes)
179
AM_CONDITIONAL(ENABLE_TWITTER_PLUGIN, test "x$enable_twitter_plugin" = "xyes")
183
dnl Plugin install paths
185
AC_ARG_WITH(plugindir,
186
AS_HELP_STRING([--with-plugindir=DIR],[Plugin install path [$datadir/gnome-do/plugins]]),
187
[plugindir="$withval"],
188
[plugindir="$datadir/gnome-do/plugins"])
20
if test "x$GMCS" = "xno"; then
21
AC_MSG_ERROR([gmcs Not found])
26
AC_HELP_STRING([--enable-debug],
27
[Use 'DEBUG' Configuration [default=YES]]),
28
enable_debug=yes, enable_debug=no)
29
AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
30
if test "x$enable_debug" = "xyes" ; then
31
CONFIG_REQUESTED="yes"
33
AC_ARG_ENABLE(release,
34
AC_HELP_STRING([--enable-release],
35
[Use 'RELEASE' Configuration [default=NO]]),
36
enable_release=yes, enable_release=no)
37
AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
38
if test "x$enable_release" = "xyes" ; then
39
CONFIG_REQUESTED="yes"
41
if test -z "$CONFIG_REQUESTED" ; then
42
AM_CONDITIONAL(ENABLE_DEBUG, true)
47
dnl package checks, common for all configs
48
PKG_CHECK_MODULES([NDESK_DBUS_10], [ndesk-dbus-1.0])
49
PKG_CHECK_MODULES([NDESK_DBUS_GLIB_10], [ndesk-dbus-glib-1.0])
50
PKG_CHECK_MODULES([EVOLUTION_SHARP], [evolution-sharp])
51
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
52
PKG_CHECK_MODULES([GCONF_SHARP_20], [gconf-sharp-2.0])
53
PKG_CHECK_MODULES([DOADDINS], [do.addins])
54
PKG_CHECK_MODULES([DODBUS], [do.dbus])
56
dnl package checks, per config
198
GNOME-Session/Makefile
200
Evolution/src/Makefile
204
Rhythmbox/src/Makefile
209
Thunderbird/src/Makefile
210
GoogleCalculator/Makefile
212
OpenSearch/src/Makefile
214
Pastebin/src/Makefile
215
SimplePlugins/Makefile
222
Launchpad/src/Makefile
223
Launchpad/Resources/Makefile
61
GoogleCalculator/Makefile
67
OpenSearch/opensearch.pc
68
GoogleCalculator/googlecalculator.pc
70
GNOME-Session/gnome-session.pc
80
SimplePlugins/Makefile
83
GNOME-Session/Makefile
87
Evolution/evolution.pc
90
Rhythmbox/rhythmbox.pc
91
Thunderbird/thunderbird.pc
93
LocateFiles/locatefiles.pc
94
SimplePlugins/simpleplugins.pc
95
Launchpad/launchpad.pc