summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-05-01 13:29:49 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-05-01 13:29:49 +0000
commit6073a0524023454324d2575e8667c72666597bfe (patch)
tree9a1db55ba2885315c3a83ca48b42a8ddfd3cca21 /autoconf
parent9bc15374884b1b3f91573f32134d9b12dd824dde (diff)
downloadllvm-6073a0524023454324d2575e8667c72666597bfe.tar.gz
llvm-6073a0524023454324d2575e8667c72666597bfe.tar.bz2
llvm-6073a0524023454324d2575e8667c72666597bfe.tar.xz
Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may check the decl instead of the versions of individual libraries.
autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64. cmake/config-ix.cmake: Add checking ELM_Callback decl for win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 9c73916953..b55f56444f 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1429,6 +1429,24 @@ if test "$llvm_cv_os_type" = "MingW" ; then
AC_CHECK_LIB(gcc,__cmpdi2,AC_DEFINE([HAVE___CMPDI2],[1],[Have host's __cmpdi2]))
fi
+dnl Check Win32 API EnumerateLoadedModules.
+if test "$llvm_cv_os_type" = "MingW" ; then
+ AC_MSG_CHECKING([whether EnumerateLoadedModules() accepts new decl])
+ AC_COMPILE_IFELSE([[#include <windows.h>
+#include <imagehlp.h>
+extern void foo(PENUMLOADED_MODULES_CALLBACK);
+extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));]],
+[
+ AC_MSG_RESULT([yes])
+ llvm_cv_win32_elmcb_pcstr="PCSTR"
+],
+[
+ AC_MSG_RESULT([no])
+ llvm_cv_win32_elmcb_pcstr="PSTR"
+])
+ AC_DEFINE_UNQUOTED([WIN32_ELMCB_PCSTR],$llvm_cv_win32_elmcb_pcstr,[Type of 1st arg on ELM Callback])
+fi
+
dnl Check for variations in the Standard C++ library and STL. These macros are
dnl provided by LLVM in the autoconf/m4 directory.
AC_FUNC_ISNAN