mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Add a configure script check for sysinfo support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -324,6 +324,15 @@ CFLAGS="${saved_CFLAGS}"
|
|||||||
AC_SUBST(GC_CFLAGS)
|
AC_SUBST(GC_CFLAGS)
|
||||||
AC_SUBST(GC_LDFLAGS)
|
AC_SUBST(GC_LDFLAGS)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for sysinfo)
|
||||||
|
AC_LINK_IFELSE(
|
||||||
|
AC_LANG_PROGRAM([#include <sys/sysinfo.h>],
|
||||||
|
[struct sysinfo sys_info;]),
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
AC_DEFINE([HAVE_SYSINFO], 1, [Define to 1 if your system has sysinfo support]),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for res_ninit)
|
AC_MSG_CHECKING(for res_ninit)
|
||||||
AC_LINK_IFELSE(
|
AC_LINK_IFELSE(
|
||||||
AC_LANG_PROGRAM([#include <resolv.h>],
|
AC_LANG_PROGRAM([#include <resolv.h>],
|
||||||
|
|||||||
@@ -504,6 +504,9 @@
|
|||||||
/* Define to indicate the ${SUPPSERV_DESCRIP} library version */
|
/* Define to indicate the ${SUPPSERV_DESCRIP} library version */
|
||||||
#undef HAVE_SUPPSERV_VERSION
|
#undef HAVE_SUPPSERV_VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if your system has sysinfo support */
|
||||||
|
#undef HAVE_SYSINFO
|
||||||
|
|
||||||
/* Define to 1 if you have the <syslog.h> header file. */
|
/* Define to 1 if you have the <syslog.h> header file. */
|
||||||
#undef HAVE_SYSLOG_H
|
#undef HAVE_SYSLOG_H
|
||||||
|
|
||||||
@@ -742,6 +745,9 @@
|
|||||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
# undef _POSIX_PTHREAD_SEMANTICS
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||||
#undef __PROTOTYPES
|
#undef __PROTOTYPES
|
||||||
|
|||||||
Reference in New Issue
Block a user