108
108
# Check for the DataSpaces library and headers
109
109
if test "x${ac_portals_lib_ok}" == "xyes"; then
110
110
AC_TRY_COMPILE([#include "dataspaces.h"],
111
[int err; err = dspaces_init(1,1);],
111
[int err; err = dspaces_init(1,1,0,"");],
112
112
[DATASPACES_LIBS="-ldspaces -ldscommon -ldart"],
113
113
[AM_CONDITIONAL(HAVE_DATASPACES,false)])
114
114
elif test "x${ac_infiniband_lib_ok}" == "xyes"; then
115
115
AC_TRY_COMPILE([#include "dataspaces.h"],
116
[int err; err = dspaces_init(1,1);],
116
[int err; err = dspaces_init(1,1,0,"");],
117
117
[DATASPACES_LIBS="-ldspaces -ldscommon -ldart -lrdmacm"],
118
118
[AM_CONDITIONAL(HAVE_DATASPACES,false)])
119
119
elif test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then
120
120
AC_TRY_COMPILE([#include "dataspaces.h"],
121
[int err; err = dspaces_init(1,1);],
121
[int err; err = dspaces_init(1,1,0,"");],
122
122
[DATASPACES_LIBS="-ldspaces -ldscommon -ldart"],
123
123
[AM_CONDITIONAL(HAVE_DATASPACES,false)])
124
124
elif test "x${ac_dcmf_lib_ok}" == "xyes"; then
125
125
AC_TRY_COMPILE([#include "dataspaces.h"],
126
[int err; err = dspaces_init(1,1);],
126
[int err; err = dspaces_init(1,1,0,"");],
127
[DATASPACES_LIBS="-ldspaces -ldscommon -ldart"],
128
[AM_CONDITIONAL(HAVE_DATASPACES,false)])
129
elif test "x${ac_pami_lib_ok}" == "xyes"; then
130
AC_TRY_COMPILE([#include "dataspaces.h"],
131
[int err; err = dspaces_init(1,1,0,"");],
127
132
[DATASPACES_LIBS="-ldspaces -ldscommon -ldart"],
128
133
[AM_CONDITIONAL(HAVE_DATASPACES,false)])