Don't build the rtp module when you don't have gcrypt (I hope it still
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 30 Jun 2008 20:27:47 +0000 (22:27 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 30 Jun 2008 20:35:26 +0000 (22:35 +0200)
works when you have it :p)

modules/demux/Modules.am

index 3e19434..459d742 100644 (file)
@@ -48,7 +48,6 @@ libvlc_LTLIBRARIES += \
        librawdv_plugin.la \
        librawvid_plugin.la \
        libreal_plugin.la \
-       librtp_plugin.la \
        libsmf_plugin.la \
        libsubtitle_plugin.la \
        libtta_plugin.la \
@@ -60,7 +59,10 @@ libvlc_LTLIBRARIES += \
        libxa_plugin.la \
        $(NULL)
 
+if HAVE_LIBGCRYPT
 # RTP plugin
+libvlc_LTLIBRARIES += \
+       librtp_plugin.la
 librtp_plugin_la_SOURCES = \
        rtp.c rtp.h rtpsession.c
 librtp_plugin_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/libs/srtp
@@ -68,3 +70,4 @@ librtp_plugin_la_LIBADD = $(AM_LIBADD) \
        $(top_builddir)/libs/srtp/libvlc_srtp.la
 librtp_plugin_la_DEPENDENCIES = \
        $(top_builddir)/libs/srtp/libvlc_srtp.la
+endif