1
dnl Automake setup
2
AC_INIT([banshee-1], [1.4.4beta1])
3
DISPLAY_VERSION="1.4.4 Beta 1"
4
API_VERSION="1.4"
5
ASM_VERSION="$API_VERSION.0.0"
6
AC_SUBST(API_VERSION)
7
AC_SUBST(ASM_VERSION)
8
AC_SUBST(DISPLAY_VERSION)
9
10
DISTCHECK_CONFIGURE_FLAGS="--disable-docs --enable-mtp --enable-daap --enable-podcast --enable-release"
11
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
12
AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/banshee \${ACLOCAL_FLAGS}"])
13
14
AC_CANONICAL_SYSTEM
15
AC_PREREQ(2.13)
16
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar])
17
AM_MAINTAINER_MODE
18
19
dnl Pieces needed by autogen; can't be parsed from macros
20
AM_CONFIG_HEADER(config.h)
21
IT_PROG_INTLTOOL([0.35.0])
22
AC_PROG_LIBTOOL
23
AC_PROG_INSTALL
24
25
dnl Expansions
26
SHAMROCK_EXPAND_LIBDIR
27
SHAMROCK_EXPAND_BINDIR
28
SHAMROCK_EXPAND_DATADIR
29
30
dnl libbanshee/native dependencies (required)
31
BANSHEE_CHECK_LIBBANSHEE
32
BANSHEE_CHECK_GSTREAMER
33
34
BANSHEE_CHECK_NOW_PLAYING_X11
35
36
dnl Mono and gmcs
37
SHAMROCK_CHECK_MONO_MODULE(1.2.2)
38
SHAMROCK_FIND_MONO_2_0_COMPILER
39
SHAMROCK_FIND_MONO_RUNTIME
40
SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([	
41
	System.Data
42
	System.Web
43
	System.Web.Services
44
	Mono.Cairo
45
	Mono.Data.SqliteClient
46
	Mono.Posix
47
	ICSharpCode.SharpZipLib
48
])
49
50
dnl NDesk DBus libraries
51
BANSHEE_CHECK_NDESK_DBUS
52
53
dnl Mono.Addins libraries
54
BANSHEE_CHECK_MONO_ADDINS
55
56
dnl notify-sharp library
57
BANSHEE_CHECK_NOTIFY_SHARP
58
59
dnl Boo
60
BANSHEE_CHECK_BOO
61
62
dnl Monodoc (optional through --disable-docs)
63
SHAMROCK_CHECK_MONODOC
64
65
dnl MediaWeb (optional through --enable-mediaweb)
66
BANSHEE_CHECK_MEDIAWEB
67
68
dnl Moonlight (optional through --enable-moonlight)
69
BANSHEE_CHECK_MOONLIGHT
70
71
dnl NUnit (optional)
72
SHAMROCK_CHECK_NUNIT
73
74
dnl External TagLib# libraries (optional)
75
BANSHEE_CHECK_TAGLIB_SHARP
76
77
dnl Required dependencies (managed/core)
78
BANSHEE_CHECK_GTK_SHARP
79
80
dnl OS X (optional through --enable-osx)
81
BANSHEE_CHECK_OSX
82
83
PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.4)
84
85
dnl GNOME (optional)
86
AC_ARG_ENABLE(gnome, 
87
	AC_HELP_STRING([--disable-gnome], 
88
		[Disable GNOME support]), 
89
	, enable_gnome="yes")
90
if test "x$enable_gnome" = "xyes"; then
91
	BANSHEE_CHECK_GNOME_SHARP
92
	AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
93
	AM_GCONF_SOURCE_2
94
	AM_CONDITIONAL(ENABLE_GNOME, true)
95
else
96
	AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
97
	AM_CONDITIONAL(ENABLE_GNOME, false)
98
fi
99
100
dnl DAP support (each module is optional)
101
BANSHEE_CHECK_DAP_MTP
102
BANSHEE_CHECK_DAP_IPOD
103
BANSHEE_CHECK_DAP_KARMA
104
105
dnl DAAP support (optional)
106
BANSHEE_CHECK_DAAP
107
108
dnl RemoteAudio support (optional)
109
BANSHEE_CHECK_REMOTE_AUDIO
110
111
dnl MonoTorrent support (optional)
112
BANSHEE_CHECK_TORRENT
113
114
dnl i18n
115
SHAMROCK_CONFIGURE_I18N($PACKAGE)
116
117
dnl the bird is the word
118
AC_ARG_ENABLE(podcast, 
119
	AC_HELP_STRING([--disable-podcast], 
120
		[Disable Podcasting support]), 
121
	, enable_podcast="yes")
122
AM_CONDITIONAL(ENABLE_PODCAST, test "x$enable_podcast" = "xyes")
123
124
AC_ARG_ENABLE(release,
125
	AC_HELP_STRING([--enable-release],
126
		[Use release configuration]),
127
	enable_release=yes, enable_release=`test ! -d .svn && echo "yes" || echo "no"`)
128
AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
129
ENABLE_RELEASE=$enable_release
130
AC_SUBST(ENABLE_RELEASE)
131
if test "x$enable_release" = "xyes"; then
132
	GMCS_FLAGS="-define:RELEASE"
133
else
134
	GMCS_FLAGS="-warnaserror"
135
fi
136
AC_SUBST(GMCS_FLAGS)
137
138
AC_ARG_WITH(vendor-build-id,
139
	AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
140
		[Set a vendor build ID, recommended for packagers]),
141
	[vendor_build_id="$withval"], [
142
		test -d .svn \
143
			&& vendor_build_id="svn-checkout" \
144
			|| vendor_build_id="source-tarball"
145
	])
146
BUILD_VENDOR_ID="$vendor_build_id"
147
BUILD_HOST_OS="$host_os"
148
BUILD_HOST_CPU="$host_cpu"
149
BUILD_TIME=`date +"%F %T %Z"`
150
AC_SUBST(BUILD_VENDOR_ID)
151
AC_SUBST(BUILD_HOST_OS)
152
AC_SUBST(BUILD_HOST_CPU)
153
AC_SUBST(BUILD_TIME)
154
155
dnl generated files
156
AC_OUTPUT([
157
Makefile
158
159
build/Makefile
160
build/m4/Makefile
161
build/pkg-config/Makefile
162
163
data/Makefile
164
data/org.bansheeproject.Banshee.service
165
data/org.bansheeproject.CollectionIndexer.service
166
data/audio-profiles/Makefile
167
data/desktop-files/Makefile
168
data/icon-theme-hicolor/Makefile
169
170
docs/Makefile
171
docs/Hyena/Makefile
172
docs/Banshee/Makefile
173
174
po/Makefile.in
175
176
tests/Makefile
177
178
extras/Makefile
179
180
libbanshee/Makefile
181
182
gstreamer/Makefile
183
gstreamer/equalizer/Makefile
184
185
src/Makefile
186
src/AssemblyInfo.cs
187
188
src/Clients/Makefile
189
src/Clients/Beroe/Makefile
190
src/Clients/Booter/Makefile
191
src/Clients/Booter/banshee-1
192
src/Clients/Halie/Makefile
193
src/Clients/Muinshee/Makefile
194
src/Clients/Nereid/Makefile
195
196
src/Core/Makefile
197
src/Core/Banshee.CollectionIndexer/Makefile
198
src/Core/Banshee.Core/Makefile
199
src/Core/Banshee.Services/Makefile
200
src/Core/Banshee.ThickClient/Makefile
201
src/Core/Banshee.Widgets/Makefile
202
203
src/Backends/Makefile
204
src/Backends/Banshee.Gnome/Makefile
205
src/Backends/Banshee.GStreamer/Makefile
206
src/Backends/Banshee.Hal/Makefile
207
src/Backends/Banshee.Unix/Makefile
208
src/Backends/Banshee.Osx/Makefile
209
src/Backends/Banshee.NowPlaying.X11/Makefile
210
src/Backends/Banshee.NowPlaying.X11/libbnpx11/Makefile
211
212
src/Libraries/Makefile
213
src/Libraries/Hyena/Makefile
214
src/Libraries/Hyena.Gui/Makefile
215
src/Libraries/Lastfm/Makefile
216
src/Libraries/Lastfm.Gui/Makefile
217
src/Libraries/Migo/Makefile
218
src/Libraries/Mono.Media/Makefile
219
src/Libraries/Mtp/Makefile
220
src/Libraries/Mtp/Mtp.dll.config
221
src/Libraries/MusicBrainz/Makefile
222
223
src/Dap/Makefile
224
src/Dap/Banshee.Dap/Makefile
225
src/Dap/Banshee.Dap.Ipod/Makefile
226
src/Dap/Banshee.Dap.MassStorage/Makefile
227
src/Dap/Banshee.Dap.Mtp/Makefile
228
src/Dap/Banshee.Dap.Karma/Makefile
229
230
src/Extensions/Makefile
231
src/Extensions/Banshee.AudioCd/Makefile
232
src/Extensions/Banshee.Bookmarks/Makefile
233
src/Extensions/Banshee.BooScript/Makefile
234
src/Extensions/Banshee.CoverArt/Makefile
235
src/Extensions/Banshee.Daap/Makefile
236
src/Extensions/Banshee.FileSystemQueue/Makefile
237
src/Extensions/Banshee.InternetRadio/Makefile
238
src/Extensions/Banshee.Lastfm/Makefile
239
src/Extensions/Banshee.MediaWeb/Makefile
240
src/Extensions/Banshee.MiniMode/Makefile
241
src/Extensions/Banshee.MultimediaKeys/Makefile
242
src/Extensions/Banshee.NotificationArea/Makefile
243
src/Extensions/Banshee.NowPlaying/Makefile
244
src/Extensions/Banshee.PlayQueue/Makefile
245
src/Extensions/Banshee.Podcasting/Makefile
246
src/Extensions/Banshee.SqlDebugConsole/Makefile
247
src/Extensions/Banshee.Sample/Makefile
248
src/Extensions/Banshee.Torrent/Makefile
249
src/Extensions/Banshee.RemoteAudio/Makefile
250
])
251
252
cat <<EOF
253
254
${PACKAGE}-${VERSION}
255
256
  Build Environment
257
    Install Prefix:    ${prefix}
258
    Datadir:           ${expanded_datadir}
259
    Libdir:            ${expanded_libdir}
260
261
    C Compiler:        ${CC}
262
    Mono C# Compiler:  ${MCS} ${GMCS_FLAGS}
263
    Mono Runtime:      ${MONO}
264
265
  Video/Graphics:
266
    Graphics System:   ${GRAPHICS_SUBSYSTEM}
267
    X11 Video:         ${have_xvidmode}
268
    Clutter Video:     ${enable_clutter}
269
270
  Operating System/Desktop Environment:
271
    GNOME Support:     ${enable_gnome}
272
    OSX Support:       ${enable_osx}
273
274
  Digital Audio Player (DAP) Support:
275
    Mass Storage:      yes
276
    MTP:               ${enable_libmtp}
277
    iPod:              ${enable_ipodsharp}
278
    Karma:             ${enable_karmasharp}
279
280
  Extra Features:
281
    DAAP Support:      ${enable_daap}
282
    Podcast Support:   ${enable_podcast}
283
    Boo Scripting:     ${enable_boo}
284
285
  Build/Development:
286
    Unit Tests:        ${do_tests} (requires nunit >= ${NUNIT_REQUIRED})
287
    Release Build:     ${enable_release}
288
    Vendor Build ID:   ${vendor_build_id}
289
290
EOF
291
292
# Unstable/in-development features; only show them if they were manually enabled
293
if test "x$enable_moonlight" = "xyes";    then br=yes; echo "  Moonlight Effects:   ${enable_moonlight}";    fi
294
if test "x$enable_remote_audio" = "xyes"; then br=yes; echo "  Remote Audio:        ${enable_remote_audio}"; fi
295
if test "x$enable_mediaweb" = "xyes";     then br=yes; echo "  MediaWeb:            ${enable_mediaweb}";     fi
296
if test "x$enable_torrent" = "xyes";      then br=yes; echo "  Torrent Podcasts:    ${enable_torrent}";      fi
297
298
if test -d ${expanded_libdir}/${PACKAGE}; then
299
	if test x$br = xyes; then echo; fi
300
	echo "  WARNING: An existing Banshee install is in ${expanded_libdir}/${PACKAGE}"
301
	echo "           Remove the existing install before installing this build."
302
	echo "           Installing over an existing install will cause conflicts!"
303
	echo 
304
fi