X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=configure.ac;h=ff27cb41d4d1314c0f0edc6eaf3df5cd0902a075;hp=8e9ca7d05527463fc916e4880dd7ad6ba1b95662;hb=c33fa55e39f9ef715abe47cabdfd997a190da61d;hpb=123ace95d32271900674b83872abbaad5024a885 diff --git a/configure.ac b/configure.ac index 8e9ca7d0..ff27cb41 100644 --- a/configure.ac +++ b/configure.ac @@ -36,8 +36,6 @@ AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h limits.h netdb.h netinet/in.h \ 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_MSG_WARN([linux/soundcard.h not found, cannot build para_fade])]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -81,11 +79,11 @@ AC_CHECK_FUNCS([atexit dup2 memchr memmove memset \ [AC_MSG_ERROR([function not found, cannot live without it])]) all_errlist_objs="server mp3_afh afh_common vss command net string signal time -daemon stat crypt http_send close_on_fork ipc +daemon stat crypt http_send close_on_fork ipc acl 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 -client_common recv stdout filter stdin audioc write client fsck exec" +client_common recv stdout filter stdin audioc write client fsck exec send_common" all_executables="server audiod recv filter audioc write client fsck" recv_cmdline_objs="recv.cmdline http_recv.cmdline dccp_recv.cmdline" @@ -119,7 +117,7 @@ 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_send fd user_list chunk_queue afs osl aft mood score attribute - blob playlist sha1 rbtree sched" + blob playlist sha1 rbtree sched acl send_common" server_ldflags="" server_audio_formats=" mp3" @@ -138,7 +136,7 @@ fsck_errlist_objs="osl rbtree fsck string sha1 fd" gui_cmdline_objs="gui.cmdline" gui_errlist_objs="exec close_on_fork signal string stat ringbuffer fd" -gui_other_objs="gui gui_common gui_theme" +gui_other_objs="gui gui_theme" gui_objs="$gui_cmdline_objs $gui_errlist_objs $gui_other_objs" ########################################################################### ssl @@ -427,15 +425,34 @@ have_alsa="yes" OLD_CPPFLAGS="$CPPFLAGS" OLD_LD_FLAGS="$LDFLAGS" OLD_LIBS="$LIBS" -msg="=> no alsa support for para_audiod/para_write" -AC_CHECK_HEADERS([alsa/asoundlib.h], [], [ - AC_MSG_WARN([no alsa/asoundlib $msg]) +if test "$OSTYPE" != "Linux"; then have_alsa="no" -]) -AC_CHECK_LIB([asound], [snd_pcm_open], [], [ - AC_MSG_WARN([no libasound $msg]) - have_alsa="no" -]) +fi +msg="=> can not build para_fade, and no alsa support for para_audiod/para_write" +if test "$have_alsa" = "yes"; then + AC_CHECK_HEADER(linux/soundcard.h, + [extras="$extras para_fade"], + [ + have_alsa="no" + AC_MSG_WARN([no linux/soundcard.h $msg]) + ] + ) +fi + +if test "$have_alsa" = "yes"; then + AC_CHECK_HEADERS([alsa/asoundlib.h], [], [ + have_alsa="no" + AC_MSG_WARN([no alsa/asoundlib $msg]) + ]) +fi + +if test "$have_alsa" = "yes"; then + AC_CHECK_LIB([asound], [snd_pcm_open], [], [ + have_alsa="no" + AC_MSG_WARN([no libasound $msg]) + ]) +fi + if test "$have_alsa" = "yes"; then all_errlist_objs="$all_errlist_objs alsa_write" audiod_errlist_objs="$audiod_errlist_objs alsa_write"