Fixes #3448: Move r27740 to v1.7 branch

---svn-pre-commit-ignore-below---

r27740 [[BR]]
Fix a bug in the uGNI btl that could cause certain descriptor callbacks to be called twice.

There was a race condition in the eager get protocol where the RDMA complete message could be received before the local completion of the SMSG message that started the eager get protocol.

cmr:v1.7
Fixes #3449: CMR: Change the unit of orte_startup_timeout to seconds (r27741)

---svn-pre-commit-ignore-below---

r27741 [[BR]]
Change orte_startup_timeout to be in seconds and remove the 10 second maximum
Fixes #3374: OPAL datatype tests are segfaulting

---svn-pre-commit-ignore-below---

Custom patch on the ticket based on r27714 [[BR]]
On OpenBSD (and probably others), expr operates on a 32 bit signed integer,
which is the same size as a Fortran or C integer.  This resulted in configure
coming up with Fortran's MAX_INT as -2^31, which obviously isn't a positive
number.  Since we found the MAX_INT using the same broken loop in a couple
places and doing it right is complicated, added a new macro that is much
more careful about sign roll-over.

During the Fortran rework between v1.6 and v1.7, the variable which
indicates whether or not Fortran is being compiled changed, so on platforms
without Fortran compilers, we were trying to determine the max value for
Fortran INTEGERS where we previously didn't.  I believe this is why
bug #3374 appeared as a regression.

Finally, since the OMPI code doesn't cope with OMPI_FORTRAN_HANDLE_MAX
being negative (which was the root cause of the segfault in $3374),
add a check at the end of the OMPI_FORTRAN_GET_HANDLE_MAX macro to
ensure that OMPI_FORTRAN_HANDLE_MAX is always non-negative.
Refs #3374: somehow, this part of the commit got left out.
Bring over README improvements from trunk r27778 and r27781.
Documentation change, so no CMR needed.
Fixes #3455: Move Fortran thread library detection fix to 1.7

---svn-pre-commit-ignore-below---

r27780 [[BR]]
Fix fortran issues when there's no fortran compiler.
Fixes #3453: Fix to CQ TX completion moderation

---svn-pre-commit-ignore-below---

Custom patch from ticket for add CQ TX batching, plus:

r27767 [[BR]]
request signal when sending over SRQ and number of SRQ sd_credits is 0
Fixes #3457: Move linux/hooks.c fix to v1.7

---svn-pre-commit-ignore-below---

r27785 [[BR]]
Based on a bug report and suggested fix from Darshan maintainer Phil
Carns, change to use access(.., F_OK) instead of stat() to check for
the presence of files.

Also remove redundant check for FAKEROOTKEY, and update all comments
to match.
Fixes #3460: Move MPI_Reduce/MINLOC man page fix to v1.7

---svn-pre-commit-ignore-below---

r27787 [[BR]]
Fix from Jed Brown for fairly obvious typos.
Fixes #3464: CQ TX moderation fixes

---svn-pre-commit-ignore-below---

r27801 [[BR]]
fixed compilation warning
always send signalled when BTL_OPENIB_FAILOVER is defined
Fixes #3466: Remove Java *.exp files from v1.7 branch

---svn-pre-commit-ignore-below---
Custom SVN rm command on the ticket, based on:

r27806 [[BR]]
Remove some generated files
Fixes #3461: Move event/hwloc configry mprovements to v.17
Fixes #3462: Move hwloc upgrade to v1.7

---svn-pre-commit-ignore-below---

r27794 [[BR]]
In short: this commit removes a bunch of code by switching the opal
event framework to STOP_AT_FIRST, and then moves a bunch of
side-effect-inducing code in the libevent2019 configure.m4 up to
POST_CONFIG.

== More detail ==

Change the event framework from STOP_AT_FIRST_PRIORITY to
STOP_AT_FIRST.  This means that only one component can win (vs. all
STOP_AT_FIRST_PRIORITY, in which multiple components of the same
priority can all win).

You still need to ensure that there are no side-effects from the
winner, however, so check for winning during POST_CONFIG, and set
things like the base_include there.

This simplifies the configury quite a bit -- you don't have to assume
that mulitple components can win: zero or one components will win.

Also change the libevent 2019 priority to 50 so that some other
(developer-specific/local) component could win, if it wanted to.

r27795 [[BR]]
Remove debugging message.

r27796 [[BR]]
Similar to r27794, simplify the hwloc framework by changing it to
STOP_AT_FIRST.  And move the side-effect-inducing code in
hwloc142/configure.m4 up to POST_CONFIG.

Also change the priority of the external hwloc component to 90 so that
it is evaluated before the internal component (as a direct result of
changing to STOP_AT_FIRST).

r27797 [[BR]]
Update the embedded hwloc from v1.4.2 to v1.5.1.

r27798 [[BR]]
Cleanup new hwloc install - remove build products that were accidentally included in the commit, remove non-existent file from Makefile.am

r27799 [[BR]]
Fix a typo.

r27800 [[BR]]
Remove some more generated files.

r27805 [[BR]]
Add some post-v1.5.1 release hwloc bug fixes

r27812 [[BR]]
HWLOC_DO_AM_CONDITIONALS must be run unconditionally.

r27813 [[BR]]
The "external" hwloc component didn't have the same fixes applied to
it that the others did: move the "I won!" code up into the POST_CONFIG
macro.  Also, fix a long-standing typo when restoring the $CPPFLAGS (!).