2010-02-19 15:16:21 +00:00
|
|
|
AC_INIT([umem], [1.0.2], [], [umem])
|
2006-05-13 20:37:27 +00:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
2006-03-11 17:15:25 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_AS
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AC_C_INLINE
|
|
|
|
|
2007-08-03 15:05:00 +00:00
|
|
|
AC_MSG_CHECKING([whether pthread_mutex_t is larger than 24 bytes])
|
|
|
|
AC_TRY_RUN(
|
|
|
|
[
|
|
|
|
#include <pthread.h>
|
|
|
|
int main(void){return (sizeof(pthread_mutex_t) > 24);}
|
|
|
|
],
|
|
|
|
[AC_MSG_RESULT(yes)],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_DEFINE(UMEM_PTHREAD_MUTEX_TOO_BIG, [1], [need bigger cache])
|
|
|
|
AC_MSG_WARN([*** increasing umem cpu cache size to compensate.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS([sys/mman.h sys/sysmacros.h sys/time.h malloc.h])
|
|
|
|
AC_CHECK_FUNCS([issetugid mallinfo malloc_stats])
|
2006-03-11 17:15:25 +00:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2006-05-13 20:37:27 +00:00
|
|
|
AC_CONFIG_FILES([Makefile Doxyfile umem.spec])
|
2006-03-11 17:15:25 +00:00
|
|
|
|
|
|
|
AC_OUTPUT
|