sys/ipc.h unistd.h utime.h stddef.h],
[], [AC_MSG_ERROR([$ac_header not found])])
-AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"],
+AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"],
[AC_MSG_WARN([linux/soundcard.h not found, cannot build para_fade])])
# Checks for typedefs, structures, and compiler characteristics.
strncasecmp strrchr strspn alarm], [],
[AC_MSG_ERROR([function not found, cannot live without it])])
-all_errlist_objs="server mp3_afh afh_common vss command net string signal random_selector time
-daemon stat crypt http_send afs_common close_on_fork playlist_selector ipc dccp
+all_errlist_objs="server mp3_afh afh_common vss command net string signal time
+daemon stat crypt http_send close_on_fork ipc dccp
dccp_send fd user_list chunk_queue afs osl aft mood score attribute blob ringbuffer
playlist sha1 rbtree sched audiod grab_client filter_chain wav compress
http_recv dccp_recv recv_common write_common file_write audiod_command
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"
audiod_ldflags=""
audiod_audio_formats=""
-server_cmdline_objs="server.cmdline server_command_list random_selector_command_list
- playlist_selector_command_list afs_command_list"
-server_errlist_objs="server afh_common mp3_afh vss command net string signal random_selector
- time daemon stat crypt http_send afs_common close_on_fork playlist_selector
+server_cmdline_objs="server.cmdline server_command_list afs_command_list"
+server_errlist_objs="server afh_common mp3_afh vss command net string signal
+ time daemon stat crypt http_send close_on_fork
ipc dccp dccp_send fd user_list chunk_queue afs osl aft mood score attribute
blob playlist sha1 rbtree sched"
server_ldflags=""
default_writer="OSX_WRITE"
AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on Mac Os X)
fi
-########################################################################### gtk2
-build_para_krell="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LD_FLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-pkg_modules="gtk+-2.0 >= 2.0.0"
-PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.4], [], [build_para_krell="no"])
-PKG_CHECK_MODULES(GTK, [$pkg_modules], [], [build_para_krell="no"])
-CPPFLAGS="$GTK_CFLAGS $GLIB_CFLAGS"
-LDFLAGS="$LDFLAGS $GTK_LIBS"
-AC_CHECK_HEADER(gkrellm2/gkrellm.h, [], [build_para_krell="no"])
-if test "$build_para_krell" = "yes"; then
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
- extras="$extras para_krell.so"
-else
- AC_MSG_WARN([can not build para_krell])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### 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])
-])
-AC_CHECK_HEADER(SDL/SDL.h, [],
- [AC_MSG_WARN([SDL/SDL.h not found])])
-
-########################################################################### mysql
-have_mysql="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LD_FLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-AC_ARG_WITH(mysql_headers, [AC_HELP_STRING(--with-mysql-headers=dir,
- [look for mysql.h also in dir])])
-if test -n "$with_mysql_headers"; then
- mysql_cppflags="-I$with_mysql_headers"
- CPPFLAGS="$CPPFLAGS $mysql_cppflags"
-fi
-AC_ARG_WITH(mysql_libs, [AC_HELP_STRING(--with-mysql-libs=dir,
- [look for libmysqlclient also in dir])])
-if test -n "$with_mysql_libs"; then
- mysql_libs="-L$with_mysql_libs"
- LDFLAGS="$LDFLAGS $mysql_libs"
-fi
-AC_CHECK_HEADER(mysql/mysql.h, [], [
- have_mysql="no"
-])
-AC_CHECK_LIB([mysqlclient], [mysql_init], [], [
- 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"
- all_errlist_objs="$all_errlist_objs mysql_selector"
- server_cmdline_objs="$server_cmdline_objs mysql_selector_command_list"
- AC_SUBST(mysql_cppflags)
- AC_SUBST(mysql_libs)
- AC_DEFINE(HAVE_MYSQL, 1, [define to 1 to turn on mysql support])
-else
- AC_MSG_WARN([cannot build mysql-based audio file selector])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
########################################################################### ogg
have_ogg="yes"
OLD_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
-########################################################################### zmw
-build_slider="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LD_FLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-PKG_CHECK_MODULES(GTK, [$pkg_modules], [], [build_para_slider="no"])
-PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.4], [], [build_slider="no"])
-CPPFLAGS="$GTK_CFLAGS $GLIB_CFLAGS"
-LDFLAGS="$LDFLAGS $GTK_LIBS"
-AC_CHECK_HEADERS([zmw/zmw.h], [], [build_slider="no"])
-AC_CHECK_LIB([zmw], [zmw_init], [], [build_slider="no"])
-if test "$build_slider" = "no"; then
- AC_MSG_WARN([will not build para_slider])
-else
- extras="$extras para_slider"
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-
-
-
AC_SUBST(extra_binaries, [$extras])
AC_CONFIG_FILES([Makefile])
-
AC_DEFUN([add_dot_o],[$(for i in $@; do printf "$i.o "; done)])
AC_DEFUN([objlist_to_errlist],[$(for i in $@; do printf "DEFINE_ERRLIST($(echo $i| tr 'a-z' 'A-Z'));"; done) [const char **para_errlist[[]]] = {$(for i in $@; do printf "PARA_ERRLIST($(echo $i | tr 'a-z' 'A-Z')), "; done) }])
AC_OUTPUT
AC_MSG_NOTICE([creating Makefile.deps])
-gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags $ortp_cppflags $oggvorbis_cppflags *.c > Makefile.deps
+gcc -MM -MG $faad_cppflags $mad_cppflags $ortp_cppflags $oggvorbis_cppflags *.c > Makefile.deps
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~
unix socket credentials: $have_ucred
-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