"
audioc_ldflags=""
-write_cmdline_objs="
- write
- file_write
-"
-write_errlist_objs="
- write
- write_common
- file_write
- time
- fd
- string
- sched
- stdin
- buffer_tree
- ggo
- check_wav
- version
-"
-write_ldflags=""
-writers="file"
-default_writer="FILE_WRITE"
-
################################################################## clock_gettime
clock_gettime_lib=
AC_CHECK_LIB([c], [clock_gettime], [clock_gettime_lib=c], [
audiod_errlist_objs="$audiod_errlist_objs osx_write ipc"
audiod_cmdline_objs="$audiod_cmdline_objs osx_write.cmdline"
- write_errlist_objs="$write_errlist_objs osx_write ipc"
- write_cmdline_objs="$write_cmdline_objs osx_write.cmdline"
- writers="$writers osx"
- default_writer="OSX_WRITE"
AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on Mac Os X)
fi
####################################################### ogg/vorbis/speex/opus
audiod_errlist_objs="$audiod_errlist_objs oss_write"
audiod_cmdline_objs="$audiod_cmdline_objs oss_write"
- write_errlist_objs="$write_errlist_objs oss_write"
- write_cmdline_objs="$write_cmdline_objs oss_write"
fade_errlist_objs="$fade_errlist_objs oss_mix"
- writers="$writers oss"
- default_writer="OSS_WRITE"
mixers="${mixers}oss "
default_mixer="OSS_MIX"
audiod_errlist_objs="$audiod_errlist_objs alsa_write"
audiod_cmdline_objs="$audiod_cmdline_objs alsa_write"
- write_errlist_objs="$write_errlist_objs alsa_write"
- write_cmdline_objs="$write_cmdline_objs alsa_write"
fade_errlist_objs="$fade_errlist_objs alsa_mix"
- writers="$writers alsa"
- default_writer="ALSA_WRITE"
mixers="${mixers}alsa "
default_mixer="ALSA_MIX"
fi
audiod_errlist_objs="$audiod_errlist_objs ao_write"
audiod_cmdline_objs="$audiod_cmdline_objs ao_write"
- write_errlist_objs="$write_errlist_objs ao_write"
- write_cmdline_objs="$write_cmdline_objs ao_write"
- writers="$writers ao"
fi
CPPFLAGS="$OLD_CPPFLAGS"
AC_SUBST(play_objs, add_dot_o($play_objs))
AC_DEFINE_UNQUOTED(INIT_PLAY_ERRLISTS,
objlist_to_errlist($play_errlist_objs), errors used by para_play)
+######################################################################### write
+write_cmdline_objs="
+ write
+ file_write
+"
+write_errlist_objs="
+ write
+ write_common
+ file_write
+ time
+ fd
+ string
+ sched
+ stdin
+ buffer_tree
+ ggo
+ check_wav
+ version
+"
+writers="file"
+default_writer="FILE_WRITE"
+
+if test "$have_core_audio" = "yes"; then
+ write_errlist_objs="$write_errlist_objs osx_write ipc"
+ write_cmdline_objs="$write_cmdline_objs osx_write.cmdline"
+ writers="$writers osx"
+ default_writer="OSX_WRITE"
+fi
+if test "$have_ao" = "yes"; then
+ write_errlist_objs="$write_errlist_objs ao_write"
+ write_cmdline_objs="$write_cmdline_objs ao_write"
+ writers="$writers ao"
+ default_writer="AO_WRITE"
+fi
+if test "$have_oss" = "yes"; then
+ write_errlist_objs="$write_errlist_objs oss_write"
+ write_cmdline_objs="$write_cmdline_objs oss_write"
+ writers="$writers oss"
+ default_writer="OSS_WRITE"
+fi
+if test "$have_alsa" = "yes"; then
+ write_errlist_objs="$write_errlist_objs alsa_write"
+ write_cmdline_objs="$write_cmdline_objs alsa_write"
+ writers="$writers alsa"
+ default_writer="ALSA_WRITE"
+fi
+write_objs="add_cmdline($write_cmdline_objs) $write_errlist_objs"
+AC_SUBST(write_objs, add_dot_o($write_objs))
+AC_DEFINE_UNQUOTED(INIT_WRITE_ERRLISTS,
+ objlist_to_errlist($write_errlist_objs), errors used by para_write)
+enum="$(for i in $writers; do printf "${i}_WRITE, " | tr '[a-z]' '[A-Z]'; done)"
+AC_DEFINE_UNQUOTED(WRITER_ENUM, $enum NUM_SUPPORTED_WRITERS,
+ enum of supported writers)
+AC_DEFINE_UNQUOTED(DEFAULT_WRITER, $default_writer, use this writer if none was specified)
+names="$(for i in $writers; do printf \"$i\",' ' ; done)"
+AC_DEFINE_UNQUOTED(WRITER_NAMES, $names, supported writer names)
+inits="$(for i in $writers; do printf 'extern void '$i'_write_init(struct writer *); '; done)"
+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)
############################################################# error2.h
# these are always built
all_errlist_objs="
filter_objs="add_cmdline($filter_cmdline_objs) $filter_errlist_objs"
audiod_objs="add_cmdline($audiod_cmdline_objs) $audiod_errlist_objs"
server_objs="add_cmdline($server_cmdline_objs) $server_errlist_objs"
-write_objs="add_cmdline($write_cmdline_objs) $write_errlist_objs"
client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
audioc_objs="add_cmdline($audioc_cmdline_objs) $audioc_errlist_objs"
AC_DEFINE_UNQUOTED(INIT_SERVER_ERRLISTS,
objlist_to_errlist($server_errlist_objs), errors used by para_server)
-AC_SUBST(write_objs, add_dot_o($write_objs))
-AC_SUBST(write_ldflags, $write_ldflags)
-AC_DEFINE_UNQUOTED(INIT_WRITE_ERRLISTS,
- objlist_to_errlist($write_errlist_objs), errors used by para_write)
-
AC_SUBST(client_objs, add_dot_o($client_objs))
AC_SUBST(client_ldflags, $client_ldflags)
AC_DEFINE_UNQUOTED(INIT_CLIENT_ERRLISTS,
array="$(for i in $filters; do printf '{.name = "'$i'", .init = '$i'_filter_init},'; done)"
AC_DEFINE_UNQUOTED(FILTER_ARRAY, $array, array of supported filters)
-enum="$(for i in $writers; do printf "${i}_WRITE, " | tr '[a-z]' '[A-Z]'; done)"
-AC_DEFINE_UNQUOTED(WRITER_ENUM, $enum NUM_SUPPORTED_WRITERS,
- enum of supported writers)
-AC_DEFINE_UNQUOTED(DEFAULT_WRITER, $default_writer, use this writer if none was specified)
-names="$(for i in $writers; do printf \"$i\",' ' ; done)"
-AC_DEFINE_UNQUOTED(WRITER_NAMES, $names, supported writer names)
-inits="$(for i in $writers; do printf 'extern void '$i'_write_init(struct writer *); '; done)"
-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)
-
enum="$(for i in $audiod_audio_formats; do printf "AUDIO_FORMAT_${i}, " | tr '[a-z]' '[A-Z]'; done)"
AC_DEFINE_UNQUOTED(AUDIOD_AUDIO_FORMATS_ENUM, $enum NUM_AUDIO_FORMATS,
enum of audio formats supported by audiod)