[], [AC_MSG_ERROR([$ac_header not found])])
AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"],
- [AC_MSG_WARN([linux/soundcard.h not found, \
- cannot build para_fade])])
+ [AC_MSG_WARN([linux/soundcard.h not found, cannot build para_fade])])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dccp fd sched stdout"
recv_ldflags=""
+receivers=" http dccp"
+senders=" http dccp"
+selectors=" random playlist"
+
filter_cmdline_objs="filter.cmdline compress_filter.cmdline"
filter_errlist_objs="filter_chain wav compress filter string stdin stdout sched fd"
filter_ldflags=""
+filters=" compress wav"
audioc_cmdline_objs="audioc.cmdline"
audioc_errlist_objs="audioc string net fd"
recv_common fd sched write_common file_write audiod_command crypt
client_common"
audiod_ldflags=""
+audiod_audio_formats=""
server_cmdline_objs="server.cmdline"
server_errlist_objs="server mp3_afh afs command net string signal random_selector
time daemon stat crypt http_send db close_on_fork playlist_selector
ipc dccp dccp_send fd"
server_ldflags=""
+server_audio_formats=" mp3"
write_cmdline_objs="write.cmdline file_write.cmdline"
write_errlist_objs="write write_common file_write time fd string sched stdin"
write_ldflags=""
-write_writers="file"
+writers=" file"
client_cmdline_objs="client.cmdline"
client_errlist_objs="client net string crypt fd sched stdin stdout client_common"
write_errlist_objs="$write_errlist_objs osx_write"
write_cmdline_objs="$write_cmdline_objs osx_write.cmdline"
write_ldflags="$write_ldflags $f"
- write_writers="$write_writers osx"
- AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on MacOs)
+ writers="$writers osx"
+ AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on Mac Os X)
fi
########################################################################### gtk2
fi
########################################################################### sdl
+# FIXME
AC_CHECK_LIB([SDL_image], [SDL_Init], [extras="$extras para_sdl_gui"], [
AC_MSG_WARN([libSDL_image not found, cannot build para_sdl_gui])
])
have_mysql="no"
])
if test "$have_mysql" = "yes"; then
+ selectors="$selectors mysql"
server_ldflags="$server_ldflags $mysql_libs -lmysqlclient"
server_errlist_objs="$server_errlist_objs mysql_selector"
AC_SUBST(mysql_cppflags)
])
if test "$have_ogg" = "yes"; then
AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg vorbis support)
+ filters="$filters oggdec"
server_ldflags="$server_ldflags -logg -lvorbis -lvorbisfile"
filter_ldflags="$filter_ldflags -lvorbis -lvorbisfile"
audiod_ldflags="$audiod_ldflags -lvorbis -lvorbisfile"
server_errlist_objs="$server_errlist_objs ogg_afh"
filter_errlist_objs="$filter_errlist_objs oggdec"
audiod_errlist_objs="$audiod_errlist_objs oggdec"
+
+ audiod_audio_formats="ogg"
+ server_audio_formats="$server_audio_formats ogg"
+ filter_filters="$filter_filters oggdec"
else
AC_MSG_WARN([no ogg vorbis support in para_server/para_filter])
fi
if test "$have_faad" = "yes"; then
AC_DEFINE(HAVE_FAAD, 1, define to 1 if you want to build the aacdec filter)
filter_errlist_objs="$filter_errlist_objs aacdec aac_common"
+ filter_filters="$filter_filters aacdec"
audiod_errlist_objs="$audiod_errlist_objs aacdec aac_common"
server_errlist_objs="$server_errlist_objs aac_afh aac_common"
server_ldflags="$server_ldflags $faad_libs -lfaad"
filter_ldflags="$filter_ldflags $faad_libs -lfaad"
audiod_ldflags="$audiod_ldflags $faad_libs -lfaad"
+ audiod_audio_formats="$audiod_audio_formats aac"
+ server_audio_formats="$server_audio_formats aac"
+ filters="$filters aacdec"
AC_SUBST(faad_cppflags)
AC_SUBST(faad_libs)
else
audiod_errlist_objs="$audiod_errlist_objs mp3dec"
filter_ldflags="$filter_ldflags $mad_libs -lmad"
audiod_ldflags="$audiod_ldflags $mad_libs -lmad"
+ audiod_audio_formats="$audiod_audio_formats mp3"
+ filters="$filters mp3dec"
AC_SUBST(mad_cppflags)
AC_SUBST(mad_libs)
else
AC_MSG_WARN([no mp3dec support in para_audiod/para_filter])
fi
+if test -n "$audiod_audio_formats"; then
+ extras="$extras para_audiod"
+else
+ AC_MSG_WARN([can not build para_audiod (no supported audio formats)])
+fi
########################################################################### alsa
have_alsa="yes"
msg="=> no alsa support for para_audiod/para_write"
write_errlist_objs="$write_errlist_objs alsa_write"
write_cmdline_objs="$write_cmdline_objs alsa_write.cmdline"
write_ldflags="$write_ldflags -lasound"
- write_writers="$write_writers alsa"
+ writers="$writers alsa"
fi
########################################################################### ortp
have_ortp="yes"
recv_ldflags="$recv_ldflags -lortp"
server_ldflags="$server_ldflags -lortp"
audiod_ldflags="$audiod_ldflags -lortp"
+
+ receivers="$receivers ortp"
+ senders="$senders ortp"
AC_DEFINE(HAVE_ORTP, 1, [define to 1 to turn on ortp support])
else
AC_DEFINE_UNQUOTED(INIT_AUDIOC_ERRLISTS,
objlist_to_errlist($audioc_errlist_objs), errors used by para_audioc)
-enum="$(for i in $write_writers; do printf "${i}_WRITE, " | tr '[a-z]' '[A-Z]'; done)"
+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)
-names="$(for i in $write_writers; do printf \"$i\",' ' ; done)"
+names="$(for i in $writers; do printf \"$i\",' ' ; done)"
AC_DEFINE_UNQUOTED(WRITER_NAMES, $names, supported writer names)
-inits="$(for i in $write_writers; do printf 'extern void '$i'_write_init(struct writer *); '; done)"
+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 $write_writers; do printf '{.init = '$i'_write_init},'; done)"
+array="$(for i in $writers; do printf '{.init = '$i'_write_init},'; done)"
AC_DEFINE_UNQUOTED(WRITER_ARRAY, $array, array of supported writers)
gui_cmdline_objs="gui.cmdline"
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~
-mysql support: $have_mysql
-ogg vorbis support: $have_ogg
-mp3dec support (libmad): $have_mad
-aac support (libfaad): $have_faad
-ortp support: $have_ortp
unix socket credentials: $have_ucred
-supported writers for para_write: $write_writers
+audio file selectors supported by para_server: $selectors
+audio formats supported by para_server: $server_audio_formats
+senders supported by para_server/para_send: $senders
+receivers supported by para_audiod/para_recv: $receivers
+filters supported by para_audiod/para_filter: $filters
+writers supported by para_audiod/para_write: $writers
])