From 4ea8790342df331033c1997178e013d4f0a6e08b Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Sat, 1 Apr 2006 05:46:15 +0000 Subject: [PATCH] * Don't try to call tcgetprgp on platforms that don't have that function * Some more stuff to ignore / do in Red Storm build This commit was SVN r9511. --- configure.ac | 2 +- contrib/platform/redstorm | 9 ++++++--- orte/mca/iof/base/iof_base_endpoint.c | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 037515b469..a18b92e779 100644 --- a/configure.ac +++ b/configure.ac @@ -699,7 +699,7 @@ OMPI_CHECK_FUNC_LIB([dirname], [gen]) # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib OMPI_CHECK_FUNC_LIB([ceil], [m]) -AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt]) +AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp]) # # Make sure we can copy va_lists (need check declared, not linkable) diff --git a/contrib/platform/redstorm b/contrib/platform/redstorm index 61dab088ab..7d44f308a3 100644 --- a/contrib/platform/redstorm +++ b/contrib/platform/redstorm @@ -1,4 +1,4 @@ -enable_f77=no +enable_mpi_f77=no enable_io_romio=no enable_static=yes enable_shared=no @@ -7,6 +7,9 @@ enable_pretty_print_stacktrace=no enable_dlopen=no with_portals_config=redstorm with_memory_manager=none -enable_mca_no_build=maffinity-first_use,maffinity-libnuma,paffinity-linux,timer-linux,gpr-proxy,gpr-replica,pml-teg,pml-uniq,rml-oob,btl-sm,mpool-sm,btl-self,ptl-sm,ptl-self,ns-proxy,rds-resfile,sds-env,sds-seed,sds-singleton,ras-slurm,pls-slurm,pls-rsh -with_memory_manager=no +enable_mca_no_build=maffinity-first_use,maffinity-libnuma,paffinity-linux,timer-linux,gpr-proxy,gpr-replica,iof-svc,ns-proxy,oob-tcp,pls-rsh,ras-dash_host,ras-localhost,rds-hostfile,rds-resfile,rmaps-round_robin,rmgr-proxy,rmgr-urm,rml-oob,sds-env,sds-seed,sds-singleton,btl-sm,btl-self,coll-hierarch,coll-sm,common-sm,mpool-sm,pml-dr,pml-portals enable_heterogeneous=no +enable_pty_support=no +enable_mem_debug=no +enable_mem_profile=no +with_slurm=no diff --git a/orte/mca/iof/base/iof_base_endpoint.c b/orte/mca/iof/base/iof_base_endpoint.c index d622030c81..34dcbcc836 100644 --- a/orte/mca/iof/base/iof_base_endpoint.c +++ b/orte/mca/iof/base/iof_base_endpoint.c @@ -230,7 +230,7 @@ static void orte_iof_base_endpoint_write_handler(int sd, short flags, void *user /* return true if we should read stdin from fd, false otherwise */ static bool orte_iof_base_endpoint_stdin_check(int fd) { -#if !defined(__WINDOWS__) +#if !defined(__WINDOWS__) && defined(HAVE_TCGETPGRP) if( isatty(fd) && (getpgrp() != tcgetpgrp(fd)) ) { return false; }