Check for the right function. This is always supposed to
fails on anything than Windows. This commit was SVN r15072.
Этот коммит содержится в:
родитель
be179cea79
Коммит
b33086b941
@ -20,14 +20,13 @@ AC_DEFUN([MCA_installdirs_windows_COMPILE_MODE], [
|
|||||||
# [action-if-cant-compile])
|
# [action-if-cant-compile])
|
||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
AC_DEFUN([MCA_installdirs_windows_CONFIG],[
|
AC_DEFUN([MCA_installdirs_windows_CONFIG],[
|
||||||
# check for GetProcessAffinityMask, which is defined only for some
|
# check for RegOpenKeyEx allowing access to the Windows
|
||||||
# flavors of Windows. We should first check that the function is defined,
|
# registry. We should first check that the function is defined,
|
||||||
# and then check for it's presence in the kernel32 library.
|
# and then check for it's presence in the kernel32 library.
|
||||||
AC_MSG_CHECKING(for working GetProcessAffinityMask)
|
AC_MSG_CHECKING(for working RegOpenKeyEx)
|
||||||
AC_TRY_RUN( [#include <windows.h>
|
AC_TRY_RUN( [#include <windows.h>
|
||||||
int main( int argc, char** argv ) {
|
int main( int argc, char** argv ) {
|
||||||
DWORD aff, mask;
|
RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
|
||||||
GetProcessAffinityMask( NULL, &aff, &mask );
|
|
||||||
return 0; }],
|
return 0; }],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
$1],
|
$1],
|
||||||
@ -35,8 +34,7 @@ int main( int argc, char** argv ) {
|
|||||||
$2],
|
$2],
|
||||||
[AC_COMPILE_IFELSE([#include <windows.h>
|
[AC_COMPILE_IFELSE([#include <windows.h>
|
||||||
int main( int argc, char** argv ) {
|
int main( int argc, char** argv ) {
|
||||||
DWORD aff, mask;
|
RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
|
||||||
GetProcessAffinityMask( NULL, &aff, &mask );
|
|
||||||
return 0; }],
|
return 0; }],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
$1],
|
$1],
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user