executables="recv filter audioc write afh play"
audio_format_handlers="mp3 wma"
-audioc_cmdline_objs="audioc"
-audioc_errlist_objs="
- audioc
- string
- net
- fd
- version
- ggo
-"
-audioc_ldflags=""
-
################################################################## clock_gettime
clock_gettime_lib=
AC_CHECK_LIB([c], [clock_gettime], [clock_gettime_lib=c], [
AC_SUBST(readline_cppflags)
AC_SUBST(readline_ldflags)
client_errlist_objs="$client_errlist_objs interactive"
- audioc_errlist_objs="$audioc_errlist_objs buffer_tree interactive sched time"
AC_DEFINE(HAVE_READLINE, 1, define to 1 to turn on readline support)
else
AC_MSG_WARN([libreadline not found or unusable])
AC_DEFINE_UNQUOTED(DECLARE_WRITER_INITS, $inits, init functions of the supported writers)
array="$(for i in $writers; do printf '{.init = '$i'_write_init},'; done)"
AC_DEFINE_UNQUOTED(WRITER_ARRAY, $array, array of supported writers)
+######################################################################## audioc
+audioc_cmdline_objs="audioc"
+audioc_errlist_objs="
+ audioc
+ string
+ net
+ fd
+ version
+ ggo
+"
+if test "$have_readline" = "yes"; then
+ audioc_errlist_objs="$audioc_errlist_objs
+ buffer_tree
+ interactive
+ sched
+ time
+ "
+fi
+audioc_objs="add_cmdline($audioc_cmdline_objs) $audioc_errlist_objs"
+AC_SUBST(audioc_objs, add_dot_o($audioc_objs))
+AC_DEFINE_UNQUOTED(INIT_AUDIOC_ERRLISTS,
+ objlist_to_errlist($audioc_errlist_objs), errors used by para_audioc)
############################################################# error2.h
# these are always built
all_errlist_objs="
audiod_objs="add_cmdline($audiod_cmdline_objs) $audiod_errlist_objs"
server_objs="add_cmdline($server_cmdline_objs) $server_errlist_objs"
client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
-audioc_objs="add_cmdline($audioc_cmdline_objs) $audioc_errlist_objs"
AC_SUBST(filter_objs, add_dot_o($filter_objs))
AC_DEFINE_UNQUOTED(INIT_FILTER_ERRLISTS,
AC_DEFINE_UNQUOTED(INIT_CLIENT_ERRLISTS,
objlist_to_errlist($client_errlist_objs), errors used by para_client)
-AC_SUBST(audioc_objs, add_dot_o($audioc_objs))
-AC_SUBST(audioc_ldflags, $audioc_ldflags)
-AC_DEFINE_UNQUOTED(INIT_AUDIOC_ERRLISTS,
- objlist_to_errlist($audioc_errlist_objs), errors used by para_audioc)
-
AC_SUBST(gui_objs, add_dot_o($gui_objs))
AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS,
objlist_to_errlist($gui_errlist_objs), errors used by para_gui)