Modify the recently-added probe for -Wl,--as-needed some more, because RHEL-4

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 623f8a0969e9e4663dd27e065bfb8f67f9508006
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-06-27T00:36:16Z
Releases: 8.4.0
Modify the recently-added probe for -Wl,--as-needed some more, because RHEL-4
vintage Linux is even more broken than we realized: a link to libreadline
will succeed, and fail only at runtime.  It seems that an AC_TRY_RUN test
is the only reliable way to check whether this is really safe.  Per report
from Tatsuo.

Files

PathChange+/−
config/c-compiler.m4 modified +8 −5
configure modified +57 −51
configure.in modified +2 −2