Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 727 Lines • ▼ Show 20 Lines | |||||
dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | ||||
AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | ||||
[[ mallopt(M_ARENA_MAX, 1); ]])], | [[ mallopt(M_ARENA_MAX, 1); ]])], | ||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | [ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | ||||
[ AC_MSG_RESULT(no)] | [ AC_MSG_RESULT(no)] | ||||
) | ) | ||||
dnl Check for malloc_info (for memory statistics information in getmemoryinfo) | |||||
AC_MSG_CHECKING(for getmemoryinfo) | |||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | |||||
[[ int f = malloc_info(0, NULL); ]])], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOC_INFO, 1,[Define this symbol if you have malloc_info]) ], | |||||
[ AC_MSG_RESULT(no)] | |||||
) | |||||
AC_MSG_CHECKING([for visibility attribute]) | AC_MSG_CHECKING([for visibility attribute]) | ||||
AC_LINK_IFELSE([AC_LANG_SOURCE([ | AC_LINK_IFELSE([AC_LANG_SOURCE([ | ||||
int foo_def( void ) __attribute__((visibility("default"))); | int foo_def( void ) __attribute__((visibility("default"))); | ||||
int main(){} | int main(){} | ||||
])], | ])], | ||||
[ | [ | ||||
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE,1,[Define if the visibility attribute is supported.]) | AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE,1,[Define if the visibility attribute is supported.]) | ||||
AC_MSG_RESULT(yes) | AC_MSG_RESULT(yes) | ||||
▲ Show 20 Lines • Show All 678 Lines • Show Last 20 Lines |