diff --git a/gstlal-calibration/configure.ac b/gstlal-calibration/configure.ac index 4b7ac7d38ad727ed58850a7f6b20fbb2f0c9a386..b0185a06b88e4b02df24243daf4ac78cb473f1f9 100644 --- a/gstlal-calibration/configure.ac +++ b/gstlal-calibration/configure.ac @@ -160,6 +160,15 @@ AC_MSG_NOTICE([If you have chosen to install the software in a location not incl to your GST_PLUGIN_PATH environment variable.]) AC_SUBST([GSTLAL_PLUGIN_LDFLAGS], ["-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\|gstlal_\|GstLAL_\|GSTLAL_\).*"]) +gstreamer_VERSION=`$PKG_CONFIG --modversion gstreamer-${GSTREAMER_RELEASE}` +AX_COMPARE_VERSION([$gstreamer_VERSION], [ge], [1.14.0], [ + GSTPLUGINPREFIX="gst" +], [ + GSTPLUGINPREFIX="" +]) +AC_SUBST([GSTPLUGINPREFIX]) + + # Check for availability of GstBaseParse class (starting in 0.10.33) CFLAGS_saved="$CFLAGS" CFLAGS="$gstreamer_CFLAGS" diff --git a/gstlal-calibration/gst/lal/Makefile.am b/gstlal-calibration/gst/lal/Makefile.am index f4770464502a0c419cc15088d0230f58ba539dbb..180e52ffbd312e99285184205eb35de6c8a0b021 100644 --- a/gstlal-calibration/gst/lal/Makefile.am +++ b/gstlal-calibration/gst/lal/Makefile.am @@ -1,6 +1,6 @@ -plugin_LTLIBRARIES = libgstlalcalibration.la +plugin_LTLIBRARIES = lib@GSTPLUGINPREFIX@gstlalcalibration.la -libgstlalcalibration_la_SOURCES = \ +lib@GSTPLUGINPREFIX@gstlalcalibration_la_SOURCES = \ gstlalcalibration.c \ gstlal_add_constant.c gstlal_add_constant.h \ gstlal_pyfuncsrc.c gstlal_pyfuncsrc.h \ @@ -15,6 +15,6 @@ libgstlalcalibration_la_SOURCES = \ gstlal_insertgap.c gstlal_insertgap.h \ gstlal_fccupdate.c gstlal_fccupdate.h \ gstlal_transferfunction.c gstlal_transferfunction.h -libgstlalcalibration_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) -libgstlalcalibration_la_CFLAGS = $(AM_CFLAGS) $(LAL_CFLAGS) $(GSTLAL_CFLAGS) $(gstreamer_CFLAGS) $(gstreamer_audio_CFLAGS) -libgstlalcalibration_la_LDFLAGS = $(AM_LDFLAGS) $(LAL_LIBS) $(GSTLAL_LIBS) $(PYTHON_LIBS) $(gstreamer_LIBS) $(gstreamer_audio_LIBS) $(GSTLAL_PLUGIN_LDFLAGS) +lib@GSTPLUGINPREFIX@gstlalcalibration_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) +lib@GSTPLUGINPREFIX@gstlalcalibration_la_CFLAGS = $(AM_CFLAGS) $(LAL_CFLAGS) $(GSTLAL_CFLAGS) $(gstreamer_CFLAGS) $(gstreamer_audio_CFLAGS) +lib@GSTPLUGINPREFIX@gstlalcalibration_la_LDFLAGS = $(AM_LDFLAGS) $(LAL_LIBS) $(GSTLAL_LIBS) $(PYTHON_LIBS) $(gstreamer_LIBS) $(gstreamer_audio_LIBS) $(GSTLAL_PLUGIN_LDFLAGS)