[tracker] tracker-extract: Make DVI extractor optional, using --enable-dvi



commit a0cd45d05852c84b7c74d8702fcedae66c56daf3
Author: Jonatan PĂ„lsson <jonatan palsson pelagicore com>
Date:   Tue Jul 9 09:51:38 2013 +0200

    tracker-extract: Make DVI extractor optional, using --enable-dvi

 configure.ac                    |   21 +++++++++++++++++++++
 src/tracker-extract/Makefile.am |    7 +++++--
 2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 75ee045..43f4f38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2199,6 +2199,26 @@ fi
 AM_CONDITIONAL(HAVE_ABIWORD, test "x$have_abiword" = "xyes")
 
 ####################################################################
+# Check for tracker-extract: DVI
+####################################################################
+
+AC_ARG_ENABLE(dvi,
+              AS_HELP_STRING([--enable-dvi],
+                             [enable DVI support [[default=auto]]]),,
+              [enable_dvi=auto])
+
+if test "x$enable_dvi" != "xno"; then
+   AC_SUBST(DVI_CFLAGS)
+   AC_SUBST(DVI_LIBS)
+   AC_DEFINE(HAVE_DVI, [], [Define if we have DVI extractor])
+   have_dvi=yes
+else
+   have_dvi="no  (disabled)"
+fi
+
+AM_CONDITIONAL(HAVE_DVI, test "x$have_dvi" = "xyes")
+
+####################################################################
 # Check for tracker-extract, tracker-writeback: totem-pl-parser
 ####################################################################
 
@@ -2475,6 +2495,7 @@ Metadata Extractors:
        Support playlists (w/ Totem):           $have_playlist
        Support ISO image parsing:              $have_libosinfo
        Support AbiWord document parsing:       $have_abiword
+       Support DVI parsing:                    $have_dvi
 
 Data Miners:
 
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index 0708b20..457dde4 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -54,14 +54,12 @@ rules_in_files = \
 # We don't always link with libtracker-common, we only link
 # against it if we directly use functions in the .so
 modules_LTLIBRARIES = \
-       libextract-dvi.la \
        libextract-mp3.la \
        libextract-ps.la \
        libextract-text.la \
        libextract-icon.la
 
 rules_DATA = \
-       10-dvi.rule \
        10-ico.rule \
        10-mp3.rule \
        10-ps.rule \
@@ -162,6 +160,11 @@ modules_LTLIBRARIES += libextract-abw.la
 rules_DATA += 10-abw.rule
 endif
 
+if HAVE_DVI
+modules_LTLIBRARIES += libextract-dvi.la
+rules_DATA += 10-dvi.rule
+endif
+
 # ABW
 libextract_abw_la_SOURCES = tracker-extract-abw.c
 libextract_abw_la_CFLAGS = $(TRACKER_EXTRACT_MODULES_CFLAGS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]