release: Bump version to 2.1.3
[banshee-community-extensions:banshee-community-extensions.git] / configure.ac
1 AC_PREREQ(2.52)
2 AC_INIT([banshee-community-extensions], 2.1.3,
3         [http://bugzilla.gnome.org/enter_bug.cgi?product=banshee&component=Community%20Extensions])
4
5 AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar dist-zip foreign])
6 AM_MAINTAINER_MODE
7 AM_CONFIG_HEADER([config.h])
8
9 IT_PROG_INTLTOOL([0.35.0])
10 AC_PROG_LIBTOOL
11 AC_PROG_INSTALL
12
13 dnl How to configure for distcheck
14 DISTCHECK_CONFIGURE_FLAGS="--enable-release --enable-tests"
15 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
16
17 dnl Expansions
18 SHAMROCK_EXPAND_LIBDIR
19 SHAMROCK_EXPAND_BINDIR
20 SHAMROCK_EXPAND_DATADIR
21
22 dnl User help
23 SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)
24
25 dnl Mono and gmcs
26 SHAMROCK_CHECK_MONO_MODULE(1.9.1)
27 SHAMROCK_FIND_MONO_2_0_COMPILER
28 SHAMROCK_FIND_MONO_RUNTIME
29
30 dnl Banshee deps
31 PKG_CHECK_MODULES(BANSHEE, banshee-thickclient >= 2.1.0)
32 AC_SUBST(BANSHEE_LIBS)
33
34 dnl Banshee Extensions Path
35 BCE_FIND_BANSHEE
36
37 dnl For native/glue libraries
38 AC_ISC_POSIX
39 AC_PROG_CC
40 AC_PROG_CXX
41 AC_HEADER_STDC
42
43 dnl GNOME (optional)
44 AC_ARG_ENABLE(gnome, 
45         AC_HELP_STRING([--disable-gnome], 
46                 [Disable GNOME support]), 
47         , enable_gnome="yes")
48 if test "x$enable_gnome" = "xyes"; then
49         AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
50         AM_GCONF_SOURCE_2
51         AM_CONDITIONAL(ENABLE_GNOME, true)
52 else
53         AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
54         AM_CONDITIONAL(ENABLE_GNOME, false)
55 fi
56
57 dnl i18n
58 SHAMROCK_CONFIGURE_I18N($PACKAGE)
59
60 dnl Release
61 AC_ARG_ENABLE(release,
62         AC_HELP_STRING([--enable-release],
63                 [Use release configuration]),
64         enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
65 AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
66 ENABLE_RELEASE=$enable_release
67 AC_SUBST(ENABLE_RELEASE)
68 if test "x$enable_release" = "xyes"; then
69         GMCS_FLAGS="-define:RELEASE"
70 else
71         GMCS_FLAGS="-warnaserror"
72 fi
73 AC_SUBST(GMCS_FLAGS)
74
75 dnl Unit Tests (optional)
76 SHAMROCK_CHECK_UNIT_TESTS
77
78 dnl Extensions
79 BCE_ALARMCLOCK
80 BCE_ALBUMARTWRITER
81 BCE_AMPACHE
82 BCE_APPINDICATOR
83 BCE_AWN
84 BCE_CLUTTERFLOW
85 BCE_COVERWALLPAPER
86 BCE_DUPLICATESONGDETECTOR
87 BCE_JAMENDO
88 BCE_LASTFMFINGERPRINT
89 BCE_LCD
90 BCE_LIRC
91 BCE_LIVERADIO
92 BCE_LYRICS
93 BCE_MAGNATUNE
94 BCE_MIRAGE
95 BCE_OPENVP
96 BCE_RADIOSTATIONFETCHER
97 BCE_RANDOMBYLASTFM
98 BCE_STREAMRECORDER
99 BCE_KARAOKE
100 BCE_TELEPATHY
101 BCE_ZEITGEISTDP
102
103 AC_ARG_WITH(vendor-build-id,
104         AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
105                 [Set a vendor build ID, recommended for packagers]),
106         [vendor_build_id="$withval"], [
107                 test -d .git \
108                         && vendor_build_id="git-checkout" \
109                         || vendor_build_id="source-tarball"
110         ])
111 BUILD_VENDOR_ID="$vendor_build_id"
112 BUILD_HOST_OS="$host_os"
113 BUILD_HOST_CPU="$host_cpu"
114 BUILD_TIME=`date +"%F %T %Z"`
115 AC_SUBST(BUILD_VENDOR_ID)
116 AC_SUBST(BUILD_HOST_OS)
117 AC_SUBST(BUILD_HOST_CPU)
118 AC_SUBST(BUILD_TIME)
119
120 SHAVE_INIT([build/m4/shave], [enable])
121
122 dnl generated files
123 AC_OUTPUT([
124 Makefile
125
126 build/Makefile
127 build/m4/Makefile
128 build/m4/shave/shave
129 build/m4/shave/shave-libtool
130
131 help/Makefile
132
133 po/Makefile.in
134
135 src/Makefile
136 src/AssemblyInfo.cs
137
138 src/AlarmClock/Makefile
139 src/AlbumArtWriter/Makefile
140 src/Ampache/Makefile
141 src/AppIndicator/Makefile
142 src/Awn/Makefile
143 src/ClutterFlow/Makefile
144 src/ClutterFlow/Banshee.ClutterFlow/Makefile
145 src/ClutterFlow/ClutterFlow/Makefile
146 src/CoverWallpaper/Makefile
147 src/DuplicateSongDetector/Makefile
148 src/Jamendo/Makefile
149 src/Karaoke/Makefile
150 src/LastfmFingerprint/Makefile
151 src/LastfmFingerprint/Banshee.LastfmFingerprint/Makefile
152 src/LastfmFingerprint/liblastfmfpbridge/Makefile
153 src/LCD/Makefile
154 src/Lirc/Makefile
155 src/Lirc/lirc-glue/Makefile
156 src/Lirc/Banshee.Lirc/Makefile
157 src/Lirc/GUITestHarness/Makefile
158 src/Lirc/NUnitTests/Makefile
159 src/LiveRadio/Makefile
160 src/Lyrics/Makefile
161 src/OpenVP/Makefile
162 src/OpenVP/Cdh.Affe/Makefile
163 src/OpenVP/Cdh.Affe.Tests/Makefile
164 src/OpenVP/OpenVP/Makefile
165 src/OpenVP/OpenVP.Core/Makefile
166 src/OpenVP/OpenVP.Scripting/Makefile
167 src/OpenVP/Banshee.OpenVP/Makefile
168 src/OpenVP/Banshee.OpenVP.Visualizations/Makefile
169 src/Magnatune/Makefile
170 src/Mirage/Makefile
171 src/Mirage/libmirageaudio/Makefile
172 src/Mirage/Mirage/Makefile
173 src/Mirage/Banshee.Mirage/Makefile
174 src/Mirage/Test/Makefile
175 src/RadioStationFetcher/Makefile
176 src/RandomByLastfm/Makefile
177 src/StreamRecorder/Makefile
178 src/Telepathy/Makefile
179 src/Telepathy/Banshee.Telepathy/Makefile
180 src/ZeitgeistDataprovider/Makefile
181 ])
182
183 cat <<EOF
184
185 ${PACKAGE}-${VERSION}
186
187   Build Environment
188     Install Prefix:      ${prefix}
189     Datadir:             ${expanded_datadir}
190     Libdir:              ${expanded_libdir}
191     Extensions libdir:   ${expanded_extensionsdir}
192
193     C Compiler:          ${CC}
194     Mono C# Compiler:    ${MCS} ${GMCS_FLAGS}
195     Mono Runtime:        ${MONO}
196
197   Build/Development:
198     Release Build:       ${enable_release}
199     Vendor Build ID:     ${vendor_build_id}
200     Unit Tests:          ${enable_tests} (requires nunit >= ${NUNIT_REQUIRED}, --enable-tests)
201     User Help:           ${enable_user_help} (requires gnome-doc-utils >= 0.17.3)
202
203   Extensions:
204     Alarm Clock:           ${enable_AlarmClock}
205     AlbumArtWriter:        ${enable_AlbumArtWriter}
206     Ampache:               ${enable_Ampache}
207     AppIndicator:          ${enable_AppIndicator}
208     Awn:                   ${enable_Awn}
209     ClutterFlow:           ${enable_ClutterFlow}
210     CoverWallpaper:        ${enable_CoverWallpaper}
211     DuplicateSongDetector: ${enable_DuplicateSongDetector}
212     Jamendo:               ${enable_Jamendo}
213     Karaoke:               ${enable_Karaoke}
214     LastfmFingerprint:     ${enable_LastfmFingerprint}
215     LCD:                   ${enable_LCD}
216     Lirc:                  ${enable_Lirc}
217     LiveRadio:             ${enable_LiveRadio}
218     Lyrics:                ${enable_Lyrics}
219     Magnatune:             ${enable_Magnatune}
220     Mirage:                ${enable_Mirage}
221     OpenVP:                ${enable_OpenVP}
222     RadioStationFetcher:   ${enable_RadioStationFetcher}
223     RandomByLastfm:        ${enable_RandomByLastfm}
224     StreamRecorder:        ${enable_StreamRecorder}
225     Telepathy:             ${enable_Telepathy}
226     ZeitgeistDataprovider: ${enable_ZeitgeistDataprovider}
227
228 EOF