Provide support for detecting if the Win32 imaghlp and psapi libraries

are available. These libraries are used in lib/System and should be
included on the link line or if not available generate an error when
building lib/System.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-06-01 16:55:59 +00:00
parent b056761165
commit 484fc8e384
3 changed files with 318 additions and 0 deletions

View File

@@ -486,6 +486,11 @@ dnl===-----------------------------------------------------------------------===
dnl libelf is for sparc only; we can ignore it if we don't have it
AC_CHECK_LIB(elf, elf_begin)
AC_CHECK_LIB(m,sin)
if test "$llvm_cv_os_type" == "MingW" ; then
AC_CHECK_HEADERS([imagehlp.h psapi.h])
AC_CHECK_LIB(imagehlp,[SymGetOptions])
AC_CHECK_LIB(psapi,[GetProcessMemoryInfo])
fi
dnl lt_dlopen may be required for plugin support.
AC_SEARCH_LIBS(lt_dlopen,ltdl,AC_DEFINE([HAVE_LT_DLOPEN],[1],