mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Feature: Added checks for more functions which may become useful in the future versions
This commit is contained in:
parent
9a2e911bee
commit
c4ea726db5
@ -101,6 +101,7 @@ AC_CHECK_HEADERS([sys/socket.h])
|
||||
AC_CHECK_HEADERS([pwd.h grp.h])
|
||||
AC_CHECK_HEADERS([sys/resource.h])
|
||||
AC_CHECK_HEADERS([crypt.h])
|
||||
AC_CHECK_HEADERS([spawn.h])
|
||||
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
@ -123,6 +124,9 @@ AC_CHECK_FUNCS([gettimeofday])
|
||||
AC_CHECK_FUNCS([ftime])
|
||||
AC_CHECK_FUNCS([getrlimit])
|
||||
|
||||
dnl Checked only for reporting in version display as of now (may be used in future versions):
|
||||
AC_CHECK_FUNCS([pipe pipe2 socketpair posix_spawn posix_spawnp])
|
||||
|
||||
dnl check for crypt():
|
||||
AC_SEARCH_LIBS([crypt_r], [crypt], [
|
||||
AC_DEFINE([HAVE_CRYPT_R], [1], [Define if you have crypt_r])
|
||||
|
@ -52,6 +52,7 @@
|
||||
const char * const * version_get_compiletime_flags(void)
|
||||
{
|
||||
static const char * const compiletime_flags[] = {
|
||||
/* ---[ Functions ]--- */
|
||||
#ifdef HAVE_POLL
|
||||
"poll",
|
||||
#endif
|
||||
@ -73,9 +74,26 @@ const char * const * version_get_compiletime_flags(void)
|
||||
#ifdef HAVE_CRYPT_R
|
||||
"crypt_r",
|
||||
#endif
|
||||
#ifdef HAVE_PIPE
|
||||
"pipe",
|
||||
#endif
|
||||
#ifdef HAVE_PIPE2
|
||||
"pipe2",
|
||||
#endif
|
||||
#ifdef HAVE_SOCKETPAIR
|
||||
"socketpair",
|
||||
#endif
|
||||
#ifdef HAVE_POSIX_SPAWN
|
||||
"posix_spawn",
|
||||
#endif
|
||||
#ifdef HAVE_POSIX_SPAWNP
|
||||
"posix_spawnp",
|
||||
#endif
|
||||
/* ---[ OS ]--- */
|
||||
#ifdef WIN32
|
||||
"win32",
|
||||
#endif
|
||||
/* ---[ Options ]--- */
|
||||
#ifdef DEVEL_LOGGING
|
||||
"developer-logging",
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user