Changeset 4843
- Timestamp:
- 06/28/09 18:48:19 (5 months ago)
- Location:
- mpich2/trunk/src/pm/hydra
- Files:
-
- 3 modified
-
configure.in (modified) (1 diff)
-
pm/pmiserv/Makefile.mk (modified) (1 diff)
-
ui/mpiexec/Makefile.mk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/src/pm/hydra/configure.in
r4842 r4843 34 34 sched.h pthread.h sys/stat.h) 35 35 36 dnl Check if the pthread library is present. Apparently, just checking 37 dnl for pthread.h is not sufficient. 38 AC_CHECK_LIB(pthread,pthread_create,pthread_lib_exists=yes,pthread_lib_exists=no) 39 40 dnl Check if the upper-level enabled threads support 41 if test "$MPICH2_THREAD_PACKAGE" != "none" -a "$pthread_lib_exists" = "yes" ; then 42 AC_DEFINE(HAVE_THREAD_SUPPORT,1,[Define thread support]) 43 LDFLAGS="$LDFLAGS -lpthread" 44 fi 45 36 46 dnl Check for necessary functions 37 47 AC_CHECK_FUNCS(gettimeofday time strdup sigaction signal usleep alloca unsetenv \ 38 48 strerror strsignal putenv) 39 40 dnl Check if the upper-level enabled threads support41 if test "$MPICH2_THREAD_PACKAGE" != "none" ; then42 AC_DEFINE(HAVE_THREAD_SUPPORT,1,[Define thread support])43 fi44 AM_CONDITIONAL([hydra_include_pthread], [test "$MPICH2_THREAD_PACKAGE" != "none"])45 49 46 50 # putenv() sets environment variable -
mpich2/trunk/src/pm/hydra/pm/pmiserv/Makefile.mk
r4842 r4843 11 11 $(top_srcdir)/pm/pmiserv/pmi_proxy_utils.c 12 12 pmi_proxy_LDADD = libhydra.a 13 14 if hydra_include_pthread15 pmi_proxy_LDFLAGS = -lpthread16 endif17 13 18 14 libpm_a_SOURCES += $(top_srcdir)/pm/pmiserv/pmi_handle.c \ -
mpich2/trunk/src/pm/hydra/ui/mpiexec/Makefile.mk
r4842 r4843 13 13 mpiexec_CFLAGS = -I$(top_srcdir)/ui/utils 14 14 15 if hydra_include_pthread16 mpiexec_LDFLAGS = -lpthread17 endif18 19 15 install-alt-ui: mpiexec 20 16 @if [ ! -d $(DESTDIR)${bindir} ] ; then \
