AC_CONFIG_HEADER([config.h])
AC_PATH_PROG(UNAMEPATH, uname, no)
AC_CONFIG_HEADER([config.h])
AC_PATH_PROG(UNAMEPATH, uname, no)
strncasecmp strrchr strspn alarm mkdir inet_ntoa socket], [],
[AC_MSG_ERROR([function not found, cannot live without it])])
strncasecmp strrchr strspn alarm mkdir inet_ntoa socket], [],
[AC_MSG_ERROR([function not found, cannot live without it])])
[AC_CHECK_FUNCS(snprintf vsnprintf)
AC_MSG_CHECKING(for working snprintf)
AC_CACHE_VAL(ac_cv_have_working_snprintf,
[AC_CHECK_FUNCS(snprintf vsnprintf)
AC_MSG_CHECKING(for working snprintf)
AC_CACHE_VAL(ac_cv_have_working_snprintf,
-}], ac_cv_have_working_snprintf=yes, ac_cv_have_working_snprintf=no, ac_cv_have_working_snprintf=cross)])
+}]])],[ac_cv_have_working_snprintf=yes],
+[ac_cv_have_working_snprintf=no],[ac_cv_have_working_snprintf=cross])])
AC_MSG_RESULT([$ac_cv_have_working_snprintf])
AC_MSG_CHECKING(for working vsnprintf)
AC_CACHE_VAL(ac_cv_have_working_vsnprintf,
AC_MSG_RESULT([$ac_cv_have_working_snprintf])
AC_MSG_CHECKING(for working vsnprintf)
AC_CACHE_VAL(ac_cv_have_working_vsnprintf,
-}], ac_cv_have_working_vsnprintf=yes, ac_cv_have_working_vsnprintf=no, ac_cv_have_working_vsnprintf=cross)])
+}]])],[ac_cv_have_working_vsnprintf=yes],
+[ac_cv_have_working_vsnprintf=no],[ac_cv_have_working_vsnprintf=cross])])
AC_MSG_RESULT([$ac_cv_have_working_vsnprintf])
if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
AC_MSG_ERROR([fatal: buggy snprintf() detected])
AC_MSG_RESULT([$ac_cv_have_working_vsnprintf])
if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
AC_MSG_ERROR([fatal: buggy snprintf() detected])
[look for osl.h also in dir])])
if test -n "$with_osl_headers"; then
osl_cppflags="-I$with_osl_headers"
CPPFLAGS="$CPPFLAGS $osl_cppflags"
fi
[look for osl.h also in dir])])
if test -n "$with_osl_headers"; then
osl_cppflags="-I$with_osl_headers"
CPPFLAGS="$CPPFLAGS $osl_cppflags"
fi
[look for libosl also in dir])])
if test -n "$with_osl_libs"; then
osl_libs="-L$with_osl_libs"
[look for libosl also in dir])])
if test -n "$with_osl_libs"; then
osl_libs="-L$with_osl_libs"
[look for openssl headers also in dir])])
if test -n "$with_openssl_headers"; then
openssl_cppflags="-I$with_openssl_headers"
CPPFLAGS="$CPPFLAGS $openssl_cppflags"
fi
[look for openssl headers also in dir])])
if test -n "$with_openssl_headers"; then
openssl_cppflags="-I$with_openssl_headers"
CPPFLAGS="$CPPFLAGS $openssl_cppflags"
fi
[look for openssl libraries also in dir])])
if test -n "$with_openssl_libs"; then
openssl_libs="-L$with_openssl_libs"
[look for openssl libraries also in dir])])
if test -n "$with_openssl_libs"; then
openssl_libs="-L$with_openssl_libs"
[look for gcrypt headers also in dir])])
if test -n "$with_gcrypt_headers"; then
gcrypt_cppflags="-I$with_gcrypt_headers"
CPPFLAGS="$CPPFLAGS $gcrypt_cppflags"
fi
[look for gcrypt headers also in dir])])
if test -n "$with_gcrypt_headers"; then
gcrypt_cppflags="-I$with_gcrypt_headers"
CPPFLAGS="$CPPFLAGS $gcrypt_cppflags"
fi
[look for libgcrypt also in dir])])
if test -n "$with_gcrypt_libs"; then
gcrypt_libs="-L$with_gcrypt_libs"
[look for libgcrypt also in dir])])
if test -n "$with_gcrypt_libs"; then
gcrypt_libs="-L$with_gcrypt_libs"
],[])
########################################################################### ucred
AC_MSG_CHECKING(for struct ucred)
],[])
########################################################################### ucred
AC_MSG_CHECKING(for struct ucred)
AC_MSG_RESULT($have_ucred)
if test ${have_ucred} = yes; then
AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred)
AC_MSG_RESULT($have_ucred)
if test ${have_ucred} = yes; then
AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred)
[look for curses.h also in dir])])
if test -n "$with_curses_headers"; then
curses_cppflags="-I$with_curses_headers"
CPPFLAGS="$CPPFLAGS $curses_cppflags"
fi
[look for curses.h also in dir])])
if test -n "$with_curses_headers"; then
curses_cppflags="-I$with_curses_headers"
CPPFLAGS="$CPPFLAGS $curses_cppflags"
fi
[look for libcurses also in dir])])
if test -n "$with_curses_libs"; then
curses_libs="-L$with_curses_libs"
[look for libcurses also in dir])])
if test -n "$with_curses_libs"; then
curses_libs="-L$with_curses_libs"
########################################################################### ip_mreqn
AC_MSG_CHECKING(for struct ip_mreqn (UDPv4 multicast))
########################################################################### ip_mreqn
AC_MSG_CHECKING(for struct ip_mreqn (UDPv4 multicast))
AC_MSG_RESULT($have_ip_mreqn)
if test ${have_ip_mreqn} = yes; then
AC_DEFINE(HAVE_IP_MREQN, 1, define to 1 you have struct ip_mreqn)
AC_MSG_RESULT($have_ip_mreqn)
if test ${have_ip_mreqn} = yes; then
AC_DEFINE(HAVE_IP_MREQN, 1, define to 1 you have struct ip_mreqn)
########################################################################### osx
AC_MSG_CHECKING(for CoreAudio (MacOs))
########################################################################### osx
AC_MSG_CHECKING(for CoreAudio (MacOs))
AC_MSG_RESULT($have_core_audio)
if test ${have_core_audio} = yes; then
f1="-framework CoreAudio"
AC_MSG_RESULT($have_core_audio)
if test ${have_core_audio} = yes; then
f1="-framework CoreAudio"
[look for neaacdec.h also in dir])])
if test -n "$with_faad_headers"; then
faad_cppflags="-I$with_faad_headers"
CPPFLAGS="$CPPFLAGS $faad_cppflags"
fi
[look for neaacdec.h also in dir])])
if test -n "$with_faad_headers"; then
faad_cppflags="-I$with_faad_headers"
CPPFLAGS="$CPPFLAGS $faad_cppflags"
fi
[look for libfaad also in dir])])
if test -n "$with_faad_libs"; then
faad_libs="-L$with_faad_libs"
[look for libfaad also in dir])])
if test -n "$with_faad_libs"; then
faad_libs="-L$with_faad_libs"
[look for mad.h also in dir])])
if test -n "$with_mad_headers"; then
mad_cppflags="-I$with_mad_headers"
CPPFLAGS="$CPPFLAGS $mad_cppflags"
fi
[look for mad.h also in dir])])
if test -n "$with_mad_headers"; then
mad_cppflags="-I$with_mad_headers"
CPPFLAGS="$CPPFLAGS $mad_cppflags"
fi
[look for libmad also in dir])])
if test -n "$with_mad_libs"; then
mad_libs="-L$with_mad_libs"
[look for libmad also in dir])])
if test -n "$with_mad_libs"; then
mad_libs="-L$with_mad_libs"
[look for id3tag header files also in dir])])
if test -n "$with_id3tag_headers"; then
id3tag_cppflags="-I$with_id3tag_headers"
CPPFLAGS="$CPPFLAGS $id3tag_cppflags"
fi
[look for id3tag header files also in dir])])
if test -n "$with_id3tag_headers"; then
id3tag_cppflags="-I$with_id3tag_headers"
CPPFLAGS="$CPPFLAGS $id3tag_cppflags"
fi
[look for id3tag libs also in dir])])
if test -n "$with_id3tag_libs"; then
id3tag_libs="-L$with_id3tag_libs"
[look for id3tag libs also in dir])])
if test -n "$with_id3tag_libs"; then
id3tag_libs="-L$with_id3tag_libs"
[look for flac headers also in dir])])
if test -n "$with_flac_headers"; then
flac_cppflags="-I$with_flac_headers"
CPPFLAGS="$CPPFLAGS $flac_cppflags"
fi
[look for flac headers also in dir])])
if test -n "$with_flac_headers"; then
flac_cppflags="-I$with_flac_headers"
CPPFLAGS="$CPPFLAGS $flac_cppflags"
fi
[look for flac libs also in dir])])
if test -n "$with_flac_libs"; then
flac_libs="-L$with_flac_libs"
[look for flac libs also in dir])])
if test -n "$with_flac_libs"; then
flac_libs="-L$with_flac_libs"
AC_CHECK_LIB(ossaudio, _oss_ioctl, [
audiod_ldflags="$audiod_ldflags -lossaudio"
write_ldflags="$write_ldflags -lossaudio"
AC_CHECK_LIB(ossaudio, _oss_ioctl, [
audiod_ldflags="$audiod_ldflags -lossaudio"
write_ldflags="$write_ldflags -lossaudio"
[look for ao/ao.h also in dir])])
if test -n "$with_ao_headers"; then
ao_cppflags="-I$with_ao_headers"
CPPFLAGS="$CPPFLAGS $ao_cppflags"
fi
[look for ao/ao.h also in dir])])
if test -n "$with_ao_headers"; then
ao_cppflags="-I$with_ao_headers"
CPPFLAGS="$CPPFLAGS $ao_cppflags"
fi
[look for libao also in dir])])
if test -n "$with_ao_libs"; then
ao_libs="-L$with_ao_libs"
[look for libao also in dir])])
if test -n "$with_ao_libs"; then
ao_libs="-L$with_ao_libs"
[look for libreadline header files also in dir])])
if test -n "$with_readline_headers"; then
readline_cppflags="-I$with_readline_headers"
CPPFLAGS="$CPPFLAGS $readline_cppflags"
fi
[look for libreadline header files also in dir])])
if test -n "$with_readline_headers"; then
readline_cppflags="-I$with_readline_headers"
CPPFLAGS="$CPPFLAGS $readline_cppflags"
fi
[look for readline library also in dir])])
if test -n "$with_readline_libs"; then
readline_libs="-L$with_readline_libs"
[look for readline library also in dir])])
if test -n "$with_readline_libs"; then
readline_libs="-L$with_readline_libs"