Updated Slovenian translation
[banshee.git] / configure.ac
blob0122cc00ce224aa1459f708beb8c490a61b89aff
1 dnl Granularly define the version components
2 dnl Remember to also update the Display Version
3 m4_define([banshee_version_major], [2])
4 m4_define([banshee_version_minor], [5])
5 m4_define([banshee_version_micro], [0])
7 dnl this can sometimes differ manually
8 m4_define([banshee_display_version], ["2.5.0"])
10 dnl set to 0 when doing an official release
11 m4_define([banshee_version_pre_release], [0])
13 m4_define([concat], $1$2$3$4)
15 dnl create base version string
16 m4_define([banshee_version], concat(banshee_version_major., banshee_version_minor., banshee_version_micro))
18 dnl create the release version
19 m4_define([banshee_version],
20         m4_if(banshee_version_pre_release, [0],
21                 banshee_version,
22                 concat(banshee_version, banshee_version_pre_release)))
24 m4_define([banshee_api_version], [banshee_version_major.banshee_version_minor])
25 m4_define([banshee_asm_version], [banshee_api_version.0.0])
27 AC_PREREQ(2.52)
28 AC_INIT([banshee], banshee_version, [http://bugzilla.gnome.org/enter_bug.cgi?product=banshee])
30 AM_INIT_AUTOMAKE([1.10 no-dist-gzip dist-bzip2 tar-ustar foreign])
31 AM_MAINTAINER_MODE([enable])
32 AM_CONFIG_HEADER([config.h])
33 AC_CONFIG_MACRO_DIR([build/m4])
34 AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/banshee -I build/m4/shave \${ACLOCAL_FLAGS}"])
36 IT_PROG_INTLTOOL([0.35.0])
37 AC_PROG_LIBTOOL
38 AC_PROG_INSTALL
40 dnl How to configure for distcheck
41 DISTCHECK_CONFIGURE_FLAGS="--disable-docs --enable-mtp --enable-daap --enable-user-help --enable-release"
42 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
44 dnl Export Version Info
45 AC_SUBST([API_VERSION], [banshee_api_version])
46 AC_SUBST([ASM_VERSION], [banshee_asm_version])
47 AC_SUBST([DISPLAY_VERSION], [banshee_display_version])
49 dnl Expansions
50 SHAMROCK_EXPAND_LIBDIR
51 SHAMROCK_EXPAND_BINDIR
52 SHAMROCK_EXPAND_DATADIR
54 dnl libbanshee/native dependencies (required)
55 BANSHEE_CHECK_LIBBANSHEE
56 BANSHEE_CHECK_GSTREAMER
58 dnl For the new media backend using gstreamer-sharp
59 BANSHEE_CHECK_GSTREAMER_SHARP
61 BANSHEE_CHECK_NOW_PLAYING_X11
63 dnl User help
64 SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)
66 dnl Mono and gmcs
67 SHAMROCK_CHECK_MONO_MODULE(2.4.3)
68 SHAMROCK_FIND_MONO_2_0_COMPILER
69 SHAMROCK_FIND_MONO_RUNTIME
70 SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([Mono.Cairo Mono.Posix ICSharpCode.SharpZipLib])
72 dnl Check for GNOME >= 2.28 to see if we should remove
73 dnl 'Media Player' from the app Name, bgo#596242, except
74 dnl in MeeGo where GNOME >= 2.28, but we want the full name
75 PKG_CHECK_MODULES(GNOME_2_28, gnome-desktop-2.0 >= 2.28, HAVE_GNOME_2_28=yes, HAVE_GNOME_2_28=no)
76 PKG_CHECK_MODULES(MEEGO_PANEL, meego-panel, HAVE_MEEGO_PANEL=yes, HAVE_MEEGO_PANEL=no)
77 if test "x$HAVE_GNOME_2_28" = "xno" -o "x$HAVE_MEEGO_PANEL" = "xyes"; then
78         BANSHEE_DESKTOP_NAME="_Name=Banshee Media Player"
79 else
80         BANSHEE_DESKTOP_NAME="_Name=Banshee"
82 AC_SUBST(BANSHEE_DESKTOP_NAME)
84 if test "x$HAVE_MEEGO_PANEL" = "xyes"; then
85   MEEGO_PANELS_DIR=`$PKG_CONFIG --variable=meego_panel_panels_dir meego-panel`
86 else
87   MEEGO_PANELS_DIR='${datadir}/mutter-meego/panels'
89 AC_SUBST(MEEGO_PANELS_DIR)
92 dnl Check for gdk-x11 >= 2.22 for NotificationArea extension, bgo#638477
93 PKG_CHECK_MODULES(GDK_2_22, gdk-x11-2.0 >= 2.22, have_gdk_2_22=yes, have_gdk_2_22=no)
94 AM_CONDITIONAL(HAVE_GDK_2_22, test "x$have_gdk_2_22" = "xyes")
96 dnl DBus Sharp libraries
97 BANSHEE_CHECK_DBUS_SHARP
99 dnl Mono.Addins libraries
100 BANSHEE_CHECK_MONO_ADDINS
102 dnl notify-sharp library
103 BANSHEE_CHECK_NOTIFY_SHARP
105 dnl Boo
106 BANSHEE_CHECK_BOO
108 dnl Monodoc (optional through --disable-docs)
109 SHAMROCK_CHECK_MONODOC
111 dnl webkit (optional through --disable-webkit)
112 BANSHEE_CHECK_LIBWEBKIT
114 dnl gdata (optional through --disable-youtube)
115 BANSHEE_CHECK_YOUTUBE
117 dnl gtk#-beans and gio#
118 BANSHEE_CHECK_GIO_SHARP
120 dnl Moonlight (optional through --enable-moonlight)
121 BANSHEE_CHECK_MOONLIGHT
123 dnl NUnit (optional)
124 SHAMROCK_CHECK_NUNIT
126 dnl External TagLib# libraries (optional)
127 BANSHEE_CHECK_TAGLIB_SHARP
129 dnl Required dependencies (managed/core)
130 BANSHEE_CHECK_GTK_SHARP
132 dnl OS X (optional through --enable-osx)
133 BANSHEE_CHECK_OSX
135 dnl Mono.Upnp libraries
136 BANSHEE_CHECK_MONO_UPNP
138 PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.4)
140 dnl GNOME (optional)
141 AC_ARG_ENABLE(gnome, AC_HELP_STRING([--disable-gnome], [Disable GNOME support]), , enable_gnome="yes")
142 if test "x$enable_gnome" = "xyes"; then
143         BANSHEE_CHECK_GNOME_SHARP
144         BANSHEE_CHECK_GCONF
145         AM_CONDITIONAL(ENABLE_GNOME, true)
146 else
147         AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
148         AM_CONDITIONAL(ENABLE_GNOME, false)
151 dnl DAP support (each module is optional)
152 BANSHEE_CHECK_DAP_MTP
153 BANSHEE_CHECK_DAP_APPLEDEVICE
154 BANSHEE_CHECK_DAP_KARMA
156 dnl DAAP support (optional)
157 BANSHEE_CHECK_DAAP
159 dnl RemoteAudio support (optional)
160 BANSHEE_CHECK_REMOTE_AUDIO
162 dnl MonoTorrent support (optional)
163 BANSHEE_CHECK_TORRENT
165 dnl MeeGo integration (optional)
166 BANSHEE_CHECK_MEEGO
168 dnl Sound menu integration (optional)
169 BANSHEE_CHECK_SOUNDMENU
171 dnl Ubuntu One Music Store (optional)
172 BANSHEE_CHECK_UBUNTUONE
174 dnl Gapless, if we have a new-enough playbin2
175 ENABLE_GAPLESS="no"
176 AC_ARG_ENABLE(gapless-playback,
177         AC_HELP_STRING([--enable-gapless-playback],
178                 [Enable gapless playback engine (requires gst-plugins-base > 0.10.25.2)]),
179                 enable_gapless=$enableval,
180                 enable_gapless=auto)
181 if test "x$enable_gapless" != "xno" ; then
182         PKG_CHECK_MODULES([GST_PLUGINS_BASE], [gstreamer-plugins-base-0.10 > 0.10.25.2], ENABLE_GAPLESS=yes, ENABLE_GAPLESS=no)
183         if test "x$enable_gapless" == "xyes" -a "x$ENABLE_GAPLESS" == "xno" ; then
184                 AC_MSG_ERROR([Gapless playback requires gstreamer-plugins-base > 0.10.25.2])
185         fi
187 AM_CONDITIONAL(ENABLE_GAPLESS, test "x$ENABLE_GAPLESS" = "xyes")   
189 dnl i18n
190 SHAMROCK_CONFIGURE_I18N($PACKAGE)
192 AC_ARG_ENABLE(release,
193         AC_HELP_STRING([--enable-release],
194                 [Use release configuration]),
195         enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
196 AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
197 ENABLE_RELEASE=$enable_release
198 AC_SUBST(ENABLE_RELEASE)
199 if test "x$enable_release" = "xyes"; then
200         GMCS_FLAGS="-define:RELEASE"
201 else
202         GMCS_FLAGS="-warnaserror"
204 AC_SUBST(GMCS_FLAGS)
206 AM_CONDITIONAL(HYENA_PKG_CONFIG, false)
208 AC_ARG_WITH(vendor-build-id,
209         AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
210                 [Set a vendor build ID, recommended for packagers]),
211         [vendor_build_id="$withval"], [
212                 test -d .git \
213                         && vendor_build_id="git-checkout" \
214                         || vendor_build_id="source-tarball"
215         ])
216 BUILD_VENDOR_ID="$vendor_build_id"
217 BUILD_HOST_OS="$host_os"
218 BUILD_HOST_CPU="$host_cpu"
219 BUILD_TIME=`date +"%F %T %Z"`
220 AC_SUBST(BUILD_VENDOR_ID)
221 AC_SUBST(BUILD_HOST_OS)
222 AC_SUBST(BUILD_HOST_CPU)
223 AC_SUBST(BUILD_TIME)
225 SHAVE_INIT([build/m4/shave], [enable])
227 dnl generated files
228 AC_OUTPUT([
229 Makefile
231 build/Makefile
232 build/m4/Makefile
233 build/m4/shave/shave
234 build/m4/shave/shave-libtool
235 build/pkg-config/Makefile
237 data/Makefile
238 data/org.bansheeproject.Banshee.service
239 data/org.bansheeproject.CollectionIndexer.service
240 data/audio-profiles/Makefile
241 data/desktop-files/Makefile
242 data/desktop-files/common.desktop
243 data/icon-theme-hicolor/Makefile
245 help/Makefile
247 docs/Makefile
248 docs/Hyena/Makefile
249 docs/Banshee/Makefile
251 po/Makefile.in
253 tests/Makefile
254 tests/Analyzer/Makefile
255 tests/Performance/Makefile
257 extras/Makefile
259 libbanshee/Makefile
261 src/Hyena/Makefile
262 src/Hyena/build/Makefile
263 src/Hyena/build/pkg-config/Makefile
264 src/Hyena/build/m4/Makefile
265 src/Hyena/Hyena/Makefile
266 src/Hyena/Hyena.Data.Sqlite/Makefile
267 src/Hyena/Hyena.Gui/Makefile
269 src/Makefile
270 src/AssemblyInfo.cs
272 src/Clients/Makefile
273 src/Clients/Beroe/Makefile
274 src/Clients/Booter/Makefile
275 src/Clients/Booter/banshee.linux
276 src/Clients/Booter/banshee.darwin
277 src/Clients/Halie/Makefile
278 src/Clients/Muinshee/Makefile
279 src/Clients/Nereid/Makefile
280 src/Clients/MeeGo/Makefile
282 src/Core/Makefile
283 src/Core/Banshee.CollectionIndexer/Makefile
284 src/Core/Banshee.Core/Makefile
285 src/Core/Banshee.Services/Makefile
286 src/Core/Banshee.ThickClient/Makefile
287 src/Core/Banshee.Widgets/Makefile
288 src/Core/Banshee.WebBrowser/Makefile
289 src/Core/Banshee.WebBrowser/libossifer/Makefile
291 src/Backends/Makefile
292 src/Backends/Banshee.Gio/Makefile
293 src/Backends/Banshee.Gnome/Makefile
294 src/Backends/Banshee.GStreamer/Makefile
295 src/Backends/Banshee.GStreamerSharp/Makefile
296 src/Backends/Banshee.Unix/Makefile
297 src/Backends/Banshee.Osx/Makefile
298 src/Backends/Banshee.NowPlaying.X11/Makefile
299 src/Backends/Banshee.NowPlaying.X11/libbnpx11/Makefile
300 src/Backends/Banshee.Windows/Makefile
302 src/Libraries/Makefile
303 src/Libraries/Lastfm/Makefile
304 src/Libraries/Lastfm.Gui/Makefile
305 src/Libraries/Migo/Makefile
306 src/Libraries/Mono.Media/Makefile
307 src/Libraries/Mtp/Makefile
308 src/Libraries/Mtp/Mtp.dll.config
309 src/Libraries/MusicBrainz/Makefile
311 src/Dap/Makefile
312 src/Dap/Banshee.Dap/Makefile
313 src/Dap/Banshee.Dap.AppleDevice/Makefile
314 src/Dap/Banshee.Dap.MassStorage/Makefile
315 src/Dap/Banshee.Dap.Mtp/Makefile
316 src/Dap/Banshee.Dap.Karma/Makefile
318 src/Extensions/Makefile
319 src/Extensions/Banshee.AmazonMp3/Makefile
320 src/Extensions/Banshee.AmazonMp3.Store/Makefile
321 src/Extensions/Banshee.Audiobook/Makefile
322 src/Extensions/Banshee.BooScript/Makefile
323 src/Extensions/Banshee.Bpm/Makefile
324 src/Extensions/Banshee.CoverArt/Makefile
325 src/Extensions/Banshee.Daap/Makefile
326 src/Extensions/Banshee.Emusic/Makefile
327 src/Extensions/Banshee.Emusic.Store/Makefile
328 src/Extensions/Banshee.FileSystemQueue/Makefile
329 src/Extensions/Banshee.InternetArchive/Makefile
330 src/Extensions/Banshee.Fixup/Makefile
331 src/Extensions/Banshee.InternetRadio/Makefile
332 src/Extensions/Banshee.Lastfm/Makefile
333 src/Extensions/Banshee.LastfmStreaming/Makefile
334 src/Extensions/Banshee.LibraryWatcher/Makefile
335 src/Extensions/Banshee.MiniMode/Makefile
336 src/Extensions/Banshee.MiroGuide/Makefile
337 src/Extensions/Banshee.MeeGo/Makefile
338 src/Extensions/Banshee.Mpris/Makefile
339 src/Extensions/Banshee.MultimediaKeys/Makefile
340 src/Extensions/Banshee.NotificationArea/Makefile
341 src/Extensions/Banshee.NowPlaying/Makefile
342 src/Extensions/Banshee.OpticalDisc/Makefile
343 src/Extensions/Banshee.PlayQueue/Makefile
344 src/Extensions/Banshee.PlayerMigration/Makefile
345 src/Extensions/Banshee.Podcasting/Makefile
346 src/Extensions/Banshee.SoundMenu/Makefile
347 src/Extensions/Banshee.SqlDebugConsole/Makefile
348 src/Extensions/Banshee.Sample/Makefile
349 src/Extensions/Banshee.Torrent/Makefile
350 src/Extensions/Banshee.RemoteAudio/Makefile
351 src/Extensions/Banshee.UbuntuOneMusicStore/Makefile
352 src/Extensions/Banshee.UPnPClient/Makefile
353 src/Extensions/Banshee.Wikipedia/Makefile
354 src/Extensions/Banshee.YouTube/Makefile
356 extras/metrics/Makefile
359 cat <<EOF
361 ${PACKAGE}-${VERSION}
363   Build Environment
364     Install Prefix:        ${prefix}
365     Datadir:               ${expanded_datadir}
366     Libdir:                ${expanded_libdir}
368     C Compiler:            ${CC}
369     Mono C# Compiler:      ${MCS} ${GMCS_FLAGS}
370     Mono Runtime:          ${MONO}
371     Gtk#:                  ${gtk_version}
373   Video/Graphics:
374     Graphics System:       ${GRAPHICS_SUBSYSTEM}
375     X11 Video:             ${have_xvidmode}
376     Clutter:               ${enable_clutter}
378   Operating System/Desktop Environment:
379     GNOME Support:         ${enable_gnome}
380     OSX Support:           ${enable_osx}
381     MeeGo Support:         ${enable_meego}
383   Digital Audio Player (DAP) Support:
384     Apple Device:          ${enable_appledevice} (libgpod-sharp)
385     Karma:                 ${enable_karmasharp}
386     Mass Storage:          yes
387     MTP:                   ${enable_libmtp}
389   Extra Features:
390     Web Browser:           ${have_libwebkit} (webkit-1.0 >= $WEBKIT_MIN_VERSION, libsoup-2.4 >= $SOUP_MIN_VERSION)
391       + GNOME Proxy        ${have_libsoup_gnome} (libsoup-gnome-2.4 >= $SOUP_GNOME_MIN_VERSION)
392     Boo Scripting:         ${enable_boo}
393     DAAP:                  ${enable_daap}
394     GIO Backend:           ${enable_gio} (glib >= 2.22, gio-sharp >= 2.22.3, and gtk-sharp-beans)
395     GIO Hardware:          ${enable_gio_hardware} (gudev-sharp, gkeyfile-sharp)
396     YouTube:               ${enable_youtube} (gdata-sharp >= 1.4)
397     Sound Menu:            ${enable_soundmenu}
398     Ubuntu One Store:      ${enable_ubuntuone} (ubuntuone-sharp >= 0.3.2)
399     UPnP:                  ${enable_upnp} (mono-upnp >= $MONOUPNP_REQUIRED)
401   Build/Development:
402     Unit Tests:            ${do_tests} (nunit >= ${NUNIT_REQUIRED})
403     API Docs:              ${enable_docs} (monodocer and mdassembler)
404     User Help:             ${enable_user_help} (gnome-doc-utils >= 0.17.3)
405     Release Build:         ${enable_release}
406     Vendor Build ID:       ${vendor_build_id}
410 # Unstable/in-development features; only show them if they were manually enabled
411 if test "x$enable_moonlight" = "xyes";    then br=yes; echo "  Moonlight Effects:   ${enable_moonlight}";    fi
412 if test "x$enable_remote_audio" = "xyes"; then br=yes; echo "  Remote Audio:        ${enable_remote_audio}"; fi
413 if test "x$enable_torrent" = "xyes";      then br=yes; echo "  Torrent Podcasts:    ${enable_torrent}";      fi
414 if test "x$enable_gst_sharp" = "xyes";    then br=yes; echo "  Gst# Backend:        ${enable_gst_sharp} (unfinished, experimental!)";      fi
416 if test -d ${expanded_libdir}/${PACKAGE}; then
417         if test x$br = xyes; then echo; fi
418         echo "  WARNING: An existing Banshee install is in ${expanded_libdir}/${PACKAGE}"
419         echo "           Remove the existing install before installing this build."
420         echo "           Installing over an existing install will cause conflicts!"
421         echo