2
# Process this file with autoconf to produce a configure script.
3
# This file is part of Tracker.
8
# TRACKER_MICRO_VERSION += 1;
9
# TRACKER_INTERFACE_AGE += 1;
10
# TRACKER_BINARY_AGE += 1;
11
# if any functions have been added, set TRACKER_INTERFACE_AGE to 0.
12
# if backwards compatibility has been broken,
13
# set TRACKER_BINARY_AGE and TRACKER_INTERFACE_AGE to 0.
14
m4_define([tracker_major_version], [0])
15
m4_define([tracker_minor_version], [12])
16
m4_define([tracker_micro_version], [9])
17
m4_define([tracker_interface_age], [9])
18
m4_define([tracker_binary_age],
19
[m4_eval(100 * tracker_minor_version + tracker_micro_version)])
20
m4_define([tracker_version],
21
[tracker_major_version.tracker_minor_version.tracker_micro_version])
22
# This is the X.Y used in -llibtracker-FOO-X.Y
23
m4_define([tracker_api_version], [0.12])
25
# libtool version related macros
26
m4_define([tracker_lt_release], [tracker_major_version.tracker_minor_version])
27
m4_define([tracker_lt_current],
28
[m4_eval(100 * tracker_minor_version + tracker_micro_version - tracker_interface_age)])
29
m4_define([tracker_lt_revision], [tracker_interface_age])
30
m4_define([tracker_lt_age], [m4_eval(tracker_binary_age - tracker_interface_age)])
31
m4_define([tracker_lt_current_minus_age],
32
[m4_eval(tracker_lt_current - tracker_lt_age)])
34
# Define a string for the earliest version that this release has
35
# backwards binary compatibility with for all interfaces a module
36
# might. Unless we add module-only API with lower stability
37
# guarantees, this should be unchanged until we break binary compat
40
# TRACKER_BINARY_VERSION=$TRACKER_MAJOR_VERSION.$TRACKER_MINOR_VERSION.$LT_CURRENT
41
m4_define([tracker_binary_version], [0.12.0])
45
[http://bugzilla.gnome.org/],
47
[http://www.tracker-project.org])
49
AC_CONFIG_SRCDIR([src/tracker-store/tracker-main.vala])
50
AC_CONFIG_MACRO_DIR([m4])
51
AC_CONFIG_HEADERS([config.h])
53
AM_INIT_AUTOMAKE([1.11 no-define tar-ustar -Wno-portability])
55
AM_SILENT_RULES([yes])
59
TRACKER_MAJOR_VERSION=tracker_major_version
60
TRACKER_MINOR_VERSION=tracker_minor_version
61
TRACKER_MICRO_VERSION=tracker_micro_version
62
TRACKER_INTERFACE_AGE=tracker_interface_age
63
TRACKER_BINARY_AGE=tracker_binary_age
64
TRACKER_VERSION=tracker_version
65
TRACKER_API_VERSION=tracker_api_version
66
TRACKER_BINARY_VERSION=tracker_binary_version
68
dnl Note: this creates TRACKER_API_VERSION_UNDERSCORES and AC_SUBST's it
69
AX_DOTS_TO_UNDERSCORES(TRACKER_API_VERSION, tracker_api_version)
71
AC_SUBST(TRACKER_MAJOR_VERSION)
72
AC_SUBST(TRACKER_MINOR_VERSION)
73
AC_SUBST(TRACKER_MICRO_VERSION)
74
AC_SUBST(TRACKER_INTERFACE_AGE)
75
AC_SUBST(TRACKER_BINARY_AGE)
76
AC_SUBST(TRACKER_API_VERSION)
77
AC_SUBST(TRACKER_VERSION)
78
AC_SUBST(TRACKER_BINARY_VERSION)
80
AC_DEFINE(TRACKER_MAJOR_VERSION, [tracker_major_version],
81
[Define to the Tracker major version])
82
AC_DEFINE(TRACKER_MINOR_VERSION, [tracker_minor_version],
83
[Define to the Tracker minor version])
84
AC_DEFINE(TRACKER_MICRO_VERSION, [tracker_micro_version],
85
[Define to the Tracker micro version])
86
AC_DEFINE(TRACKER_INTERFACE_AGE, [tracker_interface_age],
87
[Define to the Tracker interface age])
88
AC_DEFINE(TRACKER_BINARY_AGE, [tracker_binary_age],
89
[Define to the Tracker binary age])
92
LT_RELEASE=tracker_lt_release
93
LT_CURRENT=tracker_lt_current
94
LT_REVISION=tracker_lt_revision
96
LT_CURRENT_MINUS_AGE=tracker_lt_current_minus_age
101
AC_SUBST(LT_CURRENT_MINUS_AGE)
103
# Checks for programs.
115
LT_INIT([disable-static])
117
# Checks for header files.
119
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h linux/unistd.h sys/statvfs.h])
121
AC_CHECK_HEADER([zlib.h],
123
[AC_MSG_ERROR([You must have zlib.h and zlib installed])])
125
# Can posix_fadvise be used
126
AC_CHECK_DECLS(posix_fadvise, [], [], [
127
#define _XOPEN_SOURCE 600
130
# Checks for functions
131
AC_CHECK_FUNCS([posix_fadvise])
132
AC_CHECK_FUNCS([getline])
136
# if statvfs64() is available, enable the 64-bit API extensions
137
AC_CHECK_FUNCS([statvfs64], [have_statvfs64=yes], [have_statvfs64=no])
138
if test "x$have_statvfs" = "xyes" ; then
139
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
142
# Check for defines we expect
143
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
145
printf ("%s", __FUNCTION__);
150
if test "x$have_function" = "xno" ; then
151
AC_DEFINE(__FUNCTION__,
153
[Defined for compilers not supporting __FUNCTION__])
156
# Binary required versions
159
# Library required versions
165
LIBNOTIFY_REQUIRED=0.4.3
167
UPOWER_REQUIRED=0.9.0
168
GDKPIXBUF_REQUIRED=2.12.0
170
MEEGOTOUCH_REQUIRED=0.20
171
POPPLER_REQUIRED=0.16.0
174
LIBVORBIS_REQUIRED=0.22
175
LIBFLAC_REQUIRED=1.2.1
178
EXEMPI_REQUIRED=2.1.0
180
EVO_SHELL_REQUIRED=2.32.0
182
CAMEL_REQUIRED=2.32.0
183
# Unlikely version for now, Nepomuk integration isn't finished in streamanalyzer atm
184
LIBSTREAMANALYZER_REQUIRED=0.7.0
187
GNOME_KEYRING_REQUIRED=2.26
190
NETWORK_MANAGER_REQUIRED=0.8
191
GSTREAMER_REQUIRED=0.10.31
192
GUPNP_DLNA_REQUIRED=0.5
194
# 3.6.11 for sqlite_backup API
195
# 3.6.16 to fix test failures
196
# 3.6.17 for shared cache mode with virtual tables
198
SQLITE_REQUIRED=3.7.0
200
# Needed to generate .gir files,
201
# see http://live.gnome.org/GnomeGoals/AddGObjectIntrospectionSupport
202
GOBJECT_INTROSPECTION_CHECK([0.9.5])
204
# Check for libpng 1.2 or higher
205
PKG_CHECK_MODULES(LIBPNG, [libpng >= 1.2])
206
AC_SUBST(LIBPNG_CFLAGS)
207
AC_SUBST(LIBPNG_LIBS)
209
# Check requirements for gvdb
210
GVDB_REQUIRED="glib-2.0 >= $GLIB_REQUIRED"
211
PKG_CHECK_MODULES(GVDB, [$GVDB_REQUIRED])
213
# Check requirements for libtracker-bus
214
LIBTRACKER_BUS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
215
gio-unix-2.0 >= $GLIB_REQUIRED"
217
PKG_CHECK_MODULES(LIBTRACKER_BUS, [$LIBTRACKER_BUS_REQUIRED])
219
# Check requirements for libtracker-common
220
LIBTRACKER_COMMON_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
221
gio-unix-2.0 >= $GLIB_REQUIRED"
223
PKG_CHECK_MODULES(LIBTRACKER_COMMON, [$LIBTRACKER_COMMON_REQUIRED])
225
# Check requirements for libtracker-data
226
LIBTRACKER_DATA_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
227
gio-unix-2.0 >= $GLIB_REQUIRED
228
sqlite3 >= $SQLITE_REQUIRED
230
PKG_CHECK_MODULES(LIBTRACKER_DATA, [$LIBTRACKER_DATA_REQUIRED])
232
LIBTRACKER_DATA_LIBS="$LIBTRACKER_DATA_LIBS -lz -lm"
234
# Check requirements for libtracker-direct
235
LIBTRACKER_DIRECT_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
236
gio-unix-2.0 >= $GLIB_REQUIRED"
238
PKG_CHECK_MODULES(LIBTRACKER_DIRECT, [$LIBTRACKER_DIRECT_REQUIRED])
240
# Check requirements for libtracker-extract
241
LIBTRACKER_EXTRACT_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
242
gio-unix-2.0 >= $GLIB_REQUIRED"
244
PKG_CHECK_MODULES(LIBTRACKER_EXTRACT, [$LIBTRACKER_EXTRACT_REQUIRED])
246
# Check requirements for libtracker-fts
247
LIBTRACKER_FTS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
248
gio-unix-2.0 >= $GLIB_REQUIRED
249
gthread-2.0 >= $GLIB_REQUIRED
250
sqlite3 >= $SQLITE_REQUIRED"
252
PKG_CHECK_MODULES(LIBTRACKER_FTS, [$LIBTRACKER_FTS_REQUIRED])
254
# Check requirements for libtracker-miner
255
LIBTRACKER_MINER_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
256
gio-unix-2.0 >= $GLIB_REQUIRED"
258
PKG_CHECK_MODULES(LIBTRACKER_MINER, [$LIBTRACKER_MINER_REQUIRED])
260
# Check requirements for libtracker-sparql
261
LIBTRACKER_SPARQL_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
262
gio-unix-2.0 >= $GLIB_REQUIRED
265
PKG_CHECK_MODULES(LIBTRACKER_SPARQL, [$LIBTRACKER_SPARQL_REQUIRED])
267
# Check requirements for tracker-control
268
TRACKER_CONTROL_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
269
gio-unix-2.0 >= $GLIB_REQUIRED
270
gthread-2.0 >= $GLIB_REQUIRED
273
PKG_CHECK_MODULES(TRACKER_CONTROL, [$TRACKER_CONTROL_REQUIRED])
275
# Check requirements for tracker-explorer
276
TRACKER_EXPLORER_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
277
gio-unix-2.0 >= $GLIB_REQUIRED
278
gthread-2.0 >= $GLIB_REQUIRED
279
gmodule-2.0 >= $GLIB_REQUIRED
280
gtk+-3.0 >= $GTK_REQUIRED
281
gee-1.0 >= $GEE_REQUIRED"
283
PKG_CHECK_MODULES(TRACKER_EXPLORER, [$TRACKER_EXPLORER_REQUIRED],
284
[have_tracker_explorer=yes],
285
[have_tracker_explorer=no])
287
TRACKER_RESDUMP_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
288
gee-1.0 >= $GEE_REQUIRED"
290
PKG_CHECK_MODULES(TRACKER_RESDUMP, [$TRACKER_RESDUMP_REQUIRED],
291
[have_tracker_resdump=yes],
292
[have_tracker_resdump=no])
294
# Check requirements for tracker-store
295
TRACKER_STORE_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
296
gio-unix-2.0 >= $GLIB_REQUIRED
297
gthread-2.0 >= $GLIB_REQUIRED
298
gmodule-2.0 >= $GLIB_REQUIRED
299
sqlite3 >= $SQLITE_REQUIRED"
301
PKG_CHECK_MODULES(TRACKER_STORE, [$TRACKER_STORE_REQUIRED])
303
TRACKER_STORE_LIBS="$TRACKER_STORE_LIBS -lz -lm"
305
# Check requirements for tracker-extract
306
TRACKER_EXTRACT_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
307
gio-unix-2.0 >= $GLIB_REQUIRED
308
gthread-2.0 >= $GLIB_REQUIRED
309
gmodule-2.0 >= $GLIB_REQUIRED"
311
PKG_CHECK_MODULES(TRACKER_EXTRACT, [$TRACKER_EXTRACT_REQUIRED])
313
# Check requirements for tracker-extract modules
314
TRACKER_EXTRACT_MODULES_REQUIRED="glib-2.0 >= $GLIB_REQUIRED"
316
PKG_CHECK_MODULES(TRACKER_EXTRACT_MODULES, [$TRACKER_EXTRACT_MODULES_REQUIRED])
318
# Check requirements for tracker-writeback
319
TRACKER_WRITEBACK_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
320
gio-unix-2.0 >= $GLIB_REQUIRED
321
gthread-2.0 >= $GLIB_REQUIRED
322
gmodule-2.0 >= $GLIB_REQUIRED"
324
PKG_CHECK_MODULES(TRACKER_WRITEBACK, [$TRACKER_WRITEBACK_REQUIRED])
326
# Check requirements for tracker-miner-fs
327
TRACKER_MINER_FS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
328
gio-unix-2.0 >= $GLIB_REQUIRED
329
gthread-2.0 >= $GLIB_REQUIRED
330
gmodule-2.0 >= $GLIB_REQUIRED"
332
PKG_CHECK_MODULES(TRACKER_MINER_FS, [$TRACKER_MINER_FS_REQUIRED])
334
TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS -lz -lm"
336
# Check requirements for tracker-miner-evolution
337
TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
338
evolution-shell-3.0 >= 3.1
340
evolution-data-server-1.2 >= $EDS_REQUIRED
341
camel-1.2 >= $CAMEL_REQUIRED"
343
PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
344
[have_tracker_miner_evolution=yes],
345
[have_tracker_miner_evolution=no])
347
if test "x$have_tracker_miner_evolution" = "xyes"; then
348
evolution_plugin_name="evolution-plugin-3.0"
350
AC_DEFINE(EVOLUTION_SHELL_3_2, 1, [Use new evolution-shell API])
351
AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
353
TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
356
evolution-data-server-1.2 >= $EDS_REQUIRED
357
camel-1.2 >= $CAMEL_REQUIRED"
359
PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
360
[have_tracker_miner_evolution=yes],
361
[have_tracker_miner_evolution=no])
363
if test "x$have_tracker_miner_evolution" = "xyes"; then
364
evolution_plugin_name="evolution-plugin-3.0"
366
AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
368
evolution_plugin_name="evolution-plugin"
371
TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
372
evolution-shell >= $EVO_SHELL_REQUIRED
373
evolution-plugin >= $EVO_REQUIRED
374
evolution-data-server-1.2 >= $EDS_REQUIRED
375
camel-1.2 >= $CAMEL_REQUIRED"
377
PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
378
[have_tracker_miner_evolution=yes],
379
[have_tracker_miner_evolution=no])
384
# Check requirements for tracker-miner-thunderbird
385
TRACKER_MINER_THUNDERBIRD_REQUIRED=5.0
386
have_tracker_miner_thunderbird="no "
388
AC_PATH_PROG(THUNDERBIRD, thunderbird, thunderbird)
389
if test -n $THUNDERBIRD; then
390
thunderbird_version=`$THUNDERBIRD --version | cut -d" " -f3`
392
AX_COMPARE_VERSION([$thunderbird_version], ge, [$TRACKER_MINER_THUNDERBIRD_REQUIRED],
393
have_tracker_miner_thunderbird="yes",
394
have_tracker_miner_thunderbird="no ")
395
AC_SUBST(THUNDERBIRD)
398
# Check requirements for tracker-miner-firefox
399
TRACKER_MINER_FIREFOX_REQUIRED=4.0
400
have_tracker_miner_firefox="no "
402
AC_PATH_PROG(FIREFOX, firefox, firefox)
403
if test -n $FIREFOX; then
404
firefox_version=`$FIREFOX --version | cut -d" " -f3`
406
AX_COMPARE_VERSION([$firefox_version], ge, [$TRACKER_MINER_FIREFOX_REQUIRED],
407
have_tracker_miner_firefox="yes",
408
have_tracker_miner_firefox="no ")
412
# Check requirements for tracker-miner-rss
413
TRACKER_MINER_RSS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
414
libgrss-0 >= $LIBGRSS_REQUIRED"
416
PKG_CHECK_MODULES(TRACKER_MINER_RSS, [$TRACKER_MINER_RSS_REQUIRED],
417
[have_tracker_miner_rss=yes],
418
[have_tracker_miner_rss=no])
420
# Check requirements for tracker-miner-flickr
421
TRACKER_MINER_FLICKR_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
422
rest-0.7 >= $REST_REQUIRED"
424
PKG_CHECK_MODULES(TRACKER_MINER_FLICKR, [$TRACKER_MINER_FLICKR_REQUIRED],
425
[have_tracker_miner_flickr=yes],
426
[have_tracker_miner_flickr=no])
428
TRACKER_MINER_FLICKR_LIBS="$TRACKER_MINER_FLICKR_LIBS -lz -lm"
430
# Check requirements for tracker-utils
431
TRACKER_UTILS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
432
gio-unix-2.0 >= $GLIB_REQUIRED
433
gthread-2.0 >= $GLIB_REQUIRED"
435
PKG_CHECK_MODULES(TRACKER_UTILS, [$TRACKER_UTILS_REQUIRED])
437
# Check requirements for tracker-needle
438
TRACKER_NEEDLE_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
439
gio-unix-2.0 >= $GLIB_REQUIRED
440
gthread-2.0 >= $GLIB_REQUIRED
441
gmodule-2.0 >= $GLIB_REQUIRED
442
gtk+-3.0 >= $GTK_REQUIRED"
444
PKG_CHECK_MODULES(TRACKER_NEEDLE, [$TRACKER_NEEDLE_REQUIRED],
445
[have_tracker_needle=yes],
446
[have_tracker_needle=no])
448
# Check requirements for tracker-preferences
449
TRACKER_PREFERENCES_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
450
gio-unix-2.0 >= $GLIB_REQUIRED
451
gthread-2.0 >= $GLIB_REQUIRED
452
gmodule-2.0 >= $GLIB_REQUIRED
453
gtk+-3.0 >= $GTK_REQUIRED"
455
PKG_CHECK_MODULES(TRACKER_PREFERENCES, [$TRACKER_PREFERENCES_REQUIRED],
456
[have_tracker_preferences=yes],
457
[have_tracker_preferences=no])
459
# Check requirements for tracker-search-bar
460
TRACKER_SEARCH_BAR_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
461
gio-unix-2.0 >= $GLIB_REQUIRED
462
gthread-2.0 >= $GLIB_REQUIRED
463
gmodule-2.0 >= $GLIB_REQUIRED
464
gtk+-3.0 >= $GTK_REQUIRED
465
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED
466
pango >= $PANGO_REQUIRED
467
gee-1.0 >= $GEE_REQUIRED
470
PKG_CHECK_MODULES(TRACKER_SEARCH_BAR, [$TRACKER_SEARCH_BAR_REQUIRED],
471
[have_tracker_search_bar=yes],
472
[have_tracker_search_bar=no])
474
# Check requirements for Nautilus extension
475
TRACKER_NAUTILUS_EXTENSION_REQUIRED="libnautilus-extension"
477
PKG_CHECK_MODULES(TRACKER_NAUTILUS_EXTENSION, [$TRACKER_NAUTILUS_EXTENSION_REQUIRED],
478
[have_tracker_nautilus_extension=yes],
479
[have_tracker_nautilus_extension=no])
481
# Check we have Vala valac command we need
482
AC_PATH_PROG(VALAC, valac, valac)
483
if test -z $VALAC; then
484
AC_MSG_ERROR([Could not find 'valac'])
489
####################################################################
490
# Check gettext/intltool support
491
####################################################################
492
IT_PROG_INTLTOOL([0.40.0])
494
AM_GNU_GETTEXT_VERSION([0.17])
495
AM_GNU_GETTEXT([external])
497
GETTEXT_PACKAGE=AC_PACKAGE_NAME
498
AC_SUBST(GETTEXT_PACKAGE)
499
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext translation domain])
501
####################################################################
502
# Check if we should enable GCOV coverage reporting support
503
####################################################################
506
AS_HELP_STRING([--enable-gcov],
507
[enable coverage reporting support [[default=no]]]),,
509
AM_CONDITIONAL(ENABLE_GCOV, test "x$enable_gcov" != "xno")
511
if test "x$enable_gcov" != "xno" ; then
513
GCOV_CFLAGS="-ftest-coverage -fprofile-arcs"
521
AC_SUBST(GCOV_VALAFLAGS)
522
AC_SUBST(GCOV_CFLAGS)
525
####################################################################
526
# General VALAFLAGS/CFLAGS/LIBS
527
####################################################################
528
BUILD_VALAFLAGS="-g --target-glib=2.26"
529
BUILD_CFLAGS="${WARN_CFLAGS} ${GCOV_CFLAGS} -DG_LOG_DOMAIN=\\\"Tracker\\\" -DTRACKER_COMPILATION"
530
BUILD_LIBS="${GCOV_LIBS}"
532
AC_SUBST(BUILD_VALAFLAGS)
533
AC_SUBST(BUILD_CFLAGS)
537
####################################################################
538
# Check for functional-test include/exclude
539
####################################################################
540
AC_ARG_ENABLE([functional-tests],
541
AS_HELP_STRING([--enable-functional-tests],
542
[enable functional tests [[default=no]]]),,
543
[enable_functional_tests=no])
545
if test x$enable_functional_tests != "xno"; then
546
# Python check, require >= 2.6
547
AC_PATH_PROG([PYTHON],[python],[:])
548
AS_IF([test "$PYTHON" != ":"],
549
[AM_PYTHON_CHECK_VERSION([$PYTHON],[$PYTHON_REQUIRED],[:],[PYTHON=":"])])
551
if test "$PYTHON" = ":"; then
552
AC_MSG_ERROR([Couldn't find Python >= $PYTHON_REQUIRED (for functional-tests, try --disable-functional-tests).])
555
AC_DEFINE(DIST_FUNCTIONAL_TESTS, 1, [Include functional tests in the installation])
558
AM_CONDITIONAL(DIST_FUNCTIONAL_TESTS, test "x$enable_functional_tests" != "xno")
560
####################################################################
561
# Check for gtk-doc and docbook-tools
562
####################################################################
564
# Check for GTK_DOC_CHECK availability. The GTK_DOC_CHECK invocation
565
# must be on its own line, gtkdocize relies on it
566
m4_ifdef([GTK_DOC_CHECK], [
569
# NOTE: We need to use a separate automake conditional for this
570
# to make this work with the tarballs.
571
AM_CONDITIONAL([ENABLE_GTK_DOC], test "x$enable_gtk_doc" = xyes)
574
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
577
if test "x$enable_gtk_doc" != xno; then
578
# Check for dia if we are building gtk_doc
579
AC_PATH_PROG(DIA, dia)
582
if test -z "$DIA"; then
583
AC_MSG_ERROR([Could not find Dia tool required to build documentation.])
586
# Check for graphviz if we are building gtk_doc
587
AC_PATH_PROG(GRAPHVIZ_FDP, fdp)
588
AC_SUBST(GRAPHVIZ_FDP)
590
if test -z "$GRAPHVIZ_FDP"; then
591
AC_MSG_ERROR([Couldn't find Graphviz's fdp tool (graphviz).])
595
AM_CONDITIONAL(HAVE_GRAPHVIZ_FDP, test -n "$GRAPHVIZ_FDP")
597
####################################################################
598
# Check if we should install Windows specific binaries
599
####################################################################
601
AC_MSG_CHECKING(for WIN32)
602
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
607
[native_win32=yes; AC_MSG_RESULT(yes)],
608
[native_win32=no; AC_MSG_RESULT(no)])
610
AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes")
612
if test "$native_win32" = "yes" ; then
613
AC_DEFINE(OS_WIN32, 1, [Define if we are on win32])
616
####################################################################
617
# Check if we should install Maemo/MeeGo specific ontologies
618
####################################################################
621
AS_HELP_STRING([--enable-maemo],
622
[enable maemo ontology [[default=no]]]),
623
[enable_maemo="$enableval"],
626
AM_CONDITIONAL(HAVE_MAEMO, test "x$enable_maemo" = "xyes")
628
if test "x$enable_maemo" = "xyes" ; then
629
AC_DEFINE(HAVE_MAEMO, 1, [Define if we enable Maemo specific features])
632
####################################################################
633
# Check if we should disable the journal
634
####################################################################
636
AC_ARG_ENABLE(journal,
637
AS_HELP_STRING([--enable-journal],
638
[enable journal [[default=yes]]]),
639
[enable_journal="$enableval"],
640
[enable_journal=yes])
642
if test "x$enable_journal" != "xno" ; then
643
have_tracker_journal="yes"
645
have_tracker_journal="no (disabled)"
648
AM_CONDITIONAL(DISABLE_JOURNAL, test "x$enable_journal" = "xno")
650
if test "x$enable_journal" = "xno" ; then
651
AC_DEFINE(DISABLE_JOURNAL, 1, [Define if we disable the journal])
654
####################################################################
656
####################################################################
658
PKG_CHECK_MODULES(SQLITE3, [sqlite3 >= $SQLITE_REQUIRED])
659
AC_SUBST(SQLITE3_CFLAGS)
660
AC_SUBST(SQLITE3_LIBS)
662
# Make sure SQLite is compiled thread-safe
664
if test "x$ax_cv_sqlite_threadsafe" != "xyes"; then
665
AC_MSG_ERROR([sqlite3 is not compiled thread-safe])
668
##################################################################
669
# Check for tracker-fts, allow disabling FTS support
670
##################################################################
672
AC_ARG_ENABLE([tracker-fts],
673
AS_HELP_STRING([--enable-tracker-fts],
674
[enable the tracker FTS [[default=auto]]]),,
675
[enable_tracker_fts=auto])
677
if test "x$enable_tracker_fts" != "xno" ; then
678
have_tracker_fts="yes"
680
have_tracker_fts="no (disabled)"
683
if test "x$have_tracker_fts" = "xyes"; then
684
AC_DEFINE(HAVE_TRACKER_FTS, [1], [Define to 1 if tracker FTS is compiled])
686
AC_DEFINE(HAVE_TRACKER_FTS, [0], [Define to 0 if tracker FTS is not compiled])
689
AM_CONDITIONAL(HAVE_TRACKER_FTS, test "$have_tracker_fts" = "yes")
691
####################################################################
692
# Check for D-Bus requirements
693
####################################################################
695
# Check we are not using a different D-Bus services dir
696
AC_ARG_WITH([session_bus_services_dir],
697
AS_HELP_STRING([--with-session-bus-services-dir],
698
[path to DBus services directory]))
700
if test "x$with_session_bus_services_dir" = "x" ; then
701
services_dir="$datadir/dbus-1/services"
703
services_dir="$with_session_bus_services_dir"
706
DBUS_SERVICES_DIR="$services_dir"
707
AC_SUBST(DBUS_SERVICES_DIR)
709
# Check we have the D-Bus binding tool we need
710
AC_PATH_PROG(DBUSBINDINGTOOL, dbus-binding-tool)
711
if test -z $DBUSBINDINGTOOL; then
712
AC_MSG_ERROR([Could not find 'dbus-binding-tool'])
715
GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
716
AC_SUBST(GLIB_GENMARSHAL)
718
# Introduced with GSettings
719
GLIB_MKENUMS=`$PKG_CONFIG glib-2.0 --variable=glib_mkenums`
720
AC_SUBST(GLIB_MKENUMS)
722
####################################################################
723
# Should we build GLib based unit tests
724
####################################################################
726
AC_ARG_ENABLE(unit_tests,
727
AS_HELP_STRING([--enable-unit-tests],
728
[enable unit tests [[default=yes]]]), ,
729
[enable_unit_tests=yes])
731
if test "x$enable_unit_tests" != "xno" ; then
734
AC_DEFINE(HAVE_UNIT_TEST, 1, [Define if we have GLib unit test framework])
736
AC_PATH_PROG(gtester, gtester)
737
if test -z $gtester; then
738
AC_MSG_ERROR([Could not find 'gtester'])
744
AM_CONDITIONAL(HAVE_UNIT_TESTS, test "x$have_unit_tests" = "xyes")
746
##################################################################
747
# Check for libtracker-common: upower for battery/power support
748
##################################################################
750
AC_ARG_ENABLE(upower,
751
AS_HELP_STRING([--disable-upower],
752
[disable UPower support for AC power detection [[default=auto]]]),,
753
[enable_upower=auto])
755
if test "x$enable_upower" != "xno"; then
756
PKG_CHECK_MODULES(UPOWER,
757
[upower-glib >= $UPOWER_REQUIRED],
761
TRACKER_MINER_FS_CFLAGS="$TRACKER_MINER_FS_CFLAGS $UPOWER_CFLAGS"
762
TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS $UPOWER_LIBS"
764
if test "x$have_upower" = "xyes"; then
765
AC_DEFINE(HAVE_UPOWER, [], [Define if we have UPOWER])
768
have_upower="no (disabled)"
771
if test "x$enable_upower" = "xyes"; then
772
if test "x$have_upower" != "xyes"; then
773
AC_MSG_ERROR([Couldn't find upower >= $UPOWER_REQUIRED.])
777
AM_CONDITIONAL(HAVE_UPOWER, test "x$have_upower" = "xyes")
779
##################################################################
780
# Check for libtracker-common: hal for battery/power support (old)
781
##################################################################
784
AS_HELP_STRING([--disable-hal],
785
[disable HAL support for AC power detection [[default=auto]]]),,
788
if test "x$have_upower" != "xyes" && test "x$enable_hal" != "xno"; then
789
PKG_CHECK_MODULES(HAL,
790
[dbus-1 >= $DBUS_REQUIRED
791
hal >= $HAL_REQUIRED],
795
TRACKER_MINER_FS_CFLAGS="$TRACKER_MINER_FS_CFLAGS $HAL_CFLAGS"
796
TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS $HAL_LIBS"
798
if test "x$have_hal" = "xyes"; then
799
AC_DEFINE(HAVE_HAL, [], [Define if we have HAL])
802
have_hal="no (disabled)"
805
if test "x$enable_hal" = "xyes"; then
806
if test "x$have_upower" = "xyes"; then
807
AC_MSG_ERROR([Only one of UPower and HAL can be used.])
808
elif test "x$have_hal" != "xyes"; then
809
AC_MSG_ERROR([Couldn't find hal >= $HAL_REQUIRED.])
813
AM_CONDITIONAL(HAVE_HAL, test "x$have_hal" = "xyes")
815
##################################################################
816
# Check for libtracker-data and libtracker-fts: Unicode support
818
# By default, AUTO with this order of preference:
822
# Note that glib can only be used if explicitly requested for it.
823
##################################################################
825
# Check for libunistring...
826
AC_CHECK_HEADER(uniwbrk.h,
827
AC_CHECK_LIB([unistring],
829
[have_libunistring=yes],
830
[have_libunistring=no]))
831
LIBUNISTRING_CFLAGS=""
832
LIBUNISTRING_LIBS="-lunistring"
834
# Check for libicu... Note that AC_CHECK_LIB cannot be used as
835
# symbol name includes libicu library version... don't want to
836
# look for ubrk_next_4_2
837
AC_CHECK_HEADER(unicode/ubrk.h,
841
LIBICU_LIBS="-licuuc -licui18n"
844
PKG_CHECK_MODULES(PANGO,
845
[pango >= $PANGO_REQUIRED],
850
AC_ARG_WITH([unicode-support],
851
AS_HELP_STRING([--with-unicode-support],
852
[Unicode support library? (libunistring|libicu|glib) [[default=auto (!glib)]]]),,
853
[with_unicode_support=auto])
855
# If auto, decide ourselves
856
if test "x$with_unicode_support" = "xauto"; then
857
if test "x$have_libunistring" = "xyes"; then
858
with_unicode_support=libunistring
860
if test "x$have_libicu" = "xyes"; then
861
with_unicode_support=libicu
863
AC_MSG_ERROR([Couldn't find neither libunistring nor libicu. You can still compile tracker
864
without any of these two, using glib instead, but be warned that the FTS parsing
865
performance will be much worse. If you still want to use glib as Unicode support
866
library, enable it with an explicit --with-unicode-support=glib])
871
UNICODE_SUPPORT_CFLAGS=
872
UNICODE_SUPPORT_LIBS=
874
case "x$with_unicode_support" in
877
UNICODE_SUPPORT_CFLAGS=$LIBUNISTRING_CFLAGS
878
UNICODE_SUPPORT_LIBS=$LIBUNISTRING_LIBS
879
if test "x$have_libunistring" = "xyes"; then
880
AC_DEFINE(HAVE_LIBUNISTRING, [1], [libunistring Unicode support library])
882
AC_MSG_ERROR([Couldn't find libunistring])
887
UNICODE_SUPPORT_CFLAGS=$LIBICU_CFLAGS
888
UNICODE_SUPPORT_LIBS=$LIBICU_LIBS
889
if test "x$have_libicu" = "xyes"; then
890
AC_DEFINE(HAVE_LIBICU, [1], [libicu Unicode support library])
892
AC_MSG_ERROR([Couldn't find libicu])
897
UNICODE_SUPPORT_CFLAGS=$PANGO_CFLAGS
898
UNICODE_SUPPORT_LIBS=$PANGO_LIBS
899
if test "x$have_pango" != "xyes"; then
900
AC_MSG_ERROR([Couldn't find pango])
903
# Invalid option value
904
*) AC_MSG_ERROR([Wrong value for --with-unicode-support: $with_unicode_support]) ;;
907
# Add to libtracker-fts
908
LIBTRACKER_FTS_CFLAGS="$LIBTRACKER_FTS_CFLAGS $UNICODE_SUPPORT_CFLAGS"
909
LIBTRACKER_FTS_LIBS="$LIBTRACKER_FTS_LIBS $UNICODE_SUPPORT_LIBS"
911
# Add to libtracker-data
912
LIBTRACKER_DATA_CFLAGS="$LIBTRACKER_DATA_CFLAGS $UNICODE_SUPPORT_CFLAGS"
913
LIBTRACKER_DATA_LIBS="$LIBTRACKER_DATA_LIBS $UNICODE_SUPPORT_LIBS"
915
AM_CONDITIONAL(BUILD_LIBUNISTRING_PARSER, test "x$with_unicode_support" = "xlibunistring")
916
AM_CONDITIONAL(BUILD_LIBICU_PARSER, test "x$with_unicode_support" = "xlibicu")
918
##################################################################
919
# Check for libtracker-miner: gnome-keyring for web miner details
920
##################################################################
922
AC_ARG_ENABLE(gnome_keyring,
923
AS_HELP_STRING([--enable-gnome-keyring],
924
[enable Gnome Keyring support to store credentials [[default=auto]]]),,
925
[enable_gnome_keyring=auto])
927
if test "x$enable_gnome_keyring" != "xno"; then
928
PKG_CHECK_MODULES(GNOME_KEYRING,
929
[gnome-keyring-1 >= $GNOME_KEYRING_REQUIRED],
930
[have_gnome_keyring=yes],
931
[have_gnome_keyring=no])
933
LIBTRACKER_MINER_CFLAGS="$LIBTRACKER_MINER_CFLAGS $GNOME_KEYRING_CFLAGS"
934
LIBTRACKER_MINER_LIBS="$LIBTRACKER_MINER_LIBS $GNOME_KEYRING_LIBS"
936
if test "x$have_gnome_keyring" = "xyes"; then
937
AC_DEFINE(HAVE_GNOME_KEYRING, [], [Define if we have Gnome Keyring for password storage])
941
if test "x$enable_gnome_keyring" = "xyes"; then
942
if test "x$have_gnome_keyring" != "xyes"; then
943
AC_MSG_ERROR([Couldn't find Gnome Keyring >= $GNOME_KEYRING_REQUIRED.])
947
AM_CONDITIONAL(HAVE_GNOME_KEYRING, test "x$have_gnome_keyring" = "xyes")
949
##################################################################
950
# Check for libtracker-miner: network-manager for web miners
951
##################################################################
953
AC_ARG_ENABLE(network_manager,
954
AS_HELP_STRING([--enable-network-manager],
955
[enable NetworkManager support to detect network status [[default=auto]]]),,
956
[enable_network_manager=auto])
958
if test "x$enable_network_manager" != "xno"; then
959
PKG_CHECK_MODULES(NETWORK_MANAGER,
960
[libnm-glib >= $NETWORK_MANAGER_REQUIRED],
961
[have_network_manager=yes],
962
[have_network_manager=no])
964
LIBTRACKER_MINER_CFLAGS="$LIBTRACKER_MINER_CFLAGS $NETWORK_MANAGER_CFLAGS"
965
LIBTRACKER_MINER_LIBS="$LIBTRACKER_MINER_LIBS $NETWORK_MANAGER_LIBS"
967
if test "x$have_network_manager" = "xyes"; then
968
AC_DEFINE(HAVE_NETWORK_MANAGER, [], [Define if we have NetworkManager for network status detection])
972
if test "x$enable_network_manager" = "xyes"; then
973
if test "x$have_network_manager" != "xyes"; then
974
AC_MSG_ERROR([Couldn't find libnm-glib >= $NETWORK_MANAGER_REQUIRED.])
978
AM_CONDITIONAL(HAVE_NETWORK_MANAGER, test "x$have_network_manager" = "xyes")
980
##################################################################
981
# Check for libtracker-extract: libexif
982
##################################################################
984
AC_ARG_ENABLE(libexif,
985
AS_HELP_STRING([--enable-libexif],
986
[enable extractor for exif data [[default=auto]]]),,
987
[enable_libexif=auto])
989
if test "x$enable_libexif" != "xno" ; then
990
PKG_CHECK_MODULES(LIBEXIF,
991
[libexif >= $LIBEXIF_REQUIRED],
995
LIBTRACKER_EXTRACT_CFLAGS="$LIBTRACKER_EXTRACT_CFLAGS $LIBEXIF_CFLAGS"
996
LIBTRACKER_EXTRACT_LIBS="$LIBTRACKER_EXTRACT_LIBS $LIBEXIF_LIBS"
998
if test "x$have_libexif" = "xyes"; then
999
AC_DEFINE(HAVE_LIBEXIF, [], [Define if we have libexif])
1002
have_libexif="no (disabled)"
1005
if test "x$enable_libexif" = "xyes"; then
1006
if test "x$have_libexif" != "xyes"; then
1007
AC_MSG_ERROR([Couldn't find libexif >= $LIBEXIF_REQUIRED.])
1011
AM_CONDITIONAL(HAVE_EXIF, test "x$have_libexif" = "xyes")
1013
##################################################################
1014
# Check for libtracker-extract: libiptcdata
1015
##################################################################
1017
AC_ARG_ENABLE(libiptcdata,
1018
AS_HELP_STRING([--enable-libiptcdata],
1019
[enable extractor for iptc data [[default=auto]]]),,
1020
[enable_libiptcdata=auto])
1022
if test "x$enable_libiptcdata" != "xno" ; then
1023
PKG_CHECK_MODULES(LIBIPTCDATA,
1025
[have_libiptcdata=yes],
1026
[have_libiptcdata=no])
1028
LIBTRACKER_EXTRACT_CFLAGS="$LIBTRACKER_EXTRACT_CFLAGS $LIBIPTCDATA_CFLAGS"
1029
LIBTRACKER_EXTRACT_LIBS="$LIBTRACKER_EXTRACT_LIBS $LIBIPTCDATA_LIBS"
1031
if test "x$have_libiptcdata" = "xyes"; then
1032
AC_DEFINE(HAVE_LIBIPTCDATA, [], [Define if we have libiptcdata])
1035
have_libiptcdata="no (disabled)"
1038
if test "x$enable_libiptcdata" = "xyes"; then
1039
if test "x$have_libiptcdata" != "xyes"; then
1040
AC_MSG_ERROR([Couldn't find libiptcdata.])
1044
AM_CONDITIONAL(HAVE_IPTC, test "x$have_libiptcdata" = "xyes")
1046
##################################################################
1047
# Check for libtracker-extract, tracker-writeback: exempi
1048
##################################################################
1050
AC_ARG_ENABLE(exempi,
1051
AS_HELP_STRING([--enable-exempi],
1052
[enable extractor for XMP data [[default=auto]]]),,
1053
[enable_exempi=auto])
1055
if test "x$enable_exempi" != "xno" ; then
1056
PKG_CHECK_MODULES(EXEMPI,
1057
[exempi-2.0 >= $EXEMPI_REQUIRED],
1061
TRACKER_WRITEBACK_CFLAGS="$TRACKER_WRITEBACK_CFLAGS $EXEMPI_CFLAGS"
1062
TRACKER_WRITEBACK_LIBS="$TRACKER_WRITEBACK_LIBS $EXEMPI_LIBS"
1064
LIBTRACKER_EXTRACT_CFLAGS="$LIBTRACKER_EXTRACT_CFLAGS $EXEMPI_CFLAGS"
1065
LIBTRACKER_EXTRACT_LIBS="$LIBTRACKER_EXTRACT_LIBS $EXEMPI_LIBS"
1067
if test "x$have_exempi" = "xyes"; then
1068
AC_DEFINE(HAVE_EXEMPI, [], [Define if we have exempi])
1071
have_exempi="no (disabled)"
1074
if test "x$enable_exempi" = "xyes"; then
1075
if test "x$have_exempi" != "xyes"; then
1076
AC_MSG_ERROR([Couldn't find exempi >= $EXEMPI_REQUIRED.])
1080
AM_CONDITIONAL(HAVE_EXEMPI, test "x$have_exempi" = "xyes")
1082
####################################################################
1083
# Check for tracker-miner-fs: meegotouch, for MeeGo desktop files
1084
####################################################################
1086
AC_ARG_ENABLE(meegotouch,
1087
AS_HELP_STRING([--enable-meegotouch],
1088
[enable libmeegotouch application extraction [[default=no]]]),
1089
[enable_meegotouch="$enableval"],
1090
[enable_meegotouch=no])
1092
if test "x$enable_meegotouch" != "xno"; then
1093
PKG_CHECK_MODULES(MEEGOTOUCH,
1094
[meegotouch >= $MEEGOTOUCH_REQUIRED],
1095
[have_meegotouch=yes],
1096
[have_meegotouch=no])
1098
LIBTRACKER_EXTRACT_CFLAGS="$LIBTRACKER_EXTRACT_CFLAGS $MEEGOTOUCH_CFLAGS"
1099
LIBTRACKER_EXTRACT_LIBS="$LIBTRACKER_EXTRACT_LIBS $MEEGOTOUCH_LIBS"
1101
TRACKER_MINER_FS_CFLAGS="$TRACKER_MINER_FS_CFLAGS $MEEGOTOUCH_CFLAGS"
1102
TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS $MEEGOTOUCH_LIBS"
1104
if test "x$have_meegotouch" = "xyes"; then
1105
AC_DEFINE(HAVE_MEEGOTOUCH, [], [Define if we have meegotouch])
1108
have_meegotouch="no (disabled)"
1111
AM_CONDITIONAL(HAVE_MEEGOTOUCH, test "x$have_meegotouch" = "xyes")
1113
##################################################################
1114
# Check for tracker-miner-flickr
1115
##################################################################
1117
AC_ARG_ENABLE(miner_flickr,
1118
AS_HELP_STRING([--enable-miner-flickr],
1119
[enable Flickr miner [[default=auto]]]),,
1120
[enable_tracker_miner_flickr=auto])
1122
enable_tracker_miner_flickr=$enable_miner_flickr
1124
if test "x$enable_tracker_miner_flickr" = "xyes"; then
1125
if test "x$have_tracker_miner_flickr" != "xyes"; then
1126
AC_MSG_ERROR([Couldn't find tracker-miner-flickr dependencies ($TRACKER_MINER_FLICKR_REQUIRED).])
1129
if test "x$enable_tracker_miner_flickr" = "xno"; then
1130
have_tracker_miner_flickr="no (disabled)"
1134
AM_CONDITIONAL(HAVE_TRACKER_MINER_FLICKR, test "x$have_tracker_miner_flickr" = "xyes")
1136
##################################################################
1137
# Check for tracker-miner-rss
1138
##################################################################
1140
AC_ARG_ENABLE([miner_rss],
1141
AS_HELP_STRING([--enable-miner-rss],
1142
[enable RSS data miner [[default=auto]]]),,
1143
[enable_tracker_miner_rss=auto])
1145
enable_tracker_miner_rss=$enable_miner_rss
1147
if test "x$enable_tracker_miner_rss" = "xyes" ; then
1148
if test "x$have_tracker_miner_rss" != "xyes"; then
1149
AC_MSG_ERROR([Couldn't find tracker-miner-rss dependencies ($TRACKER_MINER_RSS_REQUIRED).])
1152
if test "x$enable_tracker_miner_rss" = "xno" ; then
1153
have_tracker_miner_rss="no (disabled)"
1157
AM_CONDITIONAL(HAVE_TRACKER_MINER_RSS, test "x$have_tracker_miner_rss" = "xyes")
1159
####################################################################
1160
# Check for tracker-miner-evolution
1161
####################################################################
1163
tracker_miner_evolution_install_dir="/dev/null"
1165
AC_ARG_ENABLE([miner_evolution],
1166
AS_HELP_STRING([--enable-miner-evolution],
1167
[enable Evolution email data miner [[default=auto]]]),,
1168
[enable_miner_evolution=auto])
1170
enable_tracker_miner_evolution=$enable_miner_evolution
1172
if test "x$enable_tracker_miner_evolution" = "xyes"; then
1173
if test "x$have_tracker_miner_evolution" != "xyes"; then
1174
AC_MSG_ERROR([Couldn't find Tracker Evolution plugin ($TRACKER_MINER_EVOLUTION_REQUIRED).])
1177
if test "x$enable_tracker_miner_evolution" = "xno"; then
1178
have_tracker_miner_evolution="no (disabled)"
1182
if test "x$have_tracker_miner_evolution" = "xyes"; then
1184
AC_ARG_WITH([evolution_plugin_dir],
1185
AS_HELP_STRING([--with-evolution-plugin-dir],
1186
[path to Evolution plugin directory]))
1187
if test "x$with_evolution_plugin_dir" = "x" ; then
1188
tracker_miner_evolution_install_dir=`$PKG_CONFIG $evolution_plugin_name --variable=plugindir`
1190
tracker_miner_evolution_install_dir="$with_tracker_miner_evolution_install_dir"
1193
if test -z $tracker_miner_evolution_install_dir; then
1194
AC_MSG_ERROR([Couldn't find evolution plugin dir, consider using --with-evolution-plugin-dir.])
1198
TRACKER_MINER_EVOLUTION_INSTALL_DIR=$tracker_miner_evolution_install_dir
1199
AC_SUBST(TRACKER_MINER_EVOLUTION_INSTALL_DIR)
1201
AM_CONDITIONAL(HAVE_TRACKER_MINER_EVOLUTION, test "x$have_tracker_miner_evolution" = "xyes")
1203
####################################################################
1204
# Check for tracker-miner-thunderbird
1205
####################################################################
1207
tracker_miner_thunderbird_install_dir="/dev/null"
1209
AC_ARG_ENABLE([miner_thunderbird],
1210
AS_HELP_STRING([--enable-miner-thunderbird],
1211
[enable Thunderbird email data miner [[default=auto]]]),,
1212
[enable_miner_thunderbird=auto])
1214
enable_tracker_miner_thunderbird=$enable_miner_thunderbird
1216
if test "x$enable_tracker_miner_thunderbird" = "xyes"; then
1217
if test "x$have_tracker_miner_thunderbird" != "xyes"; then
1218
AC_MSG_ERROR([Couldn't find Thunderbird ($TRACKER_MINER_THUNDERBIRD_REQUIRED).])
1221
if test "x$enable_tracker_miner_thunderbird" = "xno"; then
1222
have_tracker_miner_thunderbird="no (disabled)"
1226
if test "x$have_tracker_miner_thunderbird" = "xyes"; then
1228
AC_ARG_WITH([thunderbird_plugin_dir],
1229
AS_HELP_STRING([--with-thunderbird-plugin-dir],
1230
[path to Thunderbird plugin directory]))
1231
if test "x$with_thunderbird_plugin_dir" = "x" ; then
1232
# This is a symlinked to $prefix/share/xul-ext
1233
tracker_miner_thunderbird_install_dir="${prefix}/lib/thunderbird-5.0/extensions"
1235
tracker_miner_thunderbird_install_dir="$with_thunderbird_plugin_dir"
1238
if test -z $tracker_miner_thunderbird_install_dir; then
1239
AC_MSG_ERROR([Couldn't find thunderbird plugin dir, consider using --with-thunderbird-plugin-dir.])
1243
TRACKER_MINER_THUNDERBIRD_INSTALL_DIR=$tracker_miner_thunderbird_install_dir
1244
AC_SUBST(TRACKER_MINER_THUNDERBIRD_INSTALL_DIR)
1246
AM_CONDITIONAL(HAVE_TRACKER_MINER_THUNDERBIRD, test "x$have_tracker_miner_thunderbird" = "xyes")
1248
####################################################################
1249
# Check for tracker-miner-firefox
1250
####################################################################
1252
tracker_miner_firefox_install_dir="/dev/null"
1254
AC_ARG_ENABLE([miner_firefox],
1255
AS_HELP_STRING([--enable-miner-firefox],
1256
[enable Firefox email data miner [[default=auto]]]),,
1257
[enable_miner_firefox=auto])
1259
enable_tracker_miner_firefox=$enable_miner_firefox
1261
if test "x$enable_tracker_miner_firefox" = "xyes"; then
1262
if test "x$have_tracker_miner_firefox" != "xyes"; then
1263
AC_MSG_ERROR([Couldn't find Firefox ($TRACKER_MINER_FIREFOX_REQUIRED).])
1266
if test "x$enable_tracker_miner_firefox" = "xno"; then
1267
have_tracker_miner_firefox="no (disabled)"
1271
if test "x$have_tracker_miner_firefox" = "xyes"; then
1273
AC_ARG_WITH([firefox_plugin_dir],
1274
AS_HELP_STRING([--with-firefox-plugin-dir],
1275
[path to Firefox plugin directory]))
1276
if test "x$with_firefox_plugin_dir" = "x" ; then
1277
# This is a symlinked to $prefix/share/xul-ext
1278
tracker_miner_firefox_install_dir="${prefix}/lib/firefox-5.0/extensions"
1280
tracker_miner_firefox_install_dir="$with_firefox_plugin_dir"
1283
if test -z $tracker_miner_firefox_install_dir; then
1284
AC_MSG_ERROR([Couldn't find firefox plugin dir, consider using --with-firefox-plugin-dir.])
1288
TRACKER_MINER_FIREFOX_INSTALL_DIR=$tracker_miner_firefox_install_dir
1289
AC_SUBST(TRACKER_MINER_FIREFOX_INSTALL_DIR)
1291
AM_CONDITIONAL(HAVE_TRACKER_MINER_FIREFOX, test "x$have_tracker_miner_firefox" = "xyes")
1293
####################################################################
1294
# Check for nautilus extension
1295
####################################################################
1297
AC_ARG_ENABLE([nautilus-extension],
1298
AS_HELP_STRING([--enable-nautilus-extension],
1299
[enable the nautilus extension [[default=auto]]]),,
1300
[enable_tracker_nautilus=auto])
1302
enable_tracker_nautilus_extension=$enable_nautilus_extension
1304
if test "x$enable_tracker_nautilus_extension" = "xyes"; then
1305
if test "x$have_tracker_nautilus_extension" != "xyes"; then
1306
AC_MSG_ERROR([Couldn't find Tracker Nautilus extension dependencies ($TRACKER_NAUTILUS_EXTENSION_REQUIRED).])
1309
if test "x$enable_tracker_nautilus_extension" = "xno"; then
1310
have_tracker_nautilus_extension="no (disabled)"
1314
if test "x$have_tracker_nautilus_extension" = "xyes"; then
1315
AC_ARG_WITH([nautilus-extensions-dir],
1316
AS_HELP_STRING([--with-nautilus-extensions-dir],
1317
[path to Nautilus extensions directory]))
1319
if test "x$with_nautilus_extensions_dir" = "x"; then
1320
tracker_nautilus_extension_install_dir=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
1322
tracker_nautilus_extension_install_dir="$with_nautilus_extension_install_dir"
1325
TRACKER_NAUTILUS_EXTENSION_INSTALL_DIR="$tracker_nautilus_extension_install_dir"
1327
TRACKER_NAUTILUS_EXTENSION_INSTALL_DIR="/dev/null"
1330
AC_SUBST([TRACKER_NAUTILUS_EXTENSION_INSTALL_DIR])
1332
AM_CONDITIONAL(HAVE_TRACKER_NAUTILUS_EXTENSION, test "$have_tracker_nautilus_extension" = "yes")
1334
####################################################################
1335
# Check for tracker-writeback: Taglib for audio writeback support
1336
####################################################################
1338
AC_ARG_ENABLE(taglib,
1339
AS_HELP_STRING([--enable-taglib],
1340
[enable writeback for audio files [[default=auto]]]),,
1341
[enable_taglib=auto])
1343
if test "x$enable_taglib" != "xno" ; then
1344
PKG_CHECK_MODULES(TAGLIB,
1345
[taglib_c >= $TAGLIB_REQUIRED],
1349
TRACKER_WRITEBACK_CFLAGS="$TRACKER_WRITEBACK_CFLAGS $TAGLIB_CFLAGS"
1350
TRACKER_WRITEBACK_LIBS="$TRACKER_WRITEBACK_LIBS $TAGLIB_LIBS"
1352
have_taglib="no (disabled)"
1355
AM_CONDITIONAL(HAVE_TAGLIB, test "x$have_taglib" = "xyes")
1357
#################################################################
1358
# Check for tracker-search-bar
1359
##################################################################
1361
AC_ARG_ENABLE([tracker-search-bar],
1362
AS_HELP_STRING([--enable-tracker-search-bar],
1363
[enable tracker-search-bar[[default=auto]]]),,
1364
[enable_tracker_search_bar=auto])
1366
if test "x$enable_tracker_search_bar" = "xyes" ; then
1367
if test "x$have_tracker_search_bar" != "xyes"; then
1368
AC_MSG_ERROR([Couldn't find tracker-search-bar dependencies ($TRACKER_SEARCH_BAR_REQUIRED).])
1371
if test "x$enable_tracker_search_bar" = "xno"; then
1372
have_tracker_search_bar="no (disabled)"
1376
AM_CONDITIONAL(HAVE_TRACKER_SEARCH_BAR, test "$have_tracker_search_bar" = "yes")
1378
##################################################################
1379
# Check for tracker-needle
1380
##################################################################
1382
AC_ARG_ENABLE([tracker-needle],
1383
AS_HELP_STRING([--enable-tracker-needle],
1384
[enable tracker-needle [[default=auto]]]),,
1385
[enable_tracker_needle=auto])
1387
if test "x$enable_tracker_needle" = "xyes" ; then
1388
if test "x$have_tracker_needle" != "xyes"; then
1389
AC_MSG_ERROR([Couldn't find tracker-needle dependencies ($TRACKER_NEEDLE_REQUIRED).])
1392
if test "x$enable_tracker_needle" = "xno"; then
1393
have_tracker_needle="no (disabled)"
1397
if test "x$have_tracker_needle" = "xyes"; then
1398
AC_DEFINE(HAVE_TRACKER_NEEDLE, [1], [Define to 1 if tracker-needle is compiled])
1400
AC_DEFINE(HAVE_TRACKER_NEEDLE, [0], [Define to 0 if tracker-needle is not compiled])
1403
AM_CONDITIONAL(HAVE_TRACKER_NEEDLE, test "$have_tracker_needle" = "yes")
1405
##################################################################
1406
# Check for tracker-preferences
1407
##################################################################
1409
AC_ARG_ENABLE([tracker-preferences],
1410
AS_HELP_STRING([--enable-tracker-preferences],
1411
[enable the tracker preferences dialog [[default=auto]]]),,
1412
[enable_tracker_preferences=auto])
1414
if test "x$enable_tracker_preferences" = "xyes" ; then
1415
if test "x$have_tracker_preferences" != "xyes"; then
1416
AC_MSG_ERROR([Couldn't find tracker-preferences dependencies ($TRACKER_PREFERENCES_REQUIRED).])
1419
if test "x$enable_tracker_preferences" = "xno"; then
1420
have_tracker_preferences="no (disabled)"
1424
AM_CONDITIONAL(HAVE_TRACKER_PREFERENCES, test "$have_tracker_preferences" = "yes")
1426
##################################################################
1427
# Check for tracker-explorer
1428
##################################################################
1430
AC_ARG_ENABLE([tracker-explorer],
1431
AS_HELP_STRING([--enable-tracker-explorer],
1432
[enable tracker-explorer[[default=auto]]]),,
1433
[enable_tracker_explorer=auto])
1435
if test "x$enable_tracker_explorer" = "xyes" ; then
1436
if test "x$have_tracker_explorer" != "xyes"; then
1437
AC_MSG_ERROR([Couldn't find tracker-explorer dependencies ($TRACKER_EXPLORER_REQUIRED).])
1440
if test "x$enable_tracker_explorer" = "xno"; then
1441
have_tracker_explorer="no (disabled)"
1445
AM_CONDITIONAL(HAVE_TRACKER_EXPLORER, test "$have_tracker_explorer" = "yes")
1447
##################################################################
1448
# Check for tracker-resdump
1449
##################################################################
1451
AM_CONDITIONAL(HAVE_TRACKER_RESDUMP, test "$have_tracker_resdump" = "yes")
1453
####################################################################
1454
####################################################################
1455
####################################################################
1456
# This section is for tracker-extract dependencies
1457
####################################################################
1458
####################################################################
1459
####################################################################
1461
####################################################################
1462
# Check for tracker-extract: enca for defect Russian/Cyrillic in MP3s
1463
####################################################################
1466
AS_HELP_STRING([--with-enca],
1467
[enable libenca for Cyrillic language detection in MP3s [[default=auto]]]),,
1470
if test "x$enable_enca" != "xno" ; then
1471
PKG_CHECK_MODULES(ENCA, [enca >= 1.9], have_enca=yes, have_enca=no)
1473
LIBTRACKER_EXTRACT_CFLAGS="$LIBTRACKER_EXTRACT_CFLAGS $ENCA_CFLAGS"
1474
LIBTRACKER_EXTRACT_LIBS="$LIBTRACKER_EXTRACT_LIBS $ENCA_LIBS"
1476
if test "x$have_enca" = "xyes"; then
1477
AC_DEFINE(HAVE_ENCA, [], [Enca language detection aid])
1480
have_enca="no (disabled)"
1483
AM_CONDITIONAL(HAVE_ENCA, test "$have_enca" = "yes")
1485
####################################################################
1486
# Check for tracker-extract: libstreamanalyzer
1487
####################################################################
1489
AC_ARG_ENABLE(libstreamanalyzer,
1490
AS_HELP_STRING([--enable-libstreamanalyzer],
1491
[enable libstreamananalyzer [[default=no]]]),,
1492
[enable_libstreamanalyzer=no])
1494
if test "x$enable_libstreamanalyzer" != "xno"; then
1495
PKG_CHECK_MODULES(LIBSTREAMANALYZER,
1496
[libstreamanalyzer >= $LIBSTREAMANALYZER_REQUIRED],
1497
[have_libstreamanalyzer=yes],
1498
[have_libstreamanalyzer=no])
1500
TRACKER_EXTRACT_CFLAGS="$TRACKER_EXTRACT_CFLAGS $LIBSTREAMANALYZER_CFLAGS"
1501
TRACKER_EXTRACT_LIBS="$TRACKER_EXTRACT_LIBS $LIBSTREAMANALYZER_LIBS"
1503
if test "x$have_libstreamanalyzer" = "xyes"; then
1504
AC_DEFINE(HAVE_LIBSTREAMANALYZER, [], [Define if we have libstreamanalyzer])
1507
have_libstreamanalyzer="no (disabled)"
1510
if test "x$enable_libstreamanalyzer" = "xyes"; then
1511
if test "x$have_libstreamanalyzer" != "xyes"; then
1512
AC_MSG_ERROR([Couldn't find libstreamanalyzer >= $LIBSTREAMANALYZER_REQUIRED and libstreamanalyzer.])
1516
AM_CONDITIONAL(HAVE_LIBSTREAMANALYZER, test "$have_libstreamanalyzer" = "yes")
1518
##################################################################
1519
# Check for tracker-extract: libxml2 for XML/HTML extractor
1520
##################################################################
1522
AC_ARG_ENABLE(libxml2,
1523
AS_HELP_STRING([--disable-libxml2],
1524
[disable HTML/XML extractors [[default=yes]]]),,
1525
[enable_libxml2=yes])
1527
# Force libxml requirement for HAVE_MAEMO,
1528
# given the miner-fs needs it for the userguide extraction.
1529
if test "x$enable_maemo" = "xyes" ; then
1530
enable_libxml2="yes"
1534
if test "x$enable_libxml2" != "xno"; then
1535
PKG_CHECK_MODULES(LIBXML2,
1536
[libxml-2.0 >= $LIBXML2_REQUIRED],
1539
AC_SUBST(LIBXML2_CFLAGS)
1540
AC_SUBST(LIBXML2_LIBS)
1542
if test "x$have_libxml2" = "xyes"; then
1543
AC_DEFINE(HAVE_LIBXML2, [], [Define if we have libxml2])
1546
have_libxml2="no (disabled)"
1549
if test "x$enable_libxml2" = "xyes"; then
1550
if test "x$have_libxml2" != "xyes"; then
1551
AC_MSG_ERROR([Couldn't find libxml2 >= $LIBXML2_REQUIRED.])
1555
AM_CONDITIONAL(HAVE_LIBXML2, test "x$have_libxml2" = "xyes")
1557
##################################################################
1558
# Check for tracker-extract: GdkPixbuf for MP3 album art
1559
##################################################################
1561
AC_ARG_ENABLE(gdkpixbuf,
1562
AS_HELP_STRING([--enable-gdkpixbuf],
1563
[enable GdkPixbuf support, (MP3 album art) [[default=auto]]]),,
1564
[enable_gdkpixbuf=auto])
1566
##################################################################
1567
# Check for tracker-extract: Qt for MP3 album art
1568
##################################################################
1571
AS_HELP_STRING([--enable-qt],
1572
[enable Qt support, (MP3 album art) [[default=auto]]]),,
1575
selected_for_albumart="no (disabled)"
1577
##################################################################
1578
# Check for tracker-extract: Choose between GdkPixbuf/Qt
1579
##################################################################
1581
if test "x$enable_qt" != "xno" && test "x$enable_gdkpixbuf" != "xyes"; then
1582
PKG_CHECK_MODULES(QT,
1583
[QtGui >= $QT_REQUIRED],
1587
TRACKER_EXTRACT_CFLAGS="$TRACKER_EXTRACT_CFLAGS $QT_CFLAGS"
1588
TRACKER_EXTRACT_LIBS="$TRACKER_EXTRACT_LIBS $QT_LIBS"
1590
if test "x$have_qt" = "xyes"; then
1591
AC_DEFINE(HAVE_QT, [], [Define if we have Qt])
1592
selected_for_albumart="yes (qt)"
1595
have_qt="no (disabled)"
1598
if test "x$enable_qt" = "xyes"; then
1599
if test "x$have_qt" != "xyes"; then
1600
AC_MSG_ERROR([Couldn't find Qt >= $QT_REQUIRED.])
1604
AM_CONDITIONAL(HAVE_QT, test "x$have_qt" = "xyes")
1606
if test "x$enable_gdkpixbuf" != "xno" && test "x$enable_quill" != "xyes"; then
1607
PKG_CHECK_MODULES(GDKPIXBUF,
1608
[gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED],
1609
[have_gdkpixbuf=yes],
1610
[have_gdkpixbuf=no])
1612
TRACKER_EXTRACT_CFLAGS="$TRACKER_EXTRACT_CFLAGS $GDKPIXBUF_CFLAGS"
1613
TRACKER_EXTRACT_LIBS="$TRACKER_EXTRACT_LIBS $GDKPIXBUF_LIBS"
1615
if test "x$have_gdkpixbuf" = "xyes"; then
1616
AC_DEFINE(HAVE_GDKPIXBUF, [], [Define if we have GdkPixbuf])
1617
selected_for_albumart="yes (GdkPixbuf)"
1620
have_gdkpixbuf="no (disabled)"
1623
if test "x$enable_gdkpixbuf" = "xyes"; then
1624
if test "x$have_gdkpixbuf" != "xyes"; then
1625
AC_MSG_ERROR([Couldn't find GdkPixbuf >= $GDKPIXBUF_REQUIRED.])
1629
AM_CONDITIONAL(HAVE_GDKPIXBUF, test "x$have_gdkpixbuf" = "xyes")
1631
####################################################################
1632
# Check for tracker-extract: gstreamer/xine/totem/mplayer/etc
1633
####################################################################
1635
AC_ARG_ENABLE(generic-media-extractor,
1636
AS_HELP_STRING([--enable-generic-media-extractor=ARG],
1637
[enables one of the (gstreamer, xine, external, auto) generic media extractor backends [[default=auto]]]),,
1638
[enable_generic_media_extractor=auto])
1640
PKG_CHECK_MODULES(GSTREAMER,
1641
[gstreamer-0.10 >= $GSTREAMER_REQUIRED
1642
gstreamer-tag-0.10 >= $GSTREAMER_REQUIRED],
1643
[have_libgstreamer=yes],
1644
[have_libgstreamer=no])
1646
AC_SUBST(GSTREAMER_CFLAGS)
1647
AC_SUBST(GSTREAMER_LIBS)
1649
PKG_CHECK_MODULES(XINE,
1654
AC_SUBST(XINE_CFLAGS)
1657
if test "x$enable_generic_media_extractor" = "xauto"; then
1658
if test "$have_libgstreamer" = "yes"; then
1659
have_generic_media_handler="yes"
1660
have_generic_media_handler_app="GStreamer"
1661
elif test "$have_libxine" = "yes"; then
1662
have_generic_media_handler_app="Xine"
1663
have_generic_media_handler="yes"
1665
have_generic_media_handler="?"
1666
have_generic_media_handler_app="An external generic_media player will be called"
1668
elif test "x$enable_generic_media_extractor" = "xgstreamer"; then
1669
if test "$have_libgstreamer" = "yes"; then
1670
have_generic_media_handler_app="GStreamer"
1671
have_generic_media_handler="yes"
1673
AC_MSG_ERROR([Couldn't find GStreamer >= $GSTREAMER_REQUIRED])
1675
elif test "x$enable_generic_media_extractor" = "xxine"; then
1676
if test "$have_libxine" = "yes"; then
1677
have_generic_media_handler_app="Xine"
1678
have_generic_media_handler="yes"
1680
AC_MSG_ERROR([Couldn't find libxine])
1683
have_generic_media_handler="?"
1684
have_generic_media_handler_app="An external generic media player will be called"
1687
if test "$have_generic_media_handler_app" = "GStreamer"; then
1688
AC_DEFINE(HAVE_GSTREAMER, [], [Define if we have GStreamer])
1689
AM_CONDITIONAL(HAVE_GSTREAMER, true)
1690
AM_CONDITIONAL(HAVE_LIBXINE, false)
1691
AM_CONDITIONAL(USING_EXTERNAL_GENERIC_MEDIA_PLAYER, false)
1692
elif test "$have_generic_media_handler_app" = "Xine"; then
1693
AC_DEFINE(HAVE_LIBXINE, [], [Define if we have Libxine])
1694
AM_CONDITIONAL(HAVE_LIBXINE, true)
1695
AM_CONDITIONAL(HAVE_GSTREAMER, false)
1696
AM_CONDITIONAL(USING_EXTERNAL_GENERIC_MEDIA_PLAYER, false)
1698
AC_DEFINE(USING_EXTERNAL_GENERIC_MEDIA_PLAYER, [], [Define that Tracker will try to use external generic media players])
1699
AM_CONDITIONAL(USING_EXTERNAL_GENERIC_MEDIA_PLAYER, true)
1700
AM_CONDITIONAL(HAVE_GSTREAMER, false)
1701
AM_CONDITIONAL(HAVE_LIBXINE, false)
1704
###########################################################################
1705
# Check for gstreamer backend: tagreadbin/decodebin2/discoverer/gupnp-dlna
1706
###########################################################################
1708
AC_ARG_WITH([gstreamer-backend],
1709
AS_HELP_STRING([--with-gstreamer-backend],
1710
[enables one of the (gupnp-dlna, discoverer, decodebin2, tagreadbin) GStreamer backends [[default=discoverer]]]),,
1711
[with_gstreamer_backend=discoverer])
1713
if test "$have_generic_media_handler_app" != "GStreamer"; then
1714
AC_MSG_WARN([No need to specify a GStreamer backend if not using GStreamer])
1715
gstreamer_backend="N/A"
1717
case "x$with_gstreamer_backend" in
1719
gstreamer_backend="Decodebin2"
1720
AC_DEFINE(GSTREAMER_BACKEND_DECODEBIN2, [], [Define that GStreamer Decodebin2 should be used])
1723
gstreamer_backend="Tagreadbin"
1724
AC_DEFINE(GSTREAMER_BACKEND_TAGREADBIN, [], [Define that GStreamer Tagreadbin should be used])
1727
PKG_CHECK_MODULES(GSTREAMER_PBUTILS,
1728
[gstreamer-pbutils-0.10 >= $GSTREAMER_REQUIRED],
1729
[have_gstreamer_pbutils=yes],
1730
[have_gstreamer_pbutils=no])
1731
AC_SUBST(GSTREAMER_PBUTILS_CFLAGS)
1732
AC_SUBST(GSTREAMER_PBUTILS_LIBS)
1734
if test "x$have_gstreamer_pbutils" != "xyes"; then
1735
AC_MSG_ERROR([Couldn't find GStreamer pbutils])
1738
gstreamer_backend="Discoverer"
1739
AC_DEFINE(GSTREAMER_BACKEND_DISCOVERER, [], [Define that GStreamer Discoverer should be used])
1742
PKG_CHECK_MODULES(GUPNP_DLNA,
1743
[gupnp-dlna-1.0 >= $GUPNP_DLNA_REQUIRED],
1744
[have_gupnp_dlna=yes],
1745
[have_gupnp_dlna=no])
1746
AC_SUBST(GUPNP_DLNA_CFLAGS)
1747
AC_SUBST(GUPNP_DLNA_LIBS)
1749
if test "x$have_gupnp_dlna" = "xyes"; then
1750
gstreamer_backend="GUPnP-DLNA"
1751
AC_DEFINE(GSTREAMER_BACKEND_GUPNP_DLNA, [], [Define that GUPnP-DLNA should be used])
1753
AC_MSG_ERROR([Couldn't find GUPnP-DLNA >= $GUPNP_DLNA_REQUIRED])
1756
# Invalid option value
1757
*) AC_MSG_ERROR([Wrong value for --with-gstreamer-backend: $with_gstreamer_backend]) ;;
1761
AM_CONDITIONAL(HAVE_GUPNP_DLNA, test "x$gstreamer_backend" = "xGUPnP-DLNA")
1762
AM_CONDITIONAL(HAVE_GSTREAMER_PBUTILS, test "x$gstreamer_backend" = "xDiscoverer")
1764
####################################################################
1765
# Check for tracker-extract: support .ps.gz files
1766
####################################################################
1768
AC_ARG_ENABLE([unzip_psgz_files],
1769
AS_HELP_STRING([--disable-unzip-ps-gz-files],
1770
[disable unzipping ps.gz files [[default=yes]]]),,
1771
[enable_unzip_psgz_files=yes])
1773
if test x$enable_unzip_psgz_files != "xno"; then
1774
AC_DEFINE(USING_UNZIPPSFILES, 1, [Unzip ps.gz files])
1777
##################################################################
1778
# Check for tracker-extract: poppler for PDF
1779
##################################################################
1781
AC_ARG_ENABLE(poppler,
1782
AS_HELP_STRING([--enable-poppler],
1783
[enable extractor for PDF data [[default=auto]]]),,
1784
[enable_poppler=auto])
1786
if test "x$enable_poppler" != "xno" ; then
1787
PKG_CHECK_MODULES(POPPLER,
1788
[poppler-glib >= $POPPLER_REQUIRED],
1792
AC_SUBST(POPPLER_CFLAGS)
1793
AC_SUBST(POPPLER_LIBS)
1795
if test "x$have_poppler" = "xyes"; then
1796
AC_DEFINE(HAVE_POPPLER, [], [Define if we have poppler-glib])
1799
have_poppler="no (disabled)"
1802
if test "x$enable_poppler" = "xyes"; then
1803
if test "x$have_poppler" != "xyes"; then
1804
AC_MSG_ERROR([Couldn't find poppler-glib >= $POPPLER_REQUIRED.])
1808
AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes")
1810
##################################################################
1811
# Check for tracker-extract: libgsf
1812
##################################################################
1814
AC_ARG_ENABLE(libgsf,
1815
AS_HELP_STRING([--enable-libgsf],
1816
[enable extractor for GSF data [[default=auto]]]),,
1817
[enable_libgsf=auto])
1819
if test "x$enable_libgsf" != "xno" ; then
1820
PKG_CHECK_MODULES(LIBGSF,
1821
[libgsf-1 >= $LIBGSF_REQUIRED],
1825
AC_SUBST(LIBGSF_CFLAGS)
1826
AC_SUBST(LIBGSF_LIBS)
1828
if test "x$have_libgsf" = "xyes"; then
1829
AC_DEFINE(HAVE_LIBGSF, [], [Define if we have libgsf])
1832
have_libgsf="no (disabled)"
1835
if test "x$enable_libgsf" = "xyes"; then
1836
if test "x$have_libgsf" != "xyes"; then
1837
AC_MSG_ERROR([Couldn't find libgsf >= $LIBGSF_REQUIRED.])
1841
AM_CONDITIONAL(HAVE_LIBGSF, test "x$have_libgsf" = "xyes")
1843
##################################################################
1844
# Check for tracker-extract: libgif
1845
##################################################################
1847
# FIXME: This should be package based. Unfortunately in several main
1848
# distros, it is not.
1850
OLD_CFLAGS="$CFLAGS"
1855
AC_ARG_ENABLE(libgif,
1856
AS_HELP_STRING([--enable-libgif],
1857
[enable extractor for GIF data [[default=auto]]]),,
1858
[enable_libgif=auto])
1860
if test "x$enable_libgif" != "xno" ; then
1861
AC_CHECK_HEADER(gif_lib.h,
1862
AC_CHECK_LIB(gif,DGifOpen))
1864
have_libgif=${ac_cv_lib_gif_DGifOpen:-no}
1866
LIBGIF_CFLAGS="$CFLAGS"
1869
AC_SUBST(LIBGIF_CFLAGS)
1870
AC_SUBST(LIBGIF_LIBS)
1872
if test "x$have_libgif" = "xyes"; then
1873
AC_DEFINE(HAVE_LIBGIF, [], [Define if we have libgif])
1876
have_libgif="no (disabled)"
1879
if test "x$enable_libgif" = "xyes"; then
1880
if test "x$have_libgif" != "xyes"; then
1881
AC_MSG_ERROR([Couldn't find libgif >= $LIBGIF_REQUIRED.])
1885
AM_CONDITIONAL(HAVE_LIBGIF, test "x$have_libgif" = "xyes")
1887
CFLAGS="$OLD_CFLAGS"
1890
##################################################################
1891
# Check for tracker-extract: libjpeg
1892
##################################################################
1894
# FIXME: This should be package based. Unfortunately in several main
1895
# distros, it is not.
1897
OLD_CFLAGS="$CFLAGS"
1902
AC_ARG_ENABLE(libjpeg,
1903
AS_HELP_STRING([--enable-libjpeg],
1904
[enable extractor for JPEG data [[default=auto]]]),,
1905
[enable_libjpeg=auto])
1907
if test "x$enable_libjpeg" != "xno" ; then
1908
AC_CHECK_HEADER(jpeglib.h,
1909
AC_CHECK_LIB(jpeg, jpeg_CreateCompress))
1911
have_libjpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
1913
LIBJPEG_CFLAGS="$CFLAGS"
1914
LIBJPEG_LIBS="$LIBS"
1916
AC_SUBST(LIBJPEG_CFLAGS)
1917
AC_SUBST(LIBJPEG_LIBS)
1919
if test "x$have_libjpeg" = "xyes"; then
1920
AC_DEFINE(HAVE_LIBJPEG, [], [Define if we have libjpeg])
1923
have_libjpeg="no (disabled)"
1926
if test "x$enable_libjpeg" = "xyes"; then
1927
if test "x$have_libjpeg" != "xyes"; then
1928
AC_MSG_ERROR([Couldn't find libjpeg >= $LIBJPEG_REQUIRED.])
1932
AM_CONDITIONAL(HAVE_LIBJPEG, test "x$have_libjpeg" = "xyes")
1934
CFLAGS="$OLD_CFLAGS"
1937
##################################################################
1938
# Check for tracker-extract: libtiff
1939
##################################################################
1941
# FIXME: This should be package based. Unfortunately in several main
1942
# distros, it is not.
1944
OLD_CFLAGS="$CFLAGS"
1949
AC_ARG_ENABLE(libtiff,
1950
AS_HELP_STRING([--enable-libtiff],
1951
[enable extractor for TIFF data [[default=auto]]]),,
1952
[enable_libtiff=auto])
1954
if test "x$enable_libtiff" != "xno" ; then
1955
AC_CHECK_HEADER(tiff.h,
1956
AC_CHECK_LIB(tiff, TIFFOpen))
1958
have_libtiff=${ac_cv_lib_tiff_TIFFOpen:-no}
1960
LIBTIFF_CFLAGS="$CFLAGS"
1961
LIBTIFF_LIBS="$LIBS"
1963
AC_SUBST(LIBTIFF_CFLAGS)
1964
AC_SUBST(LIBTIFF_LIBS)
1966
if test "x$have_libtiff" = "xyes"; then
1967
AC_DEFINE(HAVE_LIBTIFF, [], [Define if we have libtiff])
1970
have_libtiff="no (disabled)"
1973
if test "x$enable_libtiff" = "xyes"; then
1974
if test "x$have_libtiff" != "xyes"; then
1975
AC_MSG_ERROR([Couldn't find libtiff >= $LIBTIFF_REQUIRED.])
1979
AM_CONDITIONAL(HAVE_LIBTIFF, test "x$have_libtiff" = "xyes")
1981
CFLAGS="$OLD_CFLAGS"
1984
##################################################################
1985
# Check for tracker-extract: vorbis
1986
##################################################################
1988
AC_ARG_ENABLE(libvorbis,
1989
AS_HELP_STRING([--enable-libvorbis],
1990
[enable extractor for vorbis data (ogg) [[default=no]]]),,
1991
[enable_libvorbis=no])
1993
if test "x$enable_libvorbis" != "xno" ; then
1994
PKG_CHECK_MODULES(LIBVORBIS,
1995
[vorbisfile >= $LIBVORBIS_REQUIRED],
1996
[have_libvorbis=yes],
1997
[have_libvorbis=no])
1999
AC_SUBST(LIBVORBIS_CFLAGS)
2000
AC_SUBST(LIBVORBIS_LIBS)
2002
if test "x$have_libvorbis" = "xyes"; then
2003
AC_DEFINE(HAVE_LIBVORBIS, [], [Define if we have libvorbis])
2006
have_libvorbis="no (disabled)"
2009
if test "x$enable_libvorbis" = "xyes"; then
2010
if test "x$have_libvorbis" != "xyes"; then
2011
AC_MSG_ERROR([Couldn't find libvorbis >= $LIBVORBIS_REQUIRED.])
2015
AM_CONDITIONAL(HAVE_LIBVORBIS, test "x$have_libvorbis" = "xyes")
2017
####################################################################
2018
# Check for tracker-extract: flac
2019
####################################################################
2021
AC_ARG_ENABLE(libflac,
2022
AS_HELP_STRING([--enable-libflac],
2023
[enable extractor for flac data [[default=no]]]),,
2024
[enable_libflac=no])
2026
if test "x$enable_libflac" != "xno" ; then
2027
PKG_CHECK_MODULES(LIBFLAC,
2028
[flac >= $LIBFLAC_REQUIRED],
2031
AC_SUBST(LIBFLAC_CFLAGS)
2032
AC_SUBST(LIBFLAC_LIBS)
2034
if test "x$have_libflac" = "xyes"; then
2035
AC_DEFINE(HAVE_LIBFLAC, [], [Define if we have libflac])
2038
have_libflac="no (disabled)"
2041
if test "x$enable_libflac" = "xyes"; then
2042
if test "x$have_libflac" != "xyes"; then
2043
AC_MSG_ERROR([Couldn't find libflac >= $LIBFLAC_REQUIRED.])
2047
AM_CONDITIONAL(HAVE_LIBFLAC, test "x$have_libflac" = "xyes")
2049
####################################################################
2050
# Check for tracker-extract-gstreamer: libcue
2051
####################################################################
2053
AC_ARG_ENABLE(libcue,
2054
AS_HELP_STRING([--enable-libcue],
2055
[enable external cuesheet parsing [[default=auto]]]),,
2056
[enable_libcue=auto])
2058
if test "x$enable_libcue" != "xno" ; then
2059
PKG_CHECK_MODULES(LIBCUE,
2064
AC_SUBST(LIBCUE_CFLAGS)
2065
AC_SUBST(LIBCUE_LIBS)
2067
if test "x$have_libcue" = "xyes"; then
2068
AC_DEFINE(HAVE_LIBCUE, [], [Define if we have libcue])
2071
have_libcue="no (disabled)"
2074
if test "x$enable_libcue" = "xyes"; then
2075
if test "x$have_libcue" != "xyes"; then
2076
AC_MSG_ERROR([Couldn't find libcue.])
2080
AM_CONDITIONAL(HAVE_LIBCUE, test "x$have_libcue" = "xyes")
2082
####################################################################
2083
# Check for tracker-extract, tracker-writeback: totem-pl-parser
2084
####################################################################
2086
AC_ARG_ENABLE(playlist,
2087
AS_HELP_STRING([--enable-playlist],
2088
[enable playlist support [[default=auto]]]),,
2089
[enable_playlist=auto])
2091
if test "x$enable_playlist" != "xno" ; then
2092
PKG_CHECK_MODULES(TOTEM_PL_PARSER,
2094
glib-2.0 >= $GLIB_REQUIRED
2095
gobject-2.0 >= $GLIB_REQUIRED],
2096
[have_playlist=yes],
2099
TRACKER_WRITEBACK_CFLAGS="$TRACKER_WRITEBACK_CFLAGS $TOTEM_PL_PARSER_CFLAGS"
2100
TRACKER_WRITEBACK_LIBS="$TRACKER_WRITEBACK_LIBS $TOTEM_PL_PARSER_LIBS"
2102
AC_SUBST(TOTEM_PL_PARSER_CFLAGS)
2103
AC_SUBST(TOTEM_PL_PARSER_LIBS)
2105
if test "x$have_playlist" = "xyes"; then
2106
AC_DEFINE(HAVE_TOTEM_PL_PARSER, [], [Define if we have Totem PL parser])
2109
have_playlist="no (disabled)"
2112
if test "x$enable_playlist" = "xyes"; then
2113
if test "x$have_playlist" != "xyes"; then
2114
AC_MSG_ERROR([Couldn't find Totem PL parser.])
2118
AM_CONDITIONAL(HAVE_TOTEM_PL_PARSER, test "x$have_playlist" = "xyes")
2120
#####################################################################
2121
# Check for tracker-extract: Guarantee existence of certain metadata
2122
#####################################################################
2124
# Currently guarantees (for extraction):
2125
# - nie:title for music and video files
2126
# - nie:contentCreated for music, video and image files
2128
AC_ARG_ENABLE(guarantee-metadata,
2129
AS_HELP_STRING([--enable-guarantee-metadata],
2130
[enable guaranteed existence of some metadata [[default=no]]]),
2131
[enable_guarantee_metadata=yes],
2132
[enable_guarantee_metadata=no])
2134
if test "x$enable_guarantee_metadata" != "xno"; then
2135
AC_DEFINE(GUARANTEE_METADATA, 1, [Guarantee existence of certain metadata])
2138
####################################################################
2139
# Check if we should use initctl or sysvinit
2140
####################################################################
2143
AC_PATH_PROG(INITCTL, initctl, [])
2145
AM_CONDITIONAL(HAVE_UPSTART, test "x$INITCTL" != "x")
2147
##################################################################
2148
# Write generated files
2149
##################################################################
2153
data/gschemas/Makefile
2154
data/icons/16x16/Makefile
2155
data/icons/22x22/Makefile
2156
data/icons/24x24/Makefile
2157
data/icons/32x32/Makefile
2158
data/icons/48x48/Makefile
2160
data/icons/scalable/Makefile
2161
data/languages/Makefile
2163
data/miners/Makefile
2164
data/ontologies/Makefile
2165
data/tracker-sparql.pc
2166
data/tracker-extract.pc
2167
data/tracker-miner.pc
2169
docs/design/Makefile
2170
docs/manpages/Makefile
2171
docs/reference/Makefile
2172
docs/reference/libtracker-sparql/Makefile
2173
docs/reference/libtracker-sparql/version.xml
2174
docs/reference/libtracker-extract/Makefile
2175
docs/reference/libtracker-extract/version.xml
2176
docs/reference/libtracker-miner/Makefile
2177
docs/reference/libtracker-miner/version.xml
2178
docs/reference/ontology/Makefile
2179
docs/reference/ontology/version.xml
2184
src/libstemmer/Makefile
2185
src/libtracker-common/Makefile
2186
src/libtracker-sparql/Makefile
2187
src/libtracker-bus/Makefile
2188
src/libtracker-data/Makefile
2189
src/libtracker-direct/Makefile
2190
src/libtracker-sparql-backend/Makefile
2191
src/libtracker-fts/Makefile
2192
src/libtracker-extract/Makefile
2193
src/libtracker-miner/Makefile
2196
src/miners/fs/Makefile
2197
src/miners/rss/Makefile
2198
src/miners/flickr/Makefile
2199
src/tracker-store/Makefile
2200
src/tracker-control/Makefile
2201
src/tracker-extract/Makefile
2202
src/tracker-preferences/Makefile
2203
src/tracker-preferences/tracker-preferences.desktop.in
2204
src/tracker-search-bar/Makefile
2205
src/tracker-explorer/Makefile
2206
src/tracker-needle/Makefile
2207
src/tracker-needle/tracker-needle.desktop.in
2208
src/tracker-utils/Makefile
2209
src/tracker-writeback/Makefile
2210
src/plugins/Makefile
2211
src/plugins/evolution/Makefile
2212
src/plugins/thunderbird/Makefile
2213
src/plugins/thunderbird/install.rdf
2214
src/plugins/thunderbird/chrome/Makefile
2215
src/plugins/thunderbird/chrome/content/Makefile
2216
src/plugins/thunderbird/chrome/locale/Makefile
2217
src/plugins/thunderbird/chrome/locale/en-US/Makefile
2218
src/plugins/thunderbird/chrome/skin/Makefile
2219
src/plugins/thunderbird/defaults/Makefile
2220
src/plugins/thunderbird/defaults/preferences/Makefile
2221
src/plugins/firefox/Makefile
2222
src/plugins/firefox/install.rdf
2223
src/plugins/firefox/chrome/Makefile
2224
src/plugins/firefox/chrome/content/Makefile
2225
src/plugins/firefox/chrome/locale/Makefile
2226
src/plugins/firefox/chrome/locale/en-US/Makefile
2227
src/plugins/firefox/chrome/locale/es-ES/Makefile
2228
src/plugins/firefox/chrome/locale/fr-FR/Makefile
2229
src/plugins/firefox/chrome/skin/Makefile
2230
src/plugins/firefox/defaults/Makefile
2231
src/plugins/firefox/defaults/preferences/Makefile
2232
src/plugins/nautilus/Makefile
2234
tests/common/Makefile
2236
tests/libtracker-common/Makefile
2237
tests/libtracker-extract/Makefile
2238
tests/libtracker-data/Makefile
2239
tests/libtracker-data/aggregates/Makefile
2240
tests/libtracker-data/algebra/Makefile
2241
tests/libtracker-data/anon/Makefile
2242
tests/libtracker-data/ask/Makefile
2243
tests/libtracker-data/basic/Makefile
2244
tests/libtracker-data/bnode-coreference/Makefile
2245
tests/libtracker-data/bound/Makefile
2246
tests/libtracker-data/datetime/Makefile
2247
tests/libtracker-data/expr-ops/Makefile
2248
tests/libtracker-data/functions/Makefile
2249
tests/libtracker-data/graph/Makefile
2250
tests/libtracker-data/nie/Makefile
2251
tests/libtracker-data/nmo/Makefile
2252
tests/libtracker-data/optional/Makefile
2253
tests/libtracker-data/regex/Makefile
2254
tests/libtracker-data/sort/Makefile
2255
tests/libtracker-data/subqueries/Makefile
2256
tests/libtracker-data/error/Makefile
2257
tests/libtracker-data/backup/Makefile
2258
tests/libtracker-data/turtle/Makefile
2259
tests/libtracker-miner/Makefile
2260
tests/libtracker-fts/Makefile
2261
tests/libtracker-fts/limits/Makefile
2262
tests/libtracker-fts/prefix/Makefile
2263
tests/libtracker-sparql/Makefile
2264
tests/functional-tests/Makefile
2265
tests/functional-tests/ipc/Makefile
2266
tests/functional-tests/common/Makefile
2267
tests/functional-tests/common/utils/configuration.py
2268
tests/functional-tests/common/utils/Makefile
2269
tests/functional-tests/unittest2/Makefile
2270
tests/functional-tests/test-extraction-data/Makefile
2271
tests/functional-tests/test-extraction-data/audio/Makefile
2272
tests/functional-tests/test-extraction-data/images/Makefile
2273
tests/functional-tests/test-extraction-data/office/Makefile
2274
tests/functional-tests/test-extraction-data/video/Makefile
2275
tests/functional-tests/test-extraction-data/playlists/Makefile
2276
tests/functional-tests/test-writeback-data/Makefile
2277
tests/functional-tests/test-ontologies/Makefile
2278
tests/functional-tests/test-ontologies/basic/Makefile
2279
tests/functional-tests/test-ontologies/property-range-int-to-string/Makefile
2280
tests/functional-tests/test-ontologies/property-range-string-to-date/Makefile
2281
tests/functional-tests/test-ontologies/cardinality/Makefile
2282
tests/functional-tests/test-ontologies/notify/Makefile
2283
tests/functional-tests/test-ontologies/indexed/Makefile
2284
tests/functional-tests/test-ontologies/add-class/Makefile
2285
tests/functional-tests/test-ontologies/add-prop/Makefile
2286
tests/functional-tests/test-ontologies/add-domainIndex/Makefile
2287
tests/functional-tests/test-ontologies/superclass-remove/Makefile
2288
tests/functional-tests/test-ontologies/property-promotion/Makefile
2289
tests/functional-tests/test-ontologies/basic-future/Makefile
2290
tests/functional-tests/test-apps-data/Makefile
2291
tests/functional-tests/ttl/Makefile
2293
tests/tracker-steroids/Makefile
2294
tests/tracker-writeback/Makefile
2296
utils/gtk-sparql/Makefile
2297
utils/lyrics/Makefile
2298
utils/playlists/Makefile
2299
utils/services/Makefile
2300
utils/data-generators/Makefile
2301
utils/data-generators/cc/Makefile
2303
utils/tracker-sql/Makefile
2304
utils/tracker-resdump/Makefile
2306
examples/libtracker-extract/Makefile
2307
examples/libtracker-miner/Makefile
2308
examples/libtracker-sparql/Makefile
2309
examples/rss-reader/Makefile
2315
Build Configuration:
2318
Source code location: ${srcdir}
2320
Compiler Warnings: $enable_compile_warnings
2322
Win32: $native_win32
2324
Enable gtk doc (for documentation): $enable_gtk_doc
2326
Enable functional tests: $enable_functional_tests
2327
Enable unit tests: $have_unit_tests
2329
Support for HAL: $have_hal
2330
Support for UPower: $have_upower
2331
Support for Cyrillic languages (enca): $have_enca
2332
Support for network status detection: $have_network_manager
2333
Unicode support library: $with_unicode_support
2337
Build with Journal support: $have_tracker_journal
2338
Build with SQLite FTS support: $have_tracker_fts
2340
Build tracker-preferences: $have_tracker_preferences
2341
Build tracker-explorer: $have_tracker_explorer
2342
Build tracker-needle: $have_tracker_needle
2343
Build tracker-search-bar: $have_tracker_search_bar
2345
Metadata Extractors:
2347
Support libstreamanalyzer: $have_libstreamanalyzer
2349
Support PDF: $have_poppler
2350
Support GIF: $have_libgif (xmp: $have_exempi)
2351
Support JPEG: $have_libjpeg (xmp: $have_exempi, exif: $have_libexif, iptc: $have_libiptcdata)
2352
Support TIFF: $have_libtiff (xmp: $have_exempi, exif: yes, iptc: $have_libiptcdata)
2353
Support Vorbis (ogg/etc): $have_libvorbis
2354
Support Flac: $have_libflac
2355
Support MS & Open Office: $have_libgsf
2356
Support XML / HTML: $have_libxml2
2357
Support embedded / sidecar XMP: $have_exempi
2358
Support generic media formats: $have_generic_media_handler ($have_generic_media_handler_app) (backend: $gstreamer_backend)
2359
Support MP3 album art: $selected_for_albumart
2360
Support cue sheet parsing: $have_libcue
2361
Support playlists (w/ Totem): $have_playlist
2365
Applications: yes (MeeGo support: $have_meegotouch)
2366
RSS: $have_tracker_miner_rss
2367
Evolution: $have_tracker_miner_evolution ($tracker_miner_evolution_install_dir)
2368
Thunderbird: $have_tracker_miner_thunderbird ($tracker_miner_thunderbird_install_dir)
2369
FireFox: $have_tracker_miner_firefox ($tracker_miner_firefox_install_dir)
2370
Flickr: $have_tracker_miner_flickr
2374
Nautilus: (tagging widget) $have_tracker_nautilus_extension ($tracker_nautilus_extension_install_dir)
2378
Audio files using Taglib: $have_taglib
2381
Frameworks / Options:
2383
Support Maemo $enable_maemo
2384
Support libmeegotouch $have_meegotouch
2385
Support Guaranteed Metadata $enable_guarantee_metadata (e.g. guess nie:title from files)