# -*- shell-script -*- # # Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana # University Research and Technology # Corporation. All rights reserved. # Copyright (c) 2004-2005 The University of Tennessee and The University # of Tennessee Research Foundation. All rights # reserved. # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2010-2011 Los Alamos National Security, LLC. # All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # # MCA_opal_shmem_windows_CONFIG(action-if-can-compile, # [action-if-cant-compile]) # ------------------------------------------------ AC_DEFUN([MCA_opal_shmem_windows_CONFIG],[ AC_CONFIG_FILES([opal/mca/shmem/windows/Makefile]) # do we have the windows shm stuff? AC_MSG_CHECKING([if want Windows shared memory support]) AC_ARG_ENABLE(windows-shmem, AC_HELP_STRING([--disable-windows-shmem], [disable windows shared memory support (default: enabled)])) AS_IF([test "$enable_windows_shmem" = "no"], [AC_MSG_RESULT([no]) shmem_windows_sm_build_windows=0], [AC_MSG_RESULT([yes]) AC_CHECK_FUNC(CreateFileMapping, [shmem_windows_sm_build_windows=1], [shmem_windows_sm_build_windows=0])]) AS_IF([test "$enable_windows_shmem" = "yes" -a "$shmem_windows_sm_build_windows" = "0"], [AC_MSG_WARN([Windows shared memory support requested but not found]) AC_MSG_ERROR([Cannot continue])]) AS_IF([test "$shmem_windows_sm_build_windows" = "1"], [$1], [$2]) AC_DEFINE_UNQUOTED([OPAL_SHMEM_WINDOWS], [$shmem_windows_sm_build_windows], [Whether we have shared memory support for POSIX or not]) ])dnl