[Ecm-commits] r2617 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Sun Feb 15 13:07:11 CET 2015


Author: dcleaver
Date: 2015-02-15 13:07:11 +0100 (Sun, 15 Feb 2015)
New Revision: 2617

Modified:
   trunk/configure.ac
Log:
mingw build needs -lpsapi for memusage.c

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2015-02-15 07:39:02 UTC (rev 2616)
+++ trunk/configure.ac	2015-02-15 12:07:11 UTC (rev 2617)
@@ -355,7 +355,11 @@
 AC_FUNC_ALLOCA
 AC_HEADER_STDC
 AC_CHECK_HEADERS([math.h limits.h malloc.h strings.h sys/time.h unistd.h io.h signal.h fcntl.h])
-AC_CHECK_HEADERS([windows.h])
+AC_CHECK_HEADERS([windows.h psapi.h], [], [],
+   [[#ifdef HAVE_WINDOWS_H
+     # include <windows.h>
+     #endif
+     ]])
 AC_CHECK_HEADERS([ctype.h sys/types.h sys/resource.h aio.h])
 
 dnl Checks for library functions that are not in GMP
@@ -368,6 +372,7 @@
 AC_CHECK_LIB(m,fmod,,AC_MSG_ERROR(required function missing))
 AC_CHECK_LIB(m,cos)
 AC_CHECK_LIB(rt,aio_read)
+AC_CHECK_LIB(psapi,[GetProcessMemoryInfo])
 
 AC_CHECK_FUNCS([isascii memset strchr strlen strncasecmp strstr], [], [AC_MSG_ERROR([required function missing])])
 AC_CHECK_FUNCS([access unlink], [], [AC_MSG_ERROR([required function missing])])



More information about the Ecm-commits mailing list