backport of:
commit
c2538af7458bf317cdc7bc684f65831744010d80
Author: Tony Cook <tony@develop-help.com>
Date: Wed Mar 9 11:54:13 2016 +1100
[perl #122287] probe in Configure whether dtrace builds an object
When building the object file, newer versions of dtrace (on Illumos
based systems at least) require an input object file that uses
at least one of the probes defined in the .d file.
The test in Makefile.SH didn't provide that definition so the test
would fail, and not build an object file, and fail to link later on,
on systems that *do* need the object file.
Moved the probe to Configure (where it probably belongs) and supplied
an object file that uses a probe.
Tested successfully on OmniOS (with the new dtrace), Solaris 11,
and darwin.
commit
5fa8e144165a5c086facccf35630b9c4a781c4ad
Author: David Mitchell <davem@iabyn.com>
Date: Fri Mar 18 23:29:44 2016 +0000
Configure: silence 'dtrace -G' probe
When built with -Dusedtrace, Configure checks to see whether 'dtrace -G'
is supported, by running it. If it fails, it may spew error messages
to stderr, so use >/dev/null 2>&1.