Skip to content
Snippets Groups Projects
Commit 54254fe0 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

make ndssrc optional

parent 9aa0eba7
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,11 @@ AC_SUBST([FFTW_LIBS])
#
PKG_CHECK_MODULES([NDS2], [nds2-client], , [AC_MSG_ERROR([Not found!])])
PKG_CHECK_MODULES([NDS2], [nds2-client], [HAVE_NDS2="yes"], [AC_MSG_WARN([Not found!]) ; HAVE_NDS2="no"])
AM_CONDITIONAL([COND_NDS2], [test "${HAVE_NDS2}" == "yes"])
if test "${HAVE_NDS2}" == "yes" ; then
AC_DEFINE([HAVE_NDS2], 1)
fi
AC_SUBST([NDS2_CFLAGS])
AC_SUBST([NDS2_LIBS])
......
......@@ -2,10 +2,15 @@ INCLUDES = -I$(top_srcdir)/src/lib
plugin_LTLIBRARIES = libgstlal.la
if COND_NDS2
NDSSRC_SOURCES = gstlal_ndssrc.h gstlal_ndssrc.c
else
NDSSRC_SOURCES =
endif
libgstlal_la_SOURCES = \
gstlal_plugins.h gstlal.c \
gstlal_framesrc.h gstlal_framesrc.c \
gstlal_ndssrc.h gstlal_ndssrc.c \
low_latency_inspiral_functions.h low_latency_inspiral_functions.c \
gstlal_matrixmixer.h gstlal_matrixmixer.c \
gstlal_simulation.h gstlal_simulation.c \
......@@ -22,7 +27,8 @@ libgstlal_la_SOURCES = \
gstlal_togglecomplex.h gstlal_togglecomplex.c \
gstlal_nofakedisconts.h gstlal_nofakedisconts.c \
gstlal_reblock.h gstlal_reblock.c \
gstlal_delay.h gstlal_delay.c
gstlal_delay.h gstlal_delay.c \
$(NDSSRC_SOURCES)
libgstlal_la_CFLAGS = -O2 $(AM_CFLAGS) $(CFLAGS) ${gstreamer_CFLAGS} ${LAL_CFLAGS} ${GSL_CFLAGS} ${FFTW_CFLAGS} ${NDS2_CFLAGS}
libgstlal_la_LIBADD = ${gstreamer_LIBS} ${LAL_LIBS} ${GSL_LIBS} ${FFTW_LIBS} ${NDS2_LIBS} $(top_srcdir)/src/lib/libgstlal.la
libgstlal_la_LDFLAGS = ${GSTREAMER_PLUGIN_LDFLAGS}
......
......@@ -76,7 +76,6 @@
#include <gstlal.h>
#include <gstlal_plugins.h>
#include <gstlal_framesrc.h>
#include <gstlal_ndssrc.h>
#include <gstlal_matrixmixer.h>
#include <gstlal_simulation.h>
#include <gstlal_whiten.h>
......@@ -92,6 +91,10 @@
#include <gstlal_nofakedisconts.h>
#include <gstlal_reblock.h>
#include <gstlal_delay.h>
#ifdef HAVE_NDS2
#include <gstlal_ndssrc.h>
#endif
/*
* ============================================================================
......@@ -121,7 +124,6 @@ static gboolean plugin_init(GstPlugin *plugin)
GType type;
} *element, elements[] = {
{"lal_framesrc", GSTLAL_FRAMESRC_TYPE},
{"ndssrc", GSTLAL_NDSSRC_TYPE},
{"lal_matrixmixer", GSTLAL_MATRIXMIXER_TYPE},
{"lal_simulation", GSTLAL_SIMULATION_TYPE},
{"lal_whiten", GSTLAL_WHITEN_TYPE},
......@@ -138,6 +140,9 @@ static gboolean plugin_init(GstPlugin *plugin)
{"lal_nofakedisconts", GSTLAL_NOFAKEDISCONTS_TYPE},
{"lal_reblock", GSTLAL_REBLOCK_TYPE},
{"lal_delay", GSTLAL_DELAY_TYPE},
#ifdef HAVE_NDS2
{"ndssrc", GSTLAL_NDSSRC_TYPE},
#endif
{NULL, 0},
};
struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment