aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 517f4a0..42094ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,9 +124,13 @@ AC_CHECK_HEADERS([bsd/sys/queue.h], [], [
case $host in
*-mingw*)
- AC_CHECK_HEADERS([windows.h], , [
+ AC_CHECK_HEADERS([windows.h psapi.h], , [
AC_MSG_ERROR([Missing Windows headers!])
])
+
+ # Make sure we get GetProcessMemoryInfo():
+ AM_CPPFLAGS="$AM_CPPFLAGS -DPSAPI_VERSION=1"
+ LIBS="$LIBS -lpsapi"
;;
esac
@@ -154,7 +158,7 @@ esac
# Check for optional GNU libc features.
# Will probably only be found on Linux.
AC_CHECK_HEADERS([malloc.h])
-AC_CHECK_FUNCS([malloc_trim])
+AC_CHECK_FUNCS([malloc_trim mallinfo])
#
# Config options