X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=configure.ac;h=77534de2fd6bc1d09931bff9cdaf857a1945ea8f;hp=dc48c03f42cc8439bb744ec61ab39b423c4cffef;hb=b8741e4cfa64333e719f7b3abe38b94ef961b39d;hpb=d0557ca0ee0c39111c5e9f69121d69a2d26b8ed6 diff --git a/configure.ac b/configure.ac index dc48c03f..77534de2 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h \ - string.h sys/socket.h sys/time.h sys/timeb.h sys/un.h sys/ipc.h unistd.h utime.h malloc.h], \ + string.h sys/socket.h sys/time.h sys/timeb.h sys/un.h sys/ipc.h unistd.h utime.h], \ [], [AC_MSG_ERROR([$ac_header not found])]) AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"], @@ -68,10 +68,11 @@ audioc_cmdline_objs="audioc.cmdline" audioc_errlist_objs="audioc string net fd" audiod_cmdline_objs="audiod.cmdline grab_client.cmdline compress_filter.cmdline - http_recv.cmdline dccp_recv.cmdline file_write.cmdline" -audiod_errlist_objs="audiod exec close_on_fork signal string daemon stat net + http_recv.cmdline dccp_recv.cmdline file_write.cmdline client.cmdline" +audiod_errlist_objs="audiod signal string daemon stat net time grab_client filter_chain wav compress http_recv dccp dccp_recv - recv_common fd sched write_common file_writer audiod_command" + recv_common fd sched write_common file_writer audiod_command crypt + client_common" audiod_ldflags="" server_cmdline_objs="server.cmdline" @@ -86,7 +87,7 @@ write_ldflags="" write_writers="file" client_cmdline_objs="client.cmdline" -client_errlist_objs="client net string crypt" +client_errlist_objs="client net string crypt fd sched stdin stdout client_common" client_ldflags="" ########################################################################### ssl @@ -137,6 +138,7 @@ if test "$enable_ssldir" = "yes"; then enable_ssldir=""; fi CHECK_SSL($enable_ssldir) server_ldflags="$srver_ldflags $SSL_LDFLAGS $SSL_LIBS" client_ldflags="$client_ldflags $SSL_LDFLAGS $SSL_LIBS" +audiod_ldflags="$audiod_ldflags $SSL_LDFLAGS $SSL_LIBS" ########################################################################### ucred @@ -152,6 +154,31 @@ if test ${have_ucred} = yes; then AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred) fi +########################################################################### osx + +AC_MSG_CHECKING(for CoreAudio (MacOs)) +AC_TRY_LINK([ + #include +],[ + AudioDeviceID id; +],[have_core_audio=yes],[have_core_audio=no]) +AC_MSG_RESULT($have_core_audio) +if test ${have_core_audio} = yes; then + f1="-framework CoreAudio" + f2="-framework AudioToolbox" + f3="-framework AudioUnit" + f4="-framework CoreServices" + f="$f1 $f2 $f3 $f4" + audiod_errlist_objs="$audiod_errlist_objs osx_writer" + audiod_cmdline_objs="$audiod_cmdline_objs osx_write.cmdline" + audiod_ldflags="$audiod_ldflags $f" + + write_errlist_objs="$write_errlist_objs osx_writer" + 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) +fi ########################################################################### gtk2 pkg_modules="gtk+-2.0 >= 2.0.0"