# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # This file is part of Tracker. AC_PREREQ(2.59) # Making releases: # TRACKER_MICRO_VERSION += 1; # TRACKER_INTERFACE_AGE += 1; # TRACKER_BINARY_AGE += 1; # if any functions have been added, set TRACKER_INTERFACE_AGE to 0. # if backwards compatibility has been broken, # set TRACKER_BINARY_AGE and TRACKER_INTERFACE_AGE to 0. m4_define([tracker_major_version], [0]) m4_define([tracker_minor_version], [7]) m4_define([tracker_micro_version], [16]) m4_define([tracker_interface_age], [0]) m4_define([tracker_binary_age], [m4_eval(100 * tracker_minor_version + tracker_micro_version)]) m4_define([tracker_version], [tracker_major_version.tracker_minor_version.tracker_micro_version]) # This is the X.Y used in -llibtracker-FOO-X.Y m4_define([tracker_api_version], [0.7]) # libtool version related macros m4_define([tracker_lt_release], [tracker_major_version.tracker_minor_version]) m4_define([tracker_lt_current], [m4_eval(100 * tracker_minor_version + tracker_micro_version - tracker_interface_age)]) m4_define([tracker_lt_revision], [tracker_interface_age]) m4_define([tracker_lt_age], [m4_eval(tracker_binary_age - tracker_interface_age)]) m4_define([tracker_lt_current_minus_age], [m4_eval(tracker_lt_current - tracker_lt_age)]) # Define a string for the earliest version that this release has # backwards binary compatibility with for all interfaces a module # might. Unless we add module-only API with lower stability # guarantees, this should be unchanged until we break binary compat # for Tracker. # # TRACKER_BINARY_VERSION=$TRACKER_MAJOR_VERSION.$TRACKER_MINOR_VERSION.$LT_CURRENT m4_define([tracker_binary_version], [0.7.6]) AC_INIT([tracker], [tracker_version], [http://bugzilla.gnome.org/enter_bug.cgi?product=tracker], [tracker]) AC_CONFIG_SRCDIR([src/tracker-store/tracker-main.c]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([no-define tar-ustar]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) IDT_COMPILE_WARNINGS TRACKER_MAJOR_VERSION=tracker_major_version TRACKER_MINOR_VERSION=tracker_minor_version TRACKER_MICRO_VERSION=tracker_micro_version TRACKER_INTERFACE_AGE=tracker_interface_age TRACKER_BINARY_AGE=tracker_binary_age TRACKER_VERSION=tracker_version TRACKER_API_VERSION=tracker_api_version TRACKER_BINARY_VERSION=tracker_binary_version AC_SUBST(TRACKER_MAJOR_VERSION) AC_SUBST(TRACKER_MINOR_VERSION) AC_SUBST(TRACKER_MICRO_VERSION) AC_SUBST(TRACKER_INTERFACE_AGE) AC_SUBST(TRACKER_BINARY_AGE) AC_SUBST(TRACKER_API_VERSION) AC_SUBST(TRACKER_VERSION) AC_SUBST(TRACKER_BINARY_VERSION) AC_SUBST(PACKAGE_URL, [http://www.tracker-project.org]) # libtool versioning LT_RELEASE=tracker_lt_release LT_CURRENT=tracker_lt_current LT_REVISION=tracker_lt_revision LT_AGE=tracker_lt_age LT_CURRENT_MINUS_AGE=tracker_lt_current_minus_age AC_SUBST(LT_RELEASE) AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) AC_SUBST(LT_CURRENT_MINUS_AGE) # Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_LN_S AC_PROG_INSTALL AC_PROG_MAKE_SET AC_DISABLE_STATIC AC_PROG_LIBTOOL CFLAGS="$CFLAGS" # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h sitdlib.h string.h sys/time.h unistd.h linux/unistd.h]) AC_CHECK_HEADER([zlib.h], [], [AC_MSG_ERROR([You must have zlib.h and zlib installed])]) # Can posix_fadvise be used AC_CHECK_DECLS(posix_fadvise, [], [], [ #define _XOPEN_SOURCE 600 #include ]) # Checks for functions AC_CHECK_FUNCS([posix_fadvise]) AC_CHECK_FUNCS([getline]) # Check for defines we expect AC_TRY_COMPILE(, [ #include "stdio.h" printf ("%s", __FUNCTION__); ], have_function=yes, have_function=no, ) if test "x$have_function" = "xno" ; then AC_DEFINE(__FUNCTION__, __func__, [Defined for compilers not supporting __FUNCTION__]) fi # Library required versions DBUS_REQUIRED=1.0 DBUS_GLIB_REQUIRED=0.78 GLIB_REQUIRED=2.20.0 PANGO_REQUIRED=1.0.0 GTK_REQUIRED=2.16.0 LIBXML2_REQUIRED=2.6 LIBNOTIFY_REQUIRED=0.4.3 HAL_REQUIRED=0.5 DEVKIT_POWER_REQUIRED=007 GDKPIXBUF_REQUIRED=2.12.0 QUILL_REQUIRED=1.0.0 UNAC_REQUIRED=1.0.0 POPPLER_GLIB_REQUIRED=0.4.5 CAIRO_REQUIRED=1.0 GDK_REQUIRED=1.0 LIBVORBIS_REQUIRED=0.22 LIBEXIF_REQUIRED=0.6 LIBGSF_REQUIRED=1.13 LIBWV2_REQUIRED=0.3.1 EXEMPI_REQUIRED=2.1.0 HILDON_THUMBNAIL_REQUIRED=3.0.10 EVO_REQUIRED=2.25.5 EDS_REQUIRED=2.25.5 # Unlikely version for now, Nepomuk integration isn't finished in streamanalyzer atm LIBSTREAMANALYZER_REQUIRED=0.7.0 GEE_REQUIRED=0.3 ID3LIB_REQUIRED=3.8.3 # Library Checks PKG_CHECK_MODULES(GLIB2, [glib-2.0 >= $GLIB_REQUIRED]) AC_SUBST(GLIB2_CFLAGS) AC_SUBST(GLIB2_LIBS) # Check for GThread 2.0 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0 >= $GLIB_REQUIRED]) AC_SUBST(GTHREAD_CFLAGS) AC_SUBST(GTHREAD_LIBS) # Check for GObject 2.0 PKG_CHECK_MODULES(GOBJECT, [gobject-2.0 >= $GLIB_REQUIRED]) AC_SUBST(GOBJECT_CFLAGS) AC_SUBST(GOBJECT_LIBS) # Check for GModule 2.0 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= $GLIB_REQUIRED]) AC_SUBST(GMODULE_CFLAGS) AC_SUBST(GMODULE_LIBS) PKG_CHECK_MODULES(GIO, [gio-2.0 >= $GLIB_REQUIRED]) AC_SUBST(GIO_CFLAGS) AC_SUBST(GIO_LIBS) # Check for Pango PKG_CHECK_MODULES(PANGO, [pango >= $PANGO_REQUIRED]) AC_SUBST(PANGO_CFLAGS) AC_SUBST(PANGO_LIBS) # Check for dbus and dbus-glib or higher PKG_CHECK_MODULES(DBUS, [dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED]) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) # Check for libpng 1.2 or higher PKG_CHECK_MODULES(LIBPNG, [libpng >= 1.2]) AC_SUBST(LIBPNG_CFLAGS) AC_SUBST(LIBPNG_LIBS) # Check for GConf PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.2.0], have_gconf=yes, have_gconf=no) AC_SUBST(GCONF_CFLAGS) AC_SUBST(GCONF_LIBS) AM_CONDITIONAL(HAVE_GCONF, test "$have_gconf" = "yes") # Check for libuuid PKG_CHECK_MODULES(UUID, [uuid]) AC_SUBST(UUID_CFLAGS) AC_SUBST(UUID_LIBS) # Check for enca, detects defect Russian or Cyrillic language specifics in mp3s PKG_CHECK_MODULES(ENCA, [enca >= 1.9], have_enca=yes, have_enca=no) AC_SUBST(ENCA_CFLAGS) AC_SUBST(ENCA_LIBS) AM_CONDITIONAL(HAVE_ENCA, test "$have_enca" = "yes") if test x$have_enca == "xyes"; then AC_DEFINE(HAVE_ENCA, 1, [Enca language detection aid]) fi AC_PATH_PROG(VALAC, valac, valac) AC_SUBST(VALAC) # Check we have the DBUS binding tool we need AC_PATH_PROG(DBUSBINDINGTOOL, dbus-binding-tool) if test -z $DBUSBINDINGTOOL; then AC_MSG_ERROR([Could not find 'dbus-binding-tool']) fi GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal` AC_SUBST(GLIB_GENMARSHAL) #################################################################### # ID3lib for MP3 writeback support #################################################################### # FIXME This should be package based. Unfortunately in several main # distros, it is not. OLD_CFLAGS="$CFLAGS" OLD_LIBS="$LIBS" CFLAGS="" LIBS="" AC_ARG_ENABLE(id3lib, AS_HELP_STRING([--enable-id3lib], [enable writeback for MP3 data [[default=auto]]]),, [enable_id3lib=auto]) if test "x$enable_id3lib" != "xno" ; then AC_CHECK_HEADER(id3.h, AC_CHECK_LIB([id3], [ID3Tag_New], [], [], [-lstdc++ -lz])) have_id3lib=${ac_cv_lib_id3_ID3Tag_New:-no} ID3LIB_CFLAGS="$CFLAGS" ID3LIB_LIBS="$LIBS" AC_SUBST(ID3LIB_CFLAGS) AC_SUBST(ID3LIB_LIBS) else have_id3lib="no (disabled)" fi if test "x$enable_id3lib" = "xyes"; then if test "x$have_id3lib" != "xyes"; then AC_MSG_ERROR([Couldn't find id3lib >= $ID3LIB_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_ID3LIB, test "x$have_id3lib" = "xyes") CFLAGS="$OLD_CFLAGS" LIBS="$OLD_LIBS" #################################################################### # Stream Analyzer #################################################################### AC_ARG_ENABLE(libstreamanalyzer, AS_HELP_STRING([--enable-libstreamanalyzer], [enable libstreamananalyzer [[default=no]]]), , [enable_libstreamanalyzer=no]) if test "x$enable_libstreamanalyzer" != "xno"; then PKG_CHECK_MODULES(LIBSTREAMANALYZER, [libstreamanalyzer >= $LIBSTREAMANALYZER_REQUIRED], [have_libstreamanalyzer=yes], [have_libstreamanalyzer=no]) AC_SUBST(LIBSTREAMANALYZER_CFLAGS) AC_SUBST(LIBSTREAMANALYZER_LIBS) if test "x$have_libstreamanalyzer" = "xyes"; then AC_DEFINE(HAVE_LIBSTREAMANALYZER, [], [Define if we have libstreamanalyzer]) fi else have_libstreamanalyzer="no (disabled)" fi if test "x$enable_libstreamanalyzer" = "xyes"; then if test "x$have_libstreamanalyzer" != "xyes"; then AC_MSG_ERROR([Couldn't find libstreamanalyzer >= $LIBSTREAMANALYZER_REQUIRED and libstreamanalyzer.]) fi fi AM_CONDITIONAL(HAVE_LIBSTREAMANALYZER, test "$have_libstreamanalyzer" = "yes") #################################################################### # DBus Service #################################################################### dnl DBus services dir AC_ARG_WITH([session_bus_services_dir], AS_HELP_STRING([--with-session-bus-services-dir], [Path to DBus services directory])) if test "x$with_session_bus_services_dir" = "x" ; then services_dir="$datadir/dbus-1/services" else services_dir="$with_session_bus_services_dir" fi DBUS_SERVICES_DIR="$services_dir" AC_SUBST(DBUS_SERVICES_DIR) #################################################################### # gettext/intltool support #################################################################### GETTEXT_PACKAGE=AC_PACKAGE_NAME AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext translation domain]) AM_GLIB_GNU_GETTEXT IT_PROG_INTLTOOL([0.35.0]) #################################################################### # Enable GCOV coverage reporting support #################################################################### AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov], [enable coverage reporting support [[default=no]]]), , [enable_gcov=no]) AM_CONDITIONAL(ENABLE_GCOV, test "x$enable_gcov" != "xno") if test "x$enable_gcov" != "xno" ; then GCOV_VALAFLAGS="-g" GCOV_CFLAGS="-ftest-coverage -fprofile-arcs" GCOV_LIBS="-lgcov" else GCOV_VALAFLAGS= GCOV_CFLAGS= GCOV_LIBS= fi AC_SUBST(GCOV_VALAFLAGS) AC_SUBST(GCOV_CFLAGS) AC_SUBST(GCOV_LIBS) #################################################################### # Should we build GLib based unit tests #################################################################### AC_ARG_ENABLE(unit_tests, AS_HELP_STRING([--enable-unit-tests], [enable unit tests [[default=yes]]]), , [enable_unit_tests=yes]) if test "x$enable_unit_tests" != "xno" ; then have_unit_tests=yes AC_DEFINE(HAVE_UNIT_TEST, 1, [Define if we have GLib unit test framework]) AC_PATH_PROG(gtester, gtester) if test -z $gtester; then AC_MSG_ERROR([Could not find 'gtester']) fi else have_unit_tests=no fi AM_CONDITIONAL(HAVE_UNIT_TESTS, test "x$have_unit_tests" = "xyes") #################################################################### # Use tagreadbin in gstreamer extraction? #################################################################### AC_ARG_ENABLE(gstreamer-tagreadbin, AS_HELP_STRING([--enable-gstreamer-tagreadbin], [enable tagreadbin in gstreamer [[default=no]]]), [enable_tagreadbin=yes], [enable_tagreadbin=no]) if test "x$enable_tagreadbin" != "xno"; then AC_DEFINE(TRACKER_EXTRACT_GSTREAMER_USE_TAGREADBIN, 1, [Use tagreadbin in gstreamer extraction]) fi ################################################################## # Check for HAL ################################################################## AC_ARG_ENABLE(hal, AS_HELP_STRING([--disable-hal], [disable HAL support for AC power detection [[default=yes]]]),, [enable_hal=yes]) if test "x$enable_hal" != "xno"; then PKG_CHECK_MODULES(HAL, [hal >= $HAL_REQUIRED hal-storage], [have_hal=yes] , [have_hal=no]) AC_SUBST(HAL_CFLAGS) AC_SUBST(HAL_LIBS) if test "x$have_hal" = "xyes"; then AC_DEFINE(HAVE_HAL, [], [Define if we have HAL]) fi else have_hal="no (disabled)" fi if test "x$enable_hal" = "xyes"; then if test "x$have_hal" != "xyes"; then AC_MSG_ERROR([Couldn't find hal >= $HAL_REQUIRED and hal-storage.]) fi fi AM_CONDITIONAL(HAVE_HAL, test "x$have_hal" = "xyes") ################################################################## # Check for DeviceKit-power ################################################################## AC_ARG_ENABLE(devkit_power, AS_HELP_STRING([--disable-devkit-power], [disable DeviceKit-power support for AC power detection [[default=auto]]]),, [enable_devkit_power=auto]) if test "x$enable_devkit_power" != "xno"; then PKG_CHECK_MODULES(DEVKIT_POWER, [devkit-power-gobject >= $DEVKIT_POWER_REQUIRED], [have_devkit_power=yes] , [have_devkit_power=no]) AC_SUBST(DEVKIT_POWER_CFLAGS) AC_SUBST(DEVKIT_POWER_LIBS) if test "x$have_devkit_power" = "xyes"; then AC_DEFINE(HAVE_DEVKIT_POWER, [], [Define if we have DEVKIT_POWER]) fi else have_devkit_power="no (disabled)" fi if test "x$enable_devkit_power" = "xyes"; then if test "x$have_devkit_power" != "xyes"; then AC_MSG_ERROR([Couldn't find devkit_power >= $DEVKIT_POWER_REQUIRED and devkit_power-storage.]) fi fi AM_CONDITIONAL(HAVE_DEVKIT_POWER, test "x$have_devkit_power" = "xyes") ################################################################## # Check for libxml2 ################################################################## AC_ARG_ENABLE(libxml2, AS_HELP_STRING([--disable-libxml2], [disable HTML/XML extractors [[default=yes]]]),, [enable_libxml2=yes]) if test "x$enable_libxml2" != "xno"; then PKG_CHECK_MODULES(LIBXML2, [libxml-2.0 >= $LIBXML2_REQUIRED], [have_libxml2=yes], [have_libxml2=no]) AC_SUBST(LIBXML2_CFLAGS) AC_SUBST(LIBXML2_LIBS) if test "x$have_libxml2" = "xyes"; then AC_DEFINE(HAVE_LIBXML2, [], [Define if we have libxml2]) fi else have_libxml2="no (disabled)" fi if test "x$enable_libxml2" = "xyes"; then if test "x$have_libxml2" != "xyes"; then AC_MSG_ERROR([Couldn't find libxml2 >= $LIBXML2_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBXML2, test "x$have_libxml2" = "xyes") ################################################################## # Check for GdkPixbuf, needed for the MP3 album art extractor ################################################################## AC_ARG_ENABLE(gdkpixbuf, AS_HELP_STRING([--enable-gdkpixbuf], [enable GdkPixbuf support, (MP3 album art) [[default=auto]]]),, [enable_gdkpixbuf=auto]) ################################################################## # Check for QUILL needed for the MP3 album art extractor ################################################################## AC_ARG_ENABLE(quill, AS_HELP_STRING([--enable-quill], [enable QUILL support, (MP3 album art) [[default=auto]]]),, [enable_quill=auto]) selected_for_albumart="no (disabled)" ################################################################## # Check for QUILL needed for the MP3 album art extractor cont ################################################################## if test "x$enable_quill" != "xno" && test "x$enable_gdkpixbuf" != "xyes"; then PKG_CHECK_MODULES(QUILL, [quill >= $QUILL_REQUIRED], [have_quill=yes], [have_quill=no]) AC_SUBST(QUILL_LIBS) AC_SUBST(QUILL_CFLAGS) if test "x$have_quill" = "xyes"; then AC_DEFINE(HAVE_QUILL, [], [Define if we have QUILL]) selected_for_albumart="yes (libquill)" fi else have_quill="no (disabled)" fi if test "x$enable_quill" = "xyes"; then if test "x$have_quill" != "xyes"; then AC_MSG_ERROR([Couldn't find QUILL >= $QUILL_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_QUILL, test "x$have_quill" = "xyes") ################################################################## # Check for GdkPixbuf, needed for the MP3 album art extractor cont ################################################################## if test "x$enable_gdkpixbuf" != "xno" && test "x$enable_quill" != "xyes"; then PKG_CHECK_MODULES(GDKPIXBUF, [gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED], [have_gdkpixbuf=yes], [have_gdkpixbuf=no]) AC_SUBST(GDKPIXBUF_LIBS) AC_SUBST(GDKPIXBUF_CFLAGS) if test "x$have_gdkpixbuf" = "xyes"; then AC_DEFINE(HAVE_GDKPIXBUF, [], [Define if we have GdkPixbuf]) selected_for_albumart="yes (GdkPixbuf)" fi else have_gdkpixbuf="no (disabled)" fi if test "x$enable_gdkpixbuf" = "xyes"; then if test "x$have_gdkpixbuf" != "xyes"; then AC_MSG_ERROR([Couldn't find GdkPixbuf >= $GDKPIXBUF_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_GDKPIXBUF, test "x$have_gdkpixbuf" = "xyes") #################################################################### # Check for GStreamer or Xine. Otherwise, call an external video # player (Totem or MPlayer). #################################################################### AC_ARG_ENABLE(video-extractor, AS_HELP_STRING([--enable-video-extractor=ARG], [enables one of the (gstreamer, xine, external, auto) video extractor backends [[default=auto]]]),, [enable_video_extractor=auto]) PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10 >= 0.10.12 gstreamer-tag-0.10 >= 0.10.12], [have_libgstreamer=yes], [have_libgstreamer=no]) AC_SUBST(GSTREAMER_CFLAGS) AC_SUBST(GSTREAMER_LIBS) PKG_CHECK_MODULES(XINE, [libxine >= 1.0], [have_libxine=yes], [have_libxine=no]) AC_SUBST(XINE_CFLAGS) AC_SUBST(XINE_LIBS) if test "x$enable_video_extractor" = "xauto"; then if test "$have_libgstreamer" = "yes"; then have_video_handler_app="GStreamer" have_video_handler="yes" elif test "$have_libxine" = "yes"; then have_video_handler_app="Xine" have_video_handler="yes" else have_video_handler="?" have_video_handler_app="An external video player will be called" fi elif test "x$enable_video_extractor" = "xgstreamer"; then if test "$have_libgstreamer" = "yes"; then have_video_handler_app="GStreamer" have_video_handler="yes" else AC_MSG_ERROR([***Gstreamer requested but not found - exiting!]) fi elif test "x$enable_video_extractor" = "xxine"; then if test "$have_libxine" = "yes"; then have_video_handler_app="Xine" have_video_handler="yes" else AC_MSG_ERROR([***libxine requested but not found - exiting!]) fi else have_video_handler="?" have_video_handler_app="An external video player will be called" fi if test "$have_video_handler_app" = "GStreamer"; then AC_DEFINE(HAVE_GSTREAMER, [], [Define if we have GStreamer]) AM_CONDITIONAL(HAVE_GSTREAMER, true) AM_CONDITIONAL(HAVE_LIBXINE, false) AM_CONDITIONAL(USING_EXTERNAL_VIDEO_PLAYER, false) elif test "$have_video_handler_app" = "Xine"; then AC_DEFINE(HAVE_LIBXINE, [], [Define if we have Libxine]) AM_CONDITIONAL(HAVE_LIBXINE, true) AM_CONDITIONAL(HAVE_GSTREAMER, false) AM_CONDITIONAL(USING_EXTERNAL_VIDEO_PLAYER, false) else AC_DEFINE(USING_EXTERNAL_VIDEO_PLAYER, [], [Define that Tracker will try to use external video players]) AM_CONDITIONAL(USING_EXTERNAL_VIDEO_PLAYER, true) AM_CONDITIONAL(HAVE_GSTREAMER, false) AM_CONDITIONAL(HAVE_LIBXINE, false) fi ################################################################## # Check for Helixbin for GStreamer ################################################################## AC_ARG_ENABLE(gstreamer-helix, AS_HELP_STRING([--enable-gstreamer-helix], [enable GStreamer helix extractor for Real Media [[default=no]]]),, [enable_gstreamer_helix=no]) if test "x$enable_gstreamer_helix" != "xno"; then if test "x$have_libgstreamer" = "xyes"; then have_gstreamer_helix="yes" else have_gstreamer_helix="no" fi else have_gstreamer_helix="no (disabled)" fi if test "x$enable_gstreamer_helix" = "xyes"; then if test "x$have_gstreamer_helix" != "xyes"; then AC_MSG_ERROR([GStreamer is not available or disabled but GStreamer Helix Bin requested]) fi fi AM_CONDITIONAL(HAVE_GSTREAMER_HELIX, test "x$have_gstreamer_helix" = "xyes") #################################################################### # Windows check #################################################################### AC_MSG_CHECKING(for WIN32) AC_TRY_COMPILE(, [ #ifndef WIN32 #error #endif ], native_win32=yes; AC_MSG_RESULT(yes), native_win32=no; AC_MSG_RESULT(no), ) AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes") if test "$native_win32" = "yes" ; then AC_DEFINE(OS_WIN32, 1, [Define if we are on win32]) fi #################################################################### # libinotify #################################################################### AC_CHECK_HEADERS([sys/inotify.h]) #################################################################### # SQLite check #################################################################### # 3.6.11 for sqlite_backup API # 3.6.16 to fix test failures SQLITE_REQUIRED=3.6.16 PKG_CHECK_MODULES(SQLITE3, [sqlite3 >= $SQLITE_REQUIRED]) AC_SUBST(SQLITE3_CFLAGS) AC_SUBST(SQLITE3_LIBS) ################################################################## # Enable UNAC support? ################################################################## AC_ARG_ENABLE(unac, AS_HELP_STRING([--enable-unac], [enable UNAC support, required for stripping accents [[default=auto]]]),, [enable_unac=auto]) if test "x$enable_unac" != "xno"; then PKG_CHECK_MODULES(UNAC, [unac >= $UNAC_REQUIRED], [have_unac=yes], [have_unac=no]) AC_SUBST(UNAC_LIBS) AC_SUBST(UNAC_CFLAGS) if test "x$have_unac" = "xyes"; then AC_DEFINE(HAVE_UNAC, [], [Define if we have UNAC for accent stripping]) fi else have_unac="no (disabled)" fi if test "x$enable_unac" = "xyes"; then if test "x$have_unac" != "xyes"; then AC_MSG_ERROR([Couldn't find UNAC >= $UNAC_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_UNAC, test "x$have_unac" = "xyes") #################################################################### # Mail miners #################################################################### AC_ARG_ENABLE([evolution_miner], AS_HELP_STRING([--enable-evolution-miner], [enable support for Evolution data miner [[default=yes]]]),, [enable_evolution_miner=yes]) AM_CONDITIONAL(USING_EVOLUTION_MINER, test "x$enable_evolution_miner" = "xyes") AC_ARG_ENABLE([kmail_miner], AS_HELP_STRING([--enable-kmail-miner], [enable support for KMail data miner [[default=yes]]]),, [enable_kmail_miner=yes]) AM_CONDITIONAL(USING_KMAIL_MINER, test "x$enable_kmail_miner" = "xyes") #################################################################### # Deskbar Applet Handler/Module #################################################################### AC_ARG_ENABLE([deskbar_applet], AS_HELP_STRING([--enable-deskbar-applet], [enable support for Deskbar applet [[default=auto]]]),, [enable_deskbar_applet=auto]) if test "x$enable_deskbar_applet" != "xno" ; then if pkg-config --atleast-version=2.19 deskbar-applet ; then have_deskbar_applet="module" elif pkg-config --atleast-version=2.16 deskbar-applet ; then have_deskbar_applet="handler" else have_deskbar_applet="no" fi fi if test "x$enable_deskbar_applet" = "xyes"; then if test "x$have_deskbar_applet" = "xno"; then AC_MSG_ERROR([Couldn't find deskbar-applet >= 2.16.]) fi fi AM_CONDITIONAL(HAVE_DESKBAR_APPLET_HANDLER, test "x$have_deskbar_applet" = "xhandler") AM_CONDITIONAL(HAVE_DESKBAR_APPLET_MODULE, test "x$have_deskbar_applet" = "xmodule") AC_ARG_WITH([deskbar_applet_dir], AS_HELP_STRING([--with-deskbar-applet-dir], [Path to Deskbar handler/module directory [[default=pkgconfig]]])) if test "x$have_deskbar_applet" = "xhandler"; then if test -z "x$with_deskbar_applet_dir"; then deskbar_applet_dir="`pkg-config --variable handlersdir deskbar-applet`" else deskbar_applet_dir="$with_deskbar_applet_dir" fi if test -z "$deskbar_applet_dir"; then deskbar_applet_dir="\$(libdir)/deskbar-applet/handlers" fi fi if test "x$have_deskbar_applet" = "xmodule"; then if test -z "$with_deskbar_applet_dir"; then deskbar_applet_dir="`pkg-config --variable modulesdir deskbar-applet`" else deskbar_applet_dir="$with_deskbar_applet_dir" fi if test -z "$deskbar_applet_dir"; then deskbar_applet_dir="\$(libdir)/deskbar-applet/modules-2.20-compatible" fi fi DESKBAR_APPLET_DIR="$deskbar_applet_dir" AC_SUBST(DESKBAR_APPLET_DIR) #################################################################### # Application and Vala requirements #################################################################### APP_REQUIREMENTS="glib-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gtk+-2.0 >= $GTK_REQUIRED dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED" APPLET_REQUIREMENTS="libpanelapplet-2.0" VALA_REQUIREMENTS="gee-1.0 >= $GEE_REQUIRED" PKG_CHECK_MODULES(TRACKER_APPS, [ $APP_REQUIREMENTS ], [have_app_requirements=yes], [have_app_requirements=no]) AC_SUBST(TRACKER_APPS_CFLAGS) AC_SUBST(TRACKER_APPS_LIBS) PKG_CHECK_MODULES(TRACKER_APPLETS, [ $APPLET_REQUIREMENTS ], [have_applet_requirements=yes], [have_applet_requirements=no]) AC_SUBST(TRACKER_APPLETS_CFLAGS) AC_SUBST(TRACKER_APPLETS_LIBS) PKG_CHECK_MODULES(TRACKER_VALA, [ $VALA_REQUIREMENTS ], [have_vala_requirements=yes], [have_vala_requirements=no]) AC_SUBST(TRACKER_VALA_CFLAGS) AC_SUBST(TRACKER_VALA_LIBS) ################################################################## # Enable building libtracker-gtk? ################################################################## AC_ARG_ENABLE([libtrackergtk], AS_HELP_STRING([--enable-libtrackergtk], [enable libtrackergtk [[default=auto]]]),, [enable_libtrackergtk=auto]) if test "x$enable_libtrackergtk" != "xno" ; then if test "x$have_app_requirements" != "xyes"; then AC_MSG_ERROR([Couldn't find libtracker_gtk dependencies ($APP_REQUIREMENTS).]) else have_libtrackergtk="yes" fi else have_libtrackergtk="no (disabled)" fi AM_CONDITIONAL(HAVE_LIBTRACKERGTK, test "$have_libtrackergtk" = "yes") ################################################################## # Enable building tracker-status-icon? ################################################################## AC_ARG_ENABLE([tracker-status-icon], AS_HELP_STRING([--enable-tracker-status-icon], [enable tracker-status-icon [[default=auto]]]),, [enable_tracker_status_icon=auto]) if test "x$enable_tracker_status_icon" != "xno" ; then if test "x$have_app_requirements" != "xyes"; then have_tracker_status_icon="no" else have_tracker_status_icon="yes" fi else have_tracker_status_icon="no (disabled)" fi if test "x$enable_tracker_status_icon" = "xyes"; then if test "x$have_tracker_status_icon" != "xyes"; then AC_MSG_ERROR([Couldn't find tracker-status-icon dependencies ($APP_REQUIREMENTS).]) fi fi AM_CONDITIONAL(HAVE_TRACKER_STATUS_ICON, test "$have_tracker_status_icon" = "yes") ################################################################## # Enable building tracker-explorer? ################################################################## AC_ARG_ENABLE([tracker-explorer], AS_HELP_STRING([--enable-tracker-explorer], [enable tracker-explorer[[default=auto]]]),, [enable_tracker_explorer=auto]) if test "x$enable_tracker_explorer" != "xno" ; then if test "x$have_app_requirements" != "xyes" -o \ "x$have_vala_requirements" != "xyes"; then have_tracker_explorer="no" else have_tracker_explorer="yes" fi else have_tracker_explorer="no (disabled)" fi if test "x$enable_tracker_explorer" = "xyes"; then if test "x$have_tracker_explorer" != "xyes"; then AC_MSG_ERROR([Couldn't find tracker-explorer dependencies ($APP_REQUIREMENTS $VALA_REQUIREMENTS).]) fi fi AM_CONDITIONAL(HAVE_TRACKER_EXPLORER, test "$have_tracker_explorer" = "yes") ################################################################## # Enable building tracker-search-bar? ################################################################## AC_ARG_ENABLE([tracker-search-bar], AS_HELP_STRING([--enable-tracker-search-bar], [enable tracker-search-bar[[default=auto]]]),, [enable_tracker_search_bar=auto]) if test "x$enable_tracker_search_bar" != "xno" ; then if test "x$have_app_requirements" != "xyes" -o \ "x$have_applet_requirements" != "xyes"; then have_tracker_search_bar="no" else have_tracker_search_bar="yes" fi else have_tracker_search_bar="no (disabled)" fi if test "x$enable_tracker_search_bar" = "xyes"; then if test "x$have_tracker_search_bar" != "xyes"; then AC_MSG_ERROR([Couldn't find tracker-search-bar dependencies ($APP_REQUIREMENTS $APPLET_REQUIREMENTS).]) fi fi AM_CONDITIONAL(HAVE_TRACKER_SEARCH_BAR, test "$have_tracker_search_bar" = "yes") ################################################################## # Check for GNOME/GTK dependencies to build tracker search tool ################################################################## AC_ARG_ENABLE(tracker-search-tool, AS_HELP_STRING([--enable-tracker-search-tool], [enable tracker-search-tool [[default=auto]]]),, [enable_tracker_search_tool=auto]) if test "x$enable_tracker_search_tool" != "xno"; then if test "x$have_app_requirements" != "xyes" -o \ "x$have_vala_requirements" != "xyes"; then have_tracker_search_tool="no" else have_tracker_search_tool="yes" fi else have_tracker_search_tool="no (disabled)" fi if test "x$enable_tracker_search_tool" = "xyes"; then if test "x$have_tracker_search_tool" != "xyes"; then AC_MSG_ERROR([Couldn't find tracker-search-tool dependencies ($APP_REQUIREMENTS $VALA_REQUIREMENTS).]) fi fi AM_CONDITIONAL(HAVE_TRACKER_SEARCH_TOOL, test "$have_tracker_search_tool" = "yes") ################################################################## # Checks for tracker-preferences ################################################################## AC_ARG_ENABLE([tracker-preferences], AS_HELP_STRING([--enable-tracker-preferences], [enable the tracker preferences dialog [[default=auto]]]),, [enable_tracker_preferences=auto]) if test "x$enable_tracker_preferences" != "xno" ; then if test "x$have_app_requirements" != "xyes"; then have_tracker_preferences="no" else have_tracker_preferences="yes" fi else have_tracker_preferences="no (disabled)" fi if test "x$enable_tracker_preferences" = "xyes"; then if test "x$have_tracker_preferences" != "xyes"; then AC_MSG_ERROR([Couldn't find tracker-preferences dependencies ($APP_REQUIREMENTS).]) fi fi AM_CONDITIONAL(HAVE_TRACKER_PREFERENCES, test "$have_tracker_preferences" = "yes") #################################################################### # PS extractor option #################################################################### AC_ARG_ENABLE([unzip_psgz_files], AS_HELP_STRING([--disable-unzip-ps-gz-files], [disable unzipping ps.gz files [[default=yes]]]),, [enable_unzip_psgz_files=yes]) if test x$enable_unzip_psgz_files != "xno"; then AC_DEFINE(USING_UNZIPPSFILES, 1, [Unzip ps.gz files]) fi ################################################################## # Check for poppler's glib bingings ################################################################## AC_ARG_ENABLE(poppler-glib, AS_HELP_STRING([--enable-poppler-glib], [enable extractor for PDF data [[default=auto]]]),, [enable_poppler_glib=auto]) if test "x$enable_poppler_glib" != "xno" ; then PKG_CHECK_MODULES(POPPLER_GLIB, [poppler-glib >= $POPPLER_GLIB_REQUIRED cairo >= $CAIRO_REQUIRED gdk-2.0 >= $GDK_REQUIRED], [have_poppler_glib=yes], [have_poppler_glib=no]) AC_SUBST(POPPLER_GLIB_CFLAGS) AC_SUBST(POPPLER_GLIB_LIBS) if test "x$have_poppler_glib" = "xyes"; then AC_DEFINE(HAVE_POPPLER_GLIB, [], [Define if we have poppler-glib]) fi else have_poppler_glib="no (disabled)" fi if test "x$enable_poppler_glib" = "xyes"; then if test "x$have_poppler_glib" != "xyes"; then AC_MSG_ERROR([Couldn't find poppler-glib >= $POPPLER_GLIB_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_POPPLER_GLIB, test "x$have_poppler_glib" = "xyes") ################################################################## # Check for libexif ################################################################## AC_ARG_ENABLE(libexif, AS_HELP_STRING([--enable-libexif], [enable extractor for exif data [[default=auto]]]),, [enable_libexif=auto]) if test "x$enable_libexif" != "xno" ; then PKG_CHECK_MODULES(LIBEXIF, [libexif >= $LIBEXIF_REQUIRED], [have_libexif=yes], [have_libexif=no]) AC_SUBST(LIBEXIF_CFLAGS) AC_SUBST(LIBEXIF_LIBS) if test "x$have_libexif" = "xyes"; then AC_DEFINE(HAVE_LIBEXIF, [], [Define if we have libexif]) fi else have_libexif="no (disabled)" fi if test "x$enable_libexif" = "xyes"; then if test "x$have_libexif" != "xyes"; then AC_MSG_ERROR([Couldn't find libexif >= $LIBEXIF_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_EXIF, test "x$have_libexif" = "xyes") ################################################################## # Check for libiptcdata ################################################################## AC_ARG_ENABLE(libiptcdata, AS_HELP_STRING([--enable-libiptcdata], [enable extractor for iptc data [[default=auto]]]),, [enable_libiptcdata=auto]) if test "x$enable_libiptcdata" != "xno" ; then PKG_CHECK_MODULES(LIBIPTCDATA, [libiptcdata], [have_libiptcdata=yes], [have_libiptcdata=no]) AC_SUBST(LIBIPTCDATA_CFLAGS) AC_SUBST(LIBIPTCDATA_LIBS) if test "x$have_libiptcdata" = "xyes"; then AC_DEFINE(HAVE_LIBIPTCDATA, [], [Define if we have libiptcdata]) fi else have_libiptcdata="no (disabled)" fi if test "x$enable_libiptcdata" = "xyes"; then if test "x$have_libiptcdata" != "xyes"; then AC_MSG_ERROR([Couldn't find libiptcdata.]) fi fi AM_CONDITIONAL(HAVE_IPTC, test "x$have_libiptcdata" = "xyes") ################################################################## # Check for libgsf ################################################################## AC_ARG_ENABLE(libgsf, AS_HELP_STRING([--enable-libgsf], [enable extractor for GSF data [[default=auto]]]),, [enable_libgsf=auto]) if test "x$enable_libgsf" != "xno" ; then PKG_CHECK_MODULES(LIBGSF, [libgsf-1 >= $LIBGSF_REQUIRED], [have_libgsf=yes], [have_libgsf=no]) AC_SUBST(LIBGSF_CFLAGS) AC_SUBST(LIBGSF_LIBS) if test "x$have_libgsf" = "xyes"; then AC_DEFINE(HAVE_LIBGSF, [], [Define if we have libgsf]) fi else have_libgsf="no (disabled)" fi if test "x$enable_libgsf" = "xyes"; then if test "x$have_libgsf" != "xyes"; then AC_MSG_ERROR([Couldn't find libgsf >= $LIBGSF_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBGSF, test "x$have_libgsf" = "xyes") ################################################################## # Check for libwv2 ################################################################## # FIXME This should be package based. Unfortunately in several main # distros, it is not. AC_ARG_ENABLE(libwv2, AS_HELP_STRING([--enable-libwv2], [enable content extractor for MS documents [[default=auto]]]),, [enable_libwv2=auto]) if test "x$enable_libwv2" != "xno" ; then AC_MSG_CHECKING(for wv2) AC_LANG(C++) OLD_LDFLAGS="$LDFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS" LDFLAGS="-lwv2 $LDFLAGS" AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include ], [wvWare::version()])], [have_libwv2=yes], [have_libwv2=no]) LIBWV2_LIBS="-lwv2" AC_SUBST(LIBWV2_LIBS) CFLAGS="$OLD_CFLAGS" LDFLAGS="$OLD_LDFLAGS" if test "x$have_libwv2" = "xyes"; then AC_DEFINE(HAVE_LIBWV2, [], [Define if we have libwv2]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi else have_libwv2="no (disabled)" fi if test "x$enable_libwv2" = "xyes"; then if test "x$have_libwv2" != "xyes"; then AC_MSG_ERROR([Couldn't find libwv2 >= $LIBWV2_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBWV2, test "x$have_libwv2" = "xyes") ################################################################## # Check for libjpeg ################################################################## # FIXME This should be package based. Unfortunately in several main # distros, it is not. OLD_CFLAGS="$CFLAGS" OLD_LIBS="$LIBS" CFLAGS="" LIBS="" AC_ARG_ENABLE(libjpeg, AS_HELP_STRING([--enable-libjpeg], [enable extractor for JPEG data [[default=auto]]]),, [enable_libjpeg=auto]) if test "x$enable_libjpeg" != "xno" ; then AC_CHECK_HEADER(jpeglib.h, AC_CHECK_LIB(jpeg, jpeg_CreateCompress)) have_libjpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no} LIBJPEG_CFLAGS="$CFLAGS" LIBJPEG_LIBS="$LIBS" AC_SUBST(LIBJPEG_CFLAGS) AC_SUBST(LIBJPEG_LIBS) if test "x$have_libjpeg" = "xyes"; then AC_DEFINE(HAVE_LIBJPEG, [], [Define if we have libjpeg]) fi else have_libjpeg="no (disabled)" fi if test "x$enable_libjpeg" = "xyes"; then if test "x$have_libjpeg" != "xyes"; then AC_MSG_ERROR([Couldn't find libjpeg >= $LIBJPEG_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBJPEG, test "x$have_libjpeg" = "xyes") CFLAGS="$OLD_CFLAGS" LIBS="$OLD_LIBS" ################################################################## # Check for libtiff ################################################################## # FIXME This should be package based. Unfortunately in several main # distros, it is not. OLD_CFLAGS="$CFLAGS" OLD_LIBS="$LIBS" CFLAGS="" LIBS="" AC_ARG_ENABLE(libtiff, AS_HELP_STRING([--enable-libtiff], [enable extractor for TIFF data [[default=auto]]]),, [enable_libtiff=auto]) if test "x$enable_libtiff" != "xno" ; then AC_CHECK_HEADER(tiff.h, AC_CHECK_LIB(tiff, TIFFOpen)) have_libtiff=${ac_cv_lib_tiff_TIFFOpen:-no} LIBTIFF_CFLAGS="$CFLAGS" LIBTIFF_LIBS="$LIBS" AC_SUBST(LIBTIFF_CFLAGS) AC_SUBST(LIBTIFF_LIBS) if test "x$have_libtiff" = "xyes"; then AC_DEFINE(HAVE_LIBTIFF, [], [Define if we have libtiff]) fi else have_libtiff="no (disabled)" fi if test "x$enable_libtiff" = "xyes"; then if test "x$have_libtiff" != "xyes"; then AC_MSG_ERROR([Couldn't find libtiff >= $LIBTIFF_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBTIFF, test "x$have_libtiff" = "xyes") CFLAGS="$OLD_CFLAGS" LIBS="$OLD_LIBS" ################################################################## # Check for vorbis ################################################################## AC_ARG_ENABLE(libvorbis, AS_HELP_STRING([--enable-libvorbis], [enable extractor for vorbis data (ogg) [[default=no]]]),, [enable_libvorbis=no]) if test "x$enable_libvorbis" != "xno" ; then PKG_CHECK_MODULES(LIBVORBIS, [vorbisfile >= $LIBVORBIS_REQUIRED], [have_libvorbis=yes], [have_libvorbis=no]) AC_SUBST(LIBVORBIS_CFLAGS) AC_SUBST(LIBVORBIS_LIBS) if test "x$have_libvorbis" = "xyes"; then AC_DEFINE(HAVE_LIBVORBIS, [], [Define if we have libvorbis]) fi else have_libvorbis="no (disabled)" fi if test "x$enable_libvorbis" = "xyes"; then if test "x$have_libvorbis" != "xyes"; then AC_MSG_ERROR([Couldn't find libvorbis >= $LIBVORBIS_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_LIBVORBIS, test "x$have_libvorbis" = "xyes") #################################################################### # Check ioprio support #################################################################### AC_CACHE_CHECK([if we have ioprio],[tracker_cv_have_ioprio], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #include #include #include #include inline int ioprio_get (int which, int who) { return syscall (__NR_ioprio_get, which, who); } ]], [[ return !(ioprio_get (1, 0) != -1); ]])], [tracker_cv_have_ioprio=yes], [tracker_cv_have_ioprio=no], [AC_MSG_ERROR([cross-compiling: please set 'tracker_cv_have_ioprio'])]) ]) if test "x$tracker_cv_have_ioprio" = "xyes" ; then AC_DEFINE(HAVE_IOPRIO, 1, [Define if we have ioprio]) fi ################################################################## # Check for exempi ################################################################## AC_ARG_ENABLE(exempi, AS_HELP_STRING([--enable-exempi], [enable extractor for XMP data [[default=auto]]]),, [enable_exempi=auto]) if test "x$enable_exempi" != "xno" ; then PKG_CHECK_MODULES(EXEMPI, [exempi-2.0 >= $EXEMPI_REQUIRED], [have_exempi=yes], [have_exempi=no]) AC_SUBST(EXEMPI_CFLAGS) AC_SUBST(EXEMPI_LIBS) if test "x$have_exempi" = "xyes"; then AC_DEFINE(HAVE_EXEMPI, [], [Define if we have exempi]) fi else have_exempi="no (disabled)" fi if test "x$enable_exempi" = "xyes"; then if test "x$have_exempi" != "xyes"; then AC_MSG_ERROR([Couldn't find exempi >= $EXEMPI_REQUIRED.]) fi fi AM_CONDITIONAL(HAVE_EXEMPI, test "x$have_exempi" = "xyes") #################################################################### # Checking totem-pl-parser #################################################################### AC_ARG_ENABLE(playlist, AS_HELP_STRING([--enable-playlist], [enable playlist support [[default=auto]]]),, [enable_playlist=auto]) if test "x$enable_playlist" != "xno" ; then PKG_CHECK_MODULES(TOTEM_PL_PARSER, [totem-plparser], [have_playlist=yes], [have_playlist=no]) AC_SUBST(TOTEM_PL_PARSER_CFLAGS) AC_SUBST(TOTEM_PL_PARSER_LIBS) if test "x$have_playlist" = "xyes"; then AC_DEFINE(HAVE_TOTEM_PL_PARSER, [], [Define if we have Totem PL parser]) fi else have_playlist="no (disabled)" fi if test "x$enable_playlist" = "xyes"; then if test "x$have_playlist" != "xyes"; then AC_MSG_ERROR([Couldn't find Totem PL parser.]) fi fi AM_CONDITIONAL(HAVE_TOTEM_PL_PARSER, test "x$have_playlist" = "xyes") ################################################################## # Enable mockup extractor module? ################################################################## have_mockup="no (disabled)" AM_CONDITIONAL(HAVE_MOCKUP, test "x$have_mockup" = "xyes") ################################################################## # Enable Evolution plugin support? ################################################################## if test "x$enable_evolution_miner" != "xno" ; then PKG_CHECK_MODULES(EVOLUTION_PLUGIN, [ evolution-plugin >= $EVO_REQUIRED evolution-data-server-1.2 >= $EDS_REQUIRED], have_evolution_plugin=yes, have_evolution_plugin=no) AC_SUBST(EVOLUTION_PLUGIN_CFLAGS) AC_SUBST(EVOLUTION_PLUGIN_LIBS) if test x$have_evolution_plugin == "xyes"; then dnl Evolution plugins dir AC_ARG_WITH([evolution_plugins_dir], AS_HELP_STRING([--with-evolution-plugins-dir], [Path to Evolution plugins directory])) if test "x$with_evolution_plugins_dir" = "x" ; then evolution_plugins_dir=`$PKG_CONFIG evolution-plugin --variable=plugindir` else evolution_plugins_dir="$with_evolution_plugins_dir" fi EVOLUTION_PLUGIN_INSTALL_DIR=$evolution_plugins_dir else EVOLUTION_PLUGIN_INSTALL_DIR=/dev/null fi AC_SUBST(EVOLUTION_PLUGIN_INSTALL_DIR) if test "x$have_evolution_plugin" = "xyes"; then AC_DEFINE(HAVE_EVOLUTION_PLUGIN, 1, [Define if we have Evolution plugin ]) fi else have_evolution_plugin="no (disabled)" fi if test "x$enable_evolution_plugin" = "xyes"; then if test "x$have_evolution_plugin" != "xyes"; then AC_MSG_ERROR([Couldn't find Evolution plugin requirements (evolution-dev, evolution-data-server-dev).]) fi fi AM_CONDITIONAL(HAVE_EVOLUTION_PLUGIN, test "$have_evolution_plugin" = "yes") #################################################################### # Enable Nautilus extension support? #################################################################### AC_ARG_ENABLE([nautilus-extension], AS_HELP_STRING([--enable-nautilus-extension], [Enable the nautilus extension [[default=auto]]]),, [enable_nautilus_extension=auto]) if test "x$enable_nautilus_extension" != "xno"; then PKG_CHECK_MODULES([NAUTILUS_EXTENSION], [libnautilus-extension], [have_nautilus_extension=yes], [have_nautilus_extension=no]) AC_SUBST(NAUTILUS_EXTENSION_CFLAGS) AC_SUBST(NAUTILUS_EXTENSION_LIBS) if test "x$have_nautilus_extension" = "xyes"; then AC_ARG_WITH([nautilus-extensions-dir], AS_HELP_STRING([--with-nautilus-extensions-dir], [Path to Nautilus extensions directory])) if test "x$with_nautilus_extensions_dir" = "x"; then nautilus_extensions_dir=`$PKG_CONFIG --variable=extensiondir libnautilus-extension` else nautilus_extensions_dir="$with_nautilus_extensions_dir" fi NAUTILUS_EXTENSION_INSTALL_DIR="$nautilus_extensions_dir" else NAUTILUS_EXTENSION_INSTALL_DIR="/dev/null" fi AC_SUBST([NAUTILUS_EXTENSION_INSTALL_DIR]) if test "x$have_nautilus_extension" = "xyes"; then AC_DEFINE(HAVE_NAUTILUS_EXTENSION, 1, [Define if we have Nautilus extension]) fi else have_nautilus_extension="no (disabled)" fi if test "x$enable_nautilus_extension" = "xyes"; then if test "x$have_nautilus_extension" != "xyes"; then AC_MSG_ERROR([Couldn't find Nautilus extension requirements (libnautilus-extension-dev).]) fi fi AM_CONDITIONAL(HAVE_NAUTILUS_EXTENSION, test "$have_nautilus_extension" = "yes") #################################################################### # Include/Exclude functional tests #################################################################### AC_ARG_ENABLE([functional-tests], AS_HELP_STRING([--enable-functional-tests], [enable functional tests [[default=no]]]),, [enable_functional_tests=no]) if test x$enable_functional_tests != "xno"; then AC_DEFINE(DIST_FUNCTIONAL_TESTS, 1, [Include functional tests in the installation]) fi AM_CONDITIONAL(DIST_FUNCTIONAL_TESTS, test "x$enable_functional_tests" != "xno") #################################################################### # Checks for gtk-doc and docbook-tools #################################################################### GTK_DOC_CHECK([1.8]) if test "x$enable_gtk_doc" != "xno"; then AC_DEFINE(HAVE_GTK_DOC, 1, [Define if we have gtk-doc (with gtk-doc)]) # Check for graphviz if we are building gtk_doc AC_PATH_PROG(GRAPHVIZ_FDP, fdp) AC_SUBST(GRAPHVIZ_FDP) if test -z "$GRAPHVIZ_FDP"; then AC_MSG_ERROR([Couldn't find Graphviz's fdp tool (graphviz).]) fi fi AM_CONDITIONAL(HAVE_GTK_DOC, test "$enable_gtk_doc" = "yes") AM_CONDITIONAL(HAVE_GRAPHVIZ_FDP, test -n "$GRAPHVIZ_FDP") ################################################################## # Check for older tracker project files which can cause problems ################################################################## old_exec_message="" old_data_message="" AC_CHECK_FILE("${prefix}/bin/trackerd", old_exec_trackerd=yes,,) AC_CHECK_FILE("${prefix}/bin/tracker-indexer", old_exec_tracker_indexer=yes,,) AC_CHECK_FILE("${prefix}/bin/tracker-extract", old_exec_tracker_extract=yes,,) AC_CHECK_FILE("${prefix}/bin/tracker-thumbnailer", old_exec_tracker_thumbnailer=yes,,) AC_CHECK_FILE("${DBUS_SERVICES_DIR}/tracker.service", old_data_dbus_service=yes,) AC_CHECK_FILE("${prefix}/share/tracker/tracker-introspect.xml", old_data_dbus_xml=yes,,) AC_CHECK_FILE("${prefix}/share/tracker/sqlite-service-stored-procs.sql", old_data_stored_procs=yes,,) if test "x$old_exec_trackerd" == "xyes" -o \ "x$old_exec_tracker_indexer" == "xyes" -o \ "x$old_exec_tracker_extract" == "xyes" -o \ "x$old_exec_tracker_thumbnailer" == "xyes"; then old_exec_message=" Old Tracker executable files were found in your path. (trackerd, tracker-indexer, tracker-thumbnailer, tracker-extract)" old_file_action=" ** These files will be removed as part of the installation **" fi if test "x$old_data_dbus_service" == "xyes" -o \ "x$old_data_dbus_xml" == "xyes" -o \ "x$old_data_stored_procs" == "xyes"; then old_data_message=" Old Tracker data files were found in the prefix you are installing to." old_file_action=" ** These files will be removed as part of the installation **" fi AM_CONDITIONAL(OLD_EXEC_REMOVE_ALL, test -n "$old_exec_message") AM_CONDITIONAL(OLD_DATA_REMOVE_ALL, test -n "$old_data_message") ################################################################## # Write generated files ################################################################## AC_CONFIG_FILES([ data/db/Makefile data/dbus/Makefile data/icons/16x16/Makefile data/icons/22x22/Makefile data/icons/24x24/Makefile data/icons/32x32/Makefile data/icons/48x48/Makefile data/icons/Makefile data/icons/scalable/Makefile data/languages/Makefile data/tracker-gtk.pc data/Makefile data/miners/Makefile data/ontologies/Makefile data/tracker-client.pc data/tracker-miner.pc docs/Makefile docs/design/Makefile docs/manpages/Makefile docs/reference/Makefile docs/reference/libtracker-client/Makefile docs/reference/libtracker-client/version.xml docs/reference/libtracker-common/Makefile docs/reference/libtracker-common/version.xml docs/reference/libtracker-miner/Makefile docs/reference/libtracker-miner/version.xml docs/reference/ontology/Makefile docs/reference/ontology/version.xml docs/tools/Makefile Makefile po/Makefile.in src/libinotify/Makefile src/libstemmer/Makefile src/libtracker-common/Makefile src/libtracker-data/Makefile src/libtracker-db/Makefile src/libtracker-fts/Makefile src/libtracker-gtk/Makefile src/libtracker-client/Makefile src/libtracker-miner/Makefile src/Makefile src/tracker-status-icon/Makefile src/tracker-status-icon/tracker-status-icon.desktop.in src/tracker-store/Makefile src/tracker-control/Makefile src/tracker-extract/Makefile src/tracker-miner-fs/Makefile src/tracker-preferences/Makefile src/tracker-preferences/tracker-preferences.desktop.in src/tracker-search-bar/Makefile src/tracker-search-tool/Makefile src/tracker-search-tool/tracker-search-tool.desktop.in src/tracker-explorer/Makefile src/tracker-utils/Makefile src/tracker-writeback/Makefile src/plugins/Makefile src/plugins/deskbar/Makefile src/plugins/evolution/Makefile src/plugins/kmail/Makefile src/plugins/nautilus/Makefile tests/common/Makefile tests/libtracker-common/Makefile tests/libtracker-data/Makefile tests/libtracker-data/aggregates/Makefile tests/libtracker-data/algebra/Makefile tests/libtracker-data/bnode-coreference/Makefile tests/libtracker-data/bound/Makefile tests/libtracker-data/expr-ops/Makefile tests/libtracker-data/functions/Makefile tests/libtracker-data/nie/Makefile tests/libtracker-data/nmo/Makefile tests/libtracker-data/optional/Makefile tests/libtracker-data/regex/Makefile tests/libtracker-data/sort/Makefile tests/libtracker-data/subqueries/Makefile tests/libtracker-data/error/Makefile tests/libtracker-data/turtle/Makefile tests/libtracker-db/Makefile tests/libtracker-fts/Makefile tests/functional-tests/Makefile tests/Makefile tests/tracker-miner-fs/Makefile tests/tracker-extract/Makefile tests/tracker-store/Makefile tests/tracker-writeback/Makefile utils/Makefile utils/gtk-sparql/Makefile utils/lyrics/Makefile utils/playlists/Makefile utils/tracker-fts/Makefile examples/Makefile examples/libtracker-miner/Makefile examples/rss-reader/Makefile ]) AC_OUTPUT echo " Build Configuration: Prefix: ${prefix} Source code location: ${srcdir} Compiler: ${CC} Compiler Warnings: $enable_compile_warnings Win32: $native_win32 Enable gtk doc (for documentation): $enable_gtk_doc Enable unit tests: $have_unit_tests Enable unac accent stripper: $have_unac Support for ioprio: $have_ioprio Support for HAL: $have_hal Support for DeviceKit-power: $have_devkit_power Applications: Build with SQLite FTS support: yes Build deskbar-applet: $have_deskbar_applet Build tracker-search-tool: $have_tracker_search_tool Build tracker-preferences: $have_tracker_preferences Build tracker-status-icon: $have_tracker_status_icon Build libtracker-gtk: $have_libtrackergtk Build tracker-explorer: $have_tracker_explorer Build tracker-search-bar: $have_tracker_search_bar Functional tests: $enable_functional_tests Metadata Extractors: Support libstreamanalyzer: $have_libstreamanalyzer Support PNG: yes Support PDF: $have_poppler_glib Support JPEG: $have_libjpeg (xmp: $have_exempi, exif: $have_libexif, iptc: $have_libiptcdata) Support TIFF: $have_libtiff (xmp: $have_exempi, exif: yes, iptc: $have_libiptcdata) Support Vorbis (ogg/etc): $have_libvorbis Support MS & Open Office: $have_libgsf Support XML / HTML: $have_libxml2 Support embedded / sidecar XMP: $have_exempi Support video formats: $have_video_handler ($have_video_handler_app) (tagreadbin: $enable_tagreadbin) Support helix formats (RPM/RM/etc): $have_gstreamer_helix Support MP3 album art: $selected_for_albumart Support playlists (w/ Totem): $have_playlist Plugins/Extensions: Nautilus (tagging widget) $have_nautilus_extension Evolution plugin (data-push): $enable_evolution_miner KMail plugin (data-push): $enable_kmail_miner Writeback: MP3 writeback: $have_id3lib XMP writeback: $have_exempi Warning: You must make sure SQLite is compiled with --enable-threadsafe $old_exec_message $old_data_message $old_file_action "