From 76cfa1c4691b904e6f118c76a6549fe9cd3a72e2 Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 8 May 2008 08:14:16 +0000 Subject: [PATCH] added sys/time.h sys/resource.h malloc.h getrusage, mallinfo --- config.h.in | 16 ++++++++++++++++ configure.in | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index 2d98665..3e8b98e 100644 --- a/config.h.in +++ b/config.h.in @@ -32,6 +32,22 @@ /* Define if you have the time.h header file */ #undef HAVE_TIME_H +/* Define if you have the sys/time.h header file */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the sys/resource.h header file */ +#undef HAVE_SYS_RESOURCE_H + +/* Define if you have the malloc.h header file */ +#undef HAVE_MALLOC_H + +/* Define if you have the getrusage function */ +#undef HAVE_GETRUSAGE + +/* Define if you have the mallinfo function */ +#undef HAVE_MALLINFO + + /* Define if you have the unistd.h header file */ #undef HAVE_UNISTD_H diff --git a/configure.in b/configure.in index cbae8a5..8d75f29 100644 --- a/configure.in +++ b/configure.in @@ -229,7 +229,7 @@ dnl Checks for header files. AC_CONFIG_HEADER(config.h) AC_HEADER_DIRENT AC_HEADER_STDC - AC_CHECK_HEADERS(zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h) + AC_CHECK_HEADERS(zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h) AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") @@ -246,7 +246,7 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T AC_STRUCT_TM AC_CHECK_TYPE(boolean,int) #needed for jpeglib - AC_CHECK_FUNCS(popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time) + AC_CHECK_FUNCS(popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo) AC_CHECK_SIZEOF([signed]) AC_CHECK_SIZEOF([unsigned]) -- 1.7.10.4