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