fix #5829
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Aug 2019 07:49:34 +0000 (09:49 +0200)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Aug 2019 07:50:08 +0000 (09:50 +0200)
configure.ac
src/Makefile.am
src/conversation/Makefile.am

index 4ab537b31f100d5093a7dfa0f2ac66ea0cc124c1..330b028755ca3f3c6e36c5e35c0fb5193cc8d671 100644 (file)
@@ -763,6 +763,10 @@ AS_IF([test "x$pulse" != "x1" -o "x$opus" != "x1" -o "x$ogg" != "x1"],[
  AM_CONDITIONAL(BUILD_EXPERIMENTAL_HELPERS, false)
 ])
 
+AS_IF([test "x$conversation_backend" = "xnone"],
+      AM_CONDITIONAL(BUILD_CONVERSATION, false),
+      AM_CONDITIONAL(BUILD_CONVERSATION, true))
+
 # libgnurl
 LIBGNURL_CHECK_CONFIG(,7.34.0,gnurl=1,gnurl=0)
 
index 13cca2adc278963540e5691cb93eccf632268dc1..217aea54f718c4d5f4d57082d3561cf1c49b83d4 100644 (file)
@@ -36,14 +36,6 @@ endif
 endif
 endif
 
-if BUILD_PULSE_HELPERS
-CONVERSATION_DIR = conversation
-else
-if BUILD_GST_HELPERS
-CONVERSATION_DIR = conversation
-endif
-endif
-
 if HAVE_SQLITE
  SQLITE_DIR = sq
 endif
@@ -117,7 +109,7 @@ SUBDIRS = \
   vpn \
   gns \
   zonemaster \
-  $(CONVERSATION_DIR) \
+  conversation \
   fs \
   exit \
   pt \
index cbffc3283dad47e8ffefb1b523d826840eba52be..6ad6f68f6c8379ef92a60232012e6b393f647a6e 100644 (file)
@@ -12,11 +12,27 @@ AM_CPPFLAGS = \
   -I$(top_srcdir)/src/include \
   -I$(top_srcdir)
 
+if BUILD_CONVERSATION
 lib_LTLIBRARIES = \
  libgnunetmicrophone.la \
  libgnunetspeaker.la \
  libgnunetconversation.la
 
+bin_PROGRAMS = \
+ gnunet-conversation-test \
+ gnunet-conversation
+
+libexec_PROGRAMS = \
+  gnunet-service-conversation
+
+check_PROGRAMS = \
+ test_conversation_api \
+ test_conversation_api_reject \
+ test_conversation_api_twocalls
+
+pkgcfg_DATA = conversation.conf
+endif
+
 pkgcfgdir= $(pkgdatadir)/config.d/
 
 libexecdir= $(pkglibdir)/libexec/
@@ -67,18 +83,6 @@ libgnunetconversation_la_LDFLAGS = \
   -version-info 0:0:0
 
 
-bin_PROGRAMS = \
- gnunet-conversation-test \
- gnunet-conversation
-
-libexec_PROGRAMS = \
-  gnunet-service-conversation
-
-check_PROGRAMS = \
- test_conversation_api \
- test_conversation_api_reject \
- test_conversation_api_twocalls
-
 if BUILD_PULSE_HELPERS
 AUDIO_HELPER_RECD=gnunet-helper-audio-record
 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
@@ -255,6 +259,5 @@ test_conversation_api_reject_LDFLAGS = \
  $(WINFLAGS) -export-dynamic
 
 
- pkgcfg_DATA = conversation.conf
 
 EXTRA_DIST = test_conversation.conf