The new section is added after osl and crypto detection has been
performed. We only build para_server if both libosl and a crypto
library was found.
This check is not necessary at the moment since we abort earlier if
neither openssl nor gcrypt was detected, but it will eventually allow
to make crypto support optional.
executables="recv filter audioc write client afh audiod play"
executables="recv filter audioc write client afh audiod play"
+audio_format_handlers="mp3 wma"
recv_cmdline_objs="add_cmdline(recv http_recv dccp_recv udp_recv afh_recv)"
recv_cmdline_objs="add_cmdline(recv http_recv dccp_recv udp_recv afh_recv)"
AC_CHECK_HEADER(osl.h, [], have_osl=no)
AC_CHECK_LIB([osl], [osl_open_table], [], have_osl=no)
if test "$have_osl" = "no"; then
AC_CHECK_HEADER(osl.h, [], have_osl=no)
AC_CHECK_LIB([osl], [osl_open_table], [], have_osl=no)
if test "$have_osl" = "no"; then
AC_MSG_WARN([libosl not found, can not build para_server.
Download libosl at
http://systemlinux.org/~maan/osl
or execute
git clone git://git.tuebingen.mpg.de/osl
])
AC_MSG_WARN([libosl not found, can not build para_server.
Download libosl at
http://systemlinux.org/~maan/osl
or execute
git clone git://git.tuebingen.mpg.de/osl
])
-else
- build_server="yes"
- executables="$executables server"
- server_cmdline_objs="add_cmdline(server)"
- server_errlist_objs="
- server
- afh_common
- mp3_afh
- vss command
- net
- string
- signal
- time
- daemon
- http_send
- close_on_fork
- mm
- crypt_common
- ipc dccp_send
- fd
- user_list
- chunk_queue
- afs
- aft
- mood
- score
- attribute
- blob
- playlist
- sched
- acl
- send_common
- udp_send
- color
- fec
- wma_afh
- wma_common
- sideband
- version
- ggo
- "
- server_ldflags=""
- audio_format_handlers="mp3 wma"
- AC_SUBST(osl_cppflags)
- server_ldflags="$server_ldflags $osl_libs -losl"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
+######################################################################### server
+if test \( "$have_openssl" = "yes" -o "$have_gcrypt" = "yes" \) \
+ -a "$have_osl" = "yes" ; then
+
+ build_server="yes"
+ executables="$executables server"
+ server_cmdline_objs="add_cmdline(server)"
+ server_errlist_objs="$server_errlist_objs
+ server
+ afh_common
+ mp3_afh
+ vss
+ command
+ net
+ string
+ signal
+ time
+ daemon
+ http_send
+ close_on_fork
+ mm
+ crypt_common
+ ipc
+ dccp_send
+ fd
+ user_list
+ chunk_queue
+ afs
+ aft
+ mood
+ score
+ attribute
+ blob
+ playlist
+ sched
+ acl
+ send_common
+ udp_send
+ color
+ fec
+ wma_afh
+ wma_common
+ sideband
+ version
+ ggo
+ "
+ server_ldflags="$server_ldflags $osl_libs -losl"
+else
+ build_server="no"
+fi
############################################################# error2.h
AC_MSG_NOTICE(creating error2.h)
############################################################# error2.h
AC_MSG_NOTICE(creating error2.h)