3 m4_esyscmd([GNOME_TAG_PATTERN=RYGEL build-aux/git-version-gen .tarball-version]),
4 [http://bugzilla.gnome.org/enter_bug.cgi?product=Rygel])
5 AC_CONFIG_AUX_DIR([build-aux])
8 AC_CONFIG_SRCDIR([src/rygel/rygel-root-device.vala])
9 AM_CONFIG_HEADER([config.h])
10 AC_CONFIG_MACRO_DIR([m4])
13 # Disable generation of static libraries
25 GUPNP_AV_REQUIRED=0.7.0
26 GUPNP_DLNA_REQUIRED=0.5.0
27 GUPNP_VALA_REQUIRED=0.7.5
28 GSTREAMER_REQUIRED=0.10.23
29 GSTREAMER_TAG_REQUIRED=0.10.28
30 GSTREAMER_APP_REQUIRED=0.10.28
34 LIBSOUP_REQUIRED=2.26.0
35 LIBSQLITE3_REQUIRED=3.5
38 PKG_CHECK_MODULES(LIBGSSDP, gssdp-1.0 >= $GSSDP_REQUIRED)
39 PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED)
40 PKG_CHECK_MODULES(LIBGUPNP_AV, gupnp-av-1.0 >= $GUPNP_AV_REQUIRED)
41 PKG_CHECK_MODULES(LIBGUPNP_DLNA, gupnp-dlna-1.0 >= $GUPNP_DLNA_REQUIRED)
42 PKG_CHECK_MODULES(LIBGSTREAMER, gstreamer-0.10 >= $GSTREAMER_REQUIRED)
43 PKG_CHECK_MODULES(LIBGIO, gio-2.0 >= $GIO_REQUIRED)
44 PKG_CHECK_MODULES(GEE, gee-1.0 >= $GEE_REQUIRED)
45 PKG_CHECK_MODULES(UUID, uuid >= $UUID_REQUIRED)
46 PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= $LIBSOUP_REQUIRED)
49 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
50 AC_SUBST(GLIB_GENMARSHAL)
53 [ --enable-vala enable checks for vala],,
55 AC_ARG_ENABLE(sql-debugging,
56 [ --enable-sql-debugging enable SQL statement debugging],,
57 enable_sql_debugging=no)
59 if test x$enable_sql_debugging = xyes ; then
60 VALAFLAGS="$VALAFLAGS -D RYGEL_DEBUG_SQL"
63 # Enable check for Vala even if not asked to do so if stamp files are absent.
64 if test ! -e src/rygel/rygel_vala.stamp -o \
65 ! -e src/ui/rygel_preferences_vala.stamp -o \
66 ! -e src/plugins/playbin/librygel_playbin_la_vala.stamp -o \
67 ! -e src/plugins/tracker/librygel_media_tracker_la_vala.stamp -o \
68 ! -e src/plugins/test/librygel_test_la_vala.stamp -o \
69 ! -e src/plugins/media-export/librygel_media_export_la_vala.stamp -o \
70 ! -e src/plugins/mediathek/librygel_mediathek_la_vala.stamp -o \
71 ! -e src/plugins/gst-launch/librygel_gst_launch_la_vala.stamp -o \
72 ! -e src/plugins/mpris/librygel_mpris_la_vala.stamp -o \
73 ! -e src/plugins/external/librygel_external_la_vala.stamp ; then
78 if test x$enable_vala = xyes ; then
80 AM_PROG_VALAC([$VALA_REQUIRED])
82 if test "x$VALAC" = "x"; then
83 AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
86 PKG_CHECK_MODULES(GUPNP_VALA, gupnp-vala-1.0 >= $GUPNP_VALA_REQUIRED)
88 VALA_CHECK_PACKAGES([gupnp-1.0
92 gstreamer-pbutils-0.10
98 VAPIDIR="${datadir}/vala/vapi"
103 [ --enable-debug enable debugging],,
105 if test "x$enable_debug" = "xyes"; then
106 CFLAGS="$CFLAGS -O0 -g"
109 AC_ARG_ENABLE([strict-valac],
110 [ --enable-strict-valac enable strict Vala compiler],,
111 [enable_strict_valac=no])
112 if test "x$enable_strict_valac" = "xyes"; then
113 VALAFLAGS="$VALAFLAGS --fatal-warnings"
117 AC_ARG_ENABLE(strict-cc,
118 [ --enable-strict-cc enable strict C compiler],,
120 if test "x$enable_strict_cc" = "xyes"; then
121 CFLAGS="$CFLAGS -Wall -Werror"
127 AC_ARG_ENABLE(uninstalled,
128 [ --enable-uninstalled run uninstalled],,
129 enable_uninstalled=no)
130 if test "x$enable_uninstalled" = "xyes"; then
131 AC_MSG_WARN("You want to run the tools uninstalled only? Fine!")
134 # Check wether user wants to build UIs
136 AC_HELP_STRING([--without-ui],[Do not build UI applications]),
137 try_ui=$withval, try_ui=yes )
140 if test x$try_ui = xyes ; then
142 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED,
146 if test x$enable_vala = xyes ; then
147 VALA_CHECK_PACKAGES([gtk+-3.0], [HAVE_GTK=yes])
154 AC_MSG_WARN([gtk $GTK_REQUIRED or greater not found.])
155 AC_MSG_WARN([UI applications will not be built.])
158 AC_MSG_NOTICE([UI applications disabled.])
161 if test x$HAVE_GTK = xno; then
165 AC_DEFINE(HAVE_GTK, , [Build UI applications])
169 AM_CONDITIONAL(BUILD_UI, test x$BUILD_UI = xyes)
172 AC_ARG_ENABLE(test-plugin,
173 [ --enable-test-plugin build test plugin],,
174 enable_test_plugin=no)
176 # Build Tracker plugin
177 AC_ARG_ENABLE(tracker-plugin,
178 [ --enable-tracker-plugin build tracker plugin],,
179 enable_tracker_plugin=yes)
181 # Build MediaExport plugin
182 AC_ARG_ENABLE(media-export-plugin,
183 [ --enable-media-export-plugin build MediaExport plugin],,
184 enable_media_export_plugin=yes)
186 # Build External plugin
187 AC_ARG_ENABLE(external-plugin,
188 [ --enable-external-plugin build External plugin],,
189 enable_external_plugin=yes)
191 # Build MPRIS2 plugin
192 AC_ARG_ENABLE(mpris-plugin,
193 [ --enable-mpris-plugin build MPRIS2 plugin],,
194 enable_mpris_plugin=yes)
196 # Build GstRenderer plugin
197 AC_ARG_ENABLE(playbin-plugin,
198 [ --enable-playbin_plugin build Gstreamer Playbin plugin],,
199 enable_playbin_plugin=yes)
201 # Build Mediathek plugin
202 AC_ARG_ENABLE(mediathek-plugin,
203 [ --enable-mediathek-plugin build Mediathek plugin],,
204 enable_mediathek_plugin=no)
206 # Build GstLaunch plugin
207 AC_ARG_ENABLE(gst-launch-plugin,
208 [ --enable-gst-launch-plugin build Gstreamer launchline plugin],,
209 enable_gst_launch_plugin=no)
212 AC_SUBST(abs_top_builddir)
214 AM_CONDITIONAL([UNINSTALLED], [test "x$enable_uninstalled" = "xyes"])
215 AM_CONDITIONAL([BUILD_TEST_PLUGIN], [test "x$enable_test_plugin" = "xyes"])
216 AM_CONDITIONAL([BUILD_TRACKER_PLUGIN],
217 [test "x$enable_tracker_plugin" = "xyes"])
218 AM_CONDITIONAL([BUILD_MEDIATHEK_PLUGIN], [test "x$enable_mediathek_plugin" = "xyes"])
219 AM_CONDITIONAL([BUILD_MEDIA_EXPORT_PLUGIN], [test "x$enable_media_export_plugin" = "xyes"])
220 AM_CONDITIONAL([BUILD_EXTERNAL_PLUGIN], [test "x$enable_external_plugin" = "xyes"])
221 AM_CONDITIONAL([BUILD_MPRIS_PLUGIN], [test "x$enable_mpris_plugin" = "xyes"])
222 AM_CONDITIONAL([BUILD_PLAYBIN_PLUGIN], [test "x$enable_playbin_plugin" = "xyes"])
223 AM_CONDITIONAL([BUILD_GST_LAUNCH_PLUGIN], [test "x$enable_gst_launch_plugin" = "xyes"])
225 if test "x$enable_media_export_plugin" = "xyes";
227 PKG_CHECK_MODULES(LIBSQLITE3, sqlite3 >= $LIBSQLITE3_REQUIRED)
228 PKG_CHECK_MODULES(GSTREAMER_TAG, gstreamer-tag-0.10 >= $GSTREAMER_TAG_REQUIRED);
229 PKG_CHECK_MODULES(GSTREAMER_APP, gstreamer-app-0.10 >= $GSTREAMER_APP_REQUIRED);
230 if test x$enable_vala = xyes ; then
231 VALA_CHECK_PACKAGES([sqlite3
238 GETTEXT_PACKAGE=AC_PACKAGE_NAME
239 AC_SUBST(GETTEXT_PACKAGE)
240 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"],
241 [Define the gettext package to be used])
244 IT_PROG_INTLTOOL([0.35.0])
249 AM_SILENT_RULES([yes])
252 AC_PATH_PROG([XSLTPROC], [xsltproc])
253 AM_CONDITIONAL([HAVE_XSLTPROC], [test x"$XSLTPROC" != x])
263 src/plugins/media-export/Makefile
264 src/plugins/external/Makefile
265 src/plugins/mpris/Makefile
266 src/plugins/gst-launch/Makefile
267 src/plugins/mediathek/Makefile
268 src/plugins/tracker/Makefile
269 src/plugins/playbin/Makefile
270 src/plugins/test/Makefile
274 data/icons/32x32/Makefile
275 data/icons/48x48/Makefile
276 data/icons/120x120/Makefile
277 data/icons/scalable/Makefile
278 data/rygel.desktop.in
279 data/rygel-preferences.desktop.in
288 ${PACKAGE} ${VERSION}
293 Source code location: ${srcdir}
296 uninstalled: ${enable_uninstalled}
297 preferences ui: ${BUILD_UI}
298 SQL debugging: ${enable_sql_debugging}
300 test: ${enable_test_plugin}
301 tracker: ${enable_tracker_plugin}
302 mediathek: ${enable_mediathek_plugin}
303 media-export ${enable_media_export_plugin}
304 external: ${enable_external_plugin}
305 MPRIS2: ${enable_mpris_plugin}
306 gst-launch: ${enable_gst_launch_plugin}
307 playbin: ${enable_playbin_plugin}