memchecker: per RFC, use calloc for OBJ_NEW

With --enable-memchecker builds, use calloc(3) for OBJ_NEW instead of
malloc(3).  This cuts down on a lot of valgrind/memory checker false
positive output.

Also make a minor change in the valgrind configure.m4; have it assign
0xf to a char.  The prior assignment (of 0xff) was warning about an
overflow.  This didn't really matter, but we might as well make the
test not have a gratuitious warning in it.

(cherry picked from commit a422d893b8e63347deb71bbaaa14ca25ddb1f192)
coll/sm: fix minor memory leak
this is a backport of commit 5d44a30111e730c1a6a9aef19548b87e704316de in master
Fix iallgather problem with intercommunicators

A problem was found with the libnbc MPI_Iallgather
routine when using intercommunicators.  Special
thanks to Takahiro Kawashima(Fujitsu) for the patch
and a test case.  Verified master fails without the
patch and the test passes with the patch applied.

fixes #219
MTL/MXM: disable "bulk_connect" by default.
(cherry picked from commit a215a4831dfae9dd0a3fee7b31ee784d4e5394a4)
OSHMEM: sshmem verbs: workaround shared_mr procfs bug

dereg shared_mr before doing dereg on its mr.
(cherry picked from commit cd67642183954d5dad560d907ded422d47ee50d4)
MTL MXM: fix check-help-string.pl errors and warnings.

This commit was SVN r32533.
OSHMEM: fix check-help-string.pl errors and warnings.

This commit was SVN r32511.
(cherry picked from commit e974bec57e7f9ff7fd9705291f6d11a2ecc69308)
MXM: update min required version for mxm as 2.1+

This commit was SVN r32193.
(cherry picked from commit 1b51e472ac88061572bdb4fec7528b5ad3654f49)
usnic: fix minor typo

Essentially cherry-picked from open-mpi/ompi@51027a6

Reviewed by Reese Faucette.
This commit is a "cherry-pick" by hand of the two commits in ompi/master
AKA the trunk from Devedar. This contains commits:

cbb3e95
8dfed1c

from the trunk. This fixes the OSHMEM global exit when launched under srun.
usnic: do not send zero-length modex message

If there are no usnic BTL modules, then just avoid sending any modex
message at all (other BTLs do this; it's safe to do).

The change is smaller than it looks: I added a "if 0 ==..." check at
the top to return immediately if there are no BTL modules.  Then I
removed some now-unnecessary conditionals and un-indented as
appropriate.
usnic: do not error if modex value not found

It is not an error if a peer does not have a usnic modex message.  It
just means that that peer does not have any usnic BTL modules (and
therefore we can't talk to it).

This has been on trunk/master for quite a while; I just noticed today
that this fix was not on the v1.8 branch.
btl/sm: re-enable the use of CMA and knem

At some point we added a sanity check to the btl base to ensure that
the btl flags match the available functions (this prevents user's from
specifying get or put when no function exists). This check was
disabling get for the sm btl since at the time of the check there is
no btl_get function. The simplest fix is to set a dummy value to btl_get
that will be overwritten with the proper value on btl initialization.

Includes master references:
open-mpi/ompi@d7c7bb399388e7f85aa856c38865c8062bf7c0e6
open-mpi/ompi@998e69a6facdecdaa95996ac996b5a249c42f8e0
btl/sm: bring more knem fixes from trunk

This commit brings over:

open-mpi/ompi@55e4947
open-mpi/ompi@19fbe86
Merge pull request #43 from jladd-mlnx/topic/globalexit_srun_fix

Fix the application abort routine so we actually abort
Merge pull request #45 from hjelmn/knem_fixes

btl/sm: re-enable the use of CMA and knem
Merge pull request #44 from jsquyres/pr/usnic-fixes

Minor usnic fixes
Merge pull request #30 from jsquyres/topic/usnic-typo-fix

usnic: fix minor typo
Merge pull request #25 from alinask/topic_mxm_2_1

MXM: update min required version for mxm as 2.1+
Merge pull request #22 from alinask/topic

MTL MXM: fix check-help-string.pl errors and warnings.