-only run tests if we actually had pulse/opus
[oweals/gnunet.git] / src / conversation / Makefile.am
index 92a649d107af2f73340502123d2e4d148ae7ad2a..b9e0c99b6efe067069c1d2147af1c148c3262e88 100644 (file)
@@ -2,13 +2,11 @@ SUBDIRS = .
 
 plugindir = $(libdir)/gnunet
 
-INCLUDES = \
+AM_CPPFLAGS = \
+  $(GNUNET_CPPFLAGS) \
   -I$(top_srcdir)/src/include \
   -I$(top_srcdir)
 
-AM_CPPFLAGS = \
-  $(GNUNET_CPPFLAGS)
-
 lib_LTLIBRARIES = \
  libgnunetmicrophone.la \
  libgnunetspeaker.la \
@@ -52,6 +50,7 @@ libgnunetconversation_la_SOURCES = \
   conversation_api.c
 libgnunetconversation_la_LIBADD = \
   $(top_builddir)/src/gns/libgnunetgns.la \
+  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
   $(top_builddir)/src/namestore/libgnunetnamestore.la \
   $(top_builddir)/src/identity/libgnunetidentity.la \
   $(top_builddir)/src/util/libgnunetutil.la
@@ -77,12 +76,14 @@ endif
 endif
 
 
-
 check_PROGRAMS = \
  test_conversation_api
 
+if HAVE_PULSE
+if HAVE_OPUS
 TESTS = $(check_PROGRAMS)
-
+endif
+endif
 
 gnunet_helper_audio_record_SOURCES = \
   gnunet-helper-audio-record.c