1# GA_THREAD_SAFE 2# -------------- 3# Asserts that procedures are thread safe??? 4# Is this specific to ARMCI??? 5# This was taken from older GNUmakefiles... the original doc follows 6# Procedures are thread safe; should also specify the max number of threads 7# via ARMCI_MAX_THREADS and thread library via THREAD_LIBRARY. Only supported 8# for SOCKETS ELAN4 OPENIB LAPI64. 9AC_DEFUN([GA_THREAD_SAFE], 10[AC_ARG_ENABLE([thread-safety], 11 [AS_HELP_STRING([--enable-thread-safety], [**unsupported** turn on thread safety])], 12 [thread_safety=yes 13 AC_DEFINE([THREAD_SAFE], [1], [turn on thread safety])], 14 [thread_safety=no]) 15AM_CONDITIONAL([THREAD_SAFE], [test x$thread_safety = xyes]) 16AC_ARG_VAR([THREAD_LIBRARY], [See --enable-thread-safety]) 17AC_SUBST([THREAD_LIBRARY]) 18])dnl 19