summaryrefslogtreecommitdiff
path: root/plugins/indexers
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-10-15 15:01:39 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-10-15 15:01:39 +0000
commite3e695a537c44d1e2e550b4eefa50833acd9899e (patch)
tree0f8b6b4b0e034332f5a95d1b5de01cdf91ac00a7 /plugins/indexers
parent08479555e50819e461cb7ad40dc25cd109da3157 (diff)
configure.ac: check for some headers
Original commit message from CVS: * configure.ac: check for some headers * gst/elements/Makefile.am: * gst/elements/gstelements.c: don't compile fdsrc without sys/socket.h * gst/indexers/Makefile.am: * gst/indexers/gstindexers.c: (plugin_init): don't compile fileindex without mmap
Diffstat (limited to 'plugins/indexers')
-rw-r--r--plugins/indexers/Makefile.am5
-rw-r--r--plugins/indexers/gstindexers.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/plugins/indexers/Makefile.am b/plugins/indexers/Makefile.am
index c98c167b5..c7cb86fab 100644
--- a/plugins/indexers/Makefile.am
+++ b/plugins/indexers/Makefile.am
@@ -1,12 +1,15 @@
plugin_LTLIBRARIES = libgstindexers.la
-
# file index uses xml
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC =
else
GST_LOADSAVE_SRC = gstfileindex.c
endif
+if HAVE_MMAP
+else
+GST_LOADSAVE_SRC =
+endif
libgstindexers_la_SOURCES = gstindexers.c gstmemindex.c $(GST_LOADSAVE_SRC)
libgstindexers_la_CFLAGS = $(GST_OBJ_CFLAGS)
libgstindexers_la_LIBADD = $(GST_OBJ_LIBS)
diff --git a/plugins/indexers/gstindexers.c b/plugins/indexers/gstindexers.c
index 2e45116f4..01384e07b 100644
--- a/plugins/indexers/gstindexers.c
+++ b/plugins/indexers/gstindexers.c
@@ -30,7 +30,9 @@ plugin_init (GstPlugin * plugin)
gboolean res = TRUE;
res &= gst_mem_index_plugin_init (plugin);
+#ifdef HAVE_MMAP
res &= gst_file_index_plugin_init (plugin);
+#endif
return res;
}