oob/tcp: fix a race condition

Mimick the btl/tcp protocol to solve the race condition that happens
when two peers try to connect to each other at the same time

cmr=v1.8.4:reviewer=rhc

This commit was SVN r32799.
(cherry picked from commit 9661e4537fc6d932c63e4680b23cfd86a3f64035)
Bring over master:

open-mpi/ompi@8ded59ce
Don't open PSM context when run on single node

When running many ranks on a single node using PSM, it's possible to
exhaust the network hardware contexts (there are 16).  This patch checks
if only a single node is being used. If so, the 'ipath' component of PSM
is disabled and no hardware contexts are opened.
(cherry picked from commit 75f66605e568b87b4ca988ed1bfa939cd1574773)
VERSION: Remove "JMS" shared lib version notes from last release
opal_check_ident.m4: make the test match what we do in the code base

Per open-mpi/ompi#257, the configure test used to check:

```c
 #pragma ident "foo"
```

But out in the code base, we actually do this:

```c
 #define IDENT_MSG "foo"
// ...
 #pragma ident IDENT_MSG
```

This commit updates the configure test to ```#define``` a string and
then use that with the various ident strategies.
Merge pull request #68 from rhc54/cmr/alps-fix

Update ALPS plm module
Merge pull request #69 from afriedle-intel/topic/afriedle-psm-singlenode-v1.8

Don't open PSM context when run on single node
Merge pull request #70 from jsquyres/pr/fix-ident-configury

opal_check_ident.m4: make the test match what we do in the code base
Merge pull request #11 from ggouaillardet/topic/oob_tcp_race_condition

oob/tcp: fix a race condition
Trivial change to valgrind suppression file, taken from master:

open-mpi/ompi@8c3fb41
fix ompi_request_wait vs ompi_request_wait_all and
MPI_STATUS_IGNORE vs MPI_STATUSES_IGNORE

This is a back-port of commit open-mpi/ompi@64c18686b7b20503519042fe0edbe0ca5f2e904a
Require -D_REENTRANT flag for both CFLAGS and CPPFLAGS if building under Solaris

Port of open-mpi/ompi@64c1868
coll/basic: fix segmentation fault in neighborhood collectives if the degree
of the topology is higher than the communicator size

It is possible to have a topology degree higher than the size of the communicator.
For example, a periodic cartesian communicator on MPI_COMM_SELF. This will leave
the neighborhood collectives with a request buffer that is too small. This commit
adds a call that will dynamically increase the size of the request buffer if it
is too small.

A better fix would be to create the topology *before* calling the coll_select
routine on a communicator. This will take some discussion and the solution will
not likely be ready anytime soon.

Thanks to Lisandro Dalcin for reporting this.

Original thread: http://www.open-mpi.org/community/lists/devel/2014/08/15713.php

cmr=v1.8.3:reviewer=jsquyres

This commit was SVN r32796.
(cherry picked from commit open-mpi/ompi@9c788ff9400960823637dc0eebb3a8640414fa05)
Merge pull request #71 from rhc54/cmr/solaris-flags

Require -D_REENTRANT flag for both CFLAGS and CPPFLAGS if building under...
Merge pull request #72 from ggouaillardet/topic/ompi_request_wait_fixes

fix ompi_request_wait vs ompi_request_wait_all
Merge pull request #73 from ggouaillardet/topic/neighbor_allgather_self

coll/basic: fix segmentation fault in neighborhood collectives if the de...
fortran: fix linking with Fortran sentinel values

In OMPI 1.8 and 1.8.1, we didn't allow gfortran to use the ignore-TKR
style "mpi" Fortran module (which is written in Fortran).  Instead,
gfortran used the TKR style "mpi" module, which is written in C.

In OMPI 1.8.2, we removed the gfortran restriction (for suitably
modern gfortran -- i.e., >= 4.9).  This allowed gfortran to use the
ignore-TKR style "mpi" module, but exposed a bug where MPI Fortran
sentinel values wouldn't be linked properly on OS X.  The solution is
to use ```-Wl,-flat_namespace``` (see the OS X ld(1) man page for
details) when both building the libraries and in the wrapper
compilers.

Thanks to Github user yafshar for rasising the issue.

Fixes #259.

(cherry picked from commit 6164dc4960805b5502f86f9a2dccc5fc557e44d6)
Merge pull request #74 from jsquyres/pr/fix-osx-gfortran-inplace

fortran: fix linking with Fortran sentinel values
Merge branch 'v1.8' of github.com:open-mpi/ompi-release into topic/sync_with_upstream
Merge pull request #11 from miked-mellanox/topic/sync_with_upstream

sync with ompi-release/v1.8